summaryrefslogtreecommitdiffstats
path: root/gcc/testsuite/g++.dg/cpp0x/initlist27.C
blob: f8536d3e7e7ffc57e0931188c53417d34f2ac1dd (plain)
1
2
3
4
5
// PR c++/42061
// { dg-do compile }
// { dg-options "-std=c++0x" }

int& i = { j };	// { dg-error "invalid initialization|was not declared" }
OpenPOWER on IntegriCloud