37a9c4044ed54e33d7d05dac5d098466a0a4a551
[gcc.git] / gcc / testsuite / gcc.dg / dfp / pr35620.c
1 /* { dg-do compile } */
2 /* { dg-options "-O2" } */
3
4 #ifdef __cplusplus
5 typedef float _Decimal32 __attribute__((mode(SD)));
6 #endif
7
8 extern void foo (_Decimal32);
9 _Decimal32 *p;
10
11 extern int i;
12 union { _Decimal32 a; int b; } u;
13
14 void
15 blatz (void)
16 {
17 _Decimal32 d;
18 u.b = i;
19 d = u.a;
20 foo (d);
21 }
22
23 void
24 bar (void)
25 {
26 foo (*p);
27 }