gcc/testsuite/gcc.dg/dfp/c23-decimal64x-2.c
raw| 1 | /* Test that DFP constants and _Decimal64x keyword are accepted in C23 mode: compat warnings. */ |
| 2 | /* { dg-do compile } */ |
| 3 | /* { dg-options "-std=c23 -Wc11-c23-compat" } */ |
| 4 | |
| 5 | int a = (int) 1.1D64x; /* { dg-warning "C23 feature" } */ |
| 6 | int b = (int) 2.d64x; /* { dg-warning "C23 feature" } */ |
| 7 | _Decimal64x c = 1; /* { dg-warning "ISO C does not support decimal floating-point before C23" } */ |