Skip to content

Commit 1e9efd4

Browse files
authored
[cxx-interop] Fix subscript-irgen test CHECK statement (#78299)
Previously the check statement did not account for attribute groups. This patch adds a glob at the end of the CHECK statement to allow trailing attribute groups, and also relaxes the pattern at the beginning. rdar://141662805
1 parent 31b6aee commit 1e9efd4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/Interop/Cxx/class/inheritance/subscript-irgen.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ let _ = testGetX()
1111

1212
// CHECK: define {{.*}}linkonce_odr{{.*}} i32 @{{(.*)(30CopyTrackedDerivedDerivedClass39__synthesizedBaseCall_operatorSubscript|__synthesizedBaseCall_operatorSubscript@CopyTrackedDerivedDerivedClass)(.*)}}(ptr {{.*}} %[[THIS_PTR:.*]], i32 {{.*}})
1313
// CHECK: %[[ADD_PTR:.*]] = getelementptr inbounds i8, ptr %{{.*}}, i{{32|64}} 4
14-
// CHECK: %[[CALL:.*]] = call {{.*}} i32 @{{.*}}CopyTrackedBaseClass{{.*}}(ptr {{.*}} %[[ADD_PTR]], i32 {{.*}})
14+
// CHECK: {{.*}}call {{.*}} i32 @{{.*}}CopyTrackedBaseClass{{.*}}(ptr {{.*}} %[[ADD_PTR]], i32 {{.*}}){{.*}}

0 commit comments

Comments
 (0)