Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
clang
/
b88d45ea7eb835d36c4a4b3ea84b1260b120dd0a
/
.
/
test
/
Sema
/
switch-duplicate-defaults.c
blob: 9ef683b48b9d0fea8491bcc543a0eeb364775579 [
file
] [
log
] [
blame
]
// 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
;
}
}