brintos

brintos / llvm-project-archived public Read only

0
0
Text · 577 B · ef9e131 Raw
14 lines · c
1// REQUIRES: case-insensitive-filesystem2 3// RUN: rm -rf %t && split-file %s %t4// RUN: sed "s|DIR|%{/t:real}|g" %t/tu.c.in > %t/tu.c5// RUN: %clang_cc1 -fsyntax-only %t/tu.c 2>&1 | FileCheck %s -DDIR=%{/t:real}6 7//--- header.h8//--- tu.c.in9#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