aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/dfp/usual-arith-conv-bad-2.c
blob: 7bd0f64f136616032256ec7ec6a145d99d00b348 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* { dg-do compile } */

/* This used to result in an ICE.  */

extern _Decimal64 x;
extern int i;

void
foo (void)
{
  if (x <= 2.0)		/* { dg-error "mix operands" } */
    i++;
}