Files
swift-mirror/test/SIL/Parser/stored_property.sil
Joe Groff c0a2994564 AST: Start printing function types with @convention instead of old attributes.
And update tests to match.

Swift SVN r27262
2015-04-13 22:51:34 +00:00

27 lines
618 B
Plaintext

// RUN: %target-sil-opt %s -verify | FileCheck %s
import Swift
// CHECK: @sil_stored var orgx
class Rect {
@sil_stored var orgx: Double { get }
init(orgx: Double)
}
// CHECK_LABEL: sil @_TFC4rect4Rectg4orgxSd
sil @_TFC4rect4Rectg4orgxSd : $@convention(method) (@owned Rect) -> Double {
bb0(%0 : $Rect):
debug_value %0 : $Rect
// CHECK: ref_element_addr
%2 = ref_element_addr %0 : $Rect, #Rect.orgx
%3 = load %2 : $*Double
strong_release %0 : $Rect
return %3 : $Double
}
// CHECK_LABEL: sil_vtable Rect
sil_vtable Rect {
// CHECK: #Rect.orgx!getter
#Rect.orgx!getter.1: _TFC4rect4Rectg4orgxSd
}