summaryrefslogtreecommitdiff
path: root/test/Object/ar-error.test
diff options
context:
space:
mode:
Diffstat (limited to 'test/Object/ar-error.test')
-rw-r--r--test/Object/ar-error.test5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/Object/ar-error.test b/test/Object/ar-error.test
new file mode 100644
index 0000000000..9b8ddbd78f
--- /dev/null
+++ b/test/Object/ar-error.test
@@ -0,0 +1,5 @@
+Test if we get a proper error with a filename that doesn't exist
+
+RUN: not llvm-ar r %t.out.a sparkle.o %t 2>&1 | FileCheck %s
+
+CHECK: llvm-ar{{(.exe|.EXE)?}}: sparkle.o: No such file or directory