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