c++: prvalue of array type [PR111286]
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / initlist-array22.C
blob8629e4be239e32c73d4104d54bd9008b6d72915c
1 // PR c++/111286
2 // { dg-do compile { target c++11 } }
3 // { dg-additional-options -Wno-unused }
5 struct A {
6   A() noexcept {}
7 };
9 void foo() {
10   using T = const A (&)[1];
11   T{};