summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/initlist57.C
blob: d945a4689880cc11a7a8801e6f139ff3a40e345c (plain)
1
2
3
4
5
6
7
8
// PR c++/50054
// { dg-options -std=c++0x }

void g( const int& (a)[1] ) {}	// { dg-error "array of references" }

int main () {
    g( { 1, 2 } );		// { dg-error "initializer list" }
}