Sign in
fuchsia
/
third_party
/
github.com
/
llvm
/
llvm-project
/
refs/heads/main
/
.
/
clang
/
test
/
Parser
/
cxx-attributes-missing-closing-in-switch.cpp
blob: 5fc4b7d41b906d42343aab44c3a08b0ed821cd1a [
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}}
};
}