Files
swift-mirror/test/SILOptimizer/sroa_unreferenced_members.swift
Erik Eckstein e9b4db13ee Reinstate "AllocBoxToStack: Improve alloc_stack/dealloc_stack scoping"
This reverts commit c7ef60c7ed.

It also contains an additional test for the fix in StackNesting
2017-03-30 09:40:09 -07:00

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
}