PR c++/85765 - SFINAE and non-type default template arg.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / initlist57.C
blob5c59f403d74251b69cdeb0cd7f078cfaeec96f1a
1 // PR c++/50054
2 // { dg-do compile { target c++11 } }
4 void g( const int& (a)[1] ) {}  // { dg-error "array of references" }
6 int main () {
7     g( { 1, 2 } );              // { dg-error "initializer list" }