File tree Expand file tree Collapse file tree 1 file changed +9
-13
lines changed
Expand file tree Collapse file tree 1 file changed +9
-13
lines changed Original file line number Diff line number Diff line change 11// RUN: %target-swift-frontend -O -sil-verify-all -emit-sil %s | %FileCheck %s
22// REQUIRES: swift_stdlib_no_asserts,optimized_stdlib
33
4- // Temporary disabled on linux.
5- // TODO: need to adapt some CHECK-lines for linux.
6- // REQUIRES: OS=macosx
7-
84// This is an end-to-end test of the array(contentsOf) -> array(Element) optimization
95
106// CHECK-LABEL: sil @{{.*}}testInt
@@ -18,15 +14,15 @@ public func testInt(_ a: inout [Int]) {
1814 a += [ 1 ]
1915}
2016
21- // CHECK-LABEL: sil @{{.*}}testThreeInt
22- // CHECK: [[FR:%[0-9]+]] = function_ref @${{(sSa15reserveCapacityyySiFSi_Tg5|sSa16_createNewBuffer)}}
23- // CHECK-NEXT: apply [[FR]]
24- // CHECK: [[F:%[0-9]+]] = function_ref @$sSa6appendyyxnFSi_Tg5
25- // CHECK: apply [[F]]
26- // CHECK-NEXT: apply [[F]]
27- // CHECK-NEXT: apply [[F]]
28- // CHECK-NEXT : tuple
29- // CHECK-NEXT: return
17+ // CHECK-LABEL: sil @{{.*}}testThreeInts
18+ // CHECK-DAG: [[FR:%[0-9]+]] = function_ref @${{(sSa15reserveCapacityyySiFSi_Tg5|sSa16_createNewBuffer)}}
19+ // CHECK-DAG: apply [[FR]]
20+ // CHECK-DAG: [[F:%[0-9]+]] = function_ref @$sSa6appendyyxnFSi_Tg5
21+ // CHECK-DAG: apply [[F]]
22+ // CHECK-DAG: apply [[F]]
23+ // CHECK-DAG: apply [[F]]
24+ // CHECK: } // end sil function '{{.*}}testThreeInts{{.*}}'
25+
3026public func testThreeInts( _ a: inout [ Int ] ) {
3127 a += [ 1 , 2 , 3 ]
3228}
You can’t perform that action at this time.
0 commit comments