Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/initlist57.C

raw
1 // PR c++/50054
2 // { dg-do compile { target c++11 } }
3
4 void g( const int& (a)[1] ) {} // { dg-error "21:declaration of .a. as array of references" }
5
6 int main () {
7 g( { 1, 2 } ); // { dg-error "initializer list" }
8 }