1 /* { dg-do compile } */
2 /* { dg-options "-std=gnu99 -O" } */
4 /* N1150 5.1 Conversion between decimal floating integer.
6 These should all be folded at compile time. */
8 extern void link_error (void);
18 unsigned long long ull;
24 /* C99 Section 6.7.2 Type specifiers. Type _Bool is
25 mentioned in this section. Conversions between
26 _Bool and DFP types. */
28 /* Decimal float to unsigned integer. */
63 /* Decimal float to signed integer. */
65 /* Decimal float to _Bool. */
80 /* Unsigned integer to decimal float. */
89 if (d32 != 345678.0df)
92 if (d32 != 1234567.df)
99 if (d64 != 345678.0dd)
102 if (d64 != 1234567.dd)
109 if (d128 != 345678.0dl)
112 if (d128 != 1234567.dl)
115 /* Signed integer to decimal float. */
124 if (d32 != -345678.0df)
127 if (d32 != -1234567.df)
134 if (d64 != -345678.0dd)
137 if (d64 != -1234567.dd)
141 if (d128 != -987.0dl)
144 if (d128 != -345678.0dl)
147 if (d128 != -1234567.dl)
150 /* _Bool to decimal float. */