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