llvm/test/tools/gold/X86/linker-script.ll
raw| 1 | ; RUN: llvm-as %s -o %t.o |
| 2 | |
| 3 | ; RUN: %gold -plugin %llvmshlibdir/LLVMgold%shlibext \ |
| 4 | ; RUN: --plugin-opt=emit-llvm \ |
| 5 | ; RUN: -shared %t.o -o %t2.o \ |
| 6 | ; RUN: -version-script=%p/Inputs/linker-script.export |
| 7 | ; RUN: llvm-dis %t2.o -o - | FileCheck %s |
| 8 | |
| 9 | target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" |
| 10 | |
| 11 | ; CHECK: define void @f() |
| 12 | define void @f() { |
| 13 | ret void |
| 14 | } |
| 15 | |
| 16 | ; CHECK: define internal void @g() |
| 17 | define void @g() { |
| 18 | ret void |
| 19 | } |