Skip to content

Commit 903abd0

Browse files
committed
C#: Exhaustive validation of postupdate notes in conditional expression example.
1 parent 131a6ac commit 903abd0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

csharp/ql/test/library-tests/dataflow/global/GlobalDataFlow.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -506,12 +506,15 @@ public void M6(bool b1, bool b2, bool b3)
506506
var x2 = new SimpleClass();
507507
TaintField(b1 ? x1 : x2);
508508
Check(x1.field);
509+
Check(x2.field);
509510

510511
var y1 = new SimpleClass();
511512
var y2 = new SimpleClass();
512513
var y3 = new SimpleClass();
513514
TaintField(b2 ? (b3 ? y1 : y2) : y3);
515+
Check(y1.field);
514516
Check(y2.field);
517+
Check(y3.field);
515518
}
516519

517520
private class SubSimpleClass : SimpleClass { }

0 commit comments

Comments
 (0)