Files
kotlin-fork/compiler/testData/codegen/box/fir/assertEqualsFakeOverride.kt
T
Dmitriy Novozhilov 7813bb35cf [FIR2IR] Provide remapped f/o symbols to declaration storage
After a generation of fake overrides some code may still to refer old
  symbols from declaration storage (like computation of overridden
  symbols for lazy functions), so we need to remap those symbols using
  information from IR f/o generator
2023-12-15 15:38:10 +00:00

33 lines
751 B
Kotlin
Vendored

// TARGET_BACKEND: JVM_IR
// IGNORE_CODEGEN_WITH_IR_FAKE_OVERRIDE_GENERATION: KT-64150
// FILE: AbstractBlackBoxCodegenTest.java
public abstract class AbstractBlackBoxCodegenTest extends CodegenTestCase {}
// FILE: CodegenTestCase.java
public abstract class CodegenTestCase extends KotlinBaseTest<CharSequence> {}
// FILE: KotlinBaseTest.kt
abstract class KotlinBaseTest<F : CharSequence> : KtUsefulTestCase() {}
// FILE: KtUsefulTestCase.java
public abstract class KtUsefulTestCase extends TestCase {}
// FILE: TestCase.java
public abstract class TestCase {
public static void assertEquals(int expected, int actual) {
}
}
// FILE: test.kt
fun box(): String {
AbstractBlackBoxCodegenTest.assertEquals(42, 42)
return "OK"
}