2007-10-11 08:18:28 +08:00
|
|
|
// RUN: clang -fsyntax-only -verify %s
|
2007-07-22 15:07:56 +08:00
|
|
|
|
|
|
|
void f (int z) {
|
|
|
|
switch(z) {
|
|
|
|
default: // expected-error {{first label is here}}
|
|
|
|
default: // expected-error {{multiple default labels in one switch}}
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|