OSDN Git Service

* gcc.dg/20020312-2.c [__MMIX__]: No pic register.
[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   return foo() + 1;
15 }
16
17 /* { dg-final { scan-assembler "bsr" { target alpha*-*-* } } } */
18 /* { dg-final { scan-assembler-not "PLT" { target i?86-*-* } } } */
19 /* { dg-final { scan-assembler-not "plt" { target powerpc*-*-* } } } */