// LANGUAGE: +MultiPlatformProjects
// TARGET_BACKEND: JVM_IR
// IGNORE_HMPP: JVM_IR
// ISSUE: KT-63574
// FULL_JDK

// MODULE: commonJvm
// FILE: common.kt
import java.nio.ByteOrder

fun foo(): String = ByteOrder.LITTLE_ENDIAN.toString()

// MODULE: platformJvm()()(commonJvm)
// FILE: platform.kt
import java.nio.ByteOrder

fun bar(): String = ByteOrder.LITTLE_ENDIAN.toString()

fun box(): String {
    val expected = "LITTLE_ENDIAN"
    if (foo() != expected) return "Fail 1"
    if (bar() != expected) return "Fail 2"
    return "OK"
}
