diff options
Diffstat (limited to 'clang/test/Sema')
-rw-r--r-- | clang/test/Sema/typo-correction.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/test/Sema/typo-correction.c b/clang/test/Sema/typo-correction.c index e98e5c00697..04cf0775f1d 100644 --- a/clang/test/Sema/typo-correction.c +++ b/clang/test/Sema/typo-correction.c @@ -4,3 +4,8 @@ // than in C++ and may exhibit different behavior as a result. __typeof__(struct F*) var[invalid]; // expected-error-re {{use of undeclared identifier 'invalid'{{$}}}} + +void PR21656() { + float x; + x = (float)arst; // expected-error-re {{use of undeclared identifier 'arst'{{$}}}} +} |