]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gcc.dg/dfp/convert-bfp-13.c
re PR middle-end/36578 (cast to long double not taken into account when result stored...
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / dfp / convert-bfp-13.c
1 /* Test for bug where fold changed binary operation to decimal
2 depending on typedefs. */
3 /* { dg-options "-std=gnu99" } */
4
5 extern void abort (void);
6 extern void exit (int);
7
8 volatile double d = 1.2345675;
9
10 typedef const volatile _Decimal32 d32;
11
12 int
13 main (void)
14 {
15 _Decimal32 a = (d * d);
16 d32 b = (d * d);
17 if (a != b)
18 abort ();
19 exit (0);
20 }