☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp2a
/
constexpr-dtor1.C
☽
☼
gcc/testsuite/g++.dg/cpp2a/constexpr-dtor1.C
code
plain
raw
1
// P0784R7
2
// { dg-do compile { target c++11 } }
3
4
struct S
5
{
6
constexpr S () : s (0) {}
7
constexpr ~S () {} // { dg-error "'constexpr' destructors only available with" "" { target c++17_down } }
8
int s;
9
};