We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9bdfaa0 commit 88e32baCopy full SHA for 88e32ba
3 files changed
powershell/ql/test/library-tests/dataflow/local/test.expected
powershell/ql/test/library-tests/dataflow/local/test.ps1
@@ -0,0 +1,8 @@
1
+$a1 = Source()
2
+Sink($a1)
3
+
4
+$b = GetBool()
5
+if($b) {
6
+ $a2 = Source()
7
+}
8
+Sink($a2)
powershell/ql/test/library-tests/dataflow/local/test.ql
@@ -0,0 +1,6 @@
+import powershell
+import semmle.code.powershell.dataflow.DataFlow
+from DataFlow::Node pred, DataFlow::Node succ
+where DataFlow::localFlowStep(pred, succ)
+select pred, succ
0 commit comments