diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2016-06-30 18:36:34 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2016-06-30 18:36:34 +0000 |
commit | cc4bb63351e527682d13a0b06a3ff3e32eaa1c37 (patch) | |
tree | d4262d93e989690d06469648267d7ab7d3f3a68f /clang/test/SemaCXX/condition.cpp | |
parent | fbac64d678060084fdce35371783ad9edd7264f3 (diff) | |
download | bcm5719-llvm-cc4bb63351e527682d13a0b06a3ff3e32eaa1c37.tar.gz bcm5719-llvm-cc4bb63351e527682d13a0b06a3ff3e32eaa1c37.zip |
PR28373: fix crash-on-invalid if the condition of an if-statement fails typo-correction.
llvm-svn: 274260
Diffstat (limited to 'clang/test/SemaCXX/condition.cpp')
-rw-r--r-- | clang/test/SemaCXX/condition.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/test/SemaCXX/condition.cpp b/clang/test/SemaCXX/condition.cpp index b757fcb8cd5..5596564d248 100644 --- a/clang/test/SemaCXX/condition.cpp +++ b/clang/test/SemaCXX/condition.cpp @@ -65,3 +65,7 @@ void test5() { void test5_inst() { test5<int>(); } + +void PR28373() { + if (!x) {} // expected-error {{undeclared}} +} |