| 1 |
# RUN: dsymutil -f -oso-prepend-path=%p/../Inputs/alias \ |
| 2 |
# RUN: %p/../Inputs/alias/foobar -o - | llvm-dwarfdump - 2>&1 | FileCheck %s |
| 3 |
|
| 4 |
# RUN: dsymutil --linker parallel -f -oso-prepend-path=%p/../Inputs/alias \ |
| 5 |
# RUN: %p/../Inputs/alias/foobar -o - | llvm-dwarfdump - 2>&1 | FileCheck %s |
| 6 |
|
| 7 |
# CHECK-NOT: could not find symbol |
| 8 |
# CHECK: DW_AT_name ("foo.c") |
| 9 |
# CHECK: DW_AT_name ("bar.c") |
| 10 |
|
| 11 |
# Source: |
| 12 |
# $ cat foo.c |
| 13 |
# int foo = 1; |
| 14 |
# $ cat bar.c |
| 15 |
# extern int bar; |
| 16 |
# int main() { |
| 17 |
# return bar; |
| 18 |
# } |
| 19 |
|
| 20 |
# Compile with: |
| 21 |
# $ clang -g -O0 bar.c -c -o bar.o |
| 22 |
# $ clang -g -O0 foo.c -c -o foo.o |
| 23 |
# $ ld -arch x86_64 -macosx_version_min 10.13.0 foo.o bar.o -lSystem -alias _foo _bar -o foobar |