[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / PCH / case-insensitive-include.c
blobc40b0ada9856e36ef9428b2026f5ea8de168d5f3
1 // REQUIRES: case-insensitive-filesystem
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
8 // Test with pch.
9 // RUN: %clang_cc1 -emit-pch -o %t.pch %s -I %t-dir
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
16 // RUN: %clang_cc1 -Wno-nonportable-include-path -fsyntax-only %s -include-pch %t.pch -I %t-dir -verify
18 // expected-no-diagnostics
20 #ifndef HEADER
21 #define HEADER
23 #include "case-insensitive-include.h"
24 #include "Case-Insensitive-Include.h"
26 #else
28 #include "Case-Insensitive-Include.h"
30 #endif