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