summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema
diff options
context:
space:
mode:
authorKaelyn Takata <rikka@google.com>2015-03-19 20:56:07 +0000
committerKaelyn Takata <rikka@google.com>2015-03-19 20:56:07 +0000
commitb939fb34783c1dcaf034e7079512f96b76a4de29 (patch)
tree6919d4952417e5c04e4a237d3b58835283e0ccb5 /clang/test/Sema
parentb4db1420c2637b07d24b9a651b41f0f572966cc8 (diff)
downloadbcm5719-llvm-b939fb34783c1dcaf034e7079512f96b76a4de29.tar.gz
bcm5719-llvm-b939fb34783c1dcaf034e7079512f96b76a4de29.zip
Correct typos in C11 generic-selection expressions.
llvm-svn: 232760
Diffstat (limited to 'clang/test/Sema')
-rw-r--r--clang/test/Sema/typo-correction.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/Sema/typo-correction.c b/clang/test/Sema/typo-correction.c
index 8276737e4fe..be9a1f3e482 100644
--- a/clang/test/Sema/typo-correction.c
+++ b/clang/test/Sema/typo-correction.c
@@ -28,3 +28,9 @@ void func(int arg) {
;
}
}
+
+void banana(void); // expected-note {{'banana' declared here}}
+int c11Generic(int arg) {
+ _Generic(hello, int : banana)(); // expected-error-re {{use of undeclared identifier 'hello'{{$}}}}
+ _Generic(arg, int : bandana)(); // expected-error {{use of undeclared identifier 'bandana'; did you mean 'banana'?}}
+}
OpenPOWER on IntegriCloud