c++: Fix ICE with #embed/RAW_DATA_CST after list conversion [PR118671]
[official-gcc.git] / gcc / testsuite / gcc.dg / dfp / c11-decimal64x-2.c
blobceb2efe77a9b357aadcc7c96cf49774531a0dc8c
1 /* Test that DFP constants and _Decimal64x keyword are diagnosed in C11 mode: -pedantic-errors. */
2 /* { dg-do compile } */
3 /* { dg-options "-std=c11 -pedantic-errors" } */
5 int a = (int) 1.1D64x; /* { dg-error "C23 feature" } */
6 int b = (int) 2.d64x; /* { dg-error "C23 feature" } */
7 _Decimal64x c = 1; /* { dg-error "ISO C does not support decimal floating-point before C23" } */