Skip to content

Commit

Permalink
add regression test, fixes #1334
Browse files Browse the repository at this point in the history
  • Loading branch information
utaal committed Jan 17, 2025
1 parent 77551f7 commit eeca797
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions source/rust_verify_test/tests/regression.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1328,3 +1328,13 @@ test_verify_one_file! {
}
} => Err(e) => assert_vir_error_msg(e, "use the universal function call syntax to disambiguate")
}

test_verify_one_file_with_options! {
#[test] const_in_array_types_regression_1334 ["vstd"] => verus_code! {
const TEST: usize = 4;

pub fn get_array() -> [u8; TEST] {
return [0; TEST]
}
} => Ok(())
}

0 comments on commit eeca797

Please sign in to comment.