Sign in
llvm
/
llvm-project
/
5e54c9231465f8d80a8a8ff76ab792c6be370215
/
.
/
clang
/
test
/
SemaCXX
/
gh113468.cpp
blob: 94551986b0efaab908eb564af5cd08a3255b1a3f [
file
] [
log
] [
blame
]
// RUN: %clang_cc1 -std=c++20 -fsyntax-only -verify %s
constexpr
int
expr
()
{
if
(({
int
f
;
f
=
0
;
if
(
f
)
break
;
// expected-error {{'break' statement not in loop or switch statement}}
}))
return
2
;
return
1
;
}