Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-84449.C
blob: f187c425272988997167fd11576976ec8710d7ed [
file
] [
log
] [
blame
]
// PR c++/84449
// { dg-do compile { target c++11 } }
struct
A
{
constexpr
A
(
int
)
{}
~
A
()
=
delete
;
};
struct
B
{
A a
;
constexpr
B
()
:
a
(
0
)
{}
// { dg-error "use of deleted function" }
};