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
76 lines
1.5 KiB
Plaintext
76 lines
1.5 KiB
Plaintext
// RUN: %clang_cc1 -fobjc-gc -triple x86_64-apple-darwin10 -fobjc-runtime=macosx-fragile-10.5 -emit-llvm -o - %s | FileCheck %s
|
|
|
|
struct A {
|
|
A();
|
|
A(const A&);
|
|
A(A&);
|
|
~A();
|
|
};
|
|
|
|
struct B {
|
|
B();
|
|
B(B&);
|
|
};
|
|
|
|
struct C {
|
|
C() {}
|
|
C(C& other, A a = A());
|
|
int i, j;
|
|
};
|
|
|
|
struct POD {
|
|
id myobjc;
|
|
int array[3][4];
|
|
};
|
|
|
|
struct D : A, B, virtual C {
|
|
D();
|
|
int scalar;
|
|
int scalar_array[2][3];
|
|
B class_member;
|
|
C class_member_array[2][3];
|
|
POD pod_array[2][3];
|
|
|
|
union {
|
|
int x;
|
|
float f[3];
|
|
};
|
|
};
|
|
|
|
void f(D d) {
|
|
D d2(d);
|
|
}
|
|
|
|
// CHECK-LABEL: define linkonce_odr void @_ZN1DC1ERS_(ptr {{[^,]*}} %this, ptr noundef nonnull align {{[0-9]+}} dereferenceable({{[0-9]+}}) %0) unnamed_addr
|
|
// CHECK: call void @_ZN1AC1Ev
|
|
// CHECK: call void @_ZN1CC2ERS_1A
|
|
// CHECK: call void @_ZN1AD1Ev
|
|
// CHECK: call void @_ZN1AC2ERS_
|
|
// CHECK: call void @_ZN1BC2ERS_
|
|
// CHECK: {{call void @llvm.memcpy.p0.p0.i64.*i64 24}}
|
|
// CHECK: call void @_ZN1BC1ERS_
|
|
// CHECK: br label
|
|
// CHECK: call void @_ZN1AC1Ev
|
|
// CHECK: call void @_ZN1CC1ERS_1A
|
|
// CHECK: call void @_ZN1AD1Ev
|
|
// CHECK: {{icmp eq.*, 3}}
|
|
// CHECK: br i1
|
|
// CHECK: {{icmp eq.*, 2}}
|
|
// CHECK: br i1
|
|
// CHECK: {{call.*@objc_memmove_collectable}}
|
|
// CHECK: {{call void @llvm.memcpy.p0.p0.i64.*i64 12}}
|
|
// CHECK: ret void
|
|
|
|
|
|
template<class T> struct X0 { void f0(T * ) { } };
|
|
template <class > struct X1 { X1( X1& , int = 0 ) { } };
|
|
struct X2 { X1<int> result; };
|
|
void test_X2()
|
|
{
|
|
typedef X2 impl;
|
|
typedef X0<impl> pimpl;
|
|
impl* i;
|
|
pimpl pdata;
|
|
pdata.f0( new impl(*i));
|
|
}
|