summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/tree-ssa/pr24439.C
blob: 74576b5f84ffbbfe0ebba7890859faa0ef9a0468 (plain)
1
2
3
4
5
6
7
8
9
10
/* { dg-do compile } */

/* We used to ICE in invert_truthvalue on the void type
   2nd argument of the COND_EXPR.  */

void foo(void)
{
  int value=1;
  !(value?true:throw);
}