1 /* { dg-options "-std=gnu99 -O" } */
3 /* N1150 5.1 Conversion between decimal floating integer.
5 These should all be folded at compile time. */
7 extern void link_error (void);
17 unsigned long long ull;
23 /* C99 Section 6.7.2 Type specifiers. Type _Bool is
24 mentioned in this section. Conversions between
25 _Bool and DFP types. */
27 /* Decimal float to unsigned integer. */
62 /* Decimal float to signed integer. */
64 /* Decimal float to _Bool. */
79 /* Unsigned integer to decimal float. */
88 if (d32 != 345678.0df)
91 if (d32 != 1234567.df)
98 if (d64 != 345678.0dd)
101 if (d64 != 1234567.dd)
108 if (d128 != 345678.0dl)
111 if (d128 != 1234567.dl)
114 /* Signed integer to decimal float. */
123 if (d32 != -345678.0df)
126 if (d32 != -1234567.df)
133 if (d64 != -345678.0dd)
136 if (d64 != -1234567.dd)
140 if (d128 != -987.0dl)
143 if (d128 != -345678.0dl)
146 if (d128 != -1234567.dl)
149 /* _Bool to decimal float. */