1 Test which operations create an archive and which don't.
5 RUN: not llvm-ar p %t.foo.a %t 2>&1 | FileCheck %s
6 RUN: not llvm-ar d %t.foo.a %t 2>&1 | FileCheck %s
7 RUN: not llvm-ar m %t.foo.a %t 2>&1 | FileCheck %s
8 RUN: not llvm-ar t %t.foo.a %t 2>&1 | FileCheck %s
9 RUN: not llvm-ar x %t.foo.a %t 2>&1 | FileCheck %s
11 RUN: llvm-ar q %t.foo.a %t 2>&1 | FileCheck --check-prefix=CREATE %s
13 RUN: llvm-ar r %t.foo.a %t 2>&1 | FileCheck --check-prefix=CREATE %s
16 CHECK: llvm-ar{{(.exe|.EXE)?}}: error: error loading '{{[^']+}}.foo.a':
17 CREATE: creating {{.*}}.foo.a