mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-03 21:47:36 +00:00

Because this now always takes place at the start of the function, we can just use the normal `alloca` method and then initialize each bitmap immediately. This patch also moves bitmap setup out of the `mcdc_parameters` method, because there is no longer any particular reason for it to be there.
8 lines
168 B
Rust
8 lines
168 B
Rust
use super::*;
|
|
|
|
#[test]
|
|
fn align_constants() {
|
|
assert_eq!(Align::ONE, Align::from_bytes(1).unwrap());
|
|
assert_eq!(Align::EIGHT, Align::from_bytes(8).unwrap());
|
|
}
|