Add deadcode examples

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

No files matched your search

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