comparison gcc/testsuite/c-c++-common/dfp/pr35620.c @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children
comparison
equal deleted inserted replaced
68:561a7518be6b 111:04ced10e8804
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 U { _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 }