1 /* { dg-options "-std=gnu99 -O0" } */
3 /* N1150 5.1 Conversion between decimal floating types and integer.
4 C99 6.3.1.4(1a) New. */
6 extern void abort (void);
10 extern int printf (const char *, ...);
11 #define FAILURE { printf ("failed at line %d\n", __LINE__); failcnt++; }
13 #define FAILURE abort ();
21 unsigned long long ull;
51 init_unsigned_int (void)
59 init_signed_int (void)
69 /* C99 Section 6.7.2 Type specifiers. Type _Bool is
70 mentioned in this section. Conversions between
71 _Bool and DFP types. */
73 /* Decimal float to unsigned integer. */
106 /* Decimal float to signed integer. */
108 /* Decimal float to _Bool. */
121 /* Unsigned integer to decimal float. */
122 init_unsigned_int ();
128 if (d32 != 345678.0df)
131 if (d32 != 1234567.df)
138 if (d64 != 345678.0dd)
141 if (d64 != 1234567.dd)
148 if (d128 != 345678.0dl)
151 if (d128 != 1234567.dl)
154 /* Signed integer to decimal float. */
161 if (d32 != -345678.0df)
164 if (d32 != -1234567.df)
171 if (d64 != -345678.0dd)
174 if (d64 != -1234567.dd)
178 if (d128 != -987.0dl)
181 if (d128 != -345678.0dl)
184 if (d128 != -1234567.dl)
187 /* _Bool to decimal float. */