27 lines · plain
1## Test non-ascii archive members2 3# RUN: rm -rf %t && mkdir -p %t/extracted4# RUN: cd %t5 6## Note: lit's Python will read this UTF-8 encoded mri-nonascii.txt file,7## decode it to unicode. The filename in the redirection below will then8## be encoded in the system's filename encoding (e.g. UTF-16 for9## Microsoft Windows).10# RUN: echo "contents" > £.txt11# RUN: echo "contents" > €.txt12# RUN: llvm-ar -rc ¥.a €.txt13 14# RUN: echo "CREATE mri.ar" > script.mri15# RUN: echo "ADDMOD £.txt" >> script.mri16# RUN: echo "ADDLIB ¥.a" >> script.mri17# RUN: echo "SAVE" >> script.mri18 19# RUN: llvm-ar -M < script.mri20# RUN: cd %t/extracted && llvm-ar x %t/mri.ar21 22## Same as above.23# RUN: FileCheck --strict-whitespace %s <£.txt24# RUN: FileCheck --strict-whitespace %s <€.txt25# CHECK:{{^}}26# CHECK-SAME:{{^}}contents{{$}}27