PR tree-optimization/81303
[official-gcc.git] / gcc / testsuite / gcc.dg / fold-compare-6.c
blob0c4c657d947bd2204bbb3510ef3130a3772f00b0
1 /* { dg-do compile } */
2 /* { dg-options "-fdump-tree-original" } */
4 char digs[] = "0123456789";
5 int foo (void)
7 int xlcbug = 1 / (&(digs + 5)[-2 + (_Bool) 1] == &digs[4] ? 1 : -1);
8 return xlcbug;
11 /* { dg-final { scan-tree-dump "xlcbug = 1;" "original" } } */