Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
clang
/
3b427b3ba518f7a7293458c2d3d92eebd8458d87
/
.
/
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
;
}
}