mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
22 lines
335 B
Swift
22 lines
335 B
Swift
// RUN: %target-swift-frontend -emit-sil %s -o /dev/null
|
|
|
|
// For OSLogTestHelper.
|
|
// REQUIRES: VENDOR=apple
|
|
|
|
import OSLogTestHelper
|
|
|
|
struct Thing {
|
|
let guts: AnyObject
|
|
}
|
|
|
|
func getThings() -> [Thing] { [] }
|
|
|
|
func run() {
|
|
var things: [Thing]
|
|
while(true) {
|
|
things = getThings()
|
|
OSLogMessage("count: \(things.count)")
|
|
}
|
|
}
|
|
|