diff options
Diffstat (limited to 'clang/test/Sema/switch.c')
-rw-r--r-- | clang/test/Sema/switch.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/test/Sema/switch.c b/clang/test/Sema/switch.c index 8325b4e8237..5c8ebf516c3 100644 --- a/clang/test/Sema/switch.c +++ b/clang/test/Sema/switch.c @@ -24,7 +24,9 @@ void foo(int X) { void test3(void) { // empty switch; - switch (0); // expected-warning {{no case matching constant switch condition '0'}} + switch (0); // expected-warning {{no case matching constant switch condition '0'}} \ + // expected-warning {{switch statement has empty body}} \ + // expected-note{{put the semicolon on a separate line to silence this warning}} } extern int g(); |