| 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 } */ |
| 5 |
|
| 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. */ |
| 14 |
{ |
| 15 |
a (v); |
| 16 |
return 1; |
| 17 |
} |
| 18 |
b (); |
| 19 |
|
| 20 |
return 0; |
| 21 |
} |
| 22 |
|
| 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\]\+" } } */ |
| 26 |
|
| 27 |
/* The loc at the start of the prologue. */ |
| 28 |
/* { dg-final { scan-assembler-times "\.loc 1 12 \[0-9\]\+" 1 } } */ |
| 29 |
|
| 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 } } */ |