Files
clang-p2996/clang/test/Parser/switch-recovery.cpp
Douglas Gregor 4abc32d033 Improve parser recovery when a switch condition is invalid; fixes
<rdar://problem/7971948>.

llvm-svn: 104291
2010-05-20 23:20:59 +00:00

13 lines
223 B
C++

// RUN: %clang_cc1 -fsyntax-only -verify %s
// <rdar://problem/7971948>
struct A {};
struct B {
void foo() {
switch (a) { // expected-error{{use of undeclared identifier 'a'}}
default:
return;
}
}
};