Test for obsolete KT-16496
#KT-16496 Obsolete
This commit is contained in:
@@ -0,0 +1,26 @@
|
|||||||
|
// IGNORE_BACKEND: JVM_IR
|
||||||
|
// FILE: 1.kt
|
||||||
|
|
||||||
|
package test
|
||||||
|
|
||||||
|
inline fun f(
|
||||||
|
wait: Int = 0,
|
||||||
|
action: (Int) -> Unit
|
||||||
|
): String {
|
||||||
|
var millis: Long = 1
|
||||||
|
try {
|
||||||
|
} catch (e: Throwable) {
|
||||||
|
millis = millis
|
||||||
|
}
|
||||||
|
return "OK"
|
||||||
|
}
|
||||||
|
|
||||||
|
// FILE: 2.kt
|
||||||
|
import test.*
|
||||||
|
|
||||||
|
fun box(): String {
|
||||||
|
var x = 0
|
||||||
|
return f {
|
||||||
|
x++
|
||||||
|
}
|
||||||
|
}
|
||||||
+5
@@ -1127,6 +1127,11 @@ public class BlackBoxInlineCodegenTestGenerated extends AbstractBlackBoxInlineCo
|
|||||||
runTest("compiler/testData/codegen/boxInline/defaultValues/kt14564_2.kt");
|
runTest("compiler/testData/codegen/boxInline/defaultValues/kt14564_2.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("kt16496.kt")
|
||||||
|
public void testKt16496() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/defaultValues/kt16496.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("kt18689.kt")
|
@TestMetadata("kt18689.kt")
|
||||||
public void testKt18689() throws Exception {
|
public void testKt18689() throws Exception {
|
||||||
runTest("compiler/testData/codegen/boxInline/defaultValues/kt18689.kt");
|
runTest("compiler/testData/codegen/boxInline/defaultValues/kt18689.kt");
|
||||||
|
|||||||
Generated
+5
@@ -1127,6 +1127,11 @@ public class CompileKotlinAgainstInlineKotlinTestGenerated extends AbstractCompi
|
|||||||
runTest("compiler/testData/codegen/boxInline/defaultValues/kt14564_2.kt");
|
runTest("compiler/testData/codegen/boxInline/defaultValues/kt14564_2.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("kt16496.kt")
|
||||||
|
public void testKt16496() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/defaultValues/kt16496.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("kt18689.kt")
|
@TestMetadata("kt18689.kt")
|
||||||
public void testKt18689() throws Exception {
|
public void testKt18689() throws Exception {
|
||||||
runTest("compiler/testData/codegen/boxInline/defaultValues/kt18689.kt");
|
runTest("compiler/testData/codegen/boxInline/defaultValues/kt18689.kt");
|
||||||
|
|||||||
+5
@@ -1127,6 +1127,11 @@ public class IrBlackBoxInlineCodegenTestGenerated extends AbstractIrBlackBoxInli
|
|||||||
runTest("compiler/testData/codegen/boxInline/defaultValues/kt14564_2.kt");
|
runTest("compiler/testData/codegen/boxInline/defaultValues/kt14564_2.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("kt16496.kt")
|
||||||
|
public void testKt16496() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/defaultValues/kt16496.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("kt18689.kt")
|
@TestMetadata("kt18689.kt")
|
||||||
public void testKt18689() throws Exception {
|
public void testKt18689() throws Exception {
|
||||||
runTest("compiler/testData/codegen/boxInline/defaultValues/kt18689.kt");
|
runTest("compiler/testData/codegen/boxInline/defaultValues/kt18689.kt");
|
||||||
|
|||||||
Generated
+5
@@ -89,6 +89,11 @@ public class InlineDefaultValuesTestsGenerated extends AbstractInlineDefaultValu
|
|||||||
runTest("compiler/testData/codegen/boxInline/defaultValues/kt14564_2.kt");
|
runTest("compiler/testData/codegen/boxInline/defaultValues/kt14564_2.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("kt16496.kt")
|
||||||
|
public void testKt16496() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/defaultValues/kt16496.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("kt18689.kt")
|
@TestMetadata("kt18689.kt")
|
||||||
public void testKt18689() throws Exception {
|
public void testKt18689() throws Exception {
|
||||||
runTest("compiler/testData/codegen/boxInline/defaultValues/kt18689.kt");
|
runTest("compiler/testData/codegen/boxInline/defaultValues/kt18689.kt");
|
||||||
|
|||||||
Generated
+5
@@ -89,6 +89,11 @@ public class IrInlineDefaultValuesTestsGenerated extends AbstractIrInlineDefault
|
|||||||
runTest("compiler/testData/codegen/boxInline/defaultValues/kt14564_2.kt");
|
runTest("compiler/testData/codegen/boxInline/defaultValues/kt14564_2.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("kt16496.kt")
|
||||||
|
public void testKt16496() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/defaultValues/kt16496.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("kt18689.kt")
|
@TestMetadata("kt18689.kt")
|
||||||
public void testKt18689() throws Exception {
|
public void testKt18689() throws Exception {
|
||||||
runTest("compiler/testData/codegen/boxInline/defaultValues/kt18689.kt");
|
runTest("compiler/testData/codegen/boxInline/defaultValues/kt18689.kt");
|
||||||
|
|||||||
Reference in New Issue
Block a user