view gcc/testsuite/gcc.dg/dfp/usual-arith-conv-bad-3.c @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children
line wrap: on
line source

/* Test error for conditional expression between DFP and other
   floating operand.  */
/* { dg-do compile } */

_Decimal32 a;
float b;
int i;

void
f (void)
{
  (void) (i ? a : b); /* { dg-error "mix operands" } */
}