Merge from mainline (167278:168000).
[official-gcc/graphite-test-results.git] / gcc / testsuite / gcc.dg / inline-2.c
blob6aceb745457b8f9ce6cfcc97f03b1e02b6388907
1 /* Ensure that we continue to consider FOO local, even though
2 it has been deferred. */
3 /* { dg-do compile { target fpic } } */
4 /* { dg-options "-O3 -finline-limit=0 -fpic" } */
6 static int foo(void)
8 return 3;
11 int bar(void)
13 /* Call twice to avoid bypassing the limit for functions called once. */
14 return foo() + foo() + 1;
17 /* { dg-final { scan-assembler-not "PLT" { target i?86-*-* x86_64-*-* } } } */
18 /* { dg-final { scan-assembler-not "plt" { target powerpc*-*-* } } } */