Mercurial > hg > CbC > CbC_llvm
comparison clang/test/PCH/case-insensitive-include.c @ 150:1d019706d866
LLVM10
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 15:10:13 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
147:c2174574ed3a | 150:1d019706d866 |
---|---|
1 // REQUIRES: case-insensitive-filesystem | |
2 | |
3 // Test this without pch. | |
4 // RUN: mkdir -p %t-dir | |
5 // RUN: cp %S/Inputs/case-insensitive-include.h %t-dir | |
6 // RUN: %clang_cc1 -Wno-nonportable-include-path -fsyntax-only %s -include %s -I %t-dir -verify | |
7 | |
8 // Test with pch. | |
9 // RUN: %clang_cc1 -emit-pch -o %t.pch %s -I %t-dir | |
10 | |
11 // Modify inode of the header. | |
12 // RUN: cp %t-dir/case-insensitive-include.h %t.copy | |
13 // RUN: touch -r %t-dir/case-insensitive-include.h %t.copy | |
14 // RUN: mv %t.copy %t-dir/case-insensitive-include.h | |
15 | |
16 // RUN: %clang_cc1 -Wno-nonportable-include-path -fsyntax-only %s -include-pch %t.pch -I %t-dir -verify | |
17 | |
18 // expected-no-diagnostics | |
19 | |
20 #ifndef HEADER | |
21 #define HEADER | |
22 | |
23 #include "case-insensitive-include.h" | |
24 #include "Case-Insensitive-Include.h" | |
25 | |
26 #else | |
27 | |
28 #include "Case-Insensitive-Include.h" | |
29 | |
30 #endif |