☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp2a
/
constexpr-dtor10.C
☽
☼
gcc/testsuite/g++.dg/cpp2a/constexpr-dtor10.C
code
plain
raw
1
// PR c++/97427
2
// { dg-do compile { target c++20 } }
3
4
struct Foo {
5
int n = 1;
6
constexpr ~Foo() {
7
n = 0;
8
}
9
};
10
11
constexpr bool foo() {
12
const Foo b;
13
return true;
14
}
15
16
static_assert(foo());