☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
initlist26.C
☽
☼
gcc/testsuite/g++.dg/cpp0x/initlist26.C
code
plain
raw
1
// PR c++/42059
2
// { dg-do compile { target c++11 } }
3
// { dg-options "" }
4
5
void
6
foo (int i)
7
{
8
int a[i];
9
a = { }; // { dg-error "5:assigning to an array from an initializer list" }
10
}