mirror of
https://github.com/kmc7468/cs420.git
synced 2025-12-15 23:18:48 +00:00
Update skeleton
This commit is contained in:
@@ -34,7 +34,6 @@ where
|
||||
#[test]
|
||||
fn test_examples_write_c() {
|
||||
test_dir(Path::new("examples/"), &OsStr::new("c"), test_write_c);
|
||||
test_dir(Path::new("examples/hw1"), &OsStr::new("c"), test_write_c);
|
||||
}
|
||||
|
||||
#[test]
|
||||
@@ -75,3 +74,12 @@ fn test_examples_simplify_cfg() {
|
||||
&mut FunctionPass::<SimplifyCfgEmpty>::default(),
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_examples_mem2reg() {
|
||||
test_opt(
|
||||
&Path::new("examples/mem2reg/mem2reg.input.ir"),
|
||||
&Path::new("examples/mem2reg/mem2reg.output.ir"),
|
||||
&mut Mem2reg::default(),
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user