summaryrefslogtreecommitdiffstats
path: root/llvm/test/Object
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/Object')
-rw-r--r--llvm/test/Object/mri-addlib.test17
1 files changed, 17 insertions, 0 deletions
diff --git a/llvm/test/Object/mri-addlib.test b/llvm/test/Object/mri-addlib.test
new file mode 100644
index 00000000000..5af09e36907
--- /dev/null
+++ b/llvm/test/Object/mri-addlib.test
@@ -0,0 +1,17 @@
+; RUN: echo create %t.a > %t.mri
+; RUN: echo addlib %p/Inputs/GNU.a >> %t.mri
+; RUN: echo addlib %p/Inputs/archive-test.a-gnu-minimal >> %t.mri
+; RUN: echo save >> %t.mri
+; RUN: echo end >> %t.mri
+
+; RUN: llvm-ar -M < %t.mri
+; RUN: llvm-ar t %t.a | FileCheck %s
+
+; CHECK: evenlen
+; CHECK-NEXT: oddlen
+; CHECK-NEXT: very_long_bytecode_file_name.bc
+; CHECK-NEXT: IsNAN.o
+; CHECK-NEXT: test
+
+; line_iterator is incompatible to CRLF.
+; REQUIRES: shell
OpenPOWER on IntegriCloud