[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / Lexer / case-insensitive-include-win.c
blobed722feb3d99428d8020a12aa442fa82651c73c7
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
3 // run.
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 '"\\?\