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 1
1
// RUN: %target-swift-frontend -O -sil-verify-all -emit-sil %s | %FileCheck %s
2
2
// REQUIRES: swift_stdlib_no_asserts,optimized_stdlib
3
3
4
- // Temporary disabled on linux.
5
- // TODO: need to adapt some CHECK-lines for linux.
6
- // REQUIRES: OS=macosx
7
-
8
4
// This is an end-to-end test of the array(contentsOf) -> array(Element) optimization
9
5
10
6
// CHECK-LABEL: sil @{{.*}}testInt
@@ -18,15 +14,15 @@ public func testInt(_ a: inout [Int]) {
18
14
a += [ 1 ]
19
15
}
20
16
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
+
30
26
public func testThreeInts( _ a: inout [ Int ] ) {
31
27
a += [ 1 , 2 , 3 ]
32
28
}
You can’t perform that action at this time.
0 commit comments