aboutsummaryrefslogtreecommitdiffstats
path: root/test/tools/gold/no-map-whole-file.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/tools/gold/no-map-whole-file.ll')
-rw-r--r--test/tools/gold/no-map-whole-file.ll9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/tools/gold/no-map-whole-file.ll b/test/tools/gold/no-map-whole-file.ll
new file mode 100644
index 0000000..4c261d7
--- /dev/null
+++ b/test/tools/gold/no-map-whole-file.ll
@@ -0,0 +1,9 @@
+; RUN: llvm-as -o %t.bc %s
+; RUN: %gold -plugin %llvmshlibdir/LLVMgold.so -plugin-opt=emit-llvm \
+; RUN: --no-map-whole-files -r -o %t2.bc %t.bc
+; RUN: llvm-dis < %t2.bc -o - | FileCheck %s
+
+; CHECK: main
+define i32 @main() {
+ ret i32 0
+}