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
fun test() {
{
{}()
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
inline fun test(crossinline l: () -> String) {
{
l()
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
inline fun test(s: ()->Int){
var i = 0;
i = s()
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
// For mutable collections and related types (e.g., MutableList, MutableListIterator)
// 'as?' should be generated as a single 'safeAs...' intrinsic call
// without instanceof or 'is...'.
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
inline fun watch(p: String, f: (String) -> Int) {
f(p)
}
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
inline fun test(s: ()->Int){
var i = 0;
try {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
inline fun <reified T : Enum<T>> myValues(): String {
val values = enumValues<T>()
return "OK"
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
inline fun test(s: ()->Int){
var i = 0;
try {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
package test
enum class X {