Files
swift-mirror/test/DebugInfo/property-setter-implicit-tuple.swift
2024-04-05 15:34:36 -07:00

22 lines
631 B
Swift

// RUN: %target-swift-frontend %s -emit-ir -g -o - | %FileCheck %s
// This is a test for rdar://125939953 (Implicit variables are removed at Onone)
struct UInt128 {
var low: UInt64
var high: UInt64
var components: (low: UInt64, high: UInt64) {
get {
return (low, high)
}
// CHECK-LABEL: define {{.+}} @"$s4main7UInt128V10componentss6UInt64V3low_AF4hightvs"
set {
// CHECK: call void @llvm.dbg.declare(metadata ptr {{.+}}, metadata ![[NEW_VALUE:[0-9]+]]
(self.low, self.high) = (newValue.high, newValue.low)
}
}
}
//CHECK: ![[NEW_VALUE]] = !DILocalVariable(name: "newValue", arg: 1