summaryrefslogtreecommitdiffstats
path: root/test/SemaCXX/typo-correction-delayed.cpp
diff options
context:
space:
mode:
authorKaelyn Takata <rikka@google.com>2014-12-19 01:28:40 +0000
committerKaelyn Takata <rikka@google.com>2014-12-19 01:28:40 +0000
commit0ef7967c69d45880fc3ca23ab8397a585814b4bb (patch)
tree3cb67edbc56cd3b583c1f6f5079f7b610fe1c50b /test/SemaCXX/typo-correction-delayed.cpp
parenta4187a13a38acd612a2cda7f23d6a01ea5ca4697 (diff)
Correct delayed typos in the operand to typeof expressions.
Fixes PR21947. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@224558 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaCXX/typo-correction-delayed.cpp')
-rw-r--r--test/SemaCXX/typo-correction-delayed.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/SemaCXX/typo-correction-delayed.cpp b/test/SemaCXX/typo-correction-delayed.cpp
index a9bc91e030..49bb14fe8c 100644
--- a/test/SemaCXX/typo-correction-delayed.cpp
+++ b/test/SemaCXX/typo-correction-delayed.cpp
@@ -147,3 +147,8 @@ void test() {
namespace PR21905 {
int (*a) () = (void)Z; // expected-error-re {{use of undeclared identifier 'Z'{{$}}}}
}
+
+namespace PR21947 {
+int blue; // expected-note {{'blue' declared here}}
+__typeof blur y; // expected-error {{use of undeclared identifier 'blur'; did you mean 'blue'?}}
+}