☰
Debian Codegraph
@
1:22.1.8-2
1:22.1.8-1
1:22.1.7-1
/
/
clang
/
test
/
SemaCXX
/
gh113468.cpp
☽
☼
clang/test/SemaCXX/gh113468.cpp
code
plain
raw
APACHE-2-LLVM-EXCEPTIONS
2003-2017 University of Illinois at Urbana-Champaign.
debian/copyright
1
// RUN: %clang_cc1 -std=c++20 -fsyntax-only -verify %s
2
3
constexpr int expr() {
4
if (({
5
int f;
6
f = 0;
7
if (f)
8
break; // expected-error {{'break' statement not in loop or switch statement}}
9
}))
10
return 2;
11
return 1;
12
}