2018-02-09 Sebastian Perta <sebastian.perta@renesas.com>
[official-gcc.git] / gcc / testsuite / gcc.target / arm / require-pic-register-loc.c
blob268e9e426679d862295a1af566f5cef52e511bfa
1 /* { dg-do compile } */
2 /* { dg-options "-g -fPIC" } */
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. */
13 a (v);
14 return 1;
16 b ();
18 return 0;
21 /* { dg-final { scan-assembler-not "\.loc 1 7 \[0-9\]\+" } } */
22 /* { dg-final { scan-assembler-not "\.loc 1 8 \[0-9\]\+" } } */
23 /* { dg-final { scan-assembler-not "\.loc 1 9 \[0-9\]\+" } } */
25 /* The loc at the start of the prologue. */
26 /* { dg-final { scan-assembler-times "\.loc 1 10 \[0-9\]\+" 1 } } */
28 /* The loc at the end of the prologue, with the first user line. */
29 /* { dg-final { scan-assembler-times "\.loc 1 11 \[0-9\]\+" 1 } } */