Douglas Gregor | 4186ff4 | 2010-05-20 23:20:59 +0000 | [diff] [blame^] | 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s |
2 | |||||
3 | // <rdar://problem/7971948> | ||||
4 | struct A {}; | ||||
5 | struct B { | ||||
6 | void foo() { | ||||
7 | switch (a) { // expected-error{{use of undeclared identifier 'a'}} | ||||
8 | default: | ||||
9 | return; | ||||
10 | } | ||||
11 | } | ||||
12 | }; |