gcc/testsuite/gcc.dg/parser-pr28152.c
raw| 1 | /* 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 "_Complex" } */ |
| 10 | z = _Complex (1.0e+0, 0.0) / z; /* { dg-error "_Complex" "_Complex" } */ |
| 11 | /* { dg-error "at end of input" "end of input" { target *-*-* } .-1 } */ |