-
Notifications
You must be signed in to change notification settings - Fork 204
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b54ed26
commit e596612
Showing
3 changed files
with
22 additions
and
2 deletions.
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
test_programs/execution_success/regression_test_5462/Nargo.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
[package] | ||
name = "regression_test_5462" | ||
type = "bin" | ||
authors = [""] | ||
compiler_version = ">=0.35.0" | ||
|
||
[dependencies] |
11 changes: 11 additions & 0 deletions
11
test_programs/execution_success/regression_test_5462/src/main.nr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
fn main() { | ||
let empty_slice: [u8] = &[]; | ||
|
||
if empty_slice != &[] { | ||
let _ = empty_slice.pop_front(); | ||
} | ||
|
||
if empty_slice.len() != 0 { | ||
let _ = empty_slice.pop_front(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters