Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
initlist33.C
blob: ae7f130ebf00c9ea63cc3243899a07619366a1c1 [
file
] [
log
] [
blame
]
// PR c++/44045
// { dg-do compile { target c++11 } }
struct
base
{
virtual
~
base
()
{
}
};
int
main
()
{
base
ptr_array
[
1
];
ptr_array
=
{
base
()
};
// { dg-error "12:assigning to an array from an initializer list" }
}