summaryrefslogtreecommitdiffstats
path: root/llvm/test/Object/mri4.test
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2014-10-10 18:33:51 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2014-10-10 18:33:51 +0000
commitb275797e31a3536f7b5b26be1f7b3d26726434c9 (patch)
tree1cf7546f65ae1db687a19d9563642591e539f108 /llvm/test/Object/mri4.test
parent1d33e8d38f86c89b11cdc3e4f4d79e91baad2fd5 (diff)
downloadbcm5719-llvm-b275797e31a3536f7b5b26be1f7b3d26726434c9.tar.gz
bcm5719-llvm-b275797e31a3536f7b5b26be1f7b3d26726434c9.zip
llvm-ar: Start adding support for mri scripts.
I was quiet surprised to find this feature being used. Fortunately the uses I found look fairly simple. In fact, they are just a very verbose version of the regular ar commands. Start implementing it then by parsing the script and setting the command variables as if we had a regular command line. This patch adds just enough support to create an empty archive and do a bit of error checking. In followup patches I will implement at least addmod and addlib. From the description in the manual, even the more general case should not be too hard to implement if needed. The features that don't map 1:1 to the simple command line are * Reading from multiple archives. * Creating multiple archives. llvm-svn: 219521
Diffstat (limited to 'llvm/test/Object/mri4.test')
-rw-r--r--llvm/test/Object/mri4.test4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/test/Object/mri4.test b/llvm/test/Object/mri4.test
new file mode 100644
index 00000000000..a24c14d7d28
--- /dev/null
+++ b/llvm/test/Object/mri4.test
@@ -0,0 +1,4 @@
+; RUN: echo abc > %t.mri
+
+; RUN: not llvm-ar -M < %t.mri 2>&1 | FileCheck %s
+; CHECK: Unknown command: abc.
OpenPOWER on IntegriCloud