1 /* { dg-options "-O0" } */
3 /* C99 6.5.15 Conditional operator.
4 Test with decimal float operands. */
8 volatile _Decimal32 d32a, d32b, d32c;
9 volatile _Decimal64 d64a, d64b, d64c;
10 volatile _Decimal128 d128a, d128b, d128c;
11 volatile int i, yes, no;
17 d64b = 12.3456789012345e383dd;
18 d128b = 12345.6789012345678901e4000dl;
34 /* Operands and the result are all the same decimal float type. */
35 d32a = yes ? d32b : d32c;
38 d64a = no ? d64b : d64c;
41 d128a = yes ? d128b : d128c;
45 /* Operand types are different. */
46 d128a = yes ? d32b : d64b;
49 d128a = yes ? d128b : d64b;
52 d128a = no ? d32b : d128b;