2016-11-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
[official-gcc.git] / gcc / testsuite / gcc.target / arm / require-pic-register-loc.c
blobbd85e8640c24eeb35af0d55cdfa1a0670df0eebb
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" } } */
22 /* { dg-final { scan-assembler-not "\.loc 1 8 0" } } */
23 /* { dg-final { scan-assembler-not "\.loc 1 9 0" } } */
25 /* The loc at the start of the prologue. */
26 /* { dg-final { scan-assembler-times "\.loc 1 10 0" 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" 1 } } */