PR tree-optimization/83369 - Missing diagnostics during inlining
[official-gcc.git] / gcc / testsuite / gcc.dg / pr32450.c
blob9606e3021eabcccfd988df43e29a028a434d00cc
1 /* Contributed by Joost VandeVondele <jv244@cam.ac.uk> */
3 /* { dg-do run } */
4 /* { dg-require-profiling "-pg" } */
5 /* { dg-options "-O2 -pg" } */
6 /* { dg-options "-O2 -pg -mtune=core2" { target { i?86-*-* x86_64-*-* } } } */
7 /* { dg-options "-O2 -pg -static" { target hppa*-*-hpux* } } */
9 extern void abort (void);
11 int stack_pointer;
13 void
14 __attribute__((noinline))
15 mystop ()
17 abort ();
20 void
21 __attribute__((noinline))
22 add ()
24 if (stack_pointer + 1 > 10)
25 mystop ();
27 stack_pointer = stack_pointer + 1;
30 int main ()
32 add ();
33 return stack_pointer - 1;
36 /* { dg-final { cleanup-profile-file } } */