mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Revert "[SILGen] Fix the type of closure thunks that are passed const reference structs (#76903)" (#77309)
This reverts commit 9c44b79189.
The commit caused swift's deserialization code to crash.
rdar://138726860
This commit is contained in:
@@ -65,11 +65,12 @@ StdFunctionTestSuite.test("FunctionStringToString init from closure and pass as
|
||||
expectEqual(std.string("prefixabcabc"), res)
|
||||
}
|
||||
|
||||
StdFunctionTestSuite.test("FunctionStringToStringConstRef init from closure and pass as parameter") {
|
||||
let res = invokeFunctionTwiceConstRef(.init({ $0 + std.string("abc") }),
|
||||
std.string("prefix"))
|
||||
expectEqual(std.string("prefixabcabc"), res)
|
||||
}
|
||||
// FIXME: assertion for address-only closure params (rdar://124501345)
|
||||
//StdFunctionTestSuite.test("FunctionStringToStringConstRef init from closure and pass as parameter") {
|
||||
// let res = invokeFunctionTwiceConstRef(.init({ $0 + std.string("abc") }),
|
||||
// std.string("prefix"))
|
||||
// expectEqual(std.string("prefixabcabc"), res)
|
||||
//}
|
||||
#endif
|
||||
|
||||
runAllTests()
|
||||
|
||||
Reference in New Issue
Block a user