[NoArg] Add test for KT-53122

This commit is contained in:
Dmitriy Novozhilov
2022-07-13 15:23:04 +03:00
parent 782dc55800
commit efc443e7ef
4 changed files with 39 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
// ISSUE: KT-53122
// IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND_FIR: JVM_IR
// MODULE: annotations
@Retention(AnnotationRetention.SOURCE)
annotation class NoArg
// MODULE: a(annotations)
@NoArg
abstract class Base(val x: Int)
// MODULE: b(a, annotations)
@NoArg
abstract class Derived(x: Int) : Base(x)
fun box(): String {
return "OK"
}
@@ -55,6 +55,12 @@ public class BlackBoxCodegenTestForNoArgGenerated extends AbstractBlackBoxCodege
runTest("plugins/noarg/testData/box/kt18668.kt");
}
@Test
@TestMetadata("kt53122.kt")
public void testKt53122() throws Exception {
runTest("plugins/noarg/testData/box/kt53122.kt");
}
@Test
@TestMetadata("localClassInInitiailzer.kt")
public void testLocalClassInInitiailzer() throws Exception {
@@ -55,6 +55,12 @@ public class FirBlackBoxCodegenTestForNoArgGenerated extends AbstractFirBlackBox
runTest("plugins/noarg/testData/box/kt18668.kt");
}
@Test
@TestMetadata("kt53122.kt")
public void testKt53122() throws Exception {
runTest("plugins/noarg/testData/box/kt53122.kt");
}
@Test
@TestMetadata("localClassInInitiailzer.kt")
public void testLocalClassInInitiailzer() throws Exception {
@@ -55,6 +55,12 @@ public class IrBlackBoxCodegenTestForNoArgGenerated extends AbstractIrBlackBoxCo
runTest("plugins/noarg/testData/box/kt18668.kt");
}
@Test
@TestMetadata("kt53122.kt")
public void testKt53122() throws Exception {
runTest("plugins/noarg/testData/box/kt53122.kt");
}
@Test
@TestMetadata("localClassInInitiailzer.kt")
public void testLocalClassInInitiailzer() throws Exception {