]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/Object/ar-create.test
Vendor import of llvm release_34 branch r197841 (effectively, 3.4 RC3):
[FreeBSD/FreeBSD.git] / test / Object / ar-create.test
1 Test which operations create an archive and which don't.
2
3 RUN: touch %t
4 RUN: rm -f %t.foo.a
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
10
11 RUN: llvm-ar q %t.foo.a %t 2>&1 | FileCheck --check-prefix=CREATE %s
12 RUN: rm -f %t.foo.a
13 RUN: llvm-ar r %t.foo.a %t 2>&1 | FileCheck --check-prefix=CREATE %s
14 RUN: rm -f %t.foo.a
15
16 CHECK: llvm-ar{{(.exe|.EXE)?}}: error loading '{{[^']+}}.foo.a':
17 CREATE: creating {{.*}}.foo.a