aboutsummaryrefslogtreecommitdiff
path: root/test/Lexer/case-insensitive-system-include.c
blob: 9d5289cda2da2e6f3826e216c908812894ec4fed (plain) (blame)
1
2
3
4
5
6
7
8
9
10
// 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\""