1 /* { dg-options "-std=gnu99 -O0" } */
3 /* C99 6.5.17: Comma operator.
4 Test with decimal float operands. */
6 extern void abort (void);
7 static int failcnt
= 0;
9 /* Support compiling the test to report individual failures; default is
10 to abort as soon as a check fails. */
13 #define FAILURE { printf ("failed at line %d\n", __LINE__); failcnt++; }
15 #define FAILURE abort ();
18 volatile _Decimal32 d32a
, d32b
, d32c
;
19 volatile _Decimal64 d64a
, d64b
, d64c
;
20 volatile _Decimal128 d128a
, d128b
, d128c
;
26 d64b
= 12.3456789012345e383dd
;
27 d128b
= 12345.6789012345678901e4000dl
;
40 d64a
= (d64b
, 7.89dd
, d64c
);
43 d128a
= (45678.987654dl
, d128c
, d128b
);
46 d128a
= (d32b
, d64b
, d128b
);
49 d32a
= (d32b
, 12, d64c
);
52 d64a
= (d64b
, d32b
, 12);