2013-07-05 13:03:07 +00:00
|
|
|
Test which operations create an archive and which don't.
|
|
|
|
|
|
|
|
RUN: touch %t
|
|
|
|
RUN: rm -f %t.foo.a
|
|
|
|
RUN: not llvm-ar p %t.foo.a %t 2>&1 | FileCheck %s
|
|
|
|
RUN: not llvm-ar d %t.foo.a %t 2>&1 | FileCheck %s
|
|
|
|
RUN: not llvm-ar m %t.foo.a %t 2>&1 | FileCheck %s
|
|
|
|
RUN: not llvm-ar t %t.foo.a %t 2>&1 | FileCheck %s
|
|
|
|
RUN: not llvm-ar x %t.foo.a %t 2>&1 | FileCheck %s
|
|
|
|
|
|
|
|
RUN: llvm-ar q %t.foo.a %t 2>&1 | FileCheck --check-prefix=CREATE %s
|
|
|
|
RUN: rm -f %t.foo.a
|
|
|
|
RUN: llvm-ar r %t.foo.a %t 2>&1 | FileCheck --check-prefix=CREATE %s
|
|
|
|
RUN: rm -f %t.foo.a
|
|
|
|
|
2013-07-16 23:17:22 +00:00
|
|
|
CHECK: llvm-ar{{(.exe|.EXE)?}}: error loading '{{[^']+}}.foo.a':
|
2013-07-05 13:03:07 +00:00
|
|
|
CREATE: creating {{.*}}.foo.a
|