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
87 lines
3.6 KiB
C++
87 lines
3.6 KiB
C++
// It is annoying to handle different slash direction
|
|
// in Windows and Linux. So we disable the test on Windows
|
|
// here.
|
|
// REQUIRES: !system-windows
|
|
// On AIX, the default output for `-c` may be `.s` instead of `.o`,
|
|
// which makes the test fail. So disable the test on AIX.
|
|
// UNSUPPORTED: system-aix
|
|
//
|
|
// RUN: rm -rf %t && split-file %s %t && cd %t
|
|
//
|
|
// RUN: %clang -std=c++20 Hello.cppm -fmodule-output=Hello.pcm \
|
|
// RUN: -fexperimental-modules-reduced-bmi -c -o Hello.o -### 2>&1 | FileCheck Hello.cppm
|
|
//
|
|
// RUN: %clang -std=c++20 Hello.cppm \
|
|
// RUN: -fexperimental-modules-reduced-bmi -c -o Hello.o -### 2>&1 | \
|
|
// RUN: FileCheck Hello.cppm --check-prefix=CHECK-UNSPECIFIED
|
|
//
|
|
// RUN: %clang -std=c++20 Hello.cppm \
|
|
// RUN: -fexperimental-modules-reduced-bmi -c -### 2>&1 | \
|
|
// RUN: FileCheck Hello.cppm --check-prefix=CHECK-NO-O
|
|
//
|
|
// RUN: %clang -std=c++20 Hello.cppm \
|
|
// RUN: -fexperimental-modules-reduced-bmi -c -o AnotherName.o -### 2>&1 | \
|
|
// RUN: FileCheck Hello.cppm --check-prefix=CHECK-ANOTHER-NAME
|
|
//
|
|
// RUN: %clang -std=c++20 Hello.cppm --precompile -fexperimental-modules-reduced-bmi \
|
|
// RUN: -o Hello.full.pcm -### 2>&1 | FileCheck Hello.cppm \
|
|
// RUN: --check-prefix=CHECK-EMIT-MODULE-INTERFACE
|
|
//
|
|
// RUN: %clang -std=c++20 Hello.cc -fexperimental-modules-reduced-bmi -Wall -Werror \
|
|
// RUN: -c -o Hello.o -### 2>&1 | FileCheck Hello.cc
|
|
//
|
|
// RUN: %clang -std=c++20 Hello.cppm -fmodule-output=Hello.pcm \
|
|
// RUN: -fmodules-reduced-bmi -c -o Hello.o -### 2>&1 | FileCheck Hello.cppm
|
|
//
|
|
// RUN: %clang -std=c++20 Hello.cppm \
|
|
// RUN: -fmodules-reduced-bmi -c -o Hello.o -### 2>&1 | \
|
|
// RUN: FileCheck Hello.cppm --check-prefix=CHECK-UNSPECIFIED
|
|
//
|
|
// RUN: %clang -std=c++20 Hello.cppm \
|
|
// RUN: -fmodules-reduced-bmi -c -### 2>&1 | \
|
|
// RUN: FileCheck Hello.cppm --check-prefix=CHECK-NO-O
|
|
//
|
|
// RUN: %clang -std=c++20 Hello.cppm \
|
|
// RUN: -fmodules-reduced-bmi -c -o AnotherName.o -### 2>&1 | \
|
|
// RUN: FileCheck Hello.cppm --check-prefix=CHECK-ANOTHER-NAME
|
|
//
|
|
// RUN: %clang -std=c++20 Hello.cppm --precompile -fmodules-reduced-bmi \
|
|
// RUN: -o Hello.full.pcm -### 2>&1 | FileCheck Hello.cppm \
|
|
// RUN: --check-prefix=CHECK-EMIT-MODULE-INTERFACE
|
|
//
|
|
// RUN: %clang -std=c++20 %t/Hello.cppm --precompile -fmodules-reduced-bmi \
|
|
// RUN: -o %t/Hello.pcm -### 2>&1 | FileCheck %t/Hello.cppm \
|
|
// RUN: --check-prefix=CHECK-OVERRIDE-WARN
|
|
//
|
|
// RUN: %clang -std=c++20 Hello.cc -fmodules-reduced-bmi -Wall -Werror \
|
|
// RUN: -c -o Hello.o -### 2>&1 | FileCheck Hello.cc
|
|
//
|
|
// RUN: %clang -std=c++20 Hello.cppm -fmodule-output=Hello.pcm -c -o Hello.o \
|
|
// RUN: -Wno-missing-reduced-bmi -### 2>&1 | FileCheck Hello.cppm -check-prefix=NO_WARN
|
|
//
|
|
// RUN: %clang -std=c++20 Hello.cppm --precompile -o Hello.pcm \
|
|
// RUN: -fno-modules-reduced-bmi -Wno-missing-reduced-bmi -### 2>&1 | \
|
|
// RUN: FileCheck Hello.cppm -check-prefix=NO_WARN
|
|
|
|
//--- Hello.cppm
|
|
export module Hello;
|
|
|
|
// Test that we won't generate the emit-module-interface as 2 phase compilation model.
|
|
// CHECK-NOT: -emit-module-interface
|
|
// CHECK: "-fmodules-reduced-bmi"
|
|
|
|
// CHECK-UNSPECIFIED: -fmodule-output={{.*}}Hello.pcm
|
|
// CHECK-NO-O: -fmodule-output={{.*}}Hello.pcm
|
|
// CHECK-ANOTHER-NAME: -fmodule-output={{.*}}AnotherName.pcm
|
|
|
|
// With `-emit-module-interface` specified, we should still see the `-emit-module-interface`
|
|
// flag.
|
|
// CHECK-EMIT-MODULE-INTERFACE: -emit-module-interface
|
|
// CHECK-OVERRIDE-WARN: implicit output of reduced BMI{{.*}}-Wreduced-bmi-output-overrided
|
|
|
|
// NO_WARN-NOT: warning
|
|
|
|
//--- Hello.cc
|
|
|
|
// CHECK-NOT: "-fmodules-reduced-bmi"
|