xref: /llvm-project/clang/test/Lexer/case-insensitive-include-absolute.c (revision 853b13342a131e06d61293ec6e840642054c6c85)
1f0691bcdSJan Svoboda // REQUIRES: case-insensitive-filesystem
2f0691bcdSJan Svoboda 
3f0691bcdSJan Svoboda // RUN: rm -rf %t && split-file %s %t
4*853b1334SJan Svoboda // RUN: sed "s|DIR|%{/t:real}|g" %t/tu.c.in > %t/tu.c
5*853b1334SJan Svoboda // RUN: %clang_cc1 -fsyntax-only %t/tu.c 2>&1 | FileCheck %s -DDIR=%{/t:real}
6f0691bcdSJan Svoboda 
7f0691bcdSJan Svoboda //--- header.h
8f0691bcdSJan Svoboda //--- tu.c.in
9f0691bcdSJan Svoboda #import "DIR/Header.h"
10f0691bcdSJan Svoboda // CHECK:      tu.c:1:9: warning: non-portable path to file '"[[DIR]]/header.h"'; specified path differs in case from file name on disk [-Wnonportable-include-path]
11f0691bcdSJan Svoboda // CHECK-NEXT:    1 | #import "[[DIR]]/Header.h"
12f0691bcdSJan Svoboda // CHECK-NEXT:      |         ^~~~~~~~~~~~~~~~~~
13f0691bcdSJan Svoboda // CHECK-NEXT:      |         "[[DIR]]/header.h"
14