mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
It's likely that these were listed as "REQUIRES: OS=macosx" to not redundantly run them for iOS et al, but they don't take that long and so it's more useful for Linux devs to be able to run them locally if need be. Or to catch something that really is different on non-macOS.
15 lines
474 B
Plaintext
15 lines
474 B
Plaintext
// RUN: %scale-test -O --begin 5 --end 21 --step 5 --select StoredPropertiesRequest %s
|
|
// REQUIRES: asserts
|
|
//
|
|
// Single file with many stored properties.
|
|
//
|
|
// Check that SIL passes don't exhibit cubic behavior by repeatedly
|
|
// asking for all the stored properties (if the StoredPropertiesRequest
|
|
// stat scales quadratically, then the behavior is cubic).
|
|
|
|
public class LazyProperties {
|
|
%for i in range(N):
|
|
public lazy var prop${i}: String = { return "${i}" }()
|
|
%end
|
|
}
|