mirror of
https://github.com/github/codeql.git
synced 2026-04-19 05:54:00 +02:00
Rust: Add a CFG test for a return within a break
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -102,6 +102,12 @@ mod loop_expression {
|
||||
1;
|
||||
}
|
||||
}
|
||||
|
||||
fn break_with_return() -> i64 {
|
||||
loop {
|
||||
break return 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fn test_nested_function(n: i64) -> i64 {
|
||||
|
||||
Reference in New Issue
Block a user