Test for obsolete KT-16496

#KT-16496 Obsolete
This commit is contained in:
Mikhael Bogdanov
2019-01-03 13:22:03 +01:00
parent c968a362f6
commit cfc21ffa56
6 changed files with 51 additions and 0 deletions
@@ -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++
}
}
@@ -1127,6 +1127,11 @@ public class BlackBoxInlineCodegenTestGenerated extends AbstractBlackBoxInlineCo
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")
public void testKt18689() throws Exception {
runTest("compiler/testData/codegen/boxInline/defaultValues/kt18689.kt");
@@ -1127,6 +1127,11 @@ public class CompileKotlinAgainstInlineKotlinTestGenerated extends AbstractCompi
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")
public void testKt18689() throws Exception {
runTest("compiler/testData/codegen/boxInline/defaultValues/kt18689.kt");
@@ -1127,6 +1127,11 @@ public class IrBlackBoxInlineCodegenTestGenerated extends AbstractIrBlackBoxInli
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")
public void testKt18689() throws Exception {
runTest("compiler/testData/codegen/boxInline/defaultValues/kt18689.kt");
@@ -89,6 +89,11 @@ public class InlineDefaultValuesTestsGenerated extends AbstractInlineDefaultValu
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")
public void testKt18689() throws Exception {
runTest("compiler/testData/codegen/boxInline/defaultValues/kt18689.kt");
@@ -89,6 +89,11 @@ public class IrInlineDefaultValuesTestsGenerated extends AbstractIrInlineDefault
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")
public void testKt18689() throws Exception {
runTest("compiler/testData/codegen/boxInline/defaultValues/kt18689.kt");