summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr48685.c
blob: 36df0cc5f313e7e0ea622a1e4943e107da2d1068 (plain)
1
2
3
4
5
6
7
8
9
10
11
/* PR c/48685 */
/* { dg-do compile } */
/* { dg-options "-O2" } */

int
main ()
{
  int v = 1;
  (void) (1 == 2 ? (void) 0 : (v = 0));
  return v;
}