gcc/testsuite/g++.dg/parse/parser-pr28152-2.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 "expected primary-expression before '__complex__'" "primary-expression" } |
| 10 | z = __complex__ (1.0e+0, 0.0) / z; // { dg-error "expected primary-expression before '__complex__'" "primaty-expression" } |
| 11 | // { dg-error "37:at end of input" "end" { target *-*-* } .-1 } |