Skip to content

Commit

Permalink
Merge branch 'main' into chore/release-workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
raviqqe authored Jan 17, 2024
2 parents 055c203 + 1769316 commit be5f586
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions melior/src/ir/type/mem_ref.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,21 @@ mod tests {
);
}

#[test]
fn dynamic_dimension() {
let context = Context::new();

assert_eq!(
Type::from(MemRefType::new(
Type::float64(&context),
&[i64::MIN],
None,
None,
)),
Type::parse(&context, "memref<?xf64>").unwrap()
);
}

#[test]
fn layout() {
let context = Context::new();
Expand Down

0 comments on commit be5f586

Please sign in to comment.