gcc/testsuite/gcc.dg/c11-floatn-3.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-std=c11 -pedantic-errors" } */ |
| 3 | /* { dg-add-options float16 } */ |
| 4 | /* { dg-require-effective-target float16 } */ |
| 5 | |
| 6 | _Float16 a /* { dg-error "ISO C does not support the '_Float16' type before C23" } */ |
| 7 | = 1.0F16; /* { dg-error "non-standard suffix on floating constant before C23" } */ |
| 8 | __extension__ _Float16 b |
| 9 | = 2.0F16; |