Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/initlist-postfix-open-square.C

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 }