Corrected date in changelog
[official-gcc.git] / gcc / testsuite / gcc.dg / dfp / pr31344.c
blob506eef4507e382ef632a62c0eda057b3fd99c45a
1 /* { dg-do compile } */
2 /* { dg-options "-O -mtune=i386" { target { { i?86-*-* x86_64-*-* } && ia32 } } } */
3 /* { dg-options "-O" } */
5 typedef struct
7 unsigned char bits;
8 } decNumber;
10 typedef struct
12 unsigned char bytes[1];
13 } decimal32;
15 extern decNumber *__decimal32ToNumber (const decimal32 *, decNumber *);
16 extern void __host_to_ieee_32 (_Decimal32, decimal32 *);
18 void
19 foo (_Decimal32 arg)
21 decNumber dn;
22 decimal32 d32;
23 __host_to_ieee_32 (arg, &d32);
24 __decimal32ToNumber (&d32, &dn);