c++: prvalue of array type [PR111286]
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / initlist-array6.C
blobfdfde0a3c60673f3518efc0228a9d3f48fcc3f60
1 // PR c++/70167
2 // { dg-do compile { target c++11 } }
4 template<class T, unsigned S> void f(T(&&)[S]) { }
6 using arr = const int[2];
8 int main()
10   f(arr{1, 2});