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
31 lines
997 B
C++
31 lines
997 B
C++
// RUN: %clang_cc1 -triple %itanium_abi_triple -emit-llvm -o - %s | FileCheck %s
|
|
|
|
// CHECK: @llvm.global_ctors
|
|
// CHECK-SAME: i32 65535, ptr @_ZN3Foo3fooEv
|
|
// CHECK-SAME: i32 101, ptr @_Z22template_dependent_cxxILi101EEvv
|
|
// CHECK-SAME: i32 102, ptr @_Z22template_dependent_gnuILi102EEvv
|
|
// CHECK-SAME: i32 103, ptr @_Z1fv
|
|
// CHECK-SAME: i32 104, ptr @_Z23template_dependent_nttpIiLi104EEvv
|
|
|
|
// PR6521
|
|
void bar();
|
|
struct Foo {
|
|
// CHECK-LABEL: define linkonce_odr {{.*}}void @_ZN3Foo3fooEv
|
|
static void foo() __attribute__((constructor)) {
|
|
bar();
|
|
}
|
|
};
|
|
|
|
|
|
template <int P>
|
|
[[gnu::constructor(P)]] void template_dependent_cxx() {}
|
|
template <int P>
|
|
__attribute__((constructor(P))) void template_dependent_gnu() {}
|
|
template <typename T, int P = sizeof(T) * 26>
|
|
[[gnu::constructor(P)]] void template_dependent_nttp() {}
|
|
|
|
template void template_dependent_cxx<101>();
|
|
template void template_dependent_gnu<102>();
|
|
[[gnu::constructor(103)]] void f() {}
|
|
template void template_dependent_nttp<int>();
|