| 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 |