1 2 3 4 5 6 7 8 9 10 11 12 13 14
/* { dg-do compile } */ /* { dg-options "-O2 -fdump-tree-optimized" } */ static const char f[3] = "?"; int foo() { int i = 0; return f[i] != '?'; } /* { dg-final { scan-tree-dump "return 0;" "optimized" } } */ /* { dg-final { cleanup-tree-dump "optimized" } } */