gcc/testsuite/gcc.dg/builtin-complex-err-2.c
raw| 1 | /* Test __builtin_complex errors. Verify it does not allow quiet |
| 2 | creation of complex types in C90. */ |
| 3 | /* { dg-do compile } */ |
| 4 | /* { dg-options "-std=c90 -pedantic-errors" } */ |
| 5 | |
| 6 | void |
| 7 | f (void) |
| 8 | { |
| 9 | __builtin_complex (0.0, 0.0); /* { dg-error "ISO C90 does not support complex types" } */ |
| 10 | } |