OpenCores
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] - Blame information for rev 12

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 12 jlechner
// { dg-options "" }
2
 
3
int Compound_Literals_0()
4
{
5
  static int y[] = (int []) {1, 2, 3}; // { dg-error "compound literal" }
6
  static int z[] = (int [3]) {1}; // { dg-error "compound literal" }
7
  return y[0]+z[0];
8
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.