[box-tests] Added a test
This commit is contained in:
compiler/fir/fir2ir/tests/org/jetbrains/kotlin/codegen/ir/FirBlackBoxInlineCodegenTestGenerated.java
Generated
+5
@@ -2912,6 +2912,11 @@ public class FirBlackBoxInlineCodegenTestGenerated extends AbstractFirBlackBoxIn
|
||||
runTest("compiler/testData/codegen/boxInline/reified/capturedLambda2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("dontSubstituteNonReified.kt")
|
||||
public void testDontSubstituteNonReified() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/reified/dontSubstituteNonReified.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt11081.kt")
|
||||
public void testKt11081() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/reified/kt11081.kt");
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
// IGNORE_BACKEND: JVM
|
||||
// IGNORE_BACKEND_MULTI_MODULE: JVM, JVM_IR, JVM_MULTI_MODULE_IR_AGAINST_OLD, JVM_MULTI_MODULE_OLD_AGAINST_IR
|
||||
// FILE: 1.kt
|
||||
package test
|
||||
|
||||
interface A
|
||||
class B : A
|
||||
|
||||
inline fun <T : A> foo(a: Any) = (a as? T != null).toString()[0]
|
||||
|
||||
// FILE: 2.kt
|
||||
|
||||
import test.*
|
||||
|
||||
fun box(): String {
|
||||
val s = "" + foo<B>(Any()) + foo<B>(object : A {}) + foo<B>(B())
|
||||
if (s != "ftt") return "fail: $s"
|
||||
return "OK"
|
||||
}
|
||||
|
||||
+5
@@ -2912,6 +2912,11 @@ public class BlackBoxInlineCodegenTestGenerated extends AbstractBlackBoxInlineCo
|
||||
runTest("compiler/testData/codegen/boxInline/reified/capturedLambda2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("dontSubstituteNonReified.kt")
|
||||
public void testDontSubstituteNonReified() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/reified/dontSubstituteNonReified.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt11081.kt")
|
||||
public void testKt11081() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/reified/kt11081.kt");
|
||||
|
||||
Generated
+5
@@ -2912,6 +2912,11 @@ public class CompileKotlinAgainstInlineKotlinTestGenerated extends AbstractCompi
|
||||
runTest("compiler/testData/codegen/boxInline/reified/capturedLambda2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("dontSubstituteNonReified.kt")
|
||||
public void testDontSubstituteNonReified() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/reified/dontSubstituteNonReified.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt11081.kt")
|
||||
public void testKt11081() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/reified/kt11081.kt");
|
||||
|
||||
+5
@@ -2912,6 +2912,11 @@ public class IrBlackBoxInlineCodegenTestGenerated extends AbstractIrBlackBoxInli
|
||||
runTest("compiler/testData/codegen/boxInline/reified/capturedLambda2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("dontSubstituteNonReified.kt")
|
||||
public void testDontSubstituteNonReified() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/reified/dontSubstituteNonReified.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt11081.kt")
|
||||
public void testKt11081() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/reified/kt11081.kt");
|
||||
|
||||
Generated
+5
@@ -2912,6 +2912,11 @@ public class IrCompileKotlinAgainstInlineKotlinTestGenerated extends AbstractIrC
|
||||
runTest("compiler/testData/codegen/boxInline/reified/capturedLambda2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("dontSubstituteNonReified.kt")
|
||||
public void testDontSubstituteNonReified() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/reified/dontSubstituteNonReified.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt11081.kt")
|
||||
public void testKt11081() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/reified/kt11081.kt");
|
||||
|
||||
+5
@@ -2912,6 +2912,11 @@ public class JvmIrAgainstOldBoxInlineTestGenerated extends AbstractJvmIrAgainstO
|
||||
runTest("compiler/testData/codegen/boxInline/reified/capturedLambda2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("dontSubstituteNonReified.kt")
|
||||
public void testDontSubstituteNonReified() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/reified/dontSubstituteNonReified.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt11081.kt")
|
||||
public void testKt11081() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/reified/kt11081.kt");
|
||||
|
||||
+5
@@ -2912,6 +2912,11 @@ public class JvmOldAgainstIrBoxInlineTestGenerated extends AbstractJvmOldAgainst
|
||||
runTest("compiler/testData/codegen/boxInline/reified/capturedLambda2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("dontSubstituteNonReified.kt")
|
||||
public void testDontSubstituteNonReified() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/reified/dontSubstituteNonReified.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt11081.kt")
|
||||
public void testKt11081() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/reified/kt11081.kt");
|
||||
|
||||
Generated
+5
@@ -2657,6 +2657,11 @@ public class IrJsCodegenInlineES6TestGenerated extends AbstractIrJsCodegenInline
|
||||
runTest("compiler/testData/codegen/boxInline/reified/capturedLambda2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("dontSubstituteNonReified.kt")
|
||||
public void testDontSubstituteNonReified() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/reified/dontSubstituteNonReified.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt15956.kt")
|
||||
public void testKt15956() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/reified/kt15956.kt");
|
||||
|
||||
Generated
+5
@@ -2657,6 +2657,11 @@ public class IrJsCodegenInlineTestGenerated extends AbstractIrJsCodegenInlineTes
|
||||
runTest("compiler/testData/codegen/boxInline/reified/capturedLambda2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("dontSubstituteNonReified.kt")
|
||||
public void testDontSubstituteNonReified() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/reified/dontSubstituteNonReified.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt15956.kt")
|
||||
public void testKt15956() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/reified/kt15956.kt");
|
||||
|
||||
+5
@@ -2657,6 +2657,11 @@ public class JsCodegenInlineTestGenerated extends AbstractJsCodegenInlineTest {
|
||||
runTest("compiler/testData/codegen/boxInline/reified/capturedLambda2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("dontSubstituteNonReified.kt")
|
||||
public void testDontSubstituteNonReified() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/reified/dontSubstituteNonReified.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt15956.kt")
|
||||
public void testKt15956() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/reified/kt15956.kt");
|
||||
|
||||
Reference in New Issue
Block a user