OpenCores
URL https://opencores.org/ocsvn/scarts/scarts/trunk

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [testsuite/] [g++.old-deja/] [g++.jason/] [ambig2.C] - Blame information for rev 12

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 12 jlechner
// { dg-do assemble  }
2
// { dg-options "-Wno-pointer-arith" }
3
// Testcase for ambiguity between cast and parmlist.
4
// This ambiguity accounts for 1 of the r/r conflicts.
5
// Do not compile with -pedantic so that the compiler will accept taking
6
// the sizeof a function type.
7
 
8
void f(){
9
  (void)sizeof(int((int)1.2));
10
  (void)sizeof(int((int)));             // { dg-bogus "" }
11
}

powered by: WebSVN 2.1.0

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