[interop] fix test failure after c4cc9e8e42

rdar://107445101
This commit is contained in:
Alex Lorenz
2023-03-30 16:34:50 -07:00
parent c4cc9e8e42
commit a854550fa2
2 changed files with 6 additions and 0 deletions

View File

@@ -67,6 +67,9 @@ static void writePtrauthPrologue(raw_ostream &os) {
os << "# ifndef __ptrauth_swift_value_witness_function_pointer\n";
os << "# define __ptrauth_swift_value_witness_function_pointer(x)\n";
os << "# endif\n";
os << "# ifndef __ptrauth_swift_class_method_pointer\n";
os << "# define __ptrauth_swift_class_method_pointer(x)\n";
os << "# endif\n";
});
os << "#endif\n";
});

View File

@@ -47,6 +47,9 @@
// CHECK-NEXT: # ifndef __ptrauth_swift_value_witness_function_pointer
// CHECK-NEXT: # define __ptrauth_swift_value_witness_function_pointer(x)
// CHECK-NEXT: # endif
// CHECK-NEXT: # ifndef __ptrauth_swift_class_method_pointer
// CHECK-NEXT: # define __ptrauth_swift_class_method_pointer(x)
// CHECK-NEXT: # endif
// CHECK-NEXT: #pragma clang diagnostic pop
// CHECK-NEXT: #endif
// CHECK-NEXT: #endif