brintos

brintos / llvm-project-archived public Read only

0
0
Text · 806 B · c40b0ad Raw
31 lines · c
1// REQUIRES: case-insensitive-filesystem2 3// Test this without pch.4// RUN: mkdir -p %t-dir5// RUN: cp %S/Inputs/case-insensitive-include.h %t-dir6// RUN: %clang_cc1 -Wno-nonportable-include-path -fsyntax-only %s -include %s -I %t-dir -verify7 8// Test with pch.9// RUN: %clang_cc1 -emit-pch -o %t.pch %s -I %t-dir10 11// Modify inode of the header.12// RUN: cp %t-dir/case-insensitive-include.h %t.copy13// RUN: touch -r %t-dir/case-insensitive-include.h %t.copy14// RUN: mv %t.copy %t-dir/case-insensitive-include.h15 16// RUN: %clang_cc1 -Wno-nonportable-include-path -fsyntax-only %s -include-pch %t.pch -I %t-dir -verify17 18// expected-no-diagnostics19 20#ifndef HEADER21#define HEADER22 23#include "case-insensitive-include.h"24#include "Case-Insensitive-Include.h"25 26#else27 28#include "Case-Insensitive-Include.h"29 30#endif31