File tree Expand file tree Collapse file tree 1 file changed +12
-13
lines changed Expand file tree Collapse file tree 1 file changed +12
-13
lines changed Original file line number Diff line number Diff line change 11// RUN: %target-run-simple-swift(-I %S/Inputs -Xfrontend -enable-experimental-cxx-interop)
2+ // FIXME: also test this in C++20 mode once rdar://108810356 is fixed.
23//
34// REQUIRES: executable_test
45//
@@ -33,19 +34,17 @@ func fill(vector v: inout Vector) {
3334 v. push_back ( & _3)
3435}
3536
36- // TODO: in some configurations the stdlib emits a "initializeWithCopy" where the arguments
37- // have incorrect indirection: rdar://87728422 and rdar://87805795
38- // StdVectorTestSuite.test("for loop") {
39- // var v = Vector()
40- // fill(vector: &v)
41- //
42- // var count: CInt = 1
43- // for e in v {
44- // expectEqual(e, count)
45- // count += 1
46- // }
47- // expectEqual(count, 4)
48- // }
37+ StdVectorTestSuite . test ( " for loop " ) {
38+ var v = Vector ( )
39+ fill ( vector: & v)
40+
41+ var count : CInt = 1
42+ for e in v {
43+ expectEqual ( e, count)
44+ count += 1
45+ }
46+ expectEqual ( count, 4 )
47+ }
4948
5049StdVectorTestSuite . test ( " map " ) {
5150 var v = Vector ( )
You can’t perform that action at this time.
0 commit comments