CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
51 lines
2.7 KiB
C
51 lines
2.7 KiB
C
// UNSUPPORTED: system-windows, system-cygwin
|
|
// 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
|
|
// RUN: %clang -E -fno-file-reproducible -fmacro-prefix-map=%p/= -target x86_64-pc-win32 -c -o - %s | FileCheck %s --check-prefix CHECK-REMOVE
|
|
// RUN: %clang -E -fno-file-reproducible -ffile-prefix-map=%p/= -target x86_64-pc-win32 -c -o - %s | FileCheck %s --check-prefix CHECK-REMOVE
|
|
// RUN: %clang -E -fmacro-prefix-map=%p/= -target x86_64-pc-win32 -c -o - %s | FileCheck %s --check-prefix CHECK-WINDOWS
|
|
// RUN: %clang -E -ffile-prefix-map=%p/= -target x86_64-pc-win32 -c -o - %s | FileCheck %s --check-prefix CHECK-WINDOWS
|
|
// RUN: %clang -E -ffile-reproducible -target x86_64-pc-win32 -c -o - %s | FileCheck %s --check-prefix CHECK-WINDOWS-REPRODUCIBLE
|
|
// RUN: %clang -E -ffile-reproducible -target x86_64-pc-linux-gnu -c -o - %s | FileCheck %s --check-prefix CHECK-LINUX-REPRODUCIBLE
|
|
|
|
/// Clang-format wants to do something unreasonable to this file.
|
|
// clang-format off
|
|
|
|
filename: __FILE__
|
|
|
|
/// This line tests that the __FILE__ in included header is canonicalized
|
|
/// (has "./" removed).
|
|
#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:
|
|
|
|
// CHECK-WINDOWS: filename: "file_test.c"
|
|
// CHECK-WINDOWS: filename: "Inputs\\include-file-test\\file_test.h"
|
|
// CHECK-WINDOWS: basefile: "file_test.c"
|
|
// CHECK-WINDOWS-NOT: filename:
|
|
|
|
// CHECK-WINDOWS-REPRODUCIBLE: filename: "{{.*}}\\file_test.c"
|
|
// CHECK-WINDOWS-REPRODUCIBLE: filename: "{{.*}}\\Inputs\\include-file-test\\file_test.h"
|
|
// CHECK-WINDOWS-REPRODUCIBLE: basefile: "{{.*}}\\file_test.c"
|
|
// CHECK-WINDOWS-REPRODUCIBLE-NOT: filename:
|
|
|
|
// CHECK-LINUX-REPRODUCIBLE: filename: "{{.*}}/file_test.c"
|
|
// CHECK-LINUX-REPRODUCIBLE: filename: "{{.*}}/Inputs/include-file-test/file_test.h"
|
|
// CHECK-LINUX-REPRODUCIBLE: basefile: "{{.*}}/file_test.c"
|
|
// CHECK-LINUX-REPRODUCIBLE-NOT: filename:
|