1 // REQUIRES: case-insensitive-filesystem
2 
3 // Test this without pch.
4 // RUN: cp %S/Inputs/case-insensitive-include.h %T
5 // RUN: %clang_cc1 -fsyntax-only %s -include %s -I %T -verify
6 
7 // Test with pch.
8 // RUN: %clang_cc1 -emit-pch -o %t.pch %s -I %T
9 
10 // Modify inode of the header.
11 // RUN: cp %T/case-insensitive-include.h %t.copy
12 // RUN: touch -r %T/case-insensitive-include.h %t.copy
13 // RUN: mv %t.copy %T/case-insensitive-include.h
14 
15 // RUN: %clang_cc1 -fsyntax-only %s -include-pch %t.pch -I %T -verify
16 
17 // expected-no-diagnostics
18 
19 #ifndef HEADER
20 #define HEADER
21 
22 #include "case-insensitive-include.h"
23 #include "Case-Insensitive-Include.h"
24 
25 #else
26 
27 #include "Case-Insensitive-Include.h"
28 
29 #endif
30