[Test] Migrate AbstractBytecodeTextTest to new test infrastructure
This commit is contained in:
@@ -7,6 +7,6 @@ class A {
|
||||
}
|
||||
}
|
||||
|
||||
// 1 public final g\$test_module\(Lkotlin/coroutines/Continuation;\)Ljava/lang/Object;
|
||||
// 1 private final g\$test_module\$\$forInline\(Lkotlin/coroutines/Continuation;\)Ljava/lang/Object;
|
||||
// 0 g\$\$forInline
|
||||
// 1 public final g\$main\(Lkotlin/coroutines/Continuation;\)Ljava/lang/Object;
|
||||
// 1 private final g\$main\$\$forInline\(Lkotlin/coroutines/Continuation;\)Ljava/lang/Object;
|
||||
// 0 g\$\$forInline
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
// FILE: JClass.java
|
||||
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
public class JClass {
|
||||
public final static int PrimitiveInt = 9000;
|
||||
@@ -8,7 +9,7 @@ public class JClass {
|
||||
public final static long PrimitiveLong = 100000;
|
||||
public final static short PrimitiveShort = 901;
|
||||
public final static boolean PrimitiveBool = false;
|
||||
public final static float PrimitiveFloat = 36.6;
|
||||
public final static float PrimitiveFloat = 36.6f;
|
||||
public final static double PrimitiveDouble = 42.4242;
|
||||
public final static byte PrimitiveByte = -8;
|
||||
public final static char PrimitiveChar = 'K';
|
||||
|
||||
@@ -10,5 +10,5 @@ fun box(): String {
|
||||
}
|
||||
|
||||
// Check the names of mangled functions
|
||||
// 1 public final f\$test_module\(\)Ljava/lang/String;
|
||||
// 1 public final static f\$test_module\(\)Ljava/lang/String;
|
||||
// 1 public final f\$main\(\)Ljava/lang/String;
|
||||
// 1 public final static f\$main\(\)Ljava/lang/String;
|
||||
|
||||
+1
-2
@@ -1,4 +1,3 @@
|
||||
// IGNORE_BACKEND: JVM
|
||||
fun main() {
|
||||
println("FAIL")
|
||||
}
|
||||
@@ -8,4 +7,4 @@ fun Array<String>.main(x: Int = 4, y: String = "Test") {
|
||||
println("OK")
|
||||
}
|
||||
|
||||
// 0 INVOKESTATIC DontGenerateOnJvmOverloadsKt\.main ()V
|
||||
// 0 INVOKESTATIC DontGenerateOnJvmOverloadsKt\.main ()V
|
||||
|
||||
+2
-1
@@ -1,6 +1,7 @@
|
||||
// FILE: JClass.java
|
||||
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
public class JClass {
|
||||
public final static int PrimitiveInt = 9000;
|
||||
@@ -8,7 +9,7 @@ public class JClass {
|
||||
public final static long PrimitiveLong = 100000;
|
||||
public final static short PrimitiveShort = 901;
|
||||
public final static boolean PrimitiveBool = false;
|
||||
public final static float PrimitiveFloat = 36.6;
|
||||
public final static float PrimitiveFloat = 36.6f;
|
||||
public final static double PrimitiveDouble = 42.4242;
|
||||
public final static byte PrimitiveByte = -8;
|
||||
public final static char PrimitiveChar = 'K';
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
public class J {
|
||||
public interface F {
|
||||
public int call(String x)
|
||||
public int call(String x);
|
||||
}
|
||||
|
||||
public static void g(F r) {
|
||||
@@ -26,4 +26,4 @@ inline fun inlineFun() {
|
||||
// 0 declaration: void <init>\(kotlin.jvm.functions.Function1<.*, .*>\)
|
||||
// 0 declaration: function extends kotlin.jvm.functions.Function1<.*, .*>
|
||||
// 2 private final synthetic Lkotlin/jvm/functions/Function1; function
|
||||
// 2 <init>\(Lkotlin/jvm/functions/Function1;\)V
|
||||
// 2 <init>\(Lkotlin/jvm/functions/Function1;\)V
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
// KOTLIN_CONFIGURATION_FLAGS: STRING_CONCAT=indy-with-constants
|
||||
// IGNORE_JAVA_ERRORS
|
||||
// JVM_TARGET: 9
|
||||
// FILE: JavaClass.java
|
||||
|
||||
@@ -16,4 +17,4 @@ fun box() {
|
||||
// 0 INVOKEDYNAMIC makeConcat
|
||||
// 1 JavaClass.toString
|
||||
// 1 String.valueOf
|
||||
// 0 append
|
||||
// 0 append
|
||||
|
||||
Reference in New Issue
Block a user