blob: 95d994e06a48ce959e8376c772aa63bc5864b4cf [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
NAKAMURA Takumi86bae2c2013-07-16 23:17:22 +000016CHECK: llvm-ar{{(.exe|.EXE)?}}: error loading '{{[^']+}}.foo.a':
Rafael Espindola8ef843f2013-07-05 13:03:07 +000017CREATE: creating {{.*}}.foo.a