Merge from mainline
[official-gcc.git] / gcc / testsuite / gcc.dg / debug / dwarf2 / dwarf-dfp.c
blobddb602250cef5d153461641a55cd87eaa1ecf459
1 /* Verify the DWARF encoding of C99 decimal floating point types. */
3 /* { dg-do compile */
4 /* { dg-require-effective-target dfp } */
5 /* { dg-options "-O0 -gdwarf-2 -dA" } */
6 /* { dg-final { scan-assembler "0x10.*DW_AT_encoding" } } */
7 /* { dg-final { scan-assembler "0x4.*DW_AT_byte_size" } } */
8 /* { dg-final { scan-assembler "0x8.*DW_AT_byte_size" } } */
9 /* { dg-final { scan-assembler "0x10.*DW_AT_byte_size" } } */
11 void foo ()
13 _Decimal32 f = 1.5df;
14 _Decimal64 d = 1.5dd;
15 _Decimal128 l = 1.5dl;