// MODULE_KIND: UMD
// NO_JS_MODULE_SYSTEM
package foo

@JsModule("libfoo")
@JsNonModule
external fun foo(x: Int): Int = definedExternally

@JsModule("libbar") 
@JsNonModule
@JsName("baz")
external fun bar(x: Int): Int = definedExternally

fun box(): String {
    assertEquals(65, foo(42))
    assertEquals(142, bar(100))
    return "OK"
}