PR c++/85553
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / initlist-postfix-open-square.C
blobb43ffc33b40897a7f381dcf2bdc5a1c60311a190
1 // PR c++/51738
2 // { dg-do compile { target c++11 } }
4 struct Index
6   Index(unsigned, unsigned){ }
7 };
9 struct Matrix
11   void operator[](Index){ }
14 int main()
16   Matrix m;
17   m[{0,1}];