summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/typo-correction.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Sema/typo-correction.c')
-rw-r--r--clang/test/Sema/typo-correction.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/test/Sema/typo-correction.c b/clang/test/Sema/typo-correction.c
index 04cf0775f1d..e4d14654cc9 100644
--- a/clang/test/Sema/typo-correction.c
+++ b/clang/test/Sema/typo-correction.c
@@ -9,3 +9,6 @@ void PR21656() {
float x;
x = (float)arst; // expected-error-re {{use of undeclared identifier 'arst'{{$}}}}
}
+
+a = b ? : 0; // expected-warning {{type specifier missing, defaults to 'int'}} \
+ // expected-error {{use of undeclared identifier 'b'}}
OpenPOWER on IntegriCloud