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
95 lines
2.2 KiB
C++
95 lines
2.2 KiB
C++
// RUN: rm -rf %t
|
|
// RUN: mkdir -p %t
|
|
// RUN: split-file %s %t
|
|
// RUN: cd %t
|
|
//
|
|
// DEFINE: %{common-flags}= -I %t -isystem %t -xc++ -std=c++20 -fmodules
|
|
//
|
|
// RUN: mkdir -p %t/b2
|
|
// RUN: mkdir -p %t/b1
|
|
// RUN: %clang_cc1 %{common-flags} -emit-module -fmodule-name=module_d \
|
|
// RUN: d.cppmap -o d.pcm
|
|
// RUN: %clang_cc1 %{common-flags} -emit-module -fmodule-name=module_a \
|
|
// RUN: -fmodule-file=d.pcm a.cppmap -o a.pcm
|
|
// RUN: %clang_cc1 %{common-flags} -emit-module -fmodule-name=module_b2 \
|
|
// RUN: -fmodule-file=a.pcm b2/b.cppmap -o b2/b.pcm
|
|
// RUN: %clang_cc1 %{common-flags} -emit-module -fmodule-name=module_b1 \
|
|
// RUN: -fmodule-file=b2/b.pcm b1/b.cppmap -o b1/b.pcm
|
|
// RUN: %clang_cc1 %{common-flags} -emit-module -fmodule-name=module_f \
|
|
// RUN: -fmodule-file=b1/b.pcm f.cppmap -o f.pcm
|
|
// RUN: %clang_cc1 %{common-flags} -emit-module -fmodule-name=module_c \
|
|
// RUN: -fmodule-file=f.pcm c.cppmap -o c.pcm
|
|
// RUN: %clang_cc1 %{common-flags} -emit-module \
|
|
// RUN: -fmodule-name=module_e e.cppmap -o e.pcm
|
|
//
|
|
// RUN: %clang_cc1 %{common-flags} \
|
|
// RUN: -fmodule-file=c.pcm -fmodule-file=e.pcm \
|
|
// RUN: src.cpp -o src.pic.o
|
|
|
|
//--- invoke.h
|
|
#ifndef _LIBCPP___TYPE_TRAITS_IS_SAME_H
|
|
#define _LIBCPP___TYPE_TRAITS_IS_SAME_H
|
|
namespace std { inline namespace _LIBCPP_ABI_NAMESPACE {
|
|
template <class _Tp, class _Up>
|
|
constexpr bool is_same_v = __is_same(_Tp, _Up);
|
|
} }
|
|
#endif
|
|
|
|
//--- memory
|
|
#include <invoke.h>
|
|
namespace std { inline namespace _LIBCPP_ABI_NAMESPACE {
|
|
template <class _Tp>
|
|
using __decay_t = __decay(_Tp);
|
|
template <class _Tp>
|
|
using decay_t = __decay_t<_Tp>;
|
|
} }
|
|
|
|
//--- other.h
|
|
#include <invoke.h>
|
|
|
|
//--- a.cppmap
|
|
module "module_a" {
|
|
}
|
|
|
|
//--- b1/b.cppmap
|
|
module "module_b1" {
|
|
}
|
|
|
|
//--- b2/b.cppmap
|
|
module "module_b2" {
|
|
}
|
|
|
|
//--- c.cppmap
|
|
module "module_c" {
|
|
}
|
|
|
|
//--- d.cppmap
|
|
module "module_d" {
|
|
header "d.h"
|
|
}
|
|
|
|
//--- d.h
|
|
#include <other.h>
|
|
|
|
//--- e.cppmap
|
|
module "module_e" {
|
|
header "e.h"
|
|
}
|
|
|
|
//--- e.h
|
|
#include <memory>
|
|
|
|
//--- f.cppmap
|
|
module "module_f" {
|
|
}
|
|
|
|
//--- src.cpp
|
|
#include <d.h>
|
|
#include <memory>
|
|
template <typename T>
|
|
concept coroutine_result =
|
|
std::is_same_v<std::decay_t<T>, T>;
|
|
template <coroutine_result R>
|
|
class Co;
|
|
using T = Co<void>;
|