1  /* { dg-do compile { target *-*-linux* } } */
       2  /* { dg-options "-O2 -fno-pic -fno-plt" } */
       3  
       4  extern void bar (void) __attribute__ ((visibility ("hidden")));
       5  
       6  void *
       7  foo (void)
       8  {
       9    return &bar;
      10  }
      11  
      12  /* { dg-final { scan-assembler "mov\(l|q\)\[ \t\]*\\\$bar," } } */
      13  /* { dg-final { scan-assembler-not "mov\(l|q\)\[ \t\]*bar@GOTPCREL" { target { ! ia32 } } } } */
      14  /* { dg-final { scan-assembler-not "movl\[ \t\]*bar@GOT," { target { ia32 && got32x_reloc } } } } */