libstdc++: Move gcc.gnu.org and sourceware.org links to https
[official-gcc.git] / gcc / testsuite / gcc.target / arm / require-pic-register-loc.c
blob9c532f3ed4d3003f1b92b17e320192f3e5017bbd
1 /* { dg-do compile } */
2 /* { dg-skip-if "-mpure-code and -fPIC incompatible" { *-*-* } { "-mpure-code" } } */
3 /* { dg-options "-g -fPIC" } */
4 /* { dg-require-effective-target fpic } */
6 void *v;
7 void a (void *x) { }
8 void b (void) { }
9 /* line 9. */
10 int /* line 10. */
11 main (int argc) /* line 11. */
12 { /* line 12. */
13 if (argc == 12345) /* line 13. */
15 a (v);
16 return 1;
18 b ();
20 return 0;
23 /* { dg-final { scan-assembler-not "\.loc 1 9 \[0-9\]\+" } } */
24 /* { dg-final { scan-assembler-not "\.loc 1 10 \[0-9\]\+" } } */
25 /* { dg-final { scan-assembler-not "\.loc 1 11 \[0-9\]\+" } } */
27 /* The loc at the start of the prologue. */
28 /* { dg-final { scan-assembler-times "\.loc 1 12 \[0-9\]\+" 1 } } */
30 /* The loc at the end of the prologue, with the first user line. */
31 /* { dg-final { scan-assembler-times "\.loc 1 13 \[0-9\]\+" 1 } } */