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

View File

@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
fun foo() : Int {
val x : String = "dsa"

View File

@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
import kotlin.test.assertEquals
fun foo(x : String) : String {

View File

@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
import kotlin.test.assertEquals
fun foo(x : String) : String {

View File

@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
fun foo(x : String) : String {
return when (x) {
"abc", "cde" -> "abc_cde"

View File

@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
const val y = "cde"
fun foo(x : String) : String {

View File

@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
fun foo1(x : String?) : String {
when (x) {
"abc", "cde" -> return "abc_cde"

View File

@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
fun foo(x : String) : String {
assert("abz]".hashCode() == "aby|".hashCode())

View File

@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
fun foo1(x : String) : String {
when (x) {
"abc", "cde" -> return "abc_cde"