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
74 lines
2.7 KiB
C++
74 lines
2.7 KiB
C++
// RUN: %clang_cc1 -triple powerpc-unknown-aix -emit-llvm -o - -x c++ %s | \
|
|
// RUN: FileCheck -check-prefix=VISIBILITY-IR %s
|
|
|
|
// RUN: %clang_cc1 -triple powerpc-unknown-aix -emit-llvm -round-trip-args -o - -x c++ %s | \
|
|
// RUN: FileCheck -check-prefix=VISIBILITY-IR %s
|
|
|
|
// RUN: %clang_cc1 -triple powerpc-unknown-aix -mignore-xcoff-visibility -fvisibility=default -emit-llvm -o - -x c++ %s | \
|
|
// RUN: FileCheck -check-prefix=NOVISIBILITY-IR %s
|
|
|
|
// RUN: %clang_cc1 -triple powerpc-unknown-aix -mignore-xcoff-visibility -fvisibility=default -emit-llvm -round-trip-args -o - -x c++ %s | \
|
|
// RUN: FileCheck -check-prefix=NOVISIBILITY-IR %s
|
|
|
|
// RUN: %clang_cc1 -triple powerpc-unknown-aix -fvisibility=default -emit-llvm -o - -x c++ %s | \
|
|
// RUN: FileCheck -check-prefix=VISIBILITY-IR %s
|
|
|
|
// RUN: %clang_cc1 -triple powerpc-unknown-aix -fvisibility=default -round-trip-args -emit-llvm -o - -x c++ %s | \
|
|
// RUN: FileCheck -check-prefix=VISIBILITY-IR %s
|
|
|
|
__attribute__((visibility("hidden"))) void foo_h(int *p) {
|
|
(*p)++;
|
|
}
|
|
|
|
__attribute__((visibility("protected"))) int b;
|
|
|
|
extern __attribute__((visibility("hidden"))) void zoo_extern_h(void);
|
|
|
|
void (*foo_p)(void) = zoo_extern_h;
|
|
|
|
__attribute__((visibility("protected"))) void bar() {
|
|
foo_h(&b);
|
|
foo_p();
|
|
}
|
|
|
|
class TestClass {
|
|
public:
|
|
__attribute__((__visibility__("hidden"))) int value() const noexcept { return 0; }
|
|
};
|
|
|
|
int main() {
|
|
TestClass TC;
|
|
return TC.value();
|
|
}
|
|
|
|
template <class T>
|
|
class basic {
|
|
public:
|
|
__attribute__((__visibility__("protected"))) int getdata() { return 1; }
|
|
};
|
|
|
|
template class basic<int>;
|
|
|
|
#pragma GCC visibility push(hidden)
|
|
int pramb;
|
|
void prambar() {}
|
|
#pragma GCC visibility pop
|
|
|
|
// VISIBILITY-IR: @b = protected global i32 0
|
|
// VISIBILITY-IR: @pramb = hidden global i32 0
|
|
// VISIBILITY-IR: define hidden void @_Z5foo_hPi(ptr noundef %p)
|
|
// VISIBILITY-IR: declare hidden void @_Z12zoo_extern_hv()
|
|
// VISIBILITY-IR: define protected void @_Z3barv()
|
|
// VISIBILITY-IR: define linkonce_odr hidden noundef i32 @_ZNK9TestClass5valueEv(ptr {{[^,]*}} %this)
|
|
// VISIBILITY-IR: define weak_odr protected noundef i32 @_ZN5basicIiE7getdataEv(ptr {{[^,]*}} %this)
|
|
// VISIBILITY-IR: define hidden void @_Z7prambarv()
|
|
|
|
// NOVISIBILITY-IR: @b = global i32 0
|
|
// NOVISIBILITY-IR: @pramb = global i32 0
|
|
// NOVISIBILITY-IR: define void @_Z5foo_hPi(ptr noundef %p)
|
|
// NOVISIBILITY-IR: declare void @_Z12zoo_extern_hv()
|
|
// NOVISIBILITY-IR: define void @_Z3barv()
|
|
// NOVISIBILITY-IR: define linkonce_odr noundef i32 @_ZNK9TestClass5valueEv(ptr {{[^,]*}} %this)
|
|
// NOVISIBILITY-IR: define weak_odr noundef i32 @_ZN5basicIiE7getdataEv(ptr {{[^,]*}} %this)
|
|
// NOVISIBILITY-IR: define void @_Z7prambarv()
|