1 // REQUIRES: case-insensitive-filesystem 2 3 // RUN: rm -rf %t && split-file %s %t 4 // RUN: sed "s|DIR|%{/t:real}|g" %t/tu.c.in > %t/tu.c 5 // RUN: %clang_cc1 -fsyntax-only %t/tu.c 2>&1 | FileCheck %s -DDIR=%{/t:real} 6 7 //--- header.h 8 //--- tu.c.in 9 #import "DIR/Header.h" 10 // 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] 11 // CHECK-NEXT: 1 | #import "[[DIR]]/Header.h" 12 // CHECK-NEXT: | ^~~~~~~~~~~~~~~~~~ 13 // CHECK-NEXT: | "[[DIR]]/header.h" 14