Add deadcode examples

This commit is contained in:
Jeehoon Kang
2020-05-03 06:01:46 +00:00
parent f4dc5e426c
commit 9a2dd840d2
6 changed files with 86 additions and 3 deletions

View File

@@ -92,3 +92,12 @@ fn test_examples_gvn() {
&mut Gvn::default(),
);
}
#[test]
fn test_examples_deadcode() {
test_opt(
&Path::new("examples/deadcode/deadcode.input.ir"),
&Path::new("examples/deadcode/deadcode.output.ir"),
&mut Deadcode::default(),
);
}