mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-05 13:26:55 +00:00
Don't create an archive if, for example, we are asked to print the index.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185697 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
17
test/Object/ar-create.test
Normal file
17
test/Object/ar-create.test
Normal file
@@ -0,0 +1,17 @@
|
||||
Test which operations create an archive and which don't.
|
||||
|
||||
RUN: touch %t
|
||||
RUN: rm -f %t.foo.a
|
||||
RUN: not llvm-ar p %t.foo.a %t 2>&1 | FileCheck %s
|
||||
RUN: not llvm-ar d %t.foo.a %t 2>&1 | FileCheck %s
|
||||
RUN: not llvm-ar m %t.foo.a %t 2>&1 | FileCheck %s
|
||||
RUN: not llvm-ar t %t.foo.a %t 2>&1 | FileCheck %s
|
||||
RUN: not llvm-ar x %t.foo.a %t 2>&1 | FileCheck %s
|
||||
|
||||
RUN: llvm-ar q %t.foo.a %t 2>&1 | FileCheck --check-prefix=CREATE %s
|
||||
RUN: rm -f %t.foo.a
|
||||
RUN: llvm-ar r %t.foo.a %t 2>&1 | FileCheck --check-prefix=CREATE %s
|
||||
RUN: rm -f %t.foo.a
|
||||
|
||||
CHECK: .foo.a': No such file or directory
|
||||
CREATE: creating {{.*}}.foo.a
|
Reference in New Issue
Block a user