Skip to content

Commit aba9c8b

Browse files
authored
Merge pull request swiftlang#29120 from eeckstein/fix-test
2 parents 5da0a04 + 64b8328 commit aba9c8b

File tree

1 file changed

+9
-13
lines changed

1 file changed

+9
-13
lines changed

test/SILOptimizer/array_contentof_opt.swift

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
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+
3026
public func testThreeInts(_ a: inout [Int]) {
3127
a += [1, 2, 3]
3228
}

0 commit comments

Comments
 (0)