aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/parser-pr28152-2.c
blob: b1502257d0ac7568bc6b36e09a356732dcd88d35 (plain)
1
2
3
4
5
6
7
8
9
10
11
/* 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 "__complex__" } */
  z = __complex__ (1.0e+0, 0.0) / z;   /* { dg-error "__complex__" "Complex" } */
  /* { dg-error "at end of input" "end of input" { target *-*-* } 10 } */