summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema
diff options
context:
space:
mode:
authorKaelyn Takata <rikka@google.com>2014-11-24 21:46:59 +0000
committerKaelyn Takata <rikka@google.com>2014-11-24 21:46:59 +0000
commit13da33fdfe480ac6ecbddf95524cc870dc9bd4ef (patch)
tree76c269d8b03f4ffd2128c9c32625160cf1a2e0cc /clang/test/Sema
parent074bbb698db6f2b4559a65a247e9d7aa0686de94 (diff)
downloadbcm5719-llvm-13da33fdfe480ac6ecbddf95524cc870dc9bd4ef.tar.gz
bcm5719-llvm-13da33fdfe480ac6ecbddf95524cc870dc9bd4ef.zip
Force the correction of delayed typos in casts in non-C++ code.
Fixes PR21656, which is fallout from r222551 caused by an untested/missed code path. llvm-svn: 222694
Diffstat (limited to 'clang/test/Sema')
-rw-r--r--clang/test/Sema/typo-correction.c5
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'{{$}}}}
+}
OpenPOWER on IntegriCloud