blob: 6f662ef03b6679e46b0ec651d4b9b4497166f6af [file] [log] [blame]
// PR c++/50054
// { dg-do compile { target c++11 } }
void g( const int& (a)[1] ) {} // { dg-error "21:declaration of .a. as array of references" }
int main () {
g( { 1, 2 } ); // { dg-error "initializer list" }
}