Taewook Oh | f42103c | 2016-06-13 20:40:21 +0000 | [diff] [blame] | 1 | // REQUIRES: case-insensitive-filesystem |
| 2 | |
Kuba Mracek | 5b57633 | 2017-08-15 19:47:06 +0000 | [diff] [blame] | 3 | // RUN: mkdir -p %t/Output/apath |
| 4 | // RUN: cp %S/Inputs/case-insensitive-include.h %t/Output |
| 5 | // RUN: cd %t/Output |
| 6 | // RUN: %clang_cc1 -fsyntax-only -fms-compatibility %s -include %s -I %t/Output -verify |
| 7 | // RUN: %clang_cc1 -fsyntax-only -fms-compatibility -fdiagnostics-parseable-fixits %s -include %s -I %t/Output 2>&1 | FileCheck %s |
Taewook Oh | f42103c | 2016-06-13 20:40:21 +0000 | [diff] [blame] | 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. :-( |