Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
TomAFrench committed Jan 20, 2025
1 parent 54a5e53 commit fb2e08f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions test_programs/execution_success/regression_7062/Prover.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
index = 1
value = 1
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
fn main(args: [Field; 2]) {
fn main(value: Field, index: u32) {
let mut args = &[0, 1];
args[index] = value;
/// Safety: n/a
unsafe { store(args) };
// Dummy test to remove the 'underconstraint bug'
assert(args[0] + args[1] != 0);
}

pub unconstrained fn store(_: [Field]) {}
pub unconstrained fn store(_: [Field]) {}

0 comments on commit fb2e08f

Please sign in to comment.