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

11 lines
229 B
C
Raw Normal View History

// RUN: clang -fsyntax-only -verify %s
void f (int z) {
switch(z) {
default: // expected-error {{first label is here}}
default: // expected-error {{multiple default labels in one switch}}
break;
}
}