URL
https://opencores.org/ocsvn/scarts/scarts/trunk
Subversion Repositories scarts
[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [testsuite/] [g++.dg/] [ext/] [complit3.C] - Rev 12
Compare with Previous | Blame | View Log
// { dg-options "" }
int Compound_Literals_0()
{
static int y[] = (int []) {1, 2, 3}; // { dg-error "compound literal" }
static int z[] = (int [3]) {1}; // { dg-error "compound literal" }
return y[0]+z[0];
}