Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
fp2-dev
/
platform
/
external
/
clang
/
b0707c9a933b1839fa966e4c72e4dcb9a198f11f
/
.
/
test
/
SemaCXX
/
switch-implicit-fallthrough-regression.cpp
blob: aec3769e00e473f5e167620cad4f7d512141ee09 [
file
] [
log
] [
blame
]
// RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 -Wimplicit-fallthrough %s
void
f
()
{
class
C
{
void
f
(
int
x
)
{
switch
(
x
)
{
case
0
:
x
++;
[[
clang
::
fallthrough
]];
// expected-no-diagnostics
case
1
:
x
++;
break
;
}
}
};
}