• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // REQUIRES: case-insensitive-filesystem
2 
3 // RUN: mkdir -p %T/apath
4 // RUN: cp %S/Inputs/case-insensitive-include.h %T
5 // RUN: cd %T
6 // RUN: %clang_cc1 -fsyntax-only -fms-compatibility %s -include %s -I %T -verify
7 // RUN: %clang_cc1 -fsyntax-only -fms-compatibility -fdiagnostics-parseable-fixits %s -include %s -I %T 2>&1 | FileCheck %s
8 
9 #include "..\Output\.\case-insensitive-include.h"
10 #include "..\Output\.\Case-Insensitive-Include.h" // expected-warning {{non-portable path}}
11 // CHECK: fix-it:"{{.*}}":{[[@LINE-1]]:10-[[@LINE-1]]:50}:"\"..\\Output\\.\\case-insensitive-include.h\""
12 #include "..\output\.\case-insensitive-include.h" // expected-warning {{non-portable path}}
13 // CHECK: fix-it:"{{.*}}":{[[@LINE-1]]:10-[[@LINE-1]]:50}:"\"..\\Output\\.\\case-insensitive-include.h\""
14 
15 #include "apath\..\.\case-insensitive-include.h"
16 #include "apath\..\.\Case-Insensitive-Include.h" // expected-warning {{non-portable path}}
17 // CHECK: fix-it:"{{.*}}":{[[@LINE-1]]:10-[[@LINE-1]]:49}:"\"apath\\..\\.\\case-insensitive-include.h\""
18 #include "APath\..\.\case-insensitive-include.h" // For the sake of efficiency, this case is not diagnosed. :-(
19