Fix failing bytecode text test

In this commit I moved IGNORE_BACKEND_FIR to the end or deleted it
when it was applicable, to preserve correct line numbers
This commit is contained in:
Mikhail Glukhikh
2020-09-29 19:16:42 +03:00
parent cfd90c85cb
commit ac50433e17
16 changed files with 2 additions and 16 deletions
@@ -1,4 +1,3 @@
// IGNORE_BACKEND_FIR: JVM_IR
package inlineInIfFalseDex
fun inlineIfFalse() {
@@ -1,4 +1,3 @@
// IGNORE_BACKEND_FIR: JVM_IR
import kotlin.sequences.*
import kotlin.experimental.*
@@ -24,3 +23,5 @@ suspend fun SequenceScope<Int>.awaitSeq(): Int = 42
/* TODO: JVM_IR does not generate LINENUMBER at the end of the lambda */
// JVM_IR_TEMPLATES
// 1 LOCALVARIABLE a I L[0-9]+ L16
// IGNORE_BACKEND_FIR: JVM_IR
@@ -1,4 +1,3 @@
// IGNORE_BACKEND_FIR: JVM_IR
const val M = Int.MIN_VALUE
fun f(a: Int): Int {
@@ -1,4 +1,3 @@
// IGNORE_BACKEND_FIR: JVM_IR
const val M = Long.MIN_VALUE
fun f(a: Long): Int {
@@ -1,4 +1,3 @@
// IGNORE_BACKEND_FIR: JVM_IR
// WITH_RUNTIME
const val M = UInt.MIN_VALUE
@@ -1,4 +1,3 @@
// IGNORE_BACKEND_FIR: JVM_IR
// WITH_RUNTIME
const val M = ULong.MIN_VALUE
@@ -1,4 +1,3 @@
// IGNORE_BACKEND_FIR: JVM_IR
fun cond() = false
fun bar() {}
@@ -1,4 +1,3 @@
// IGNORE_BACKEND_FIR: JVM_IR
fun foo() {
if (0 < 1) {
System.out?.println()
@@ -1,4 +1,3 @@
// IGNORE_BACKEND_FIR: JVM_IR
fun foo(): Int {
if (false) {
return 1
@@ -1,4 +1,3 @@
// IGNORE_BACKEND_FIR: JVM_IR
fun foo(): Int {
if (false) {
return 1
@@ -1,4 +1,3 @@
// IGNORE_BACKEND_FIR: JVM_IR
fun foo(): Int {
if (true) {
return 1
@@ -1,4 +1,3 @@
// IGNORE_BACKEND_FIR: JVM_IR
fun foo(): Int {
if (true) {
return 1
@@ -1,4 +1,3 @@
// IGNORE_BACKEND_FIR: JVM_IR
//FILE: test.kt
@@ -1,4 +1,3 @@
// IGNORE_BACKEND_FIR: JVM_IR
//FILE: test.kt
fun box() {
@@ -1,4 +1,3 @@
// IGNORE_BACKEND_FIR: JVM_IR
fun foo() {
if (0 < 1) {
System.out?.println()
@@ -1,4 +1,3 @@
// IGNORE_BACKEND_FIR: JVM_IR
fun foo() {
try {
System.out?.println()