Skip to content

Commit ac6367b

Browse files
committed
Add more context to test.
1 parent b209d67 commit ac6367b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

clang/test/CodeGenCXX/no-elide-constructors.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ class X {
1717
};
1818

1919
// CHECK-LABEL: define{{.*}} void @_Z4Testv(
20+
// CHECK-SAME: ptr {{.*}}dead_on_unwind noalias writable sret([[CLASS_X:%.*]]) align 1 [[AGG_RESULT:%.*]])
2021
X Test()
2122
{
2223
X x;
@@ -25,7 +26,8 @@ X Test()
2526
// sret argument.
2627
// CHECK-CXX98: call void @_ZN1XC1ERKS_(
2728
// CHECK-CXX11: call void @_ZN1XC1EOS_(
28-
// CHECK-CXX11-NONZEROALLOCAAS: call void @_ZN1XC1EOS_(
29+
// CHECK-CXX11-NONZEROALLOCAAS: [[TMP0:%.*]] = addrspacecast ptr addrspace(5) [[AGG_RESULT]] to ptr
30+
// CHECK-CXX11-NONZEROALLOCAAS-NEXT: call void @_ZN1XC1EOS_(ptr noundef nonnull align 1 dereferenceable(1) [[TMP0]]
2931
// CHECK-CXX98-ELIDE-NOT: call void @_ZN1XC1ERKS_(
3032
// CHECK-CXX11-ELIDE-NOT: call void @_ZN1XC1EOS_(
3133
// CHECK-CXX11-NONZEROALLOCAAS-ELIDE-NOT: call void @_ZN1XC1EOS_(

0 commit comments

Comments
 (0)