diff options
| author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-07-12 18:51:25 +0000 |
|---|---|---|
| committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-07-12 18:51:25 +0000 |
| commit | 3e7249fb1554c65420a1f4f2e7cb97673af31109 (patch) | |
| tree | f7435c4d9c752b170f11b38b476143c847fbc7ad | |
| parent | ccae60acc3a88cd4f04ac9e07f8d05a000b705b2 (diff) | |
| download | bcm5719-llvm-3e7249fb1554c65420a1f4f2e7cb97673af31109.tar.gz bcm5719-llvm-3e7249fb1554c65420a1f4f2e7cb97673af31109.zip | |
Add a test for the 'o' option in llvm-ar.
llvm-svn: 186183
| -rw-r--r-- | llvm/test/Object/extract.ll | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/test/Object/extract.ll b/llvm/test/Object/extract.ll index 045b8b639bd..8e92b4098f7 100644 --- a/llvm/test/Object/extract.ll +++ b/llvm/test/Object/extract.ll @@ -34,3 +34,13 @@ ; RUN: llvm-ar x %p/Inputs/xpg4.a very_long_bytecode_file_name.bc ; RUN: cmp -s %p/Inputs/very_long_bytecode_file_name.bc \ ; RUN: very_long_bytecode_file_name.bc + + +; Test that the 'o' option is working by extracting a file, putting it in o +; new archive and checking that date. +; RUN: rm -f very_long_bytecode_file_name.bc +; RUN: llvm-ar xo %p/Inputs/GNU.a very_long_bytecode_file_name.bc +; RUN: llvm-ar rc %t.a very_long_bytecode_file_name.bc +; RUN: env TZ=GMT llvm-ar tv %t.a | FileCheck %s + +CHECK: rwxr-xr-x 1000/1000 1465 Nov 19 03:01 2004 very_long_bytecode_file_name.bc |

