URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.dg/] [parse/] [parser-pr28152.C] - Rev 826
Compare with Previous | Blame | View Log
/* PR 28152: error messages should mention _Complex */
/* { dg-do compile } */
/* { dg-options "" } */
int
main (void)
{
_Complex float z;
z = _Complex (1.90000007326203904e+19, 0.0); // { dg-error "expected primary-expression before '_Complex'" }
// { dg-error "expected .;. before ._Complex." "" { target *-*-* } 9 }
z = _Complex (1.0e+0, 0.0) / z; // { dg-error "expected primary-expression before '_Complex'" }
// { dg-error "expected .;. before '_Complex'" "" { target *-*-* } 11 }
// { dg-error "at end of input" "" { target *-*-* } 11 }