tests: add some basic tests for dead method removal/cha/rta
[nit.git] / tests / icode_dmr_if.nit
diff --git a/tests/icode_dmr_if.nit b/tests/icode_dmr_if.nit
new file mode 100644 (file)
index 0000000..cf1ae4c
--- /dev/null
@@ -0,0 +1,17 @@
+
+class A
+       fun foo do
+               print "foo"
+       end
+
+       fun bar do
+               print "bar"
+       end
+end
+
+var a = new A
+if true then
+       a.foo
+#alt1#else
+#alt1# a.bar
+end