Fix line number data for PIC register setup code.
[gcc.git] / testsuite / gcc.target / arm / require-pic-register-loc.c
1 /* { dg-do compile } */
2 /* { dg-options "-g -fPIC" } */
3
4 void *v;
5 void a (void *x) { }
6 void b (void) { }
7 /* line 7. */
8 int /* line 8. */
9 main (int argc) /* line 9. */
10 { /* line 10. */
11 if (argc == 12345) /* line 11. */
12 {
13 a (v);
14 return 1;
15 }
16 b ();
17
18 return 0;
19 }
20
21 /* { dg-final { scan-assembler-not "\.loc 1 7 0" } } */
22 /* { dg-final { scan-assembler-not "\.loc 1 8 0" } } */
23 /* { dg-final { scan-assembler-not "\.loc 1 9 0" } } */
24
25 /* The loc at the start of the prologue. */
26 /* { dg-final { scan-assembler-times "\.loc 1 10 0" 1 } } */
27
28 /* The loc at the end of the prologue, with the first user line. */
29 /* { dg-final { scan-assembler-times "\.loc 1 11 0" 1 } } */