OSDN Git Service

* config/bfin/bfin.md (composev2hi): Put operands into vector
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / pr31344.c
1 /* { dg-do compile { target dfp } } */
2 /* { dg-options "-O -std=gnu99 -mtune=i386" { target { { i?86-*-* x86_64-*-* } && ilp32 } } } */
3 /* { dg-options "-O -std=gnu99" } */
4
5 typedef struct
6 {
7   unsigned char bits;
8 } decNumber;
9
10 typedef struct
11 {
12   unsigned char bytes[1];
13 } decimal32;
14
15 extern decNumber *__decimal32ToNumber (const decimal32 *, decNumber *);
16 extern void __host_to_ieee_32 (_Decimal32, decimal32 *);
17
18 void
19 foo (_Decimal32 arg)
20 {
21   decNumber dn;
22   decimal32 d32;
23   __host_to_ieee_32 (arg, &d32);
24   __decimal32ToNumber (&d32, &dn);
25 }