[testsuite] Add dg-require-stack-check
[gcc.git] / gcc / testsuite / gcc.dg / pr47443.c
1 /* PR tree-optimization/47443 */
2 /* { dg-do compile } */
3 /* { dg-require-stack-check "generic" } */
4 /* { dg-options "-O -fstack-check=generic" } */
5
6 static inline int bar (char *c, int i)
7 {
8 return c + i > c;
9 }
10
11 int foo ()
12 {
13 char c[100];
14 return (bar (c, 1));
15 }