c++: prvalue of array type [PR111286]
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / constexpr-temp2.C
blob28ffd2c86c46fe714431cefd04ba193c36137413
1 // DR 2126
2 // { dg-do compile { target c++11 } }
4 typedef const int CI[3];
5 constexpr CI &ci = CI{11, 22, 33};
6 static_assert(ci[1] == 22, "");