blob: 40e391da029fa1c1e265c8072da5e9431112d6f8 [file] [log] [blame]
Rafael Espindola8ef843f2013-07-05 13:03:07 +00001Test which operations create an archive and which don't.
2
3RUN: touch %t
4RUN: rm -f %t.foo.a
5RUN: not llvm-ar p %t.foo.a %t 2>&1 | FileCheck %s
6RUN: not llvm-ar d %t.foo.a %t 2>&1 | FileCheck %s
7RUN: not llvm-ar m %t.foo.a %t 2>&1 | FileCheck %s
8RUN: not llvm-ar t %t.foo.a %t 2>&1 | FileCheck %s
9RUN: not llvm-ar x %t.foo.a %t 2>&1 | FileCheck %s
10
11RUN: llvm-ar q %t.foo.a %t 2>&1 | FileCheck --check-prefix=CREATE %s
12RUN: rm -f %t.foo.a
13RUN: llvm-ar r %t.foo.a %t 2>&1 | FileCheck --check-prefix=CREATE %s
14RUN: rm -f %t.foo.a
15
16CHECK: .foo.a': No such file or directory
17CREATE: creating {{.*}}.foo.a