mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
15 lines
254 B
Swift
15 lines
254 B
Swift
// RUN: %target-typecheck-verify-swift -disable-availability-checking -enable-experimental-move-only
|
|
|
|
var global: Int = 5
|
|
func testGlobal() {
|
|
let _ = _borrow global
|
|
}
|
|
|
|
func testVar() {
|
|
var t = String()
|
|
t = String()
|
|
let _ = _borrow t
|
|
}
|
|
|
|
|