Add simple test infrastructure for JS DCE

Add test infrastructure that allows to test handwritten JS
to test various small aspects of DCE, as opposed to box tests
which test kotlin stdlib + kotlin generated examples
This commit is contained in:
Alexey Andreev
2017-04-27 13:00:26 +03:00
parent 522a56947c
commit e2fc808d83
6 changed files with 152 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
function foo() {
}
function bar() {
}
function ignore() {
}
bar();
module.exports.foo = foo;
module.exports.bar = bar;
module.exports.ignore = ignore;
// REQUEST_REACHABLE: main.foo
// ASSERT_REACHABLE: main.bar
// ASSERT_REACHABLE: main.foo
// ASSERT_UNREACHABLE: main.ignore