Files
kotlin-fork/js/js.translator/testData/dce/commonjs.js
T
Alexey Andreev e2fc808d83 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
2017-05-26 18:20:30 +03:00

17 lines
279 B
JavaScript
Vendored

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