mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
This reverts commit c7ef60c7ed.
It also contains an additional test for the fix in StackNesting
13 lines
310 B
Swift
13 lines
310 B
Swift
// RUN: %target-swift-frontend -sdk %S/Inputs -O -emit-sil -I %S/Inputs -enable-source-import -primary-file %s | %FileCheck %s
|
|
|
|
import gizmo
|
|
|
|
// CHECK: ModifyStruct
|
|
// CHECK: = alloc_stack $Drill
|
|
// CHECK: ret
|
|
func ModifyStruct(inDrill : Drill) -> Int32 {
|
|
var D : Drill = inDrill
|
|
D.x += 3
|
|
return D.x
|
|
}
|