1 /* PR rtl-optimization/47028 */ 2 /* { dg-do run } */ 3 /* { dg-options "-O -foptimize-sibling-calls -fno-forward-propagate -fno-tree-copy-prop -fno-tree-dominator-opts" } */ 4 5 int fib(int n)6fib (int n) 7 { 8 if (n <= 1) 9 return 1; 10 return fib (n - 2) + fib (n - 1); 11 } 12 13 int main(void)14main (void) 15 { 16 if (fib (5) != 8) 17 __builtin_abort (); 18 return 0; 19 } 20