Skip to content

Commit e4c84c7

Browse files
author
git apple-llvm automerger
committed
Merge commit '0bab0538d8cc' from llvm.org/master into apple/master
2 parents 6bac8ea + 0bab053 commit e4c84c7

File tree

2 files changed

+21
-23
lines changed

2 files changed

+21
-23
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Test non-ascii archive members
2+
3+
RUN: rm -rf %t && mkdir -p %t/extracted
4+
5+
# Note: lit's Python will read this UTF-8 encoded mri-nonascii.txt file,
6+
# decode it to unicode. The filename in the redirection below will then
7+
# be encoded in the system's filename encoding (e.g. UTF-16 for
8+
# Microsoft Windows).
9+
RUN: echo "contents" > %t/£.txt
10+
11+
RUN: echo "CREATE %t/mri.ar" > %t/script.mri
12+
RUN: echo "ADDMOD %t/£.txt" >> %t/script.mri
13+
RUN: echo "SAVE" >> %t/script.mri
14+
15+
RUN: llvm-ar -M < %t/script.mri
16+
RUN: cd %t/extracted && llvm-ar x %t/mri.ar
17+
18+
# Same as above.
19+
RUN: FileCheck --strict-whitespace %s <£.txt
20+
CHECK:{{^}}
21+
CHECK-SAME:{{^}}contents{{$}}

llvm/test/tools/llvm-ar/mri-utf8.test

Lines changed: 0 additions & 23 deletions
This file was deleted.

0 commit comments

Comments
 (0)