We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 01141cc commit 2bab29dCopy full SHA for 2bab29d
1 file changed
rust/ql/test/library-tests/dataflow/local/main.rs
@@ -14,6 +14,21 @@ fn if_expression(cond: bool) -> i64 {
14
c
15
}
16
17
+fn loop_expression() -> i64 {
18
+ let a = 1;
19
+ let b = loop {
20
+ break a;
21
+ };
22
+ b
23
+}
24
+
25
+fn match_expression(a: i64, b: i64, c: Option<i64>) -> i64 {
26
+ match c {
27
+ Some(_) => a,
28
+ None => b,
29
+ }
30
31
32
fn main() {
33
variable();
34
if_expression(true);
0 commit comments