summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/fold-compare-6.c
blob: 0c4c657d947bd2204bbb3510ef3130a3772f00b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
/* { dg-do compile } */
/* { dg-options "-fdump-tree-original" } */

char digs[] = "0123456789";
int foo (void)
{
  int xlcbug = 1 / (&(digs + 5)[-2 + (_Bool) 1] == &digs[4] ? 1 : -1);
  return xlcbug;
}

/* { dg-final { scan-tree-dump "xlcbug = 1;" "original" } } */