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

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
/* PR 28152: error messages should mention __complex__ */
2
/* { dg-do compile } */
3
/* { dg-options "" } */
4
int
5
main (void)
6
{
7
  __complex__ float z;
8
 
9
  z = __complex__ (1.90000007326203904e+19, 0.0);   // { dg-error "expected primary-expression before '__complex__'" }
10
  // { dg-error "expected .;. before .__complex__." "" { target *-*-* } 9 }
11
  z = __complex__ (1.0e+0, 0.0) / z;    // { dg-error "expected primary-expression before '__complex__'" }
12
  // { dg-error "expected .;. before '__complex__'" "" { target *-*-* } 11 }
13
  // { dg-error "at end of input" "" { target *-*-* } 11 }

powered by: WebSVN 2.1.0

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