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
85 lines
1.4 KiB
C++
85 lines
1.4 KiB
C++
// RUN: %clang_cc1 -emit-llvm -triple x86_64-apple-darwin9 -o - %s | FileCheck %s
|
|
|
|
struct C {
|
|
void f();
|
|
void g(int, ...);
|
|
};
|
|
|
|
// CHECK-LABEL: define{{.*}} void @_ZN1C1fEv
|
|
void C::f() {
|
|
}
|
|
|
|
// CHECK-LABEL: define{{.*}} void @_Z5test1v
|
|
void test1() {
|
|
C c;
|
|
|
|
// CHECK: call void @_ZN1C1fEv
|
|
c.f();
|
|
|
|
// CHECK: call void (ptr, i32, ...) @_ZN1C1gEiz
|
|
c.g(1, 2, 3);
|
|
}
|
|
|
|
|
|
struct S {
|
|
inline S() { }
|
|
inline ~S() { }
|
|
|
|
void f_inline1() { }
|
|
inline void f_inline2() { }
|
|
|
|
static void g() { }
|
|
static void f();
|
|
|
|
virtual void v() {}
|
|
};
|
|
|
|
// CHECK-LABEL: define{{.*}} void @_ZN1S1fEv
|
|
void S::f() {
|
|
}
|
|
|
|
void test2() {
|
|
S s;
|
|
|
|
s.f_inline1();
|
|
s.f_inline2();
|
|
|
|
S::g();
|
|
}
|
|
|
|
// S::S()
|
|
// CHECK: define linkonce_odr void @_ZN1SC1Ev{{.*}} unnamed_addr
|
|
|
|
// S::f_inline1()
|
|
// CHECK-LABEL: define linkonce_odr void @_ZN1S9f_inline1Ev
|
|
|
|
// S::f_inline2()
|
|
// CHECK-LABEL: define linkonce_odr void @_ZN1S9f_inline2Ev
|
|
|
|
// S::g()
|
|
// CHECK-LABEL: define linkonce_odr void @_ZN1S1gEv
|
|
|
|
// S::~S()
|
|
// CHECK: define linkonce_odr void @_ZN1SD1Ev{{.*}} unnamed_addr
|
|
|
|
struct T {
|
|
T operator+(const T&);
|
|
};
|
|
|
|
// CHECK-LABEL: define{{.*}} void @_Z5test3v
|
|
void test3() {
|
|
T t1, t2;
|
|
|
|
// CHECK: call void @_ZN1TplERKS_
|
|
T result = t1 + t2;
|
|
}
|
|
|
|
// S::S()
|
|
// CHECK: define linkonce_odr void @_ZN1SC2Ev{{.*}} unnamed_addr
|
|
|
|
// S::v()
|
|
// CHECK: define linkonce_odr void @_ZN1S1vEv{{.*}}unnamed_addr
|
|
|
|
// S::~S()
|
|
// CHECK: define linkonce_odr void @_ZN1SD2Ev{{.*}} unnamed_addr
|