Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ fun main(args: Array<String>) {
model("codegen/box", excludeDirs = k1BoxTestDir + excludedScriptDirs)
}

testClass<AbstractFirLightTreeHeaderModeCodegenTest> {
model("codegen/box", excludeDirs = k1BoxTestDir + excludedScriptDirs)
}

testClass<AbstractFirPsiBlackBoxCodegenTest> {
model("codegen/box", excludeDirs = k1BoxTestDir)
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// LANGUAGE: +NameBasedDestructuring +DeprecateNameMismatchInShortDestructuringWithParentheses +EnableNameBasedDestructuringShortForm
// WITH_STDLIB
// WITH_COROUTINES
// IGNORE_HEADER_MODE: JVM_IR
// Reason: KT-82376
import helpers.*
import kotlin.coroutines.*
import kotlin.coroutines.intrinsics.*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// LANGUAGE: +NameBasedDestructuring +DeprecateNameMismatchInShortDestructuringWithParentheses +EnableNameBasedDestructuringShortForm
// WITH_STDLIB
// WITH_COROUTINES
// IGNORE_HEADER_MODE: JVM_IR
// Reason: KT-82376
import helpers.*
import kotlin.coroutines.*
import kotlin.coroutines.intrinsics.*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// TARGET_BACKEND: JVM
// IGNORE_BACKEND_K2: JVM_IR, JS_IR, JS_IR_ES6
// IGNORE_HEADER_MODE: JVM_IR
// FIR status: don't support legacy feature (see https://youtrack.jetbrains.com/issue/KT-37591). UNRESOLVED_REFERENCE at '+'
// WITH_STDLIB
// MODULE: lib
Expand Down
1 change: 1 addition & 0 deletions compiler/testData/codegen/box/extensionClasses/simple.kt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// LANGUAGE: +ContextReceivers
// TARGET_BACKEND: JVM_IR
// IGNORE_BACKEND_K2: ANY
// IGNORE_HEADER_MODE: JVM_IR

class A {
val ok = "OK"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// LANGUAGE: +ContextReceivers
// TARGET_BACKEND: JVM_IR
// IGNORE_BACKEND_K2: ANY
// IGNORE_HEADER_MODE: JVM_IR

class A {
val ok = "OK"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// LANGUAGE: +ContextReceivers
// IGNORE_BACKEND_K2: ANY
// IGNORE_HEADER_MODE: JVM_IR
// TARGET_BACKEND: JVM_IR
// KT-51271

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// LANGUAGE: +ContextReceivers
// IGNORE_BACKEND_K2: ANY
// TARGET_BACKEND: JVM_IR
// IGNORE_HEADER_MODE: JVM_IR

data class Pair<A, B>(val first: A, val second: B)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// LANGUAGE: +ContextReceivers
// IGNORE_BACKEND_K2: ANY
// TARGET_BACKEND: JVM_IR
// IGNORE_HEADER_MODE: JVM_IR
// WITH_STDLIB

fun List<Int>.decimateEveryEvenThird() = sequence {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// LANGUAGE: +ContextReceivers
// IGNORE_BACKEND_K2: ANY
// TARGET_BACKEND: JVM_IR
// IGNORE_HEADER_MODE: JVM_IR
// WITH_STDLIB

class View {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// LANGUAGE: +ContextReceivers
// TARGET_BACKEND: JVM_IR
// IGNORE_BACKEND_K2: ANY
// IGNORE_HEADER_MODE: JVM_IR
// WITH_STDLIB

data class Counter(var i: Int = 0)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// LANGUAGE: +ContextReceivers
// IGNORE_BACKEND_K2: ANY
// TARGET_BACKEND: JVM_IR
// IGNORE_HEADER_MODE: JVM_IR

class C<T> {
fun foo() = 1
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// LANGUAGE: +ContextReceivers
// IGNORE_BACKEND_K2: ANY
// IGNORE_HEADER_MODE: JVM_IR
// TARGET_BACKEND: JVM_IR
// WITH_COROUTINES
// WITH_STDLIB
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// LANGUAGE: +ContextReceivers
// TARGET_BACKEND: JVM_IR
// IGNORE_BACKEND_K2: ANY
// IGNORE_HEADER_MODE: JVM_IR

// MODULE: lib
// FILE: A.kt
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// LANGUAGE: +ContextReceivers
// IGNORE_BACKEND_K2: ANY
// IGNORE_HEADER_MODE: JVM_IR
// TARGET_BACKEND: JVM_IR
// WITH_STDLIB
// WITH_COROUTINES
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// IGNORE_HEADER_MODE: JVM_IR
// Reason: KT-82311

class Test {
private fun <T : Any> T.self() = object{
fun calc() : T {
Expand Down
2 changes: 2 additions & 0 deletions compiler/testData/codegen/box/fir/ColorValuePanel.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
// IGNORE_BACKEND: ANDROID
// WITH_STDLIB
// FULL_JDK
// IGNORE_HEADER_MODE: JVM_IR
// Reason: KT-82376

import java.awt.GridLayout
import javax.swing.JPanel
Expand Down
2 changes: 2 additions & 0 deletions compiler/testData/codegen/box/fir/copyOnObject.kt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
// IGNORE_BACKEND_K1: ANY
// ISSUE: KT-60370
// IGNORE_HEADER_MODE: JVM_IR
// Reason: KT-82378

data object A {
fun copy() = "O"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// ISSUE: KT-67993
// IGNORE_HEADER_MODE: JVM_IR
// Reason: KT-82336

fun box(): String {
return Klass().buildee.produce()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
// LANGUAGE: +ValueClasses, +CustomEqualsInValueClasses
// TARGET_BACKEND: JVM_IR
// CHECK_BYTECODE_LISTING
// IGNORE_HEADER_MODE: JVM_IR
// Reason: KT-82311


interface I {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
// LANGUAGE: +ValueClasses, +CustomEqualsInValueClasses
// TARGET_BACKEND: JVM_IR
// CHECK_BYTECODE_LISTING
// IGNORE_HEADER_MODE: JVM_IR
// Reason: KT-82311

import java.lang.AssertionError
import kotlin.math.abs
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
// LANGUAGE: +ValueClasses, +CustomEqualsInValueClasses
// TARGET_BACKEND: JVM_IR
// CHECK_BYTECODE_LISTING
// IGNORE_HEADER_MODE: JVM_IR
// Reason: KT-82311

import kotlin.math.abs

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
// LANGUAGE: +ValueClasses, +CustomEqualsInValueClasses
// TARGET_BACKEND: JVM_IR
// CHECK_BYTECODE_LISTING
// IGNORE_HEADER_MODE: JVM_IR
// Reason: KT-82311

import kotlin.math.abs

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
// LANGUAGE: +ValueClasses, +CustomEqualsInValueClasses
// TARGET_BACKEND: JVM_IR
// CHECK_BYTECODE_LISTING
// IGNORE_HEADER_MODE: JVM_IR
// Reason: KT-82311

@JvmInline
value class IC1<T : Number>(val x: T) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// WITH_STDLIB
// LANGUAGE: +ValueClasses, +CustomEqualsInValueClasses
// TARGET_BACKEND: JVM_IR

// IGNORE_HEADER_MODE: JVM_IR
// Reason: KT-82311

@JvmInline
value class A(val x: Int) {
Expand Down
2 changes: 2 additions & 0 deletions compiler/testData/codegen/box/inlineClasses/kt54536.kt
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// WITH_STDLIB
// LANGUAGE: +ValueClasses, +CustomEqualsInValueClasses
// TARGET_BACKEND: JVM_IR
// IGNORE_HEADER_MODE: JVM_IR
// Reason: KT-82311

@JvmInline
value class A(val x: Int) {
Expand Down
2 changes: 2 additions & 0 deletions compiler/testData/codegen/box/ir/anonymousClassLeak.kt
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// WITH_STDLIB
// IGNORE_HEADER_MODE: JVM_IR
// Reason: KT-82376

// MODULE: lib
// FILE: lib.kt
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// COMMENTED[LANGUAGE: +ProperFieldAccessGenerationForFieldAccessShadowedByKotlinProperty] uncomment when KT-56386 is fixed
// IGNORE_BACKEND_K1: JVM_IR
// IGNORE_BACKEND_K2: JVM_IR
// IGNORE_HEADER_MODE: JVM_IR
// Reason: KT-56386 is not fixed yet
// CHECK_BYTECODE_TEXT

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// COMMENTED[LANGUAGE: +ProperFieldAccessGenerationForFieldAccessShadowedByKotlinProperty] uncomment when KT-56386 is fixed
// IGNORE_BACKEND_K1: JVM_IR
// IGNORE_BACKEND_K2: JVM_IR
// IGNORE_HEADER_MODE: JVM_IR
// Reason: KT-56386 is not fixed yet

// FILE: BaseJava.java
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// COMMENTED[LANGUAGE: +ProperFieldAccessGenerationForFieldAccessShadowedByKotlinProperty] uncomment when KT-56386 is fixed
// IGNORE_BACKEND_K1: JVM_IR
// IGNORE_BACKEND_K2: JVM_IR
// IGNORE_HEADER_MODE: JVM_IR
// Reason: KT-56386 is not fixed yet

// FILE: BaseJava.java
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
// TARGET_BACKEND: JVM
// JVM_TARGET: 1.8
// WITH_STDLIB
// IGNORE_HEADER_MODE: JVM_IR
// Reason: KT-82408
// FILE: Simple.java

public interface Simple extends KInterface2 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
// TARGET_BACKEND: JVM
// JVM_TARGET: 1.8
// WITH_STDLIB
// IGNORE_HEADER_MODE: JVM_IR
// Reason: KT-82408
// FILE: Simple.java

public interface Simple extends KInterface2 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
// TARGET_BACKEND: JVM
// JVM_TARGET: 1.8
// WITH_STDLIB
// IGNORE_HEADER_MODE: JVM_IR
// Reason: KT-82408
// FILE: Simple.java

public interface Simple extends KInterface2 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
// TARGET_BACKEND: JVM
// JVM_TARGET: 1.8
// WITH_STDLIB
// IGNORE_HEADER_MODE: JVM_IR
// Reason: KT-82408
// FILE: Simple.java

public interface Simple extends KInterface3 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
// FULL_JDK
// WITH_STDLIB
// JVM_TARGET: 1.8
// IGNORE_HEADER_MODE: JVM_IR
// Reason: KT-82408
// FILE: Simple.java

public interface Simple extends KInterface {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
// TARGET_BACKEND: JVM
// JVM_TARGET: 1.8
// WITH_STDLIB
// IGNORE_HEADER_MODE: JVM_IR
// Reason: KT-82408
// FILE: Simple.java

public interface Simple extends KInterface2 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
// TARGET_BACKEND: JVM
// JVM_TARGET: 1.8
// WITH_STDLIB
// IGNORE_HEADER_MODE: JVM_IR
// Reason: KT-82408
// FILE: Simple.java

public interface Simple extends KInterface {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
// TARGET_BACKEND: JVM
// JVM_TARGET: 1.8
// WITH_STDLIB
// IGNORE_HEADER_MODE: JVM_IR
// Reason: KT-82408
// FILE: Simple.java

public interface Simple extends KInterface2 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
// TARGET_BACKEND: JVM
// JVM_TARGET: 1.8
// WITH_STDLIB
// IGNORE_HEADER_MODE: JVM_IR
// Reason: KT-82408
// FILE: Simple.java

public interface Simple extends KInterface2 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
// TARGET_BACKEND: JVM
// JVM_TARGET: 1.8
// WITH_STDLIB
// IGNORE_HEADER_MODE: JVM_IR
// Reason: KT-82408
// FILE: Simple.java

public interface Simple extends KInterface3 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
// TARGET_BACKEND: JVM
// JVM_TARGET: 1.8
// WITH_STDLIB
// IGNORE_HEADER_MODE: JVM_IR
// Reason: KT-82408
// FILE: Simple.java

public interface Simple extends KInterface2 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
// TARGET_BACKEND: JVM
// JVM_TARGET: 1.8
// WITH_STDLIB
// IGNORE_HEADER_MODE: JVM_IR
// Reason: KT-82408
// FILE: Simple.java

public interface Simple extends KInterface2 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
// TARGET_BACKEND: JVM
// JVM_TARGET: 1.8
// WITH_STDLIB
// IGNORE_HEADER_MODE: JVM_IR
// Reason: KT-82408
// FILE: Simple.java

public interface Simple extends KInterface3 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
// TARGET_BACKEND: JVM
// JVM_TARGET: 1.8
// WITH_STDLIB
// IGNORE_HEADER_MODE: JVM_IR
// Reason: KT-82408
// FILE: Simple.java

public interface Simple extends KInterface2 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
// TARGET_BACKEND: JVM
// JVM_TARGET: 1.8
// WITH_STDLIB
// IGNORE_HEADER_MODE: JVM_IR
// Reason: KT-82408
// FILE: Simple.java

public interface Simple extends KInterface {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
// TARGET_BACKEND: JVM
// JVM_TARGET: 1.8
// WITH_STDLIB
// IGNORE_HEADER_MODE: JVM_IR
// Reason: KT-82408
// FILE: Simple.java

public interface Simple extends KInterface {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// ISSUE: KT-57222
// IGNORE_HEADER_MODE: JVM_IR
// Reason: KT-82376

interface Invariant<A>

Expand Down
Loading