Update skeleton

This commit is contained in:
Jeehoon Kang
2020-04-23 22:41:48 +09:00
parent 9917ffcbd5
commit 073a65ae53
15 changed files with 889 additions and 199 deletions

View File

@@ -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(),
);
}