1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fpic" } */
3 /* { dg-skip-if "-mcmodel=large, no support for -fpic" { aarch64-*-* }  { "-mcmodel=large" } { "" } } */
4 
5 __attribute__ ((noplt))
6 int* bar0 (void) ;
7 int* bar1 (void) ;
8 
9 int
foo(int a)10 foo (int a)
11 {
12   int *b0 = bar0 ();
13   int *b1 = bar1 ();
14   return b0[a] + b1[a];
15 }
16 
17 /* { dg-final { scan-assembler-times "blr" 1 } } */
18 /* { dg-final { scan-assembler-times "bl\t" 1 } } */
19