mirror of
https://github.com/apple/swift.git
synced 2026-10-14 15:51:20 +02:00
17 lines
373 B
Swift
17 lines
373 B
Swift
// RUN: %target-swift-frontend -emit-sil -primary-file %s -sil-verify-all
|
|
|
|
// REQUIRES: VENDOR=apple
|
|
|
|
import OSLogTestHelper
|
|
|
|
// Ensure no SIL verifier error
|
|
public class ActivityHeartbeat {
|
|
private var lastActivity: Int
|
|
|
|
init(now: @escaping () -> Int) {
|
|
self.lastActivity = now()
|
|
_osLogTestHelper("ActivityHeartbeat: initialized \(self.lastActivity)")
|
|
}
|
|
}
|
|
|