diff options
Diffstat (limited to 'test/tools/gold/coff.ll')
-rw-r--r-- | test/tools/gold/coff.ll | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/test/tools/gold/coff.ll b/test/tools/gold/coff.ll new file mode 100644 index 0000000..5d8a1c9 --- /dev/null +++ b/test/tools/gold/coff.ll @@ -0,0 +1,22 @@ +; RUN: llvm-as %s -o %t.o +; RUN: %gold -plugin %llvmshlibdir/LLVMgold.so -plugin-opt=emit-llvm \ +; RUN: -shared %t.o -o %t2.o +; RUN: llvm-dis %t2.o -o - | FileCheck %s + + +target datalayout = "m:w" + +; CHECK: define void @f() { +define void @f() { + ret void +} + +; CHECK: define internal void @g() { +define hidden void @g() { + ret void +} + +; CHECK: define internal void @h() { +define linkonce_odr void @h() { + ret void +} |