Files
llvm-project/clang/test/Sema/switch-duplicate-defaults.c
Chris Lattner 5e4c75f4ef rename -parse-ast-print to -ast-print
rename -parse-ast-dump to -ast-dump
remove -parse-ast, which is redundant with -fsyntax-only

llvm-svn: 42852
2007-10-11 00:18:28 +00:00

11 lines
229 B
C

// 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;
}
}