// RUN: %scale-test --invert-result --begin 1 --end 5 --step 1 --select NumLeafScopes %s | |
// REQUIRES: asserts,no_asan | |
// REQUIRES: rdar38963783,no_asan | |
// SWIFT_ENABLE_TENSORFLOW | |
// This test is currently unsupported because the addition of `+` operators | |
// to the stdlib (via `VectorNumeric`) causes type-checking to fail. | |
// Re-enable when type-checking no longer fails. | |
// UNSUPPORTED: OS=macosx | |
func t(_ x: Int?) -> Int { | |
return (x ?? 0) | |
%for i in range(1, N): | |
+ (x ?? 0) | |
%end | |
} |