2007-10-11 08:18:28 +08:00
|
|
|
// RUN: clang -fsyntax-only -verify %s
|
2007-07-21 11:00:26 +08:00
|
|
|
|
|
|
|
void f5 (int z) {
|
|
|
|
if (z)
|
|
|
|
default: // expected-error {{not in switch statement}}
|
2007-10-11 04:50:11 +08:00
|
|
|
; // expected-warning {{if statement has empty body}}
|
2007-07-21 11:00:26 +08:00
|
|
|
}
|
|
|
|
|