We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 613e545 commit 7801adfCopy full SHA for 7801adf
test/Interop/Cxx/exceptions/trap-on-exception-execution.swift
@@ -67,4 +67,25 @@ TrapOnExecutionTestSuite.test("TestTemplateBoolDependentNoExceptMethod") {
67
v.dependentNoExceptMethod()
68
}
69
70
+protocol MethodProtocol {
71
+ func method(_ x: CInt) -> CInt
72
+}
73
+
74
+extension TestClass: MethodProtocol {
75
76
77
+TrapOnExecutionTestSuite.test("TestProtocolConformanceThunkInvoke") {
78
+ let v = TestClass()
79
+ let p: MethodProtocol = v
80
+ expectCrashLater()
81
+ let _ = p.method(2)
82
83
84
+TrapOnExecutionTestSuite.test("TestClassWithSubscript") {
85
+ let v = ClassWithSubscript()
86
+ expectEqual(v[0], 0)
87
88
+ let _ = v[1]
89
90
91
runAllTests()
0 commit comments