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 @@
// !API_VERSION: 1.0
// IGNORE_BACKEND: JVM_IR
fun myEquals(a: Double?, b: Double?) = a == b
@@ -1,4 +1,5 @@
// !API_VERSION: 1.0
// IGNORE_BACKEND: JVM_IR
fun myNotEquals(a: Double?, b: Double?) = a != b
@@ -1,4 +1,5 @@
// !API_VERSION: 1.0
// IGNORE_BACKEND: JVM_IR
fun myEquals(a: Float?, b: Float?) = a == b
@@ -1,4 +1,5 @@
// !API_VERSION: 1.0
// IGNORE_BACKEND: JVM_IR
fun myNotEquals(a: Float?, b: Float?) = a != b
@@ -1,4 +1,5 @@
// !LANGUAGE: +ProperIeee754Comparisons
// IGNORE_BACKEND: JVM_IR
fun equals5(a: Any?, b: Any?) = if (a is Double && b is Double?) a == b else null!!
fun equals6(a: Any?, b: Any?) = if (a is Double? && b is Double) a == b else null!!
@@ -1,4 +1,5 @@
// !API_VERSION: 1.0
// IGNORE_BACKEND: JVM_IR
fun equals5(a: Any?, b: Any?) = if (a is Double && b is Double?) a == b else null!!
@@ -1,4 +1,5 @@
// !LANGUAGE: +ProperIeee754Comparisons
// IGNORE_BACKEND: JVM_IR
fun equals5(a: Any?, b: Any?) = if (a is Float && b is Float?) a == b else null!!
fun equals6(a: Any?, b: Any?) = if (a is Float? && b is Float) a == b else null!!
@@ -1,4 +1,5 @@
// !API_VERSION: 1.0
// IGNORE_BACKEND: JVM_IR
fun equals5(a: Any?, b: Any?) = if (a is Float && b is Float?) a == b else null!!
@@ -1,4 +1,5 @@
// !API_VERSION: 1.0
// IGNORE_BACKEND: JVM_IR
fun box(): String {
val plusZero: Any = 0.0
@@ -1,4 +1,5 @@
// !API_VERSION: 1.0
// IGNORE_BACKEND: JVM_IR
fun box(): String {
val nullValue: Any? = null