llvm-for-llvmta/tools/clang/test/Lexer/case-insensitive-system-inc...

11 lines
595 B
C
Raw Normal View History

2022-04-25 13:02:35 +02:00
// 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\""