File tree Expand file tree Collapse file tree 2 files changed +6
-16
lines changed
swift/ql/test/library-tests/dataflow/dataflow Expand file tree Collapse file tree 2 files changed +6
-16
lines changed Original file line number Diff line number Diff line change 11failures
22testFailures
3- | test.swift:846:15:846:21 | ...[...] | Unexpected result: flow=871 |
4- | test.swift:846:24:847:1 | // $ flow=863\n | Missing result:flow=863 |
5- | test.swift:850:15:850:15 | v | Unexpected result: flow=872 |
6- | test.swift:850:18:851:1 | // $ flow=864\n | Missing result:flow=864 |
7- | test.swift:859:15:859:21 | ...[...] | Unexpected result: flow=873 |
8- | test.swift:859:24:860:1 | // $ SPURIOUS: flow=865\n | Fixed spurious result:flow=865 |
9- | test.swift:860:15:860:21 | ...[...] | Unexpected result: flow=873 |
10- | test.swift:860:24:861:1 | // $ flow=865\n | Missing result:flow=865 |
11- | test.swift:867:15:867:38 | \\...[...] | Unexpected result: flow=873 |
12- | test.swift:867:41:868:1 | // $ flow=865\n | Missing result:flow=865 |
Original file line number Diff line number Diff line change @@ -843,11 +843,11 @@ func testNestedKeyPathWrite() {
843843
844844func testVarargs1( args: Int ... ) {
845845 sink ( arg: args)
846- sink ( arg: args [ 0 ] ) // $ flow=863
846+ sink ( arg: args [ 0 ] ) // $ flow=871
847847}
848848
849849func testVarargs2( _ v: Int , _ args: Int ... ) {
850- sink ( arg: v) // $ flow=864
850+ sink ( arg: v) // $ flow=872
851851 sink ( arg: args)
852852 sink ( arg: args [ 0 ] )
853853 sink ( arg: args [ 1 ] )
@@ -856,15 +856,15 @@ func testVarargs2(_ v: Int, _ args: Int...) {
856856func testVarargs3( _ v: Int , _ args: Int ... ) {
857857 sink ( arg: v)
858858 sink ( arg: args)
859- sink ( arg: args [ 0 ] ) // $ SPURIOUS: flow=865
860- sink ( arg: args [ 1 ] ) // $ flow=865
859+ sink ( arg: args [ 0 ] ) // $ SPURIOUS: flow=873
860+ sink ( arg: args [ 1 ] ) // $ flow=873
861861
862862 for arg in args {
863- sink ( arg: arg) // $ MISSING: flow=865
863+ sink ( arg: arg) // $ MISSING: flow=873
864864 }
865865
866866 let myKeyPath = \[ Int ] [ 1 ]
867- sink ( arg: args [ keyPath: myKeyPath] ) // $ flow=865
867+ sink ( arg: args [ keyPath: myKeyPath] ) // $ flow=873
868868}
869869
870870func testVarargsCaller( ) {
You can’t perform that action at this time.
0 commit comments