- Notifications
You must be signed in to change notification settings - Fork 10.5k
/
Copy pathclass.swift
13 lines (12 loc) · 543 Bytes
/
class.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
// RUN: %target-swift-frontend -debugger-testing-transform -Xllvm -sil-full-demangle -emit-sil -module-name M %s | %FileCheck %s -check-prefix=CHECK-SIL
classC1{
varx: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
}
}