Home | History | Annotate | Download | only in lto
      1 ; RUN: llvm-as %s -o %t.o
      2 ; RUN: env DYLD_LIBRARY_PATH=%llvmshlibdir %ld64 -arch x86_64 -dylib -mllvm -O0 -o %t.dylib %t.o
      3 ; RUN: llvm-nm -no-llvm-bc %t.dylib | FileCheck --check-prefix=CHECK-O0 %s
      4 ; RUN: env DYLD_LIBRARY_PATH=%llvmshlibdir %ld64 -arch x86_64 -dylib -mllvm -O2 -o %t.dylib %t.o
      5 ; RUN: llvm-nm -no-llvm-bc %t.dylib | FileCheck --check-prefix=CHECK-O2 %s
      6 
      7 target triple = "x86_64-apple-macosx10.8.0"
      8 
      9 ; CHECK-O0: t _f1
     10 ; CHECK-O2-NOT: _f1
     11 define internal void @f1() {
     12   ret void
     13 }
     14 
     15 ; CHECK-O0: T _f2
     16 ; CHECK-O2: T _f2
     17 define void @f2() {
     18   call void @f1()
     19   ret void
     20 }
     21