diff options
| author | Kaelyn Takata <rikka@google.com> | 2015-03-19 20:56:07 +0000 |
|---|---|---|
| committer | Kaelyn Takata <rikka@google.com> | 2015-03-19 20:56:07 +0000 |
| commit | b939fb34783c1dcaf034e7079512f96b76a4de29 (patch) | |
| tree | 6919d4952417e5c04e4a237d3b58835283e0ccb5 /clang/test/Sema | |
| parent | b4db1420c2637b07d24b9a651b41f0f572966cc8 (diff) | |
| download | bcm5719-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.c | 6 |
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'?}} +} |

