☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
initlist-postfix-open-square.C
☽
☼
gcc/testsuite/g++.dg/cpp0x/initlist-postfix-open-square.C
code
plain
raw
1
// PR c++/51738
2
// { dg-do compile { target c++11 } }
3
4
struct Index
5
{
6
Index(unsigned, unsigned){ }
7
};
8
9
struct Matrix
10
{
11
void operator[](Index){ }
12
};
13
14
int main()
15
{
16
Matrix m;
17
m[{0,1}];
18
}