2018-03-15 Steven G. Kargl <kargl@gcc.gnu.org>
[official-gcc.git] / gcc / testsuite / gcc.target / aarch64 / noplt_1.c
blob731fcaea23f112203fa443146e0be462d4fc4268
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fpic -fno-plt" } */
3 /* { dg-skip-if "-mcmodel=large, no support for -fpic" { aarch64-*-* } { "-mcmodel=large" } { "" } } */
5 int* bar (void) ;
7 int
8 foo (int a)
10 int *b = bar ();
11 return b[a];
14 /* { dg-final { scan-assembler "blr" } } */
15 /* { dg-final { scan-assembler-not "bl\t" } } */