OpenMP/C++: Use STRIP_REFERENCE_REF to fix declare variant with reference-returning...
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / initlist85.C
blob0b5ce497e491c172bd202fd7a86e6f299bd93f20
1 // PR c++/60848
2 // { dg-do compile { target c++11 } }
4 namespace std
6   struct initializer_list {};  // { dg-error "declaration" }
9 void foo(std::initializer_list &);
11 void f()
13   foo({1, 2});  // { dg-error "invalid initialization" }