| 1 |
$ cat label.c |
| 2 |
int main(int argc, char **argv) { |
| 3 |
if (argc) { |
| 4 |
goto foobar; |
| 5 |
} |
| 6 |
return 1; |
| 7 |
foobar: |
| 8 |
return 0; |
| 9 |
} |
| 10 |
|
| 11 |
$ clang -g label.c -c -o label.o |
| 12 |
$ clang label.o -o label.out |
| 13 |
|
| 14 |
RUN: dsymutil -oso-prepend-path %p/../Inputs %p/../Inputs/private/tmp/label/label.out -o %t.dSYM |
| 15 |
RUN: llvm-dwarfdump %t.dSYM | FileCheck %s |
| 16 |
|
| 17 |
RUN: dsymutil --linker parallel -oso-prepend-path %p/../Inputs %p/../Inputs/private/tmp/label/label.out -o %t.dSYM |
| 18 |
RUN: llvm-dwarfdump %t.dSYM | FileCheck %s |
| 19 |
|
| 20 |
CHECK: DW_TAG_label |
| 21 |
CHECK-NEXT: DW_AT_name ("foobar") |
| 22 |
CHECK-NEXT: DW_AT_decl_file ("/tmp/label{{[/\\]}}label.c") |
| 23 |
CHECK-NEXT: DW_AT_decl_line (6) |
| 24 |
CHECK-NEXT: DW_AT_low_pc (0x0000000100003f9d) |