Changeset View
Changeset View
Standalone View
Standalone View
clang/test/CodeGenCXX/copy-constructor-synthesis-2.cpp
Show All 18 Lines | |||||
void pr23373_g(PR23373 &a, PR23373 &b) { a = b; } | void pr23373_g(PR23373 &a, PR23373 &b) { a = b; } | ||||
// CHECK-LABEL: define {{.*}} @_Z9pr23373_g | // CHECK-LABEL: define {{.*}} @_Z9pr23373_g | ||||
// CHECK: call void @llvm.memcpy.p0i8.p0i8.[[W]]({{.*}}, [[W]] 4, i32 4, i1 false) | // CHECK: call void @llvm.memcpy.p0i8.p0i8.[[W]]({{.*}}, [[W]] 4, i32 4, i1 false) | ||||
struct A { virtual void a(); }; | struct A { virtual void a(); }; | ||||
A x(A& y) { return y; } | A x(A& y) { return y; } | ||||
// CHECK: define linkonce_odr {{.*}} @_ZN1AC1ERKS_(%struct.A* {{.*}}%this, %struct.A* dereferenceable({{[0-9]+}})) unnamed_addr | // CHECK: define linkonce_odr {{.*}} @_ZN1AC1ERKS_(%struct.A* {{.*}}%this, %struct.A* dereferenceable({{[0-9]+}})) unnamed_addr | ||||
// CHECK: store i32 (...)** bitcast (i8** getelementptr inbounds ({ [3 x i8*] }, { [3 x i8*] }* @_ZTV1A, i32 0, i32 0, i32 2) to i32 (...)**) | // CHECK: store i32 (...)** bitcast (i8** getelementptr inbounds ({ [3 x i8*] }, { [3 x i8*] }* @_ZTV1A, i32 0, inrange i32 0, i32 2) to i32 (...)**) |