brintos

brintos / llvm-project-archived public Read only

0
0
Text · 748 B · ed722fe Raw
17 lines · c
1// Most Microsoft-specific testing should go in case-insensitive-include-ms.c2// This file should only include code that really needs a Windows host OS to3// run.4 5// Note: We must use the real path here, because the logic to detect case6// 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.10 11// REQUIRES: system-windows12// RUN: mkdir -p %t.dir13// RUN: touch %t.dir/foo.h14// RUN: not %clang_cl /FI \\?\%{t:real}.dir\FOO.h /WX -fsyntax-only %s 2>&1 | FileCheck %s15 16// CHECK: non-portable path to file '"\\?\17