Enable bytecode text tests for the JVM_IR backend.

This commit is contained in:
Mads Ager
2018-12-21 13:22:56 +01:00
committed by Mikhael Bogdanov
parent d1efac617d
commit 3a11322506
347 changed files with 3651 additions and 0 deletions
@@ -1,4 +1,5 @@
// !LANGUAGE: +InlineClasses
// IGNORE_BACKEND: JVM_IR
// https://youtrack.jetbrains.com/issue/KT-15871
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
inline fun <R, T> foo(x : R?, block : (R?) -> T) : T {
return block(x)
@@ -1,4 +1,5 @@
// !LANGUAGE: +InlineClasses
// IGNORE_BACKEND: JVM_IR
// FILE: Test.kt
@@ -1,4 +1,5 @@
// !LANGUAGE: +InlineClasses
// IGNORE_BACKEND: JVM_IR
// FILE: dependency.kt
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
import kotlin.reflect.KClass
@Retention(AnnotationRetention.RUNTIME)
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
import kotlin.reflect.KClass
@Retention(AnnotationRetention.RUNTIME)
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
fun box(): String {
230?.hashCode()
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
// FILE: list.kt
val intList = listOf(1, 2, 3)
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
inline fun <R, T> foo(x : R?, y : R?, block : (R?) -> T) : T {
if (x == null) {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
fun Long.id() = this
fun String.drop2() = if (length >= 2) subSequence(2, length) else null
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
class A(val x : Int, val y : A?)
fun check(a : A?) : Int {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
fun box(): String {
var result = 0
if (1 == 1) {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
fun returningBoxed() : Int? = 1
fun acceptingBoxed(x : Int?) : Int ? = x