OSDN Git Service

* gcc.dg/dfp/dfp.exp: Also run tests in c-c++-common/dfp.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / c-c++-common / dfp / convert-bfp-13.c
1 /* Test for bug where fold changed binary operation to decimal
2    depending on typedefs.  */
3
4 #include "dfp-dbg.h"
5
6 volatile double d = 1.2345675;
7
8 typedef const volatile _Decimal32 d32;
9
10 int
11 main (void)
12 {
13   _Decimal32 a = (d * d);
14   d32 b = (d * d);
15   if (a != b)
16     FAILURE
17   FINISH
18 }