* gcc.dg/stack-check-5.c: Skip with -fstack-protector.
[official-gcc.git] / gcc / testsuite / gcc.dg / no-strict-overflow-7.c
blob0e73d486f22f1d6b5d8993c47b1f80861884840e
1 /* { dg-do compile } */
2 /* { dg-options "-fno-strict-overflow -O2 -fdump-tree-optimized" } */
4 /* Source: Ian Lance Taylor. Dual of strict-overflow-6.c. */
6 /* We can simplify the conditional because pointer overflow always has
7 undefined semantics. */
9 int
10 foo (char* p)
12 return p + 1000 < p;
15 /* { dg-final { scan-tree-dump "return 0" "optimized" } } */