1  /* { dg-do compile { target *-*-linux* } } */
       2  /* { dg-options "-fno-pic" } */
       3  
       4  __attribute__ ((noplt))
       5  void foo();
       6  
       7  int main()
       8  {
       9    foo();
      10    return 0;
      11  }
      12  
      13  /* { dg-final { scan-assembler "call\[ \t\]*.foo@GOTPCREL" { target { ! ia32 } } } } */
      14  /* { dg-final { scan-assembler "call\[ \t\]*.foo@GOT" { target { ia32 && got32x_reloc } } } } */