mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
21 lines
411 B
Swift
21 lines
411 B
Swift
// RUN: %target-swift-frontend -Xllvm -sil-verify-after-pass=loadable-address -emit-ir -o %t.ll %s
|
|
|
|
// https://github.com/apple/swift/issues/52260
|
|
// Just make sure we don't crash.
|
|
|
|
|
|
struct Large {
|
|
var a: Int = 1
|
|
var b: Int = 1
|
|
var c: Int = 1
|
|
var d: Int = 1
|
|
var e: Int = 1
|
|
var f: Int = 1
|
|
var g: Int = 1
|
|
var h: Int = 1
|
|
}
|
|
|
|
func test(_ x: Large) -> (Large, (Large) -> Large) {
|
|
return (x, {$0})
|
|
}
|