1 ## Unsupported on windows as marking files "unreadable" is non-trivial on windows.
2 # UNSUPPORTED: system-windows
4 # RUN: rm -rf %t && split-file %s %t && cd %t
5 # RUN: yaml2obj 1.yaml -o 1.o
6 # RUN: llvm-ar rcS a.a 1.o
7 # RUN: cp a.a b.a && cp a.a c.a && cp a.a d.a
9 # RUN: not llvm-ranlib a.a b.a c.a d.a 2>&1 | FileCheck %s --check-prefix=NO-PERMISSION -DMSG=%errc_EACCES
11 # NO-PERMISSION: error: unable to open 'c.a': [[MSG]]
12 # NO-PERMISSION-NOT: {{.}}
14 ## The archives before c.a (a.a and b.a) have been processed.
15 # RUN: llvm-nm --print-armap a.a | FileCheck %s
17 ## The others (c.a and d.a) do not have a symbol table.
19 # RUN: llvm-nm --print-armap c.a | FileCheck %s --check-prefix=NOMAP
23 # CHECK-NEXT: foo in 1.o
26 # NOMAP-NOT: Archive map