Files
swift-mirror/test/DebugInfo/accessors.swift
Adrian Prantl 945a481c33 Debug Info: Forge a name getters and setters using their parent declaration.
Fixes rdar://problem/14346129.

Swift SVN r6056
2013-07-08 18:27:36 +00:00

17 lines
402 B
Swift

// RUN: %swift -triple x86_64-apple-darwin10 %s -emit-llvm -g -o - | FileCheck %s
// Verify that we generate appropriate names for accessors.
// CHECK: DW_TAG_subprogram{{.*}}x.get
// CHECK: DW_TAG_subprogram{{.*}}x.set
// Variable getter/setter
var _x : Int = 0
var x_modify_count : Int = 0
var x: Int {
get:
return _x
set:
x_modify_count = x_modify_count + 1
_x = value
}