mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-31 16:02:52 +01:00
a045716bb8
This has some advantages: * Lets us use native, utf16 windows functions. * Easy to produce good errors on windows about trying to use a directory when we want a file. * Simplifies the unix version a bit. llvm-svn: 186511
17 lines
511 B
LLVM
17 lines
511 B
LLVM
;RUN: rm -f %T/test.a
|
|
;RUN: not llvm-ar r %T/test.a . 2>&1 | FileCheck %s
|
|
;CHECK: .: Is a directory
|
|
|
|
; Opening a directory works on cygwin and freebsd.
|
|
;XFAIL: freebsd, cygwin
|
|
|
|
;RUN: rm -f %T/test.a
|
|
;RUN: touch %T/a-very-long-file-name
|
|
;RUN: llvm-ar r %T/test.a %s %T/a-very-long-file-name
|
|
;RUN: llvm-ar r %T/test.a %T/a-very-long-file-name
|
|
;RUN: llvm-ar t %T/test.a | FileCheck -check-prefix=MEMBERS %s
|
|
;MEMBERS-NOT: /
|
|
;MEMBERS: directory.ll
|
|
;MEMBERS: a-very-long-file-name
|
|
;MEMBERS-NOT: a-very-long-file-name
|