Skip to content

Commit

Permalink
chore: regression test for #2540
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeljklein committed Mar 20, 2024
1 parent 859906d commit 611857f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test_programs/execution_success/regression_2540/Nargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[package]
name = "regression_2540"
type = "bin"
authors = [""]
compiler_version = ">=0.25.0"

[dependencies]
8 changes: 8 additions & 0 deletions test_programs/execution_success/regression_2540/src/main.nr
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
fn hello<N>(array: [u1; N]) {
for i in 0..N {}
}

fn main() {
let slice: [u1] = [0, 1];
hello(slice);
}

0 comments on commit 611857f

Please sign in to comment.