URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [parse/] [parser-pr28152-2.C] - Rev 774
Go to most recent revision | 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 }
Go to most recent revision | Compare with Previous | Blame | View Log