Skip to content

Commit 27f2886

Browse files
committed
[C++ interop] Check windows symbols.
1 parent a1b8cf1 commit 27f2886

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/ClangImporter/cxx_interop_ir.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ func namespaceManglesIntoName(arg: namespacedT) {
2222
// CHECK-LABEL: define hidden swiftcc i32 @"$s6cxx_ir12basicMethods1as5Int32VSpySo0D0VG_tF"(i8*)
2323
// CHECK: [[THIS_PTR1:%.*]] = bitcast i8* %0 to %TSo7MethodsV*
2424
// CHECK: [[THIS_PTR2:%.*]] = bitcast %TSo7MethodsV* [[THIS_PTR1]] to %class.Methods*
25-
// CHECK: [[RESULT:%.*]] = call i32 @_ZN7Methods12SimpleMethodEi(%class.Methods* [[THIS_PTR2]], i32 4)
25+
// CHECK: [[RESULT:%.*]] = call i32 @{{_ZN7Methods12SimpleMethodEi|"\?SimpleMethod@Methods@@QEAAHH@Z"}}(%class.Methods* [[THIS_PTR2]], i32 4)
2626
// CHECK: ret i32 [[RESULT]]
2727
func basicMethods(a: UnsafeMutablePointer<Methods>) -> Int32 {
2828
return a.pointee.SimpleMethod(4)
@@ -31,14 +31,14 @@ func basicMethods(a: UnsafeMutablePointer<Methods>) -> Int32 {
3131
// CHECK-LABEL: define hidden swiftcc i32 @"$s6cxx_ir17basicMethodsConst1as5Int32VSpySo0D0VG_tF"(i8*)
3232
// CHECK: [[THIS_PTR1:%.*]] = bitcast i8* %0 to %TSo7MethodsV*
3333
// CHECK: [[THIS_PTR2:%.*]] = bitcast %TSo7MethodsV* [[THIS_PTR1]] to %class.Methods*
34-
// CHECK: [[RESULT:%.*]] = call i32 @_ZNK7Methods17SimpleConstMethodEi(%class.Methods* [[THIS_PTR2]], i32 3)
34+
// CHECK: [[RESULT:%.*]] = call i32 @{{_ZNK7Methods17SimpleConstMethodEi|"\?SimpleConstMethod@Methods@@QEBAHH@Z"}}(%class.Methods* [[THIS_PTR2]], i32 3)
3535
// CHECK: ret i32 [[RESULT]]
3636
func basicMethodsConst(a: UnsafeMutablePointer<Methods>) -> Int32 {
3737
return a.pointee.SimpleConstMethod(3)
3838
}
3939

4040
// CHECK-LABEL: define hidden swiftcc i32 @"$s6cxx_ir18basicMethodsStatics5Int32VyF"()
41-
// CHECK: [[RESULT:%.*]] = call i32 @_ZN7Methods18SimpleStaticMethodEi(i32 5)
41+
// CHECK: [[RESULT:%.*]] = call i32 @{{_ZN7Methods18SimpleStaticMethodEi|"\?SimpleStaticMethod@Methods@@SAHH@Z"}}(i32 5)
4242
// CHECK: ret i32 [[RESULT]]
4343
func basicMethodsStatic() -> Int32 {
4444
return Methods.SimpleStaticMethod(5)

0 commit comments

Comments
 (0)