minix/external/bsd/llvm/dist/clang/test/PCH/case-insensitive-include.c
Lionel Sambuc f4a2713ac8 Importing netbsd clang -- pristine
Change-Id: Ia40e9ffdf29b5dab2f122f673ff6802a58bc690f
2014-07-28 17:05:57 +02:00

29 lines
694 B
C

// REQUIRES: case-insensitive-filesystem
// Test this without pch.
// RUN: cp %S/Inputs/case-insensitive-include.h %T
// RUN: %clang_cc1 -fsyntax-only %s -include %s -I %T -verify
// Test with pch.
// RUN: %clang_cc1 -emit-pch -o %t.pch %s -I %T
// Modify inode of the header.
// RUN: cp %T/case-insensitive-include.h %t.copy
// RUN: touch -r %T/case-insensitive-include.h %t.copy
// RUN: mv %t.copy %T/case-insensitive-include.h
// RUN: %clang_cc1 -fsyntax-only %s -include-pch %t.pch -I %T -verify
// expected-no-diagnostics
#ifndef HEADER
#define HEADER
#include "case-insensitive-include.h"
#include "Case-Insensitive-Include.h"
#else
#include "Case-Insensitive-Include.h"
#endif