llvm-project/clang/test/Sema/switch.c

10 lines
143 B
C

// RUN: clang -parse-ast-check %s
void f (int z) {
while (z) {
default: z--; // expected-error {{statement not in switch}}
}
}