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