Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
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" }
};