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
72 lines
1.6 KiB
C++
72 lines
1.6 KiB
C++
// RUN: %clang_cc1 -std=c++20 -triple=x86_64-windows-msvc -Wno-defaulted-function-deleted -fms-compatibility -fms-extensions -emit-llvm %s -o - | FileCheck %s
|
|
|
|
namespace CWG2369 {
|
|
|
|
namespace Regression1 {
|
|
|
|
template <class, class Up>
|
|
using compare_three_way_result_t = Up::type;
|
|
|
|
struct sfinae_assign_base {};
|
|
|
|
template <class Tp>
|
|
concept is_derived_from_optional =
|
|
requires(Tp param) { []<class Up>(Up) {}(param); };
|
|
|
|
template <class Tp, class Up>
|
|
requires(is_derived_from_optional<Up> && []<class W>(W) { return true; }(Up()))
|
|
compare_three_way_result_t<Tp, Up> operator<=>(Tp, Up);
|
|
|
|
struct RuntimeModeArgs {
|
|
auto operator<=>(const RuntimeModeArgs &) const = default;
|
|
sfinae_assign_base needs_admin;
|
|
};
|
|
|
|
RuntimeModeArgs foo() {
|
|
return {};
|
|
}
|
|
|
|
// CHECK: ?foo@Regression1@CWG2369@@YA?AURuntimeModeArgs@12@XZ
|
|
|
|
} // namespace Regression1
|
|
|
|
namespace Regression2 {
|
|
|
|
template <class _Tp>
|
|
constexpr _Tp * __to_address(_Tp *) {
|
|
return nullptr;
|
|
}
|
|
|
|
template <class _Ip>
|
|
concept contiguous_iterator = requires(_Ip __i) { __to_address(__i); };
|
|
|
|
struct basic_string_view {
|
|
template <contiguous_iterator _It>
|
|
basic_string_view(_It, _It);
|
|
};
|
|
|
|
const char *str;
|
|
void sv() { basic_string_view(str, str); }
|
|
|
|
void m_fn2() {
|
|
const char __trans_tmp_1 = *__to_address(&__trans_tmp_1);
|
|
}
|
|
|
|
// CHECK: define {{.*}} @"??$__to_address@$$CBD@Regression2@CWG2369@@YAPEBDPEBD@Z"
|
|
|
|
} // namespace Regression2
|
|
|
|
}
|
|
|
|
namespace GH147650 {
|
|
|
|
template <int> int b;
|
|
template <int b>
|
|
void f()
|
|
requires requires { [] { (void)b; }; } {}
|
|
void test() {
|
|
f<42>();
|
|
}
|
|
// CHECK-LABEL:define {{.*}} void @"??$f@$0CK@@GH147650@@YAXXZ"()
|
|
}
|