
D52774 fixed a bug with typo correction of includes, but didn't add a test. D65907 then broke recovery of typo correction of includes again, because it extracted the code that writes to Filename to a separate function that took the parameter not by reference. Fix that, and also don't repeat the slash normalization computation and fix both lookup and regular file name after recovery. Differential Revision: https://reviews.llvm.org/D79595
11 lines
370 B
C
11 lines
370 B
C
// Most Microsoft-specific testing should go in case-insensitive-include-ms.c
|
|
// This file should only include code that really needs a Windows host OS to
|
|
// run.
|
|
|
|
// REQUIRES: system-windows
|
|
// RUN: mkdir -p %t.dir
|
|
// RUN: touch %t.dir/foo.h
|
|
// RUN: not %clang_cl /FI\\?\%t.dir\FOO.h /WX -fsyntax-only %s 2>&1 | FileCheck %s
|
|
|
|
// CHECK: non-portable path to file '"\\?\
|