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
82 lines
3.0 KiB
C++
82 lines
3.0 KiB
C++
// RUN: %clang_cc1 -triple x86_64-pc-linux -mrelocation-model static -O1 -disable-llvm-passes -emit-llvm %s -o - | FileCheck --check-prefix=STATIC %s
|
|
// RUN: %clang_cc1 -triple x86_64-pc-linux -mrelocation-model static -fno-plt -O1 -disable-llvm-passes -emit-llvm %s -o - | FileCheck --check-prefix=NOPLT %s
|
|
// RUN: %clang_cc1 -triple x86_64-w64-mingw32 -O1 -disable-llvm-passes -emit-llvm %s -o - | FileCheck --check-prefix=MINGW %s
|
|
// RUN: %clang_cc1 -triple x86_64-pc-cygwin -O1 -disable-llvm-passes -emit-llvm %s -o - | FileCheck --check-prefix=MINGW %s
|
|
|
|
// STATIC-DAG: @_ZTV1C = linkonce_odr dso_local constant
|
|
// STATIC-DAG: @_ZTS1C = linkonce_odr dso_local constant
|
|
// STATIC-DAG: @_ZTI1C = linkonce_odr dso_local constant
|
|
// STATIC-DAG: @_ZZ14useStaticLocalvE3obj = linkonce_odr dso_local global
|
|
// STATIC-DAG: @_ZGVZN5guard1gEvE1a = linkonce_odr dso_local global
|
|
// STATIC-DAG: define dso_local void @_ZN1CC2Ev(
|
|
// STATIC-DAG: define dso_local void @_ZN1CC1Ev(
|
|
// STATIC-DAG: define linkonce_odr dso_local void @_ZN1C3fooEv(
|
|
|
|
// NOPLT-DAG: @_ZTV1C = linkonce_odr dso_local constant
|
|
// NOPLT-DAG: @_ZTS1C = linkonce_odr dso_local constant
|
|
// NOPLT-DAG: @_ZTI1C = linkonce_odr dso_local constant
|
|
// NOPLT-DAG: @_ZZ14useStaticLocalvE3obj = linkonce_odr dso_local global
|
|
// NOPLT-DAG: @_ZGVZN5guard1gEvE1a = linkonce_odr dso_local global
|
|
// NOPLT-DAG: define dso_local void @_ZN1CC2Ev(
|
|
// NOPLT-DAG: define dso_local void @_ZN1CC1Ev(
|
|
// NOPLT-DAG: define linkonce_odr dso_local void @_ZN1C3fooEv(
|
|
|
|
// MINGW-DAG: @_ZTV1C = linkonce_odr dso_local constant
|
|
// MINGW-DAG: @_ZTS1C = linkonce_odr dso_local constant
|
|
// MINGW-DAG: @_ZTI1C = linkonce_odr dso_local constant
|
|
// MINGW-DAG: @_ZZ14useStaticLocalvE3obj = linkonce_odr dso_local global
|
|
// MINGW-DAG: @_ZGVZN5guard1gEvE1a = linkonce_odr dso_local global
|
|
// MINGW-DAG: define dso_local void @_ZN1CC2Ev(
|
|
// MINGW-DAG: define dso_local void @_ZN1CC1Ev(
|
|
// MINGW-DAG: define linkonce_odr dso_local void @_ZN1C3fooEv(
|
|
|
|
struct C {
|
|
C();
|
|
virtual void foo() {}
|
|
};
|
|
C::C() {}
|
|
|
|
struct HasVTable {
|
|
virtual void f();
|
|
};
|
|
inline HasVTable &useStaticLocal() {
|
|
static HasVTable obj;
|
|
return obj;
|
|
}
|
|
void useit() {
|
|
useStaticLocal();
|
|
}
|
|
|
|
namespace guard {
|
|
int f();
|
|
inline int g() {
|
|
static int a = f();
|
|
return a;
|
|
}
|
|
int h() {
|
|
return g();
|
|
}
|
|
} // namespace guard
|
|
|
|
|
|
// STATIC-DAG: @_ZN5test23barIiE1xE = available_externally dso_local constant i32
|
|
// STATIC-DAG: define available_externally dso_local void @_ZN5test23barIcEC1Ev(
|
|
// NOPLT-DAG: @_ZN5test23barIiE1xE = available_externally dso_local constant i32
|
|
// NOPLT-DAG: define available_externally void @_ZN5test23barIcEC1Ev(
|
|
// MINGW-DAG: @_ZN5test23barIiE1xE = available_externally constant i32
|
|
// MINGW-DAG: define available_externally dso_local void @_ZN5test23barIcEC1Ev(
|
|
namespace test2 {
|
|
void foo();
|
|
template <typename T>
|
|
struct bar {
|
|
virtual void zed();
|
|
static const int x = 42;
|
|
bar() { foo(); }
|
|
};
|
|
extern template class bar<char>;
|
|
bar<char> abc;
|
|
const int *getX() {
|
|
return &bar<int>::x;
|
|
}
|
|
} // namespace test2
|