1 // UNSUPPORTED: system-windows
2 // RUN: %clang -E -ffile-prefix-map=%p=/UNLIKELY_PATH/empty -c -o - %s | FileCheck %s
3 // RUN: %clang -E -fmacro-prefix-map=%p=/UNLIKELY_PATH/empty -c -o - %s | FileCheck %s
4 // RUN: %clang -E -fmacro-prefix-map=%p=/UNLIKELY_PATH=empty -c -o - %s | FileCheck %s -check-prefix CHECK-EVIL
5 // RUN: %clang -E -fmacro-prefix-map=%p/= -c -o - %s | FileCheck %s --check-prefix CHECK-REMOVE
8 #include "Inputs/include-file-test/file_test.h"
10 // CHECK: filename: "/UNLIKELY_PATH/empty/file_test.c"
11 // CHECK: filename: "/UNLIKELY_PATH/empty/Inputs/include-file-test/file_test.h"
12 // CHECK: basefile: "/UNLIKELY_PATH/empty/file_test.c"
13 // CHECK-NOT: filename:
15 // CHECK-EVIL: filename: "/UNLIKELY_PATH=empty/file_test.c"
16 // CHECK-EVIL: filename: "/UNLIKELY_PATH=empty/Inputs/include-file-test/file_test.h"
17 // CHECK-EVIL: basefile: "/UNLIKELY_PATH=empty/file_test.c"
18 // CHECK-EVIL-NOT: filename:
20 // CHECK-REMOVE: filename: "file_test.c"
21 // CHECK-REMOVE: filename: "Inputs/include-file-test/file_test.h"
22 // CHECK-REMOVE: basefile: "file_test.c"
23 // CHECK-REMOVE-NOT: filename: