summaryrefslogtreecommitdiff
path: root/test/Archive
diff options
context:
space:
mode:
authorGalina Kistanova <gkistanova@gmail.com>2011-05-05 18:40:27 +0000
committerGalina Kistanova <gkistanova@gmail.com>2011-05-05 18:40:27 +0000
commit300c1a11c8034e48dd343c89594bc320eb7ba0ae (patch)
treef855b7314a725a1557ad8da3eacc0f41a2400ae5 /test/Archive
parentd71867a8f4b1ab6ab8cc8f5b1a732184ec5bad1b (diff)
downloadllvm-300c1a11c8034e48dd343c89594bc320eb7ba0ae.tar.gz
llvm-300c1a11c8034e48dd343c89594bc320eb7ba0ae.tar.bz2
llvm-300c1a11c8034e48dd343c89594bc320eb7ba0ae.tar.xz
Many LLVM tests relies on standard output stream be in the binary mode. Which is not always the case (on Windows in particular). The patch adds a test to verify that the standard output stream is actually in the binary mode.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130936 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Archive')
-rw-r--r--test/Archive/check_binary_output.ll4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/Archive/check_binary_output.ll b/test/Archive/check_binary_output.ll
new file mode 100644
index 0000000000..60ab5caac4
--- /dev/null
+++ b/test/Archive/check_binary_output.ll
@@ -0,0 +1,4 @@
+; This is not an assembly file, this is just to run the test.
+; The test verifies that llvm-ar produces a binary output.
+
+;RUN: llvm-ar p %p/GNU.a very_long_bytecode_file_name.bc | cmp -s %p/very_long_bytecode_file_name.bc -