xref: /llvm-project/llvm/test/tools/gold/X86/linker-script.ll (revision 3efcfadde4cebf768f56b22a432185eb9502ea41)
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
9target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
10
11; CHECK: define void @f()
12define void @f() {
13  ret void
14}
15
16; CHECK: define internal void @g()
17define void @g() {
18  ret void
19}
20