aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/c-c++-common/dfp/convert-bfp-13.c
blob: 259cc745ce3114a5e6cb3b15d7893863208f1146 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* Test for bug where fold changed binary operation to decimal
   depending on typedefs.  */

#include "dfp-dbg.h"

volatile double d = 1.2345675;

typedef const volatile _Decimal32 d32;

int
main (void)
{
  _Decimal32 a = (d * d);
  d32 b = (d * d);
  if (a != b)
    FAILURE
  FINISH
}