e2fc808d83
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
19 lines
343 B
JavaScript
Vendored
19 lines
343 B
JavaScript
Vendored
define(['exports'], function (exports) {
|
|
function foo() {
|
|
}
|
|
function bar() {
|
|
}
|
|
function ignore() {
|
|
}
|
|
|
|
bar();
|
|
|
|
exports.foo = foo;
|
|
exports.bar = bar;
|
|
exports.ignore = ignore;
|
|
});
|
|
|
|
// REQUEST_REACHABLE: main.foo
|
|
// ASSERT_REACHABLE: main.foo
|
|
// ASSERT_REACHABLE: main.bar
|
|
// ASSERT_UNREACHABLE: main.ignore
|