1XFAIL: system-aix
2Test which operations create an archive and which don't.
3
4RUN: touch %t
5RUN: rm -f %t.foo.a
6RUN: not llvm-ar p %t.foo.a %t 2>&1 | FileCheck %s
7RUN: not llvm-ar d %t.foo.a %t 2>&1 | FileCheck %s
8RUN: not llvm-ar m %t.foo.a %t 2>&1 | FileCheck %s
9RUN: not llvm-ar t %t.foo.a %t 2>&1 | FileCheck %s
10RUN: not llvm-ar x %t.foo.a %t 2>&1 | FileCheck %s
11
12RUN: llvm-ar q %t.foo.a %t 2>&1 | FileCheck --check-prefix=CREATE %s
13RUN: rm -f %t.foo.a
14RUN: llvm-ar r %t.foo.a %t 2>&1 | FileCheck --check-prefix=CREATE %s
15RUN: rm -f %t.foo.a
16
17CHECK: llvm-ar{{(.exe|.EXE)?}}: error: unable to load '{{[^']+}}.foo.a':
18CREATE: creating {{.*}}.foo.a
19