You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
1.1 KiB
24 lines
1.1 KiB
// UNSUPPORTED: system-windows
|
|
// RUN: %clang -E -ffile-prefix-map=%p=/UNLIKELY_PATH/empty -c -o - %s | FileCheck %s
|
|
// RUN: %clang -E -fmacro-prefix-map=%p=/UNLIKELY_PATH/empty -c -o - %s | FileCheck %s
|
|
// RUN: %clang -E -fmacro-prefix-map=%p=/UNLIKELY_PATH=empty -c -o - %s | FileCheck %s -check-prefix CHECK-EVIL
|
|
// RUN: %clang -E -fmacro-prefix-map=%p/= -c -o - %s | FileCheck %s --check-prefix CHECK-REMOVE
|
|
|
|
filename: __FILE__
|
|
#include "Inputs/include-file-test/file_test.h"
|
|
|
|
// CHECK: filename: "/UNLIKELY_PATH/empty/file_test.c"
|
|
// CHECK: filename: "/UNLIKELY_PATH/empty/Inputs/include-file-test/file_test.h"
|
|
// CHECK: basefile: "/UNLIKELY_PATH/empty/file_test.c"
|
|
// CHECK-NOT: filename:
|
|
|
|
// CHECK-EVIL: filename: "/UNLIKELY_PATH=empty/file_test.c"
|
|
// CHECK-EVIL: filename: "/UNLIKELY_PATH=empty/Inputs/include-file-test/file_test.h"
|
|
// CHECK-EVIL: basefile: "/UNLIKELY_PATH=empty/file_test.c"
|
|
// CHECK-EVIL-NOT: filename:
|
|
|
|
// CHECK-REMOVE: filename: "file_test.c"
|
|
// CHECK-REMOVE: filename: "Inputs/include-file-test/file_test.h"
|
|
// CHECK-REMOVE: basefile: "file_test.c"
|
|
// CHECK-REMOVE-NOT: filename:
|