Skip to content

Commit 3d3daec

Browse files
authored
Merge pull request #16787 from rudkx/add-test-for-rdar40344044
2 parents 160742a + 35cd602 commit 3d3daec

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
// RUN: %scale-test --invert-result --begin 3 --end 8 --step 1 --select incrementScopeCounter %s
2+
// REQUIRES: OS=macosx
3+
// REQUIRES: asserts
4+
5+
protocol P {}
6+
class C : P {}
7+
class D : P {}
8+
9+
class Test {
10+
let c: C! = C()
11+
let d: D! = D()
12+
var a: [P]! = []
13+
14+
func test() {
15+
a = [
16+
c,
17+
%for i in range(0, N):
18+
c,
19+
%end
20+
d
21+
]
22+
}
23+
}

0 commit comments

Comments
 (0)