☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
initlist57.C
☽
☼
gcc/testsuite/g++.dg/cpp0x/initlist57.C
code
plain
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
}