OSDN Git Service

PR rtl-optimization/52139
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / tree-ssa / leaf.c
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-optimized" } */
3 static int local_static;
4 void __attribute__ ((leaf)) leaf_call (void);
5
6 int
7 clobber_it (void)
8 {
9   return local_static++;
10 }
11 int
12 test (void)
13 {
14   local_static = 9;
15   leaf_call ();
16   return local_static;
17 }
18 /* { dg-final { scan-tree-dump-times "return 9" 1 "optimized"} } */
19  
20 /* { dg-final { cleanup-tree-dump "optimized" } } */