aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.target/ia64/sibcall-opt-1.c
blob: 6e8d1a2faed118696b3af723ed81d77a72cc71b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* PR target/38056.  Do not do sibcall optimization across object file
   boundery when -mconstant-gp is not used.  */
/* { dg-do compile } */
/* { dg-options "-O2" } */
/* { dg-final { scan-assembler "br.call.*bar" } } */

int bar(int x);

int foo(int x)
{
  return (bar(x + 1));
}