]> matita.cs.unibo.it Git - pkg-cerco/acc.git/blob - tests/GCCTestSuite/pr32450.c.expected
Package description and copyright added.
[pkg-cerco/acc.git] / tests / GCCTestSuite / pr32450.c.expected
1 /* Contributed by Joost VandeVondele  <jv244@cam.ac.uk> */
2
3 /* { dg-do run } */
4 /* { dg-require-profiling "-pg" } */
5 /* { dg-options "-O2 -pg" } */
6 /* { dg-options "-O2 -pg -static" { target hppa*-*-hpux* } } */
7
8 extern void abort (void);
9
10 int stack_pointer=0;
11
12 void
13 __attribute__((noinline))
14 mystop ()
15 {
16   abort ();
17 }
18
19 void
20 __attribute__((noinline))
21 add ()
22 {
23   if (stack_pointer + 1 > 10)
24     mystop ();
25
26   stack_pointer = stack_pointer + 1;
27 }
28
29 int main ()
30 {
31   add ();
32   return stack_pointer - 1;
33 }