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 1
1
// 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.
2
3
//
3
4
// REQUIRES: executable_test
4
5
//
@@ -33,19 +34,17 @@ func fill(vector v: inout Vector) {
33
34
v. push_back ( & _3)
34
35
}
35
36
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
+ }
49
48
50
49
StdVectorTestSuite . test ( " map " ) {
51
50
var v = Vector ( )
You can’t perform that action at this time.
0 commit comments