mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
20 lines
277 B
Swift
20 lines
277 B
Swift
// RUN: %target-run-simple-swift
|
|
|
|
// REQUIRES: executable_test
|
|
|
|
class Node {
|
|
var next: Node?
|
|
}
|
|
|
|
var first: Node? = nil
|
|
for _ in 1...3_000_000 {
|
|
let next = Node()
|
|
next.next = first
|
|
first = next
|
|
}
|
|
|
|
@inline(never)
|
|
func deallocList() {
|
|
first = nil
|
|
}
|
|
deallocList() |