blob: 4b08c97317a8dadcb797c95af6c313abc71361a6 [file] [log] [blame]
Rafael Espindola61de1422013-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
Jordan Rupprecht2e3d9f72019-01-15 22:03:08 +000016CHECK: llvm-ar{{(.exe|.EXE)?}}: error: error loading '{{[^']+}}.foo.a':
Rafael Espindola61de1422013-07-05 13:03:07 +000017CREATE: creating {{.*}}.foo.a