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.
23 lines
437 B
Plaintext
23 lines
437 B
Plaintext
// RUN: %scale-test -O --polynomial-threshold 0.2 --begin 20 --end 25 --step 1 --select computeMethodCallees %s
|
|
// REQUIRES: asserts
|
|
|
|
class C0<T:FixedWidthInteger> {
|
|
func foo() {
|
|
return
|
|
}
|
|
}
|
|
|
|
%for i in range(1, int(N)):
|
|
class C${i}<T:FixedWidthInteger> {
|
|
func foo() {
|
|
let c : C${i-1}<T> = C${i-1}()
|
|
c.foo()
|
|
}
|
|
}
|
|
%end
|
|
|
|
public func bar() {
|
|
let c : C${int(N)-1}<Int> = C${int(N)-1}()
|
|
c.foo()
|
|
}
|