Debian Codegraph @

gcc/testsuite/gcc.dg/dfp/pr70052.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-O1" } */
3
4 typedef struct
5 {
6 _Decimal128 td0;
7 _Decimal128 td1;
8 } TDx2_t;
9
10
11 TDx2_t
12 D256_add_finite (void)
13 {
14 _Decimal128 z, zz;
15 TDx2_t result = {0.DL, 0.DL};
16
17 if (zz == 0.DL)
18 {
19 result.td0 = z;
20 return result;
21 }
22
23 return result;
24 }