mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
specify the accepted field sizes in ctor. This is a follow-up refactoring after discussion in #61726
14 lines
318 B
Swift
14 lines
318 B
Swift
// RUN: %empty-directory(%t)
|
|
// RUN: %gyb %s -o %t/large_int_array.swift
|
|
// RUN: %target-swift-frontend -typecheck -verify %t/large_int_array.swift
|
|
// RUN: %target-swift-frontend %t/large_int_array.swift -emit-sil -o %t
|
|
|
|
% num_elements = 65537
|
|
|
|
let v = 0
|
|
let _ : [Int] = [
|
|
% for i in range(num_elements):
|
|
v,
|
|
% end
|
|
]
|