aboutsummaryrefslogtreecommitdiff
path: root/test/ELF/lto/emit-llvm.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/ELF/lto/emit-llvm.ll')
-rw-r--r--test/ELF/lto/emit-llvm.ll14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/ELF/lto/emit-llvm.ll b/test/ELF/lto/emit-llvm.ll
new file mode 100644
index 000000000000..bf38c982f02e
--- /dev/null
+++ b/test/ELF/lto/emit-llvm.ll
@@ -0,0 +1,14 @@
+; REQUIRES: x86
+
+; RUN: opt -module-hash -module-summary %s -o %t.o
+; RUN: ld.lld --plugin-opt=emit-llvm -o %t.out.o %t.o
+; RUN: llvm-dis < %t.out.o -o - | FileCheck %s
+
+; CHECK: define internal void @main()
+
+target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target triple = "x86_64-unknown-linux-gnu"
+
+define void @main() {
+ ret void
+}