JVM_IR add test for KT-49411
This commit is contained in:
committed by
TeamCityServer
parent
56cf2549e7
commit
e76cf8550e
+6
@@ -31924,6 +31924,12 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT
|
|||||||
public void testForNullableIntInDownTo() throws Exception {
|
public void testForNullableIntInDownTo() throws Exception {
|
||||||
runTest("compiler/testData/codegen/box/ranges/forInDownTo/forNullableIntInDownTo.kt");
|
runTest("compiler/testData/codegen/box/ranges/forInDownTo/forNullableIntInDownTo.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("kt49411.kt")
|
||||||
|
public void testKt49411() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/box/ranges/forInDownTo/kt49411.kt");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Nested
|
@Nested
|
||||||
|
|||||||
@@ -0,0 +1,22 @@
|
|||||||
|
// TARGET_BACKEND: JVM
|
||||||
|
// WITH_RUNTIME
|
||||||
|
|
||||||
|
abstract class Foo<T>(@JvmField val foo: T)
|
||||||
|
|
||||||
|
class Bar(foo: Int) : Foo<Int>(foo)
|
||||||
|
|
||||||
|
fun box(): String {
|
||||||
|
var s1 = ""
|
||||||
|
for (i in Bar(3).foo.downTo(1)) {
|
||||||
|
s1 = s1 + i
|
||||||
|
}
|
||||||
|
if (s1 != "321") return "Failed: s1='$s1'"
|
||||||
|
|
||||||
|
var s2 = ""
|
||||||
|
for (i in 3.downTo(Bar(1).foo)) {
|
||||||
|
s2 = s2 + i
|
||||||
|
}
|
||||||
|
if (s2 != "321") return "Failed: s2='$s2'"
|
||||||
|
|
||||||
|
return "OK"
|
||||||
|
}
|
||||||
+6
@@ -31786,6 +31786,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
|
|||||||
public void testForNullableIntInDownTo() throws Exception {
|
public void testForNullableIntInDownTo() throws Exception {
|
||||||
runTest("compiler/testData/codegen/box/ranges/forInDownTo/forNullableIntInDownTo.kt");
|
runTest("compiler/testData/codegen/box/ranges/forInDownTo/forNullableIntInDownTo.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("kt49411.kt")
|
||||||
|
public void testKt49411() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/box/ranges/forInDownTo/kt49411.kt");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Nested
|
@Nested
|
||||||
|
|||||||
+6
@@ -31924,6 +31924,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
|
|||||||
public void testForNullableIntInDownTo() throws Exception {
|
public void testForNullableIntInDownTo() throws Exception {
|
||||||
runTest("compiler/testData/codegen/box/ranges/forInDownTo/forNullableIntInDownTo.kt");
|
runTest("compiler/testData/codegen/box/ranges/forInDownTo/forNullableIntInDownTo.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("kt49411.kt")
|
||||||
|
public void testKt49411() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/box/ranges/forInDownTo/kt49411.kt");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Nested
|
@Nested
|
||||||
|
|||||||
+5
@@ -27065,6 +27065,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
|
|||||||
public void testForNullableIntInDownTo() throws Exception {
|
public void testForNullableIntInDownTo() throws Exception {
|
||||||
runTest("compiler/testData/codegen/box/ranges/forInDownTo/forNullableIntInDownTo.kt");
|
runTest("compiler/testData/codegen/box/ranges/forInDownTo/forNullableIntInDownTo.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("kt49411.kt")
|
||||||
|
public void testKt49411() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/box/ranges/forInDownTo/kt49411.kt");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@TestMetadata("compiler/testData/codegen/box/ranges/forInIndices")
|
@TestMetadata("compiler/testData/codegen/box/ranges/forInIndices")
|
||||||
|
|||||||
Reference in New Issue
Block a user