Files
swift-mirror/test/DebugInfo/accessors.swift
Adrian Prantl 4f11ecc1da Get rid of Int in the debug info tests and preform some general cleanup.
<rdar://problem/20856296> Extinguish 'Int' from DebugInfo tests

Swift SVN r31177
2015-08-12 18:16:43 +00:00

19 lines
407 B
Swift

// RUN: %target-swift-frontend -primary-file %s -emit-ir -g -o - | FileCheck %s
// Verify that we generate appropriate names for accessors.
// CHECK: !DISubprogram(name: "x.get"
// CHECK: !DISubprogram(name: "x.set"
// Variable getter/setter
var _x : Int64 = 0
var x_modify_count : Int64 = 0
var x: Int64 {
get {
return _x
}
set {
x_modify_count = x_modify_count + 1
_x = newValue
}
}