Fix warning with -Wsign-compare -Wsystem-headers
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / 20080530.c
blobc472f8167a0db3c511edaca5372346e064900d76
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-einline" } */
3 /* { dg-require-effective-target alloca } */
5 void bar (char *);
6 int i;
8 static void
9 foo (void)
11 char *p = __builtin_alloca (i);
12 bar (p);
15 int
16 baz (void)
18 foo (); /* foo() should not be inlined here because it calls alloca */
19 return 6;
22 /* { dg-final { scan-tree-dump-times "Inlining foo into baz" 0 "einline"} } */