Debian Codegraph @

gcc/testsuite/gcc.dg/debug/dwarf2/dwarf-dfp.c

raw
1 /* Verify the DWARF encoding of C99 decimal floating point types. */
2
3 /* { dg-do compile } */
4 /* { dg-require-effective-target dfp } */
5 /* { dg-options "-O0 -gdwarf -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" } } */
10
11 void foo ()
12 {
13 _Decimal32 f = 1.5df;
14 _Decimal64 d = 1.5dd;
15 _Decimal128 l = 1.5dl;
16 }