ReleaseNotes: -femultated-tls; by Chih-hung Hsieh
[oota-llvm.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