summaryrefslogtreecommitdiffstats
path: root/clang/test/Lexer/case-insensitive-system-include.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Lexer/case-insensitive-system-include.c')
-rw-r--r--clang/test/Lexer/case-insensitive-system-include.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/clang/test/Lexer/case-insensitive-system-include.c b/clang/test/Lexer/case-insensitive-system-include.c
new file mode 100644
index 00000000000..9d5289cda2d
--- /dev/null
+++ b/clang/test/Lexer/case-insensitive-system-include.c
@@ -0,0 +1,10 @@
+// REQUIRES: case-insensitive-filesystem
+
+// RUN: mkdir -p %T/asystempath
+// RUN: cp %S/Inputs/case-insensitive-include.h %T/asystempath/
+// RUN: cd %T
+// RUN: %clang_cc1 -fsyntax-only %s -include %s -isystem %T/asystempath -verify -Wnonportable-system-include-path
+// RUN: %clang_cc1 -fsyntax-only -fdiagnostics-parseable-fixits %s -include %s -isystem %T/asystempath -Wnonportable-system-include-path 2>&1 | FileCheck %s
+
+#include "CASE-INSENSITIVE-INCLUDE.H" // expected-warning {{non-portable path}}
+// CHECK: fix-it:"{{.*}}":{[[@LINE-1]]:10-[[@LINE-1]]:38}:"\"case-insensitive-include.h\""
OpenPOWER on IntegriCloud