1Test 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: llvm-ar{{(.exe|.EXE)?}}: error: unable to load '{{[^']+}}.foo.a':
17CREATE: creating {{.*}}.foo.a
18