☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
initlist29.C
☽
☼
gcc/testsuite/g++.dg/cpp0x/initlist29.C
code
plain
raw
1
// PR c++/42331
2
// { dg-do compile { target c++11 } }
3
4
class Mesh
5
{
6
public:
7
Mesh(const char*)
8
{ typele={0}; } // { dg-error "11:assigning to an array from an initializer list" }
9
10
private:
11
int typele[7][2];
12
};
13
14
Mesh m(0);