1f42103ceSTaewook Oh // REQUIRES: case-insensitive-filesystem 2f42103ceSTaewook Oh 35b57633aSKuba Mracek // RUN: mkdir -p %t/Output/apath 45b57633aSKuba Mracek // RUN: mkdir -p %t/Output/asystempath 55b57633aSKuba Mracek // RUN: cp %S/Inputs/case-insensitive-include.h %t/Output 65b57633aSKuba Mracek // RUN: cp %S/Inputs/case-insensitive-include.h %t/Output/asystempath/case-insensitive-include2.h 75b57633aSKuba Mracek // RUN: cd %t/Output 85b57633aSKuba Mracek // RUN: %clang_cc1 -fsyntax-only %s -include %s -I %t/Output -isystem %t/Output/asystempath -verify 95b57633aSKuba Mracek // RUN: %clang_cc1 -fsyntax-only -fdiagnostics-parseable-fixits %s -include %s -I %t/Output -isystem %t/Output/asystempath 2>&1 | FileCheck %s 10f42103ceSTaewook Oh 11f42103ceSTaewook Oh // Known standard header, so warn: 12f42103ceSTaewook Oh #include <StdDef.h> // expected-warning {{non-portable path}} 13f42103ceSTaewook Oh // CHECK: fix-it:"{{.*}}":{[[@LINE-1]]:10-[[@LINE-1]]:20}:"<stddef.h>" 14f42103ceSTaewook Oh 15f42103ceSTaewook Oh #include "case-insensitive-include.h" 16f42103ceSTaewook Oh #include "Case-Insensitive-Include.h" // expected-warning {{non-portable path}} 17f42103ceSTaewook Oh // CHECK: fix-it:"{{.*}}":{[[@LINE-1]]:10-[[@LINE-1]]:38}:"\"case-insensitive-include.h\"" 18f42103ceSTaewook Oh 19*b9d50bdfSNico Weber #include "../Output/./case-insensitive-include.h" 20*b9d50bdfSNico Weber #include "../Output/./Case-Insensitive-Include.h" // expected-warning {{non-portable path}} 21*b9d50bdfSNico Weber // CHECK: fix-it:"{{.*}}":{[[@LINE-1]]:10-[[@LINE-1]]:51}:"\"../Output/.//case-insensitive-include.h\"" 22*b9d50bdfSNico Weber #include "../output/./case-insensitive-include.h" // expected-warning {{non-portable path}} 23*b9d50bdfSNico Weber // CHECK: fix-it:"{{.*}}":{[[@LINE-1]]:10-[[@LINE-1]]:51}:"\"../Output/.//case-insensitive-include.h\"" 24f42103ceSTaewook Oh 25f42103ceSTaewook Oh #include "apath/.././case-insensitive-include.h" 26f42103ceSTaewook Oh #include "apath/.././Case-Insensitive-Include.h" // expected-warning {{non-portable path}} 27f42103ceSTaewook Oh // CHECK: fix-it:"{{.*}}":{[[@LINE-1]]:10-[[@LINE-1]]:49}:"\"apath/.././case-insensitive-include.h\"" 28f42103ceSTaewook Oh #include "APath/.././case-insensitive-include.h" // For the sake of efficiency, this case is not diagnosed. :-( 29f42103ceSTaewook Oh 30f42103ceSTaewook Oh #include "../Output/./apath/.././case-insensitive-include.h" 31f42103ceSTaewook Oh #include "../Output/./APath/.././case-insensitive-include.h" // For the sake of efficiency, this case is not diagnosed. :-( 32f42103ceSTaewook Oh #include "../output/./apath/.././case-insensitive-include.h" // expected-warning {{non-portable path}} 33f42103ceSTaewook Oh // CHECK: fix-it:"{{.*}}":{[[@LINE-1]]:10-[[@LINE-1]]:61}:"\"../Output/./apath/.././case-insensitive-include.h\"" 34f42103ceSTaewook Oh 35f42103ceSTaewook Oh #include "CASE-INSENSITIVE-INCLUDE2.H" // Found in an -isystem directory. No warning. 36