OSDN Git Service

PR c/17844
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / inline-2.c
1 /* Ensure that we continue to consider FOO local, even though
2    it has been deferred.  */
3 /* { dg-do compile } */
4 /* { dg-options "-O3 -finline-limit=0 -fpic" } */
5 /* { dg-warning "not supported" "PIC unsupported" { target cris-*-elf* cris-*-aout* mmix-*-* } 0 } */
6
7 static int foo(void)
8 {
9   return 3;
10 }
11
12 int bar(void)
13 {
14   /* Call twice to avoid bypassing the limit for functions called once.  */
15   return foo() + foo() + 1;
16 }
17
18 /* { dg-final { scan-assembler-not "jsr" { target alpha*-*-* } } } */
19 /* { dg-final { scan-assembler-not "PLT" { target i?86-*-* x86_64-*-* } } } */
20 /* { dg-final { scan-assembler-not "plt" { target powerpc*-*-* } } } */