Files
swift-mirror/test/DebuggerTestingTransform/class.swift
Vedant Kumar e30c5b249d [Debugger] Teach the testing transform about assignments to members (#16222)
This teaches the debugger testing transform how to instrument
assignments to class members.
2018-04-27 14:38:41 -07:00

14 lines
543 B
Swift

// RUN: %target-swift-frontend -debugger-testing-transform -Xllvm -sil-full-demangle -emit-sil -module-name M %s | %FileCheck %s -check-prefix=CHECK-SIL
class C1 {
var x: Int = 0
init() {
// CHECK-SIL: // closure #1 () -> () in M.C1.init() -> M.C1
// CHECK-SIL: string_literal utf8 "x"
// CHECK-SIL: // function_ref Swift._stringForPrintObject(Any) -> Swift.String
// CHECK-SIL: // function_ref Swift._debuggerTestingCheckExpect(Swift.String, Swift.String) -> ()
// CHECK-SIL: // end sil function
self.x = 1
}
}