// RUN: %target-swift-frontend %s -Onone -Xllvm -sil-inline-generics=false -emit-sil | %FileCheck %s // REQUIRES: optimized_stdlib // Check that pre-specialization works at -Onone. // This test requires the standard library to be compiled with pre-specializations! // CHECK-LABEL: sil [noinline] @_T013prespecialize4test_4sizeySaySiGz_SitF // // function_ref specialized Collection.makeIterator() -> IndexingIterator // CHECK: function_ref @_T0s10CollectionPss16IndexingIteratorVyxG0C0RtzrlE04makeC0AEyFs14CountableRangeVySiG_Tg5 // // function_ref specialized IndexingIterator.next() -> A.Element? // CHECK: function_ref @_T0s16IndexingIteratorV4next7ElementQzSgyFs14CountableRangeVySiG_Tg5 // // Look for generic specialization of Swift.Array.subscript.getter : (Swift.Int) -> A // CHECK: function_ref @_T0s14CountableRangeV15uncheckedBoundsAByxGx5lower_x5uppert_tcfCSi_Tg5 // CHECK: return @inline(never) public func test(_ a: inout [Int], size: Int) { for i in 0.. of Swift.Array.init (repeating : A, count : Swift.Int) -> Swift.Array // CHECK: function_ref @_T0Sa9repeating5countSayxGx_SitcfCSi_Tg5 // CHECK: return @inline(never) public func run() { let size = 10000 var p = [Int](repeating: 0, count: size) for i in 0..