• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1## Test that on windows, members are case insensitive.
2# REQUIRES: system-windows
3
4# RUN: mkdir -p %t
5# RUN: rm -rf %t/lowerCase %t/UPPERCASE && mkdir %t/lowerCase %t/UPPERCASE
6# RUN: echo lowerCase > %t/lowerCase/file.txt
7# RUN: echo UPPERCASE > %t/UPPERCASE/FILE.TXT
8
9# RUN: rm -f %t/archive.a
10# RUN: llvm-ar rc %t/archive.a %t/lowerCase/file.txt
11# RUN: FileCheck %s -input-file=%t/archive.a --check-prefix=LOWER --implicit-check-not=FILE.TXT
12# RUN: llvm-ar rc %t/archive.a %t/UPPERCASE/FILE.TXT
13# RUN: FileCheck %s -input-file=%t/archive.a --check-prefix=UPPER --implicit-check-not=file.txt
14
15# LOWER: file.txt
16# UPPER: FILE.TXT
17
18# RUN: rm -f %t/thin-archive.a
19# RUN: llvm-ar Trc %t/thin-archive.a %t/lowerCase/file.txt %t/UPPERCASE/FILE.txt
20# RUN: llvm-ar dTP %t/thin-archive.a %t/uppercase/file.txt
21
22# RUN: FileCheck %s -input-file=%t/thin-archive.a --check-prefix=THIN-ARCHIVE -DPATH=%/t
23# THIN-ARCHIVE-NOT: [[PATH]]/UPPERCASE/FILE.TXT
24# THIN-ARCHIVE: [[PATH]]/lowerCase/file.txt
25
26# RUN: llvm-ar dTP %t/thin-archive.a %t/LOWERCASE/FILE.TXT
27# RUN: FileCheck %s -input-file=%t/thin-archive.a --check-prefix=EMPTY --implicit-check-not {{.}}
28
29EMPTY: !<thin>
30