☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-84449.C
☽
☼
gcc/testsuite/g++.dg/cpp0x/constexpr-84449.C
code
plain
raw
1
// PR c++/84449
2
// { dg-do compile { target c++11 } }
3
4
struct A
5
{
6
constexpr A (int) {}
7
~A () = delete;
8
};
9
10
struct B
11
{
12
A a;
13
constexpr B () : a (0) {} // { dg-error "use of deleted function" }
14
};