1 // Most Microsoft-specific testing should go in case-insensitive-include-ms.c
2 // This file should only include code that really needs a Windows host OS to
5 // Note: We must use the real path here, because the logic to detect case
6 // mismatches must resolve the real path to figure out the original casing.
7 // If we use %t and we are on a substitute drive S: mapping to C:\subst,
8 // then we will compare "S:\test.dir\FOO.h" to "C:\subst\test.dir\foo.h"
9 // and avoid emitting the diagnostic because the structure is different.
11 // REQUIRES: system-windows
12 // RUN: mkdir -p %t.dir
13 // RUN: touch %t.dir/foo.h
14 // RUN: not %clang_cl /FI \\?\%{t:real}.dir\FOO.h /WX -fsyntax-only %s 2>&1 | FileCheck %s
16 // CHECK: non-portable path to file '"\\?\