| /* { dg-do compile } */ |
| /* { dg-skip-if "-mpure-code and -fPIC incompatible" { *-*-* } { "-mpure-code" } } */ |
| /* { dg-options "-g -fPIC" } */ |
| /* { dg-require-effective-target fpic } */ |
| |
| void *v; |
| void a (void *x) { } |
| void b (void) { } |
| /* line 9. */ |
| int /* line 10. */ |
| main (int argc) /* line 11. */ |
| { /* line 12. */ |
| if (argc == 12345) /* line 13. */ |
| { |
| a (v); |
| return 1; |
| } |
| b (); |
| |
| return 0; |
| } |
| |
| /* { dg-final { scan-assembler-not "\.loc 1 9 \[0-9\]\+" } } */ |
| /* { dg-final { scan-assembler-not "\.loc 1 10 \[0-9\]\+" } } */ |
| /* { dg-final { scan-assembler-not "\.loc 1 11 \[0-9\]\+" } } */ |
| |
| /* The loc at the start of the prologue. */ |
| /* { dg-final { scan-assembler-times "\.loc 1 12 \[0-9\]\+" 1 } } */ |
| |
| /* The loc at the end of the prologue, with the first user line. */ |
| /* { dg-final { scan-assembler-times "\.loc 1 13 \[0-9\]\+" 1 } } */ |