Debian Codegraph @

gcc/testsuite/gcc.dg/dfp/usual-arith-conv-bad-3.c

raw
1 /* Test error for conditional expression between DFP and other
2 floating operand. */
3 /* { dg-do compile } */
4
5 _Decimal32 a;
6 float b;
7 int i;
8
9 void
10 f (void)
11 {
12 (void) (i ? a : b); /* { dg-error "mix operands" } */
13 }