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,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
enum class A { V }
fun box(): String {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
enum class A { V }
fun box(): String {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
enum class AccessMode { READ, WRITE, EXECUTE }
fun whenExpr(access: AccessMode) {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
enum class AccessMode { READ, WRITE, EXECUTE }
fun whenExpr(access: AccessMode) {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
const val A = 10
private const val B = 20
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
fun foo1(x: Int): Boolean {
when(x) {
2 + 2 -> return true
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
fun findUserId(username: String): Long? = null
fun main(args: Array<String>) {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
// FILE: C.kt
class CInt(val value: Int)
val nCInt3: CInt? = CInt(3)
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
object Constants {
const val A = 30
const val B = 40
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
const val A = 10
private const val B = 20
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
fun test(a: Any?, b: Any?, c: Any?) {
when (null) {
a -> throw IllegalArgumentException("a is null")
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
fun test(a: Int, b: Int, c: Int) {
when (0) {
a -> throw IllegalArgumentException("a is 0")