Sign in
fuchsia
/
third_party
/
github.com
/
llvm
/
llvm-project
/
refs/heads/main
/
.
/
clang
/
test
/
Parser
/
cxx-attributes-missing-second-closing-in-switch.cpp
blob: 81c857ac0ec77dc3fe3f74becfc0c844e6e8585a [
file
] [
edit
]
// RUN: %clang_cc1 -fsyntax-only -verify %s
void
a
(
int
i
)
{
switch
(
i
)
{
case
1
:
// expected-error@+1 {{expected ']'}}
[[
fallthrough
];;
case
2
:
;
// expected-error@+1 {{expected statement}}
};
}