diff --git a/analysis/low-level-api-fir/tests/org/jetbrains/kotlin/analysis/low/level/api/fir/diagnostic/compiler/based/LLFirBlackBoxCodegenBasedTestGenerated.java b/analysis/low-level-api-fir/tests/org/jetbrains/kotlin/analysis/low/level/api/fir/diagnostic/compiler/based/LLFirBlackBoxCodegenBasedTestGenerated.java index a7e7e148186..8646c81a522 100644 --- a/analysis/low-level-api-fir/tests/org/jetbrains/kotlin/analysis/low/level/api/fir/diagnostic/compiler/based/LLFirBlackBoxCodegenBasedTestGenerated.java +++ b/analysis/low-level-api-fir/tests/org/jetbrains/kotlin/analysis/low/level/api/fir/diagnostic/compiler/based/LLFirBlackBoxCodegenBasedTestGenerated.java @@ -22,7 +22,7 @@ import java.util.regex.Pattern; public class LLFirBlackBoxCodegenBasedTestGenerated extends AbstractLLFirBlackBoxCodegenBasedTest { @Test public void testAllFilesPresentInBox() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box"), Pattern.compile("^(.+)\\.kt$"), null, true, "script", "cinterop", "fileCheck/cinterop"); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box"), Pattern.compile("^(.+)\\.kt$"), null, true, "script"); } @Nested @@ -19477,318 +19477,6 @@ public class LLFirBlackBoxCodegenBasedTestGenerated extends AbstractLLFirBlackBo } } - @Nested - @TestMetadata("compiler/testData/codegen/box/fileCheck") - @TestDataPath("$PROJECT_ROOT") - public class FileCheck { - @Test - @TestMetadata("adopted_function_reference.kt") - public void testAdopted_function_reference() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/adopted_function_reference.kt"); - } - - @Test - public void testAllFilesPresentInFileCheck() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fileCheck"), Pattern.compile("^(.+)\\.kt$"), null, true, "cinterop"); - } - - @Test - @TestMetadata("atomics.kt") - public void testAtomics() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/atomics.kt"); - } - - @Test - @TestMetadata("bce.kt") - public void testBce() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/bce.kt"); - } - - @Test - @TestMetadata("constants_merge.kt") - public void testConstants_merge() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/constants_merge.kt"); - } - - @Test - @TestMetadata("default_parameters_dont_box.kt") - public void testDefault_parameters_dont_box() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/default_parameters_dont_box.kt"); - } - - @Test - @TestMetadata("enum_when.kt") - public void testEnum_when() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/enum_when.kt"); - } - - @Test - @TestMetadata("escape_analysis.kt") - public void testEscape_analysis() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/escape_analysis.kt"); - } - - @Test - @TestMetadata("filecheck_expected_failure.kt") - public void testFilecheck_expected_failure() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/filecheck_expected_failure.kt"); - } - - @Test - @TestMetadata("force_arm_instruction_set.kt") - public void testForce_arm_instruction_set() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/force_arm_instruction_set.kt"); - } - - @Test - @TestMetadata("function_attributes_at_callsite.kt") - public void testFunction_attributes_at_callsite() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/function_attributes_at_callsite.kt"); - } - - @Test - @TestMetadata("generic_function_references.kt") - public void testGeneric_function_references() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/generic_function_references.kt"); - } - - @Test - @TestMetadata("intrinsics.kt") - public void testIntrinsics() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/intrinsics.kt"); - } - - @Test - @TestMetadata("kt49847_class.kt") - public void testKt49847_class() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/kt49847_class.kt"); - } - - @Test - @TestMetadata("kt49847_generic.kt") - public void testKt49847_generic() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/kt49847_generic.kt"); - } - - @Test - @TestMetadata("kt49847_generic_receiver.kt") - public void testKt49847_generic_receiver() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/kt49847_generic_receiver.kt"); - } - - @Test - @TestMetadata("kt49847_sam_Any.kt") - public void testKt49847_sam_Any() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/kt49847_sam_Any.kt"); - } - - @Test - @TestMetadata("kt49847_sam_Any_generic.kt") - public void testKt49847_sam_Any_generic() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/kt49847_sam_Any_generic.kt"); - } - - @Test - @TestMetadata("kt49847_sam_Int.kt") - public void testKt49847_sam_Int() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/kt49847_sam_Int.kt"); - } - - @Test - @TestMetadata("kt49847_sam_Int_generic.kt") - public void testKt49847_sam_Int_generic() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/kt49847_sam_Int_generic.kt"); - } - - @Test - @TestMetadata("kt49847_simple_function_reference.kt") - public void testKt49847_simple_function_reference() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/kt49847_simple_function_reference.kt"); - } - - @Test - @TestMetadata("kt58654.kt") - public void testKt58654() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/kt58654.kt"); - } - - @Test - @TestMetadata("no_frame_on_constant_object_access.kt") - public void testNo_frame_on_constant_object_access() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/no_frame_on_constant_object_access.kt"); - } - - @Test - @TestMetadata("redundant_safepoints.kt") - public void testRedundant_safepoints() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/redundant_safepoints.kt"); - } - - @Test - @TestMetadata("replace_invoke_with_call.kt") - public void testReplace_invoke_with_call() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/replace_invoke_with_call.kt"); - } - - @Test - @TestMetadata("signext_zeroext0.kt") - public void testSignext_zeroext0() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/signext_zeroext0.kt"); - } - - @Test - @TestMetadata("single_tls_load.kt") - public void testSingle_tls_load() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/single_tls_load.kt"); - } - - @Test - @TestMetadata("smoke0.kt") - public void testSmoke0() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/smoke0.kt"); - } - - @Test - @TestMetadata("suspend_returnNothing.kt") - public void testSuspend_returnNothing() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/suspend_returnNothing.kt"); - } - - @Test - @TestMetadata("suspend_tailcalls_functions.kt") - public void testSuspend_tailcalls_functions() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/suspend_tailcalls_functions.kt"); - } - - @Test - @TestMetadata("suspend_tailcalls_lambdas.kt") - public void testSuspend_tailcalls_lambdas() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/suspend_tailcalls_lambdas.kt"); - } - - @Test - @TestMetadata("when.kt") - public void testWhen() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/when.kt"); - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/fileCheck/kt53261") - @TestDataPath("$PROJECT_ROOT") - public class Kt53261 { - @Test - public void testAllFilesPresentInKt53261() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fileCheck/kt53261"), Pattern.compile("^(.+)\\.kt$"), null, true); - } - - @Test - @TestMetadata("kt53261_inline_unbox.kt") - public void testKt53261_inline_unbox() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/kt53261/kt53261_inline_unbox.kt"); - } - - @Test - @TestMetadata("kt53261_noinline_CPointer.kt") - public void testKt53261_noinline_CPointer() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/kt53261/kt53261_noinline_CPointer.kt"); - } - - @Test - @TestMetadata("kt53261_noinline_NativePointed.kt") - public void testKt53261_noinline_NativePointed() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/kt53261/kt53261_noinline_NativePointed.kt"); - } - - @Test - @TestMetadata("kt53261_noinline_NonNullNativePtr.kt") - public void testKt53261_noinline_NonNullNativePtr() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/kt53261/kt53261_noinline_NonNullNativePtr.kt"); - } - - @Test - @TestMetadata("kt53261_noinline_StableRef.kt") - public void testKt53261_noinline_StableRef() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/kt53261/kt53261_noinline_StableRef.kt"); - } - - @Test - @TestMetadata("kt53261_noinline_UByteArray.kt") - public void testKt53261_noinline_UByteArray() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/kt53261/kt53261_noinline_UByteArray.kt"); - } - - @Test - @TestMetadata("kt53261_noinline_UIntArray.kt") - public void testKt53261_noinline_UIntArray() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/kt53261/kt53261_noinline_UIntArray.kt"); - } - - @Test - @TestMetadata("kt53261_noinline_ULongArray.kt") - public void testKt53261_noinline_ULongArray() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/kt53261/kt53261_noinline_ULongArray.kt"); - } - - @Test - @TestMetadata("kt53261_noinline_UShortArray.kt") - public void testKt53261_noinline_UShortArray() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/kt53261/kt53261_noinline_UShortArray.kt"); - } - - @Test - @TestMetadata("kt53261_noinline_value_unbox.kt") - public void testKt53261_noinline_value_unbox() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/kt53261/kt53261_noinline_value_unbox.kt"); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/fileCheck/stringConcatenationTypeNarrowing") - @TestDataPath("$PROJECT_ROOT") - public class StringConcatenationTypeNarrowing { - @Test - public void testAllFilesPresentInStringConcatenationTypeNarrowing() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fileCheck/stringConcatenationTypeNarrowing"), Pattern.compile("^(.+)\\.kt$"), null, true); - } - - @Test - @TestMetadata("kt53119_append_generated.kt") - public void testKt53119_append_generated() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/stringConcatenationTypeNarrowing/kt53119_append_generated.kt"); - } - - @Test - @TestMetadata("kt53119_append_manual.kt") - public void testKt53119_append_manual() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/stringConcatenationTypeNarrowing/kt53119_append_manual.kt"); - } - - @Test - @TestMetadata("kt53119_plus_extension.kt") - public void testKt53119_plus_extension() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/stringConcatenationTypeNarrowing/kt53119_plus_extension.kt"); - } - - @Test - @TestMetadata("kt53119_plus_generated_noescape.kt") - public void testKt53119_plus_generated_noescape() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/stringConcatenationTypeNarrowing/kt53119_plus_generated_noescape.kt"); - } - - @Test - @TestMetadata("kt53119_plus_member.kt") - public void testKt53119_plus_member() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/stringConcatenationTypeNarrowing/kt53119_plus_member.kt"); - } - - @Test - @TestMetadata("kt53119_side_effect.kt") - public void testKt53119_side_effect() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/stringConcatenationTypeNarrowing/kt53119_side_effect.kt"); - } - } - } - @Nested @TestMetadata("compiler/testData/codegen/box/finally") @TestDataPath("$PROJECT_ROOT") diff --git a/analysis/low-level-api-fir/tests/org/jetbrains/kotlin/analysis/low/level/api/fir/diagnostic/compiler/based/LLFirReversedBlackBoxCodegenBasedTestGenerated.java b/analysis/low-level-api-fir/tests/org/jetbrains/kotlin/analysis/low/level/api/fir/diagnostic/compiler/based/LLFirReversedBlackBoxCodegenBasedTestGenerated.java index f92054c7591..03ca3bdb2e2 100644 --- a/analysis/low-level-api-fir/tests/org/jetbrains/kotlin/analysis/low/level/api/fir/diagnostic/compiler/based/LLFirReversedBlackBoxCodegenBasedTestGenerated.java +++ b/analysis/low-level-api-fir/tests/org/jetbrains/kotlin/analysis/low/level/api/fir/diagnostic/compiler/based/LLFirReversedBlackBoxCodegenBasedTestGenerated.java @@ -22,7 +22,7 @@ import java.util.regex.Pattern; public class LLFirReversedBlackBoxCodegenBasedTestGenerated extends AbstractLLFirReversedBlackBoxCodegenBasedTest { @Test public void testAllFilesPresentInBox() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box"), Pattern.compile("^(.+)\\.kt$"), null, true, "script", "cinterop", "fileCheck/cinterop"); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box"), Pattern.compile("^(.+)\\.kt$"), null, true, "script"); } @Nested @@ -19477,318 +19477,6 @@ public class LLFirReversedBlackBoxCodegenBasedTestGenerated extends AbstractLLFi } } - @Nested - @TestMetadata("compiler/testData/codegen/box/fileCheck") - @TestDataPath("$PROJECT_ROOT") - public class FileCheck { - @Test - @TestMetadata("adopted_function_reference.kt") - public void testAdopted_function_reference() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/adopted_function_reference.kt"); - } - - @Test - public void testAllFilesPresentInFileCheck() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fileCheck"), Pattern.compile("^(.+)\\.kt$"), null, true, "cinterop"); - } - - @Test - @TestMetadata("atomics.kt") - public void testAtomics() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/atomics.kt"); - } - - @Test - @TestMetadata("bce.kt") - public void testBce() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/bce.kt"); - } - - @Test - @TestMetadata("constants_merge.kt") - public void testConstants_merge() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/constants_merge.kt"); - } - - @Test - @TestMetadata("default_parameters_dont_box.kt") - public void testDefault_parameters_dont_box() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/default_parameters_dont_box.kt"); - } - - @Test - @TestMetadata("enum_when.kt") - public void testEnum_when() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/enum_when.kt"); - } - - @Test - @TestMetadata("escape_analysis.kt") - public void testEscape_analysis() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/escape_analysis.kt"); - } - - @Test - @TestMetadata("filecheck_expected_failure.kt") - public void testFilecheck_expected_failure() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/filecheck_expected_failure.kt"); - } - - @Test - @TestMetadata("force_arm_instruction_set.kt") - public void testForce_arm_instruction_set() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/force_arm_instruction_set.kt"); - } - - @Test - @TestMetadata("function_attributes_at_callsite.kt") - public void testFunction_attributes_at_callsite() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/function_attributes_at_callsite.kt"); - } - - @Test - @TestMetadata("generic_function_references.kt") - public void testGeneric_function_references() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/generic_function_references.kt"); - } - - @Test - @TestMetadata("intrinsics.kt") - public void testIntrinsics() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/intrinsics.kt"); - } - - @Test - @TestMetadata("kt49847_class.kt") - public void testKt49847_class() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/kt49847_class.kt"); - } - - @Test - @TestMetadata("kt49847_generic.kt") - public void testKt49847_generic() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/kt49847_generic.kt"); - } - - @Test - @TestMetadata("kt49847_generic_receiver.kt") - public void testKt49847_generic_receiver() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/kt49847_generic_receiver.kt"); - } - - @Test - @TestMetadata("kt49847_sam_Any.kt") - public void testKt49847_sam_Any() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/kt49847_sam_Any.kt"); - } - - @Test - @TestMetadata("kt49847_sam_Any_generic.kt") - public void testKt49847_sam_Any_generic() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/kt49847_sam_Any_generic.kt"); - } - - @Test - @TestMetadata("kt49847_sam_Int.kt") - public void testKt49847_sam_Int() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/kt49847_sam_Int.kt"); - } - - @Test - @TestMetadata("kt49847_sam_Int_generic.kt") - public void testKt49847_sam_Int_generic() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/kt49847_sam_Int_generic.kt"); - } - - @Test - @TestMetadata("kt49847_simple_function_reference.kt") - public void testKt49847_simple_function_reference() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/kt49847_simple_function_reference.kt"); - } - - @Test - @TestMetadata("kt58654.kt") - public void testKt58654() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/kt58654.kt"); - } - - @Test - @TestMetadata("no_frame_on_constant_object_access.kt") - public void testNo_frame_on_constant_object_access() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/no_frame_on_constant_object_access.kt"); - } - - @Test - @TestMetadata("redundant_safepoints.kt") - public void testRedundant_safepoints() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/redundant_safepoints.kt"); - } - - @Test - @TestMetadata("replace_invoke_with_call.kt") - public void testReplace_invoke_with_call() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/replace_invoke_with_call.kt"); - } - - @Test - @TestMetadata("signext_zeroext0.kt") - public void testSignext_zeroext0() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/signext_zeroext0.kt"); - } - - @Test - @TestMetadata("single_tls_load.kt") - public void testSingle_tls_load() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/single_tls_load.kt"); - } - - @Test - @TestMetadata("smoke0.kt") - public void testSmoke0() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/smoke0.kt"); - } - - @Test - @TestMetadata("suspend_returnNothing.kt") - public void testSuspend_returnNothing() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/suspend_returnNothing.kt"); - } - - @Test - @TestMetadata("suspend_tailcalls_functions.kt") - public void testSuspend_tailcalls_functions() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/suspend_tailcalls_functions.kt"); - } - - @Test - @TestMetadata("suspend_tailcalls_lambdas.kt") - public void testSuspend_tailcalls_lambdas() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/suspend_tailcalls_lambdas.kt"); - } - - @Test - @TestMetadata("when.kt") - public void testWhen() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/when.kt"); - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/fileCheck/kt53261") - @TestDataPath("$PROJECT_ROOT") - public class Kt53261 { - @Test - public void testAllFilesPresentInKt53261() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fileCheck/kt53261"), Pattern.compile("^(.+)\\.kt$"), null, true); - } - - @Test - @TestMetadata("kt53261_inline_unbox.kt") - public void testKt53261_inline_unbox() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/kt53261/kt53261_inline_unbox.kt"); - } - - @Test - @TestMetadata("kt53261_noinline_CPointer.kt") - public void testKt53261_noinline_CPointer() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/kt53261/kt53261_noinline_CPointer.kt"); - } - - @Test - @TestMetadata("kt53261_noinline_NativePointed.kt") - public void testKt53261_noinline_NativePointed() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/kt53261/kt53261_noinline_NativePointed.kt"); - } - - @Test - @TestMetadata("kt53261_noinline_NonNullNativePtr.kt") - public void testKt53261_noinline_NonNullNativePtr() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/kt53261/kt53261_noinline_NonNullNativePtr.kt"); - } - - @Test - @TestMetadata("kt53261_noinline_StableRef.kt") - public void testKt53261_noinline_StableRef() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/kt53261/kt53261_noinline_StableRef.kt"); - } - - @Test - @TestMetadata("kt53261_noinline_UByteArray.kt") - public void testKt53261_noinline_UByteArray() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/kt53261/kt53261_noinline_UByteArray.kt"); - } - - @Test - @TestMetadata("kt53261_noinline_UIntArray.kt") - public void testKt53261_noinline_UIntArray() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/kt53261/kt53261_noinline_UIntArray.kt"); - } - - @Test - @TestMetadata("kt53261_noinline_ULongArray.kt") - public void testKt53261_noinline_ULongArray() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/kt53261/kt53261_noinline_ULongArray.kt"); - } - - @Test - @TestMetadata("kt53261_noinline_UShortArray.kt") - public void testKt53261_noinline_UShortArray() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/kt53261/kt53261_noinline_UShortArray.kt"); - } - - @Test - @TestMetadata("kt53261_noinline_value_unbox.kt") - public void testKt53261_noinline_value_unbox() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/kt53261/kt53261_noinline_value_unbox.kt"); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/fileCheck/stringConcatenationTypeNarrowing") - @TestDataPath("$PROJECT_ROOT") - public class StringConcatenationTypeNarrowing { - @Test - public void testAllFilesPresentInStringConcatenationTypeNarrowing() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fileCheck/stringConcatenationTypeNarrowing"), Pattern.compile("^(.+)\\.kt$"), null, true); - } - - @Test - @TestMetadata("kt53119_append_generated.kt") - public void testKt53119_append_generated() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/stringConcatenationTypeNarrowing/kt53119_append_generated.kt"); - } - - @Test - @TestMetadata("kt53119_append_manual.kt") - public void testKt53119_append_manual() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/stringConcatenationTypeNarrowing/kt53119_append_manual.kt"); - } - - @Test - @TestMetadata("kt53119_plus_extension.kt") - public void testKt53119_plus_extension() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/stringConcatenationTypeNarrowing/kt53119_plus_extension.kt"); - } - - @Test - @TestMetadata("kt53119_plus_generated_noescape.kt") - public void testKt53119_plus_generated_noescape() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/stringConcatenationTypeNarrowing/kt53119_plus_generated_noescape.kt"); - } - - @Test - @TestMetadata("kt53119_plus_member.kt") - public void testKt53119_plus_member() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/stringConcatenationTypeNarrowing/kt53119_plus_member.kt"); - } - - @Test - @TestMetadata("kt53119_side_effect.kt") - public void testKt53119_side_effect() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/stringConcatenationTypeNarrowing/kt53119_side_effect.kt"); - } - } - } - @Nested @TestMetadata("compiler/testData/codegen/box/finally") @TestDataPath("$PROJECT_ROOT") diff --git a/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirLightTreeBlackBoxCodegenTestGenerated.java b/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirLightTreeBlackBoxCodegenTestGenerated.java index df07de26ad2..e3206a15ff4 100644 --- a/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirLightTreeBlackBoxCodegenTestGenerated.java +++ b/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirLightTreeBlackBoxCodegenTestGenerated.java @@ -6318,66 +6318,6 @@ public class FirLightTreeBlackBoxCodegenTestGenerated extends AbstractFirLightTr } } - @Nested - @TestMetadata("compiler/testData/codegen/box/cinterop") - @TestDataPath("$PROJECT_ROOT") - public class Cinterop { - @Test - public void testAllFilesPresentInCinterop() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/cinterop/basics") - @TestDataPath("$PROJECT_ROOT") - public class Basics { - @Test - public void testAllFilesPresentInBasics() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop/basics"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/cinterop/exceptions") - @TestDataPath("$PROJECT_ROOT") - public class Exceptions { - @Test - public void testAllFilesPresentInExceptions() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop/exceptions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/cinterop/objc") - @TestDataPath("$PROJECT_ROOT") - public class Objc { - @Test - public void testAllFilesPresentInObjc() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop/objc"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/cinterop/packages") - @TestDataPath("$PROJECT_ROOT") - public class Packages { - @Test - public void testAllFilesPresentInPackages() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop/packages"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/cinterop/threadStates") - @TestDataPath("$PROJECT_ROOT") - public class ThreadStates { - @Test - public void testAllFilesPresentInThreadStates() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop/threadStates"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - } - } - @Nested @TestMetadata("compiler/testData/codegen/box/classLiteral") @TestDataPath("$PROJECT_ROOT") @@ -19466,52 +19406,6 @@ public class FirLightTreeBlackBoxCodegenTestGenerated extends AbstractFirLightTr } } - @Nested - @TestMetadata("compiler/testData/codegen/box/fileCheck") - @TestDataPath("$PROJECT_ROOT") - public class FileCheck { - @Test - public void testAllFilesPresentInFileCheck() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fileCheck"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/fileCheck/cinterop") - @TestDataPath("$PROJECT_ROOT") - public class Cinterop { - @Test - public void testAllFilesPresentInCinterop() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fileCheck/cinterop"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/fileCheck/kt53261") - @TestDataPath("$PROJECT_ROOT") - public class Kt53261 { - @Test - public void testAllFilesPresentInKt53261() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fileCheck/kt53261"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/fileCheck/stringConcatenationTypeNarrowing") - @TestDataPath("$PROJECT_ROOT") - public class StringConcatenationTypeNarrowing { - @Test - public void testAllFilesPresentInStringConcatenationTypeNarrowing() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fileCheck/stringConcatenationTypeNarrowing"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - - @Test - @TestMetadata("kt53119_side_effect.kt") - public void testKt53119_side_effect() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/stringConcatenationTypeNarrowing/kt53119_side_effect.kt"); - } - } - } - @Nested @TestMetadata("compiler/testData/codegen/box/finally") @TestDataPath("$PROJECT_ROOT") diff --git a/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirLightTreeBlackBoxCodegenWithIrFakeOverrideGeneratorTestGenerated.java b/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirLightTreeBlackBoxCodegenWithIrFakeOverrideGeneratorTestGenerated.java index 7e123a5b80a..c38f7bc59ef 100644 --- a/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirLightTreeBlackBoxCodegenWithIrFakeOverrideGeneratorTestGenerated.java +++ b/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirLightTreeBlackBoxCodegenWithIrFakeOverrideGeneratorTestGenerated.java @@ -6318,66 +6318,6 @@ public class FirLightTreeBlackBoxCodegenWithIrFakeOverrideGeneratorTestGenerated } } - @Nested - @TestMetadata("compiler/testData/codegen/box/cinterop") - @TestDataPath("$PROJECT_ROOT") - public class Cinterop { - @Test - public void testAllFilesPresentInCinterop() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/cinterop/basics") - @TestDataPath("$PROJECT_ROOT") - public class Basics { - @Test - public void testAllFilesPresentInBasics() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop/basics"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/cinterop/exceptions") - @TestDataPath("$PROJECT_ROOT") - public class Exceptions { - @Test - public void testAllFilesPresentInExceptions() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop/exceptions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/cinterop/objc") - @TestDataPath("$PROJECT_ROOT") - public class Objc { - @Test - public void testAllFilesPresentInObjc() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop/objc"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/cinterop/packages") - @TestDataPath("$PROJECT_ROOT") - public class Packages { - @Test - public void testAllFilesPresentInPackages() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop/packages"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/cinterop/threadStates") - @TestDataPath("$PROJECT_ROOT") - public class ThreadStates { - @Test - public void testAllFilesPresentInThreadStates() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop/threadStates"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - } - } - @Nested @TestMetadata("compiler/testData/codegen/box/classLiteral") @TestDataPath("$PROJECT_ROOT") @@ -19466,52 +19406,6 @@ public class FirLightTreeBlackBoxCodegenWithIrFakeOverrideGeneratorTestGenerated } } - @Nested - @TestMetadata("compiler/testData/codegen/box/fileCheck") - @TestDataPath("$PROJECT_ROOT") - public class FileCheck { - @Test - public void testAllFilesPresentInFileCheck() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fileCheck"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/fileCheck/cinterop") - @TestDataPath("$PROJECT_ROOT") - public class Cinterop { - @Test - public void testAllFilesPresentInCinterop() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fileCheck/cinterop"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/fileCheck/kt53261") - @TestDataPath("$PROJECT_ROOT") - public class Kt53261 { - @Test - public void testAllFilesPresentInKt53261() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fileCheck/kt53261"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/fileCheck/stringConcatenationTypeNarrowing") - @TestDataPath("$PROJECT_ROOT") - public class StringConcatenationTypeNarrowing { - @Test - public void testAllFilesPresentInStringConcatenationTypeNarrowing() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fileCheck/stringConcatenationTypeNarrowing"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - - @Test - @TestMetadata("kt53119_side_effect.kt") - public void testKt53119_side_effect() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/stringConcatenationTypeNarrowing/kt53119_side_effect.kt"); - } - } - } - @Nested @TestMetadata("compiler/testData/codegen/box/finally") @TestDataPath("$PROJECT_ROOT") diff --git a/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirPsiBlackBoxCodegenTestGenerated.java b/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirPsiBlackBoxCodegenTestGenerated.java index 1f9ec8d6927..6bd4c4d428e 100644 --- a/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirPsiBlackBoxCodegenTestGenerated.java +++ b/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirPsiBlackBoxCodegenTestGenerated.java @@ -6318,66 +6318,6 @@ public class FirPsiBlackBoxCodegenTestGenerated extends AbstractFirPsiBlackBoxCo } } - @Nested - @TestMetadata("compiler/testData/codegen/box/cinterop") - @TestDataPath("$PROJECT_ROOT") - public class Cinterop { - @Test - public void testAllFilesPresentInCinterop() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/cinterop/basics") - @TestDataPath("$PROJECT_ROOT") - public class Basics { - @Test - public void testAllFilesPresentInBasics() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop/basics"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/cinterop/exceptions") - @TestDataPath("$PROJECT_ROOT") - public class Exceptions { - @Test - public void testAllFilesPresentInExceptions() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop/exceptions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/cinterop/objc") - @TestDataPath("$PROJECT_ROOT") - public class Objc { - @Test - public void testAllFilesPresentInObjc() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop/objc"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/cinterop/packages") - @TestDataPath("$PROJECT_ROOT") - public class Packages { - @Test - public void testAllFilesPresentInPackages() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop/packages"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/cinterop/threadStates") - @TestDataPath("$PROJECT_ROOT") - public class ThreadStates { - @Test - public void testAllFilesPresentInThreadStates() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop/threadStates"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - } - } - @Nested @TestMetadata("compiler/testData/codegen/box/classLiteral") @TestDataPath("$PROJECT_ROOT") @@ -19466,52 +19406,6 @@ public class FirPsiBlackBoxCodegenTestGenerated extends AbstractFirPsiBlackBoxCo } } - @Nested - @TestMetadata("compiler/testData/codegen/box/fileCheck") - @TestDataPath("$PROJECT_ROOT") - public class FileCheck { - @Test - public void testAllFilesPresentInFileCheck() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fileCheck"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/fileCheck/cinterop") - @TestDataPath("$PROJECT_ROOT") - public class Cinterop { - @Test - public void testAllFilesPresentInCinterop() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fileCheck/cinterop"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/fileCheck/kt53261") - @TestDataPath("$PROJECT_ROOT") - public class Kt53261 { - @Test - public void testAllFilesPresentInKt53261() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fileCheck/kt53261"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/fileCheck/stringConcatenationTypeNarrowing") - @TestDataPath("$PROJECT_ROOT") - public class StringConcatenationTypeNarrowing { - @Test - public void testAllFilesPresentInStringConcatenationTypeNarrowing() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fileCheck/stringConcatenationTypeNarrowing"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - - @Test - @TestMetadata("kt53119_side_effect.kt") - public void testKt53119_side_effect() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/stringConcatenationTypeNarrowing/kt53119_side_effect.kt"); - } - } - } - @Nested @TestMetadata("compiler/testData/codegen/box/finally") @TestDataPath("$PROJECT_ROOT") diff --git a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/JvmAbiConsistencyTestBoxGenerated.java b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/JvmAbiConsistencyTestBoxGenerated.java index 0c4e487ad38..f1536ee9c58 100644 --- a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/JvmAbiConsistencyTestBoxGenerated.java +++ b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/JvmAbiConsistencyTestBoxGenerated.java @@ -6318,66 +6318,6 @@ public class JvmAbiConsistencyTestBoxGenerated extends AbstractJvmAbiConsistency } } - @Nested - @TestMetadata("compiler/testData/codegen/box/cinterop") - @TestDataPath("$PROJECT_ROOT") - public class Cinterop { - @Test - public void testAllFilesPresentInCinterop() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/cinterop/basics") - @TestDataPath("$PROJECT_ROOT") - public class Basics { - @Test - public void testAllFilesPresentInBasics() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop/basics"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/cinterop/exceptions") - @TestDataPath("$PROJECT_ROOT") - public class Exceptions { - @Test - public void testAllFilesPresentInExceptions() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop/exceptions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/cinterop/objc") - @TestDataPath("$PROJECT_ROOT") - public class Objc { - @Test - public void testAllFilesPresentInObjc() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop/objc"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/cinterop/packages") - @TestDataPath("$PROJECT_ROOT") - public class Packages { - @Test - public void testAllFilesPresentInPackages() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop/packages"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/cinterop/threadStates") - @TestDataPath("$PROJECT_ROOT") - public class ThreadStates { - @Test - public void testAllFilesPresentInThreadStates() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop/threadStates"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - } - } - @Nested @TestMetadata("compiler/testData/codegen/box/classLiteral") @TestDataPath("$PROJECT_ROOT") @@ -19466,52 +19406,6 @@ public class JvmAbiConsistencyTestBoxGenerated extends AbstractJvmAbiConsistency } } - @Nested - @TestMetadata("compiler/testData/codegen/box/fileCheck") - @TestDataPath("$PROJECT_ROOT") - public class FileCheck { - @Test - public void testAllFilesPresentInFileCheck() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fileCheck"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/fileCheck/cinterop") - @TestDataPath("$PROJECT_ROOT") - public class Cinterop { - @Test - public void testAllFilesPresentInCinterop() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fileCheck/cinterop"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/fileCheck/kt53261") - @TestDataPath("$PROJECT_ROOT") - public class Kt53261 { - @Test - public void testAllFilesPresentInKt53261() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fileCheck/kt53261"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/fileCheck/stringConcatenationTypeNarrowing") - @TestDataPath("$PROJECT_ROOT") - public class StringConcatenationTypeNarrowing { - @Test - public void testAllFilesPresentInStringConcatenationTypeNarrowing() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fileCheck/stringConcatenationTypeNarrowing"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - - @Test - @TestMetadata("kt53119_side_effect.kt") - public void testKt53119_side_effect() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/stringConcatenationTypeNarrowing/kt53119_side_effect.kt"); - } - } - } - @Nested @TestMetadata("compiler/testData/codegen/box/finally") @TestDataPath("$PROJECT_ROOT") diff --git a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/BlackBoxCodegenTestGenerated.java b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/BlackBoxCodegenTestGenerated.java index 1c6e17c07d5..aa6c294348e 100644 --- a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/BlackBoxCodegenTestGenerated.java +++ b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/BlackBoxCodegenTestGenerated.java @@ -6078,66 +6078,6 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { } } - @Nested - @TestMetadata("compiler/testData/codegen/box/cinterop") - @TestDataPath("$PROJECT_ROOT") - public class Cinterop { - @Test - public void testAllFilesPresentInCinterop() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/cinterop/basics") - @TestDataPath("$PROJECT_ROOT") - public class Basics { - @Test - public void testAllFilesPresentInBasics() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop/basics"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/cinterop/exceptions") - @TestDataPath("$PROJECT_ROOT") - public class Exceptions { - @Test - public void testAllFilesPresentInExceptions() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop/exceptions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/cinterop/objc") - @TestDataPath("$PROJECT_ROOT") - public class Objc { - @Test - public void testAllFilesPresentInObjc() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop/objc"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/cinterop/packages") - @TestDataPath("$PROJECT_ROOT") - public class Packages { - @Test - public void testAllFilesPresentInPackages() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop/packages"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/cinterop/threadStates") - @TestDataPath("$PROJECT_ROOT") - public class ThreadStates { - @Test - public void testAllFilesPresentInThreadStates() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop/threadStates"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); - } - } - } - @Nested @TestMetadata("compiler/testData/codegen/box/classLiteral") @TestDataPath("$PROJECT_ROOT") @@ -18602,52 +18542,6 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { } } - @Nested - @TestMetadata("compiler/testData/codegen/box/fileCheck") - @TestDataPath("$PROJECT_ROOT") - public class FileCheck { - @Test - public void testAllFilesPresentInFileCheck() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fileCheck"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/fileCheck/cinterop") - @TestDataPath("$PROJECT_ROOT") - public class Cinterop { - @Test - public void testAllFilesPresentInCinterop() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fileCheck/cinterop"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/fileCheck/kt53261") - @TestDataPath("$PROJECT_ROOT") - public class Kt53261 { - @Test - public void testAllFilesPresentInKt53261() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fileCheck/kt53261"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/fileCheck/stringConcatenationTypeNarrowing") - @TestDataPath("$PROJECT_ROOT") - public class StringConcatenationTypeNarrowing { - @Test - public void testAllFilesPresentInStringConcatenationTypeNarrowing() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fileCheck/stringConcatenationTypeNarrowing"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); - } - - @Test - @TestMetadata("kt53119_side_effect.kt") - public void testKt53119_side_effect() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/stringConcatenationTypeNarrowing/kt53119_side_effect.kt"); - } - } - } - @Nested @TestMetadata("compiler/testData/codegen/box/finally") @TestDataPath("$PROJECT_ROOT") diff --git a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrBlackBoxCodegenTestGenerated.java b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrBlackBoxCodegenTestGenerated.java index 7c9fb5d9aa5..2802eeec5e7 100644 --- a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrBlackBoxCodegenTestGenerated.java +++ b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrBlackBoxCodegenTestGenerated.java @@ -6318,66 +6318,6 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes } } - @Nested - @TestMetadata("compiler/testData/codegen/box/cinterop") - @TestDataPath("$PROJECT_ROOT") - public class Cinterop { - @Test - public void testAllFilesPresentInCinterop() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/cinterop/basics") - @TestDataPath("$PROJECT_ROOT") - public class Basics { - @Test - public void testAllFilesPresentInBasics() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop/basics"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/cinterop/exceptions") - @TestDataPath("$PROJECT_ROOT") - public class Exceptions { - @Test - public void testAllFilesPresentInExceptions() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop/exceptions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/cinterop/objc") - @TestDataPath("$PROJECT_ROOT") - public class Objc { - @Test - public void testAllFilesPresentInObjc() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop/objc"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/cinterop/packages") - @TestDataPath("$PROJECT_ROOT") - public class Packages { - @Test - public void testAllFilesPresentInPackages() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop/packages"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/cinterop/threadStates") - @TestDataPath("$PROJECT_ROOT") - public class ThreadStates { - @Test - public void testAllFilesPresentInThreadStates() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop/threadStates"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - } - } - @Nested @TestMetadata("compiler/testData/codegen/box/classLiteral") @TestDataPath("$PROJECT_ROOT") @@ -19466,52 +19406,6 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes } } - @Nested - @TestMetadata("compiler/testData/codegen/box/fileCheck") - @TestDataPath("$PROJECT_ROOT") - public class FileCheck { - @Test - public void testAllFilesPresentInFileCheck() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fileCheck"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/fileCheck/cinterop") - @TestDataPath("$PROJECT_ROOT") - public class Cinterop { - @Test - public void testAllFilesPresentInCinterop() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fileCheck/cinterop"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/fileCheck/kt53261") - @TestDataPath("$PROJECT_ROOT") - public class Kt53261 { - @Test - public void testAllFilesPresentInKt53261() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fileCheck/kt53261"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/fileCheck/stringConcatenationTypeNarrowing") - @TestDataPath("$PROJECT_ROOT") - public class StringConcatenationTypeNarrowing { - @Test - public void testAllFilesPresentInStringConcatenationTypeNarrowing() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fileCheck/stringConcatenationTypeNarrowing"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - - @Test - @TestMetadata("kt53119_side_effect.kt") - public void testKt53119_side_effect() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/stringConcatenationTypeNarrowing/kt53119_side_effect.kt"); - } - } - } - @Nested @TestMetadata("compiler/testData/codegen/box/finally") @TestDataPath("$PROJECT_ROOT") diff --git a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrBlackBoxCodegenWithIrInlinerTestGenerated.java b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrBlackBoxCodegenWithIrInlinerTestGenerated.java index 6143b660cfa..a3d85d6ff42 100644 --- a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrBlackBoxCodegenWithIrInlinerTestGenerated.java +++ b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrBlackBoxCodegenWithIrInlinerTestGenerated.java @@ -6318,66 +6318,6 @@ public class IrBlackBoxCodegenWithIrInlinerTestGenerated extends AbstractIrBlack } } - @Nested - @TestMetadata("compiler/testData/codegen/box/cinterop") - @TestDataPath("$PROJECT_ROOT") - public class Cinterop { - @Test - public void testAllFilesPresentInCinterop() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/cinterop/basics") - @TestDataPath("$PROJECT_ROOT") - public class Basics { - @Test - public void testAllFilesPresentInBasics() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop/basics"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/cinterop/exceptions") - @TestDataPath("$PROJECT_ROOT") - public class Exceptions { - @Test - public void testAllFilesPresentInExceptions() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop/exceptions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/cinterop/objc") - @TestDataPath("$PROJECT_ROOT") - public class Objc { - @Test - public void testAllFilesPresentInObjc() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop/objc"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/cinterop/packages") - @TestDataPath("$PROJECT_ROOT") - public class Packages { - @Test - public void testAllFilesPresentInPackages() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop/packages"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/cinterop/threadStates") - @TestDataPath("$PROJECT_ROOT") - public class ThreadStates { - @Test - public void testAllFilesPresentInThreadStates() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop/threadStates"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - } - } - @Nested @TestMetadata("compiler/testData/codegen/box/classLiteral") @TestDataPath("$PROJECT_ROOT") @@ -19466,52 +19406,6 @@ public class IrBlackBoxCodegenWithIrInlinerTestGenerated extends AbstractIrBlack } } - @Nested - @TestMetadata("compiler/testData/codegen/box/fileCheck") - @TestDataPath("$PROJECT_ROOT") - public class FileCheck { - @Test - public void testAllFilesPresentInFileCheck() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fileCheck"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/fileCheck/cinterop") - @TestDataPath("$PROJECT_ROOT") - public class Cinterop { - @Test - public void testAllFilesPresentInCinterop() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fileCheck/cinterop"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/fileCheck/kt53261") - @TestDataPath("$PROJECT_ROOT") - public class Kt53261 { - @Test - public void testAllFilesPresentInKt53261() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fileCheck/kt53261"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/fileCheck/stringConcatenationTypeNarrowing") - @TestDataPath("$PROJECT_ROOT") - public class StringConcatenationTypeNarrowing { - @Test - public void testAllFilesPresentInStringConcatenationTypeNarrowing() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fileCheck/stringConcatenationTypeNarrowing"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - - @Test - @TestMetadata("kt53119_side_effect.kt") - public void testKt53119_side_effect() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/stringConcatenationTypeNarrowing/kt53119_side_effect.kt"); - } - } - } - @Nested @TestMetadata("compiler/testData/codegen/box/finally") @TestDataPath("$PROJECT_ROOT") diff --git a/compiler/tests-gen/org/jetbrains/kotlin/codegen/LightAnalysisModeTestGenerated.java b/compiler/tests-gen/org/jetbrains/kotlin/codegen/LightAnalysisModeTestGenerated.java index b3a8b5545bc..4fa7812ce6f 100644 --- a/compiler/tests-gen/org/jetbrains/kotlin/codegen/LightAnalysisModeTestGenerated.java +++ b/compiler/tests-gen/org/jetbrains/kotlin/codegen/LightAnalysisModeTestGenerated.java @@ -5517,84 +5517,6 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes } } - @TestMetadata("compiler/testData/codegen/box/cinterop") - @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Cinterop extends AbstractLightAnalysisModeTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - - public void testAllFilesPresentInCinterop() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - - @TestMetadata("compiler/testData/codegen/box/cinterop/basics") - @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Basics extends AbstractLightAnalysisModeTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - - public void testAllFilesPresentInBasics() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop/basics"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - } - - @TestMetadata("compiler/testData/codegen/box/cinterop/exceptions") - @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Exceptions extends AbstractLightAnalysisModeTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - - public void testAllFilesPresentInExceptions() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop/exceptions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - } - - @TestMetadata("compiler/testData/codegen/box/cinterop/objc") - @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Objc extends AbstractLightAnalysisModeTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - - public void testAllFilesPresentInObjc() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop/objc"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - } - - @TestMetadata("compiler/testData/codegen/box/cinterop/packages") - @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Packages extends AbstractLightAnalysisModeTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - - public void testAllFilesPresentInPackages() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop/packages"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - } - - @TestMetadata("compiler/testData/codegen/box/cinterop/threadStates") - @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class ThreadStates extends AbstractLightAnalysisModeTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - - public void testAllFilesPresentInThreadStates() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop/threadStates"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - } - } - @TestMetadata("compiler/testData/codegen/box/classLiteral") @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) @@ -16223,63 +16145,6 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes } } - @TestMetadata("compiler/testData/codegen/box/fileCheck") - @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class FileCheck extends AbstractLightAnalysisModeTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - - public void testAllFilesPresentInFileCheck() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fileCheck"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - - @TestMetadata("compiler/testData/codegen/box/fileCheck/cinterop") - @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Cinterop extends AbstractLightAnalysisModeTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - - public void testAllFilesPresentInCinterop() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fileCheck/cinterop"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - } - - @TestMetadata("compiler/testData/codegen/box/fileCheck/kt53261") - @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Kt53261 extends AbstractLightAnalysisModeTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - - public void testAllFilesPresentInKt53261() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fileCheck/kt53261"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - } - - @TestMetadata("compiler/testData/codegen/box/fileCheck/stringConcatenationTypeNarrowing") - @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class StringConcatenationTypeNarrowing extends AbstractLightAnalysisModeTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - - public void testAllFilesPresentInStringConcatenationTypeNarrowing() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fileCheck/stringConcatenationTypeNarrowing"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); - } - - @TestMetadata("kt53119_side_effect.kt") - public void testKt53119_side_effect() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/stringConcatenationTypeNarrowing/kt53119_side_effect.kt"); - } - } - } - @TestMetadata("compiler/testData/codegen/box/finally") @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) diff --git a/generators/analysis-api-generator/tests/org/jetbrains/kotlin/generators/tests/analysis/api/firLowLevel.kt b/generators/analysis-api-generator/tests/org/jetbrains/kotlin/generators/tests/analysis/api/firLowLevel.kt index d59e27a2a2c..6f879efc90d 100644 --- a/generators/analysis-api-generator/tests/org/jetbrains/kotlin/generators/tests/analysis/api/firLowLevel.kt +++ b/generators/analysis-api-generator/tests/org/jetbrains/kotlin/generators/tests/analysis/api/firLowLevel.kt @@ -338,7 +338,6 @@ internal fun TestGroupSuite.generateFirLowLevelApiTests() { "codegen/box", excludeDirs = listOf( "script", // script is excluded until KT-60127 is implemented - "cinterop", "fileCheck/cinterop", // CInterop tests contain .DEF .H .CPP .M files, which are invalid for Compiler Core new test system ) ) } @@ -348,7 +347,6 @@ internal fun TestGroupSuite.generateFirLowLevelApiTests() { "codegen/box", excludeDirs = listOf( "script", // script is excluded until KT-60127 is implemented - "cinterop", "fileCheck/cinterop", // CInterop tests contain .DEF .H .CPP .M files, which are invalid for Compiler Core new test system ) ) } diff --git a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/fir/FirJsCodegenBoxTestGenerated.java b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/fir/FirJsCodegenBoxTestGenerated.java index bf480b389d2..1d894a54f0f 100644 --- a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/fir/FirJsCodegenBoxTestGenerated.java +++ b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/fir/FirJsCodegenBoxTestGenerated.java @@ -4644,66 +4644,6 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest { } } - @Nested - @TestMetadata("compiler/testData/codegen/box/cinterop") - @TestDataPath("$PROJECT_ROOT") - public class Cinterop { - @Test - public void testAllFilesPresentInCinterop() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/cinterop/basics") - @TestDataPath("$PROJECT_ROOT") - public class Basics { - @Test - public void testAllFilesPresentInBasics() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop/basics"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/cinterop/exceptions") - @TestDataPath("$PROJECT_ROOT") - public class Exceptions { - @Test - public void testAllFilesPresentInExceptions() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop/exceptions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/cinterop/objc") - @TestDataPath("$PROJECT_ROOT") - public class Objc { - @Test - public void testAllFilesPresentInObjc() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop/objc"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/cinterop/packages") - @TestDataPath("$PROJECT_ROOT") - public class Packages { - @Test - public void testAllFilesPresentInPackages() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop/packages"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/cinterop/threadStates") - @TestDataPath("$PROJECT_ROOT") - public class ThreadStates { - @Test - public void testAllFilesPresentInThreadStates() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop/threadStates"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); - } - } - } - @Nested @TestMetadata("compiler/testData/codegen/box/classLiteral") @TestDataPath("$PROJECT_ROOT") @@ -14570,52 +14510,6 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest { } } - @Nested - @TestMetadata("compiler/testData/codegen/box/fileCheck") - @TestDataPath("$PROJECT_ROOT") - public class FileCheck { - @Test - public void testAllFilesPresentInFileCheck() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fileCheck"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/fileCheck/cinterop") - @TestDataPath("$PROJECT_ROOT") - public class Cinterop { - @Test - public void testAllFilesPresentInCinterop() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fileCheck/cinterop"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/fileCheck/kt53261") - @TestDataPath("$PROJECT_ROOT") - public class Kt53261 { - @Test - public void testAllFilesPresentInKt53261() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fileCheck/kt53261"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/fileCheck/stringConcatenationTypeNarrowing") - @TestDataPath("$PROJECT_ROOT") - public class StringConcatenationTypeNarrowing { - @Test - public void testAllFilesPresentInStringConcatenationTypeNarrowing() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fileCheck/stringConcatenationTypeNarrowing"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); - } - - @Test - @TestMetadata("kt53119_side_effect.kt") - public void testKt53119_side_effect() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/stringConcatenationTypeNarrowing/kt53119_side_effect.kt"); - } - } - } - @Nested @TestMetadata("compiler/testData/codegen/box/finally") @TestDataPath("$PROJECT_ROOT") diff --git a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/fir/FirJsES6CodegenBoxTestGenerated.java b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/fir/FirJsES6CodegenBoxTestGenerated.java index bb99fb3c466..7c6bdd985ec 100644 --- a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/fir/FirJsES6CodegenBoxTestGenerated.java +++ b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/fir/FirJsES6CodegenBoxTestGenerated.java @@ -4644,66 +4644,6 @@ public class FirJsES6CodegenBoxTestGenerated extends AbstractFirJsES6CodegenBoxT } } - @Nested - @TestMetadata("compiler/testData/codegen/box/cinterop") - @TestDataPath("$PROJECT_ROOT") - public class Cinterop { - @Test - public void testAllFilesPresentInCinterop() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/cinterop/basics") - @TestDataPath("$PROJECT_ROOT") - public class Basics { - @Test - public void testAllFilesPresentInBasics() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop/basics"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/cinterop/exceptions") - @TestDataPath("$PROJECT_ROOT") - public class Exceptions { - @Test - public void testAllFilesPresentInExceptions() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop/exceptions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/cinterop/objc") - @TestDataPath("$PROJECT_ROOT") - public class Objc { - @Test - public void testAllFilesPresentInObjc() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop/objc"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/cinterop/packages") - @TestDataPath("$PROJECT_ROOT") - public class Packages { - @Test - public void testAllFilesPresentInPackages() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop/packages"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/cinterop/threadStates") - @TestDataPath("$PROJECT_ROOT") - public class ThreadStates { - @Test - public void testAllFilesPresentInThreadStates() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop/threadStates"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); - } - } - } - @Nested @TestMetadata("compiler/testData/codegen/box/classLiteral") @TestDataPath("$PROJECT_ROOT") @@ -14570,52 +14510,6 @@ public class FirJsES6CodegenBoxTestGenerated extends AbstractFirJsES6CodegenBoxT } } - @Nested - @TestMetadata("compiler/testData/codegen/box/fileCheck") - @TestDataPath("$PROJECT_ROOT") - public class FileCheck { - @Test - public void testAllFilesPresentInFileCheck() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fileCheck"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/fileCheck/cinterop") - @TestDataPath("$PROJECT_ROOT") - public class Cinterop { - @Test - public void testAllFilesPresentInCinterop() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fileCheck/cinterop"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/fileCheck/kt53261") - @TestDataPath("$PROJECT_ROOT") - public class Kt53261 { - @Test - public void testAllFilesPresentInKt53261() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fileCheck/kt53261"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/fileCheck/stringConcatenationTypeNarrowing") - @TestDataPath("$PROJECT_ROOT") - public class StringConcatenationTypeNarrowing { - @Test - public void testAllFilesPresentInStringConcatenationTypeNarrowing() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fileCheck/stringConcatenationTypeNarrowing"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); - } - - @Test - @TestMetadata("kt53119_side_effect.kt") - public void testKt53119_side_effect() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/stringConcatenationTypeNarrowing/kt53119_side_effect.kt"); - } - } - } - @Nested @TestMetadata("compiler/testData/codegen/box/finally") @TestDataPath("$PROJECT_ROOT") diff --git a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/IrJsCodegenBoxTestGenerated.java b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/IrJsCodegenBoxTestGenerated.java index c32066ee12f..25bebcf1a5e 100644 --- a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/IrJsCodegenBoxTestGenerated.java +++ b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/IrJsCodegenBoxTestGenerated.java @@ -4644,66 +4644,6 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { } } - @Nested - @TestMetadata("compiler/testData/codegen/box/cinterop") - @TestDataPath("$PROJECT_ROOT") - public class Cinterop { - @Test - public void testAllFilesPresentInCinterop() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/cinterop/basics") - @TestDataPath("$PROJECT_ROOT") - public class Basics { - @Test - public void testAllFilesPresentInBasics() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop/basics"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/cinterop/exceptions") - @TestDataPath("$PROJECT_ROOT") - public class Exceptions { - @Test - public void testAllFilesPresentInExceptions() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop/exceptions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/cinterop/objc") - @TestDataPath("$PROJECT_ROOT") - public class Objc { - @Test - public void testAllFilesPresentInObjc() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop/objc"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/cinterop/packages") - @TestDataPath("$PROJECT_ROOT") - public class Packages { - @Test - public void testAllFilesPresentInPackages() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop/packages"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/cinterop/threadStates") - @TestDataPath("$PROJECT_ROOT") - public class ThreadStates { - @Test - public void testAllFilesPresentInThreadStates() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop/threadStates"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); - } - } - } - @Nested @TestMetadata("compiler/testData/codegen/box/classLiteral") @TestDataPath("$PROJECT_ROOT") @@ -14570,52 +14510,6 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { } } - @Nested - @TestMetadata("compiler/testData/codegen/box/fileCheck") - @TestDataPath("$PROJECT_ROOT") - public class FileCheck { - @Test - public void testAllFilesPresentInFileCheck() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fileCheck"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/fileCheck/cinterop") - @TestDataPath("$PROJECT_ROOT") - public class Cinterop { - @Test - public void testAllFilesPresentInCinterop() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fileCheck/cinterop"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/fileCheck/kt53261") - @TestDataPath("$PROJECT_ROOT") - public class Kt53261 { - @Test - public void testAllFilesPresentInKt53261() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fileCheck/kt53261"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/fileCheck/stringConcatenationTypeNarrowing") - @TestDataPath("$PROJECT_ROOT") - public class StringConcatenationTypeNarrowing { - @Test - public void testAllFilesPresentInStringConcatenationTypeNarrowing() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fileCheck/stringConcatenationTypeNarrowing"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); - } - - @Test - @TestMetadata("kt53119_side_effect.kt") - public void testKt53119_side_effect() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/stringConcatenationTypeNarrowing/kt53119_side_effect.kt"); - } - } - } - @Nested @TestMetadata("compiler/testData/codegen/box/finally") @TestDataPath("$PROJECT_ROOT") diff --git a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/IrJsES6CodegenBoxTestGenerated.java b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/IrJsES6CodegenBoxTestGenerated.java index 120acfbe767..b605d0362f2 100644 --- a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/IrJsES6CodegenBoxTestGenerated.java +++ b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/IrJsES6CodegenBoxTestGenerated.java @@ -4644,66 +4644,6 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes } } - @Nested - @TestMetadata("compiler/testData/codegen/box/cinterop") - @TestDataPath("$PROJECT_ROOT") - public class Cinterop { - @Test - public void testAllFilesPresentInCinterop() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/cinterop/basics") - @TestDataPath("$PROJECT_ROOT") - public class Basics { - @Test - public void testAllFilesPresentInBasics() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop/basics"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/cinterop/exceptions") - @TestDataPath("$PROJECT_ROOT") - public class Exceptions { - @Test - public void testAllFilesPresentInExceptions() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop/exceptions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/cinterop/objc") - @TestDataPath("$PROJECT_ROOT") - public class Objc { - @Test - public void testAllFilesPresentInObjc() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop/objc"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/cinterop/packages") - @TestDataPath("$PROJECT_ROOT") - public class Packages { - @Test - public void testAllFilesPresentInPackages() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop/packages"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/cinterop/threadStates") - @TestDataPath("$PROJECT_ROOT") - public class ThreadStates { - @Test - public void testAllFilesPresentInThreadStates() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop/threadStates"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); - } - } - } - @Nested @TestMetadata("compiler/testData/codegen/box/classLiteral") @TestDataPath("$PROJECT_ROOT") @@ -14570,52 +14510,6 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes } } - @Nested - @TestMetadata("compiler/testData/codegen/box/fileCheck") - @TestDataPath("$PROJECT_ROOT") - public class FileCheck { - @Test - public void testAllFilesPresentInFileCheck() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fileCheck"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/fileCheck/cinterop") - @TestDataPath("$PROJECT_ROOT") - public class Cinterop { - @Test - public void testAllFilesPresentInCinterop() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fileCheck/cinterop"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/fileCheck/kt53261") - @TestDataPath("$PROJECT_ROOT") - public class Kt53261 { - @Test - public void testAllFilesPresentInKt53261() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fileCheck/kt53261"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/fileCheck/stringConcatenationTypeNarrowing") - @TestDataPath("$PROJECT_ROOT") - public class StringConcatenationTypeNarrowing { - @Test - public void testAllFilesPresentInStringConcatenationTypeNarrowing() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fileCheck/stringConcatenationTypeNarrowing"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); - } - - @Test - @TestMetadata("kt53119_side_effect.kt") - public void testKt53119_side_effect() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/stringConcatenationTypeNarrowing/kt53119_side_effect.kt"); - } - } - } - @Nested @TestMetadata("compiler/testData/codegen/box/finally") @TestDataPath("$PROJECT_ROOT") diff --git a/compiler/testData/codegen/box/cinterop/arrayPointers.kt b/native/native.tests/testData/codegen/cinterop/arrayPointers.kt similarity index 100% rename from compiler/testData/codegen/box/cinterop/arrayPointers.kt rename to native/native.tests/testData/codegen/cinterop/arrayPointers.kt diff --git a/compiler/testData/codegen/box/cinterop/auxiliarySources.kt b/native/native.tests/testData/codegen/cinterop/auxiliarySources.kt similarity index 100% rename from compiler/testData/codegen/box/cinterop/auxiliarySources.kt rename to native/native.tests/testData/codegen/cinterop/auxiliarySources.kt diff --git a/compiler/testData/codegen/box/cinterop/basics/1.kt b/native/native.tests/testData/codegen/cinterop/basics/1.kt similarity index 100% rename from compiler/testData/codegen/box/cinterop/basics/1.kt rename to native/native.tests/testData/codegen/cinterop/basics/1.kt diff --git a/compiler/testData/codegen/box/cinterop/basics/3.kt b/native/native.tests/testData/codegen/cinterop/basics/3.kt similarity index 100% rename from compiler/testData/codegen/box/cinterop/basics/3.kt rename to native/native.tests/testData/codegen/cinterop/basics/3.kt diff --git a/compiler/testData/codegen/box/cinterop/basics/available_processors.kt b/native/native.tests/testData/codegen/cinterop/basics/available_processors.kt similarity index 100% rename from compiler/testData/codegen/box/cinterop/basics/available_processors.kt rename to native/native.tests/testData/codegen/cinterop/basics/available_processors.kt diff --git a/compiler/testData/codegen/box/cinterop/basics/macros.kt b/native/native.tests/testData/codegen/cinterop/basics/macros.kt similarity index 100% rename from compiler/testData/codegen/box/cinterop/basics/macros.kt rename to native/native.tests/testData/codegen/cinterop/basics/macros.kt diff --git a/compiler/testData/codegen/box/cinterop/basics/mangling.kt b/native/native.tests/testData/codegen/cinterop/basics/mangling.kt similarity index 100% rename from compiler/testData/codegen/box/cinterop/basics/mangling.kt rename to native/native.tests/testData/codegen/cinterop/basics/mangling.kt diff --git a/compiler/testData/codegen/box/cinterop/basics/mangling2.kt b/native/native.tests/testData/codegen/cinterop/basics/mangling2.kt similarity index 100% rename from compiler/testData/codegen/box/cinterop/basics/mangling2.kt rename to native/native.tests/testData/codegen/cinterop/basics/mangling2.kt diff --git a/compiler/testData/codegen/box/cinterop/basics/mangling_keywords.kt b/native/native.tests/testData/codegen/cinterop/basics/mangling_keywords.kt similarity index 100% rename from compiler/testData/codegen/box/cinterop/basics/mangling_keywords.kt rename to native/native.tests/testData/codegen/cinterop/basics/mangling_keywords.kt diff --git a/compiler/testData/codegen/box/cinterop/basics/mangling_keywords2.kt b/native/native.tests/testData/codegen/cinterop/basics/mangling_keywords2.kt similarity index 100% rename from compiler/testData/codegen/box/cinterop/basics/mangling_keywords2.kt rename to native/native.tests/testData/codegen/cinterop/basics/mangling_keywords2.kt diff --git a/compiler/testData/codegen/box/cinterop/basics/statbuf.kt b/native/native.tests/testData/codegen/cinterop/basics/statbuf.kt similarity index 100% rename from compiler/testData/codegen/box/cinterop/basics/statbuf.kt rename to native/native.tests/testData/codegen/cinterop/basics/statbuf.kt diff --git a/compiler/testData/codegen/box/cinterop/basics/structAnonRecordMember_ExplicitAlignment.kt b/native/native.tests/testData/codegen/cinterop/basics/structAnonRecordMember_ExplicitAlignment.kt similarity index 100% rename from compiler/testData/codegen/box/cinterop/basics/structAnonRecordMember_ExplicitAlignment.kt rename to native/native.tests/testData/codegen/cinterop/basics/structAnonRecordMember_ExplicitAlignment.kt diff --git a/compiler/testData/codegen/box/cinterop/basics/structAnonRecordMember_ImplicitAlignment.kt b/native/native.tests/testData/codegen/cinterop/basics/structAnonRecordMember_ImplicitAlignment.kt similarity index 100% rename from compiler/testData/codegen/box/cinterop/basics/structAnonRecordMember_ImplicitAlignment.kt rename to native/native.tests/testData/codegen/cinterop/basics/structAnonRecordMember_ImplicitAlignment.kt diff --git a/compiler/testData/codegen/box/cinterop/basics/structAnonRecordMember_Nested.kt b/native/native.tests/testData/codegen/cinterop/basics/structAnonRecordMember_Nested.kt similarity index 100% rename from compiler/testData/codegen/box/cinterop/basics/structAnonRecordMember_Nested.kt rename to native/native.tests/testData/codegen/cinterop/basics/structAnonRecordMember_Nested.kt diff --git a/compiler/testData/codegen/box/cinterop/basics/structAnonym_Complicate.kt b/native/native.tests/testData/codegen/cinterop/basics/structAnonym_Complicate.kt similarity index 100% rename from compiler/testData/codegen/box/cinterop/basics/structAnonym_Complicate.kt rename to native/native.tests/testData/codegen/cinterop/basics/structAnonym_Complicate.kt diff --git a/compiler/testData/codegen/box/cinterop/basics/structAnonym_GLKVector3.kt b/native/native.tests/testData/codegen/cinterop/basics/structAnonym_GLKVector3.kt similarity index 100% rename from compiler/testData/codegen/box/cinterop/basics/structAnonym_GLKVector3.kt rename to native/native.tests/testData/codegen/cinterop/basics/structAnonym_GLKVector3.kt diff --git a/compiler/testData/codegen/box/cinterop/basics/structAnonym_Packed.kt b/native/native.tests/testData/codegen/cinterop/basics/structAnonym_Packed.kt similarity index 100% rename from compiler/testData/codegen/box/cinterop/basics/structAnonym_Packed.kt rename to native/native.tests/testData/codegen/cinterop/basics/structAnonym_Packed.kt diff --git a/compiler/testData/codegen/box/cinterop/basics/structAnonym_Packed2.kt b/native/native.tests/testData/codegen/cinterop/basics/structAnonym_Packed2.kt similarity index 100% rename from compiler/testData/codegen/box/cinterop/basics/structAnonym_Packed2.kt rename to native/native.tests/testData/codegen/cinterop/basics/structAnonym_Packed2.kt diff --git a/compiler/testData/codegen/box/cinterop/basics/structAnonym_PragmaPacked.kt b/native/native.tests/testData/codegen/cinterop/basics/structAnonym_PragmaPacked.kt similarity index 100% rename from compiler/testData/codegen/box/cinterop/basics/structAnonym_PragmaPacked.kt rename to native/native.tests/testData/codegen/cinterop/basics/structAnonym_PragmaPacked.kt diff --git a/compiler/testData/codegen/box/cinterop/basics/structs.kt b/native/native.tests/testData/codegen/cinterop/basics/structs.kt similarity index 100% rename from compiler/testData/codegen/box/cinterop/basics/structs.kt rename to native/native.tests/testData/codegen/cinterop/basics/structs.kt diff --git a/compiler/testData/codegen/box/cinterop/basics/types.kt b/native/native.tests/testData/codegen/cinterop/basics/types.kt similarity index 100% rename from compiler/testData/codegen/box/cinterop/basics/types.kt rename to native/native.tests/testData/codegen/cinterop/basics/types.kt diff --git a/compiler/testData/codegen/box/cinterop/basics/union.kt b/native/native.tests/testData/codegen/cinterop/basics/union.kt similarity index 100% rename from compiler/testData/codegen/box/cinterop/basics/union.kt rename to native/native.tests/testData/codegen/cinterop/basics/union.kt diff --git a/compiler/testData/codegen/box/cinterop/basics/unsupported.kt b/native/native.tests/testData/codegen/cinterop/basics/unsupported.kt similarity index 100% rename from compiler/testData/codegen/box/cinterop/basics/unsupported.kt rename to native/native.tests/testData/codegen/cinterop/basics/unsupported.kt diff --git a/compiler/testData/codegen/box/cinterop/basics/values.kt b/native/native.tests/testData/codegen/cinterop/basics/values.kt similarity index 100% rename from compiler/testData/codegen/box/cinterop/basics/values.kt rename to native/native.tests/testData/codegen/cinterop/basics/values.kt diff --git a/compiler/testData/codegen/box/cinterop/basics/vectors.kt b/native/native.tests/testData/codegen/cinterop/basics/vectors.kt similarity index 100% rename from compiler/testData/codegen/box/cinterop/basics/vectors.kt rename to native/native.tests/testData/codegen/cinterop/basics/vectors.kt diff --git a/compiler/testData/codegen/box/cinterop/bitfields.kt b/native/native.tests/testData/codegen/cinterop/bitfields.kt similarity index 100% rename from compiler/testData/codegen/box/cinterop/bitfields.kt rename to native/native.tests/testData/codegen/cinterop/bitfields.kt diff --git a/compiler/testData/codegen/box/cinterop/callbacksAndVarargs.kt b/native/native.tests/testData/codegen/cinterop/callbacksAndVarargs.kt similarity index 100% rename from compiler/testData/codegen/box/cinterop/callbacksAndVarargs.kt rename to native/native.tests/testData/codegen/cinterop/callbacksAndVarargs.kt diff --git a/compiler/testData/codegen/box/cinterop/enums.kt b/native/native.tests/testData/codegen/cinterop/enums.kt similarity index 100% rename from compiler/testData/codegen/box/cinterop/enums.kt rename to native/native.tests/testData/codegen/cinterop/enums.kt diff --git a/compiler/testData/codegen/box/cinterop/exceptions/cCallback.kt b/native/native.tests/testData/codegen/cinterop/exceptions/cCallback.kt similarity index 100% rename from compiler/testData/codegen/box/cinterop/exceptions/cCallback.kt rename to native/native.tests/testData/codegen/cinterop/exceptions/cCallback.kt diff --git a/compiler/testData/codegen/box/cinterop/forwardDeclarations.kt b/native/native.tests/testData/codegen/cinterop/forwardDeclarations.kt similarity index 100% rename from compiler/testData/codegen/box/cinterop/forwardDeclarations.kt rename to native/native.tests/testData/codegen/cinterop/forwardDeclarations.kt diff --git a/compiler/testData/codegen/box/cinterop/forwardDeclarationsTwoLibs.kt b/native/native.tests/testData/codegen/cinterop/forwardDeclarationsTwoLibs.kt similarity index 100% rename from compiler/testData/codegen/box/cinterop/forwardDeclarationsTwoLibs.kt rename to native/native.tests/testData/codegen/cinterop/forwardDeclarationsTwoLibs.kt diff --git a/compiler/testData/codegen/box/cinterop/globals.kt b/native/native.tests/testData/codegen/cinterop/globals.kt similarity index 100% rename from compiler/testData/codegen/box/cinterop/globals.kt rename to native/native.tests/testData/codegen/cinterop/globals.kt diff --git a/compiler/testData/codegen/box/cinterop/incompleteTypes.kt b/native/native.tests/testData/codegen/cinterop/incompleteTypes.kt similarity index 100% rename from compiler/testData/codegen/box/cinterop/incompleteTypes.kt rename to native/native.tests/testData/codegen/cinterop/incompleteTypes.kt diff --git a/compiler/testData/codegen/box/cinterop/kt43265.kt b/native/native.tests/testData/codegen/cinterop/kt43265.kt similarity index 100% rename from compiler/testData/codegen/box/cinterop/kt43265.kt rename to native/native.tests/testData/codegen/cinterop/kt43265.kt diff --git a/compiler/testData/codegen/box/cinterop/kt44283.kt b/native/native.tests/testData/codegen/cinterop/kt44283.kt similarity index 100% rename from compiler/testData/codegen/box/cinterop/kt44283.kt rename to native/native.tests/testData/codegen/cinterop/kt44283.kt diff --git a/compiler/testData/codegen/box/cinterop/kt51925.kt b/native/native.tests/testData/codegen/cinterop/kt51925.kt similarity index 100% rename from compiler/testData/codegen/box/cinterop/kt51925.kt rename to native/native.tests/testData/codegen/cinterop/kt51925.kt diff --git a/compiler/testData/codegen/box/cinterop/kt54284.kt b/native/native.tests/testData/codegen/cinterop/kt54284.kt similarity index 100% rename from compiler/testData/codegen/box/cinterop/kt54284.kt rename to native/native.tests/testData/codegen/cinterop/kt54284.kt diff --git a/compiler/testData/codegen/box/cinterop/kt54284_fmodules.kt b/native/native.tests/testData/codegen/cinterop/kt54284_fmodules.kt similarity index 100% rename from compiler/testData/codegen/box/cinterop/kt54284_fmodules.kt rename to native/native.tests/testData/codegen/cinterop/kt54284_fmodules.kt diff --git a/compiler/testData/codegen/box/cinterop/kt57640.kt b/native/native.tests/testData/codegen/cinterop/kt57640.kt similarity index 100% rename from compiler/testData/codegen/box/cinterop/kt57640.kt rename to native/native.tests/testData/codegen/cinterop/kt57640.kt diff --git a/compiler/testData/codegen/box/cinterop/kt59167.kt b/native/native.tests/testData/codegen/cinterop/kt59167.kt similarity index 100% rename from compiler/testData/codegen/box/cinterop/kt59167.kt rename to native/native.tests/testData/codegen/cinterop/kt59167.kt diff --git a/compiler/testData/codegen/box/cinterop/kt63048.kt b/native/native.tests/testData/codegen/cinterop/kt63048.kt similarity index 100% rename from compiler/testData/codegen/box/cinterop/kt63048.kt rename to native/native.tests/testData/codegen/cinterop/kt63048.kt diff --git a/compiler/testData/codegen/box/cinterop/kt63049.kt b/native/native.tests/testData/codegen/cinterop/kt63049.kt similarity index 100% rename from compiler/testData/codegen/box/cinterop/kt63049.kt rename to native/native.tests/testData/codegen/cinterop/kt63049.kt diff --git a/compiler/testData/codegen/box/cinterop/kt64105.kt b/native/native.tests/testData/codegen/cinterop/kt64105.kt similarity index 100% rename from compiler/testData/codegen/box/cinterop/kt64105.kt rename to native/native.tests/testData/codegen/cinterop/kt64105.kt diff --git a/compiler/testData/codegen/box/cinterop/leakMemoryWithRunningThreadUnchecked.kt b/native/native.tests/testData/codegen/cinterop/leakMemoryWithRunningThreadUnchecked.kt similarity index 100% rename from compiler/testData/codegen/box/cinterop/leakMemoryWithRunningThreadUnchecked.kt rename to native/native.tests/testData/codegen/cinterop/leakMemoryWithRunningThreadUnchecked.kt diff --git a/compiler/testData/codegen/box/cinterop/objc/direct.kt b/native/native.tests/testData/codegen/cinterop/objc/direct.kt similarity index 100% rename from compiler/testData/codegen/box/cinterop/objc/direct.kt rename to native/native.tests/testData/codegen/cinterop/objc/direct.kt diff --git a/compiler/testData/codegen/box/cinterop/objc/forwardDeclarationsCast.kt b/native/native.tests/testData/codegen/cinterop/objc/forwardDeclarationsCast.kt similarity index 100% rename from compiler/testData/codegen/box/cinterop/objc/forwardDeclarationsCast.kt rename to native/native.tests/testData/codegen/cinterop/objc/forwardDeclarationsCast.kt diff --git a/compiler/testData/codegen/box/cinterop/objc/kt34467.kt b/native/native.tests/testData/codegen/cinterop/objc/kt34467.kt similarity index 100% rename from compiler/testData/codegen/box/cinterop/objc/kt34467.kt rename to native/native.tests/testData/codegen/cinterop/objc/kt34467.kt diff --git a/compiler/testData/codegen/box/cinterop/objc/kt48816_lazy_ir_disable.kt b/native/native.tests/testData/codegen/cinterop/objc/kt48816_lazy_ir_disable.kt similarity index 100% rename from compiler/testData/codegen/box/cinterop/objc/kt48816_lazy_ir_disable.kt rename to native/native.tests/testData/codegen/cinterop/objc/kt48816_lazy_ir_disable.kt diff --git a/compiler/testData/codegen/box/cinterop/objc/kt48816_lazy_ir_enable.kt b/native/native.tests/testData/codegen/cinterop/objc/kt48816_lazy_ir_enable.kt similarity index 100% rename from compiler/testData/codegen/box/cinterop/objc/kt48816_lazy_ir_enable.kt rename to native/native.tests/testData/codegen/cinterop/objc/kt48816_lazy_ir_enable.kt diff --git a/compiler/testData/codegen/box/cinterop/objc/kt49034_objcclass.kt b/native/native.tests/testData/codegen/cinterop/objc/kt49034_objcclass.kt similarity index 100% rename from compiler/testData/codegen/box/cinterop/objc/kt49034_objcclass.kt rename to native/native.tests/testData/codegen/cinterop/objc/kt49034_objcclass.kt diff --git a/compiler/testData/codegen/box/cinterop/objc/kt49034_struct.kt b/native/native.tests/testData/codegen/cinterop/objc/kt49034_struct.kt similarity index 100% rename from compiler/testData/codegen/box/cinterop/objc/kt49034_struct.kt rename to native/native.tests/testData/codegen/cinterop/objc/kt49034_struct.kt diff --git a/compiler/testData/codegen/box/cinterop/objc/kt53151.kt b/native/native.tests/testData/codegen/cinterop/objc/kt53151.kt similarity index 100% rename from compiler/testData/codegen/box/cinterop/objc/kt53151.kt rename to native/native.tests/testData/codegen/cinterop/objc/kt53151.kt diff --git a/compiler/testData/codegen/box/cinterop/objc/overridabilityCondition.kt b/native/native.tests/testData/codegen/cinterop/objc/overridabilityCondition.kt similarity index 100% rename from compiler/testData/codegen/box/cinterop/objc/overridabilityCondition.kt rename to native/native.tests/testData/codegen/cinterop/objc/overridabilityCondition.kt diff --git a/compiler/testData/codegen/box/cinterop/objc/sharing_with_weak.kt b/native/native.tests/testData/codegen/cinterop/objc/sharing_with_weak.kt similarity index 100% rename from compiler/testData/codegen/box/cinterop/objc/sharing_with_weak.kt rename to native/native.tests/testData/codegen/cinterop/objc/sharing_with_weak.kt diff --git a/compiler/testData/codegen/box/cinterop/packages/dotFnameNested1.kt b/native/native.tests/testData/codegen/cinterop/packages/dotFnameNested1.kt similarity index 100% rename from compiler/testData/codegen/box/cinterop/packages/dotFnameNested1.kt rename to native/native.tests/testData/codegen/cinterop/packages/dotFnameNested1.kt diff --git a/compiler/testData/codegen/box/cinterop/packages/dotFnameNested2.kt b/native/native.tests/testData/codegen/cinterop/packages/dotFnameNested2.kt similarity index 100% rename from compiler/testData/codegen/box/cinterop/packages/dotFnameNested2.kt rename to native/native.tests/testData/codegen/cinterop/packages/dotFnameNested2.kt diff --git a/compiler/testData/codegen/box/cinterop/packages/dotFnameRoot.kt b/native/native.tests/testData/codegen/cinterop/packages/dotFnameRoot.kt similarity index 100% rename from compiler/testData/codegen/box/cinterop/packages/dotFnameRoot.kt rename to native/native.tests/testData/codegen/cinterop/packages/dotFnameRoot.kt diff --git a/compiler/testData/codegen/box/cinterop/packages/nested1.kt b/native/native.tests/testData/codegen/cinterop/packages/nested1.kt similarity index 100% rename from compiler/testData/codegen/box/cinterop/packages/nested1.kt rename to native/native.tests/testData/codegen/cinterop/packages/nested1.kt diff --git a/compiler/testData/codegen/box/cinterop/packages/nested2.kt b/native/native.tests/testData/codegen/cinterop/packages/nested2.kt similarity index 100% rename from compiler/testData/codegen/box/cinterop/packages/nested2.kt rename to native/native.tests/testData/codegen/cinterop/packages/nested2.kt diff --git a/compiler/testData/codegen/box/cinterop/packages/root.kt b/native/native.tests/testData/codegen/cinterop/packages/root.kt similarity index 100% rename from compiler/testData/codegen/box/cinterop/packages/root.kt rename to native/native.tests/testData/codegen/cinterop/packages/root.kt diff --git a/compiler/testData/codegen/box/cinterop/threadStates/callback.kt b/native/native.tests/testData/codegen/cinterop/threadStates/callback.kt similarity index 100% rename from compiler/testData/codegen/box/cinterop/threadStates/callback.kt rename to native/native.tests/testData/codegen/cinterop/threadStates/callback.kt diff --git a/compiler/testData/codegen/box/cinterop/threadStates/callbackOnSeparateThread.kt b/native/native.tests/testData/codegen/cinterop/threadStates/callbackOnSeparateThread.kt similarity index 100% rename from compiler/testData/codegen/box/cinterop/threadStates/callbackOnSeparateThread.kt rename to native/native.tests/testData/codegen/cinterop/threadStates/callbackOnSeparateThread.kt diff --git a/compiler/testData/codegen/box/cinterop/threadStates/callbackWithException.kt b/native/native.tests/testData/codegen/cinterop/threadStates/callbackWithException.kt similarity index 100% rename from compiler/testData/codegen/box/cinterop/threadStates/callbackWithException.kt rename to native/native.tests/testData/codegen/cinterop/threadStates/callbackWithException.kt diff --git a/compiler/testData/codegen/box/cinterop/threadStates/callbackWithFinally.kt b/native/native.tests/testData/codegen/cinterop/threadStates/callbackWithFinally.kt similarity index 100% rename from compiler/testData/codegen/box/cinterop/threadStates/callbackWithFinally.kt rename to native/native.tests/testData/codegen/cinterop/threadStates/callbackWithFinally.kt diff --git a/compiler/testData/codegen/box/cinterop/threadStates/callbackWithFinallyNoCatch.kt b/native/native.tests/testData/codegen/cinterop/threadStates/callbackWithFinallyNoCatch.kt similarity index 100% rename from compiler/testData/codegen/box/cinterop/threadStates/callbackWithFinallyNoCatch.kt rename to native/native.tests/testData/codegen/cinterop/threadStates/callbackWithFinallyNoCatch.kt diff --git a/compiler/testData/codegen/box/cinterop/threadStates/directStaticCFunctionCall.kt b/native/native.tests/testData/codegen/cinterop/threadStates/directStaticCFunctionCall.kt similarity index 100% rename from compiler/testData/codegen/box/cinterop/threadStates/directStaticCFunctionCall.kt rename to native/native.tests/testData/codegen/cinterop/threadStates/directStaticCFunctionCall.kt diff --git a/compiler/testData/codegen/box/cinterop/threadStates/nativeCall.kt b/native/native.tests/testData/codegen/cinterop/threadStates/nativeCall.kt similarity index 100% rename from compiler/testData/codegen/box/cinterop/threadStates/nativeCall.kt rename to native/native.tests/testData/codegen/cinterop/threadStates/nativeCall.kt diff --git a/compiler/testData/codegen/box/cinterop/threadStates/nestedCallbackWithException.kt b/native/native.tests/testData/codegen/cinterop/threadStates/nestedCallbackWithException.kt similarity index 100% rename from compiler/testData/codegen/box/cinterop/threadStates/nestedCallbackWithException.kt rename to native/native.tests/testData/codegen/cinterop/threadStates/nestedCallbackWithException.kt diff --git a/compiler/testData/codegen/box/cinterop/threadStates/nestedCallbackWithFinally.kt b/native/native.tests/testData/codegen/cinterop/threadStates/nestedCallbackWithFinally.kt similarity index 100% rename from compiler/testData/codegen/box/cinterop/threadStates/nestedCallbackWithFinally.kt rename to native/native.tests/testData/codegen/cinterop/threadStates/nestedCallbackWithFinally.kt diff --git a/compiler/testData/codegen/box/cinterop/threadStates/nestedCalls.kt b/native/native.tests/testData/codegen/cinterop/threadStates/nestedCalls.kt similarity index 100% rename from compiler/testData/codegen/box/cinterop/threadStates/nestedCalls.kt rename to native/native.tests/testData/codegen/cinterop/threadStates/nestedCalls.kt diff --git a/compiler/testData/codegen/box/cinterop/toKString.kt b/native/native.tests/testData/codegen/cinterop/toKString.kt similarity index 100% rename from compiler/testData/codegen/box/cinterop/toKString.kt rename to native/native.tests/testData/codegen/cinterop/toKString.kt diff --git a/compiler/testData/codegen/box/fileCheck/adopted_function_reference.kt b/native/native.tests/testData/codegen/fileCheck/adopted_function_reference.kt similarity index 100% rename from compiler/testData/codegen/box/fileCheck/adopted_function_reference.kt rename to native/native.tests/testData/codegen/fileCheck/adopted_function_reference.kt diff --git a/compiler/testData/codegen/box/fileCheck/atomics.kt b/native/native.tests/testData/codegen/fileCheck/atomics.kt similarity index 100% rename from compiler/testData/codegen/box/fileCheck/atomics.kt rename to native/native.tests/testData/codegen/fileCheck/atomics.kt diff --git a/compiler/testData/codegen/box/fileCheck/bce.kt b/native/native.tests/testData/codegen/fileCheck/bce.kt similarity index 100% rename from compiler/testData/codegen/box/fileCheck/bce.kt rename to native/native.tests/testData/codegen/fileCheck/bce.kt diff --git a/compiler/testData/codegen/box/fileCheck/cinterop/direct.kt b/native/native.tests/testData/codegen/fileCheck/cinterop/direct.kt similarity index 100% rename from compiler/testData/codegen/box/fileCheck/cinterop/direct.kt rename to native/native.tests/testData/codegen/fileCheck/cinterop/direct.kt diff --git a/compiler/testData/codegen/box/fileCheck/cinterop/signext_zeroext_interop.kt b/native/native.tests/testData/codegen/fileCheck/cinterop/signext_zeroext_interop.kt similarity index 100% rename from compiler/testData/codegen/box/fileCheck/cinterop/signext_zeroext_interop.kt rename to native/native.tests/testData/codegen/fileCheck/cinterop/signext_zeroext_interop.kt diff --git a/compiler/testData/codegen/box/fileCheck/constants_merge.kt b/native/native.tests/testData/codegen/fileCheck/constants_merge.kt similarity index 100% rename from compiler/testData/codegen/box/fileCheck/constants_merge.kt rename to native/native.tests/testData/codegen/fileCheck/constants_merge.kt diff --git a/compiler/testData/codegen/box/fileCheck/default_parameters_dont_box.kt b/native/native.tests/testData/codegen/fileCheck/default_parameters_dont_box.kt similarity index 100% rename from compiler/testData/codegen/box/fileCheck/default_parameters_dont_box.kt rename to native/native.tests/testData/codegen/fileCheck/default_parameters_dont_box.kt diff --git a/compiler/testData/codegen/box/fileCheck/enum_when.kt b/native/native.tests/testData/codegen/fileCheck/enum_when.kt similarity index 100% rename from compiler/testData/codegen/box/fileCheck/enum_when.kt rename to native/native.tests/testData/codegen/fileCheck/enum_when.kt diff --git a/compiler/testData/codegen/box/fileCheck/escape_analysis.kt b/native/native.tests/testData/codegen/fileCheck/escape_analysis.kt similarity index 100% rename from compiler/testData/codegen/box/fileCheck/escape_analysis.kt rename to native/native.tests/testData/codegen/fileCheck/escape_analysis.kt diff --git a/compiler/testData/codegen/box/fileCheck/filecheck_expected_failure.kt b/native/native.tests/testData/codegen/fileCheck/filecheck_expected_failure.kt similarity index 100% rename from compiler/testData/codegen/box/fileCheck/filecheck_expected_failure.kt rename to native/native.tests/testData/codegen/fileCheck/filecheck_expected_failure.kt diff --git a/compiler/testData/codegen/box/fileCheck/force_arm_instruction_set.kt b/native/native.tests/testData/codegen/fileCheck/force_arm_instruction_set.kt similarity index 100% rename from compiler/testData/codegen/box/fileCheck/force_arm_instruction_set.kt rename to native/native.tests/testData/codegen/fileCheck/force_arm_instruction_set.kt diff --git a/compiler/testData/codegen/box/fileCheck/function_attributes_at_callsite.kt b/native/native.tests/testData/codegen/fileCheck/function_attributes_at_callsite.kt similarity index 100% rename from compiler/testData/codegen/box/fileCheck/function_attributes_at_callsite.kt rename to native/native.tests/testData/codegen/fileCheck/function_attributes_at_callsite.kt diff --git a/compiler/testData/codegen/box/fileCheck/generic_function_references.kt b/native/native.tests/testData/codegen/fileCheck/generic_function_references.kt similarity index 100% rename from compiler/testData/codegen/box/fileCheck/generic_function_references.kt rename to native/native.tests/testData/codegen/fileCheck/generic_function_references.kt diff --git a/compiler/testData/codegen/box/fileCheck/intrinsics.kt b/native/native.tests/testData/codegen/fileCheck/intrinsics.kt similarity index 100% rename from compiler/testData/codegen/box/fileCheck/intrinsics.kt rename to native/native.tests/testData/codegen/fileCheck/intrinsics.kt diff --git a/compiler/testData/codegen/box/fileCheck/kt49847_class.kt b/native/native.tests/testData/codegen/fileCheck/kt49847_class.kt similarity index 100% rename from compiler/testData/codegen/box/fileCheck/kt49847_class.kt rename to native/native.tests/testData/codegen/fileCheck/kt49847_class.kt diff --git a/compiler/testData/codegen/box/fileCheck/kt49847_generic.kt b/native/native.tests/testData/codegen/fileCheck/kt49847_generic.kt similarity index 100% rename from compiler/testData/codegen/box/fileCheck/kt49847_generic.kt rename to native/native.tests/testData/codegen/fileCheck/kt49847_generic.kt diff --git a/compiler/testData/codegen/box/fileCheck/kt49847_generic_receiver.kt b/native/native.tests/testData/codegen/fileCheck/kt49847_generic_receiver.kt similarity index 100% rename from compiler/testData/codegen/box/fileCheck/kt49847_generic_receiver.kt rename to native/native.tests/testData/codegen/fileCheck/kt49847_generic_receiver.kt diff --git a/compiler/testData/codegen/box/fileCheck/kt49847_sam_Any.kt b/native/native.tests/testData/codegen/fileCheck/kt49847_sam_Any.kt similarity index 100% rename from compiler/testData/codegen/box/fileCheck/kt49847_sam_Any.kt rename to native/native.tests/testData/codegen/fileCheck/kt49847_sam_Any.kt diff --git a/compiler/testData/codegen/box/fileCheck/kt49847_sam_Any_generic.kt b/native/native.tests/testData/codegen/fileCheck/kt49847_sam_Any_generic.kt similarity index 100% rename from compiler/testData/codegen/box/fileCheck/kt49847_sam_Any_generic.kt rename to native/native.tests/testData/codegen/fileCheck/kt49847_sam_Any_generic.kt diff --git a/compiler/testData/codegen/box/fileCheck/kt49847_sam_Int.kt b/native/native.tests/testData/codegen/fileCheck/kt49847_sam_Int.kt similarity index 100% rename from compiler/testData/codegen/box/fileCheck/kt49847_sam_Int.kt rename to native/native.tests/testData/codegen/fileCheck/kt49847_sam_Int.kt diff --git a/compiler/testData/codegen/box/fileCheck/kt49847_sam_Int_generic.kt b/native/native.tests/testData/codegen/fileCheck/kt49847_sam_Int_generic.kt similarity index 100% rename from compiler/testData/codegen/box/fileCheck/kt49847_sam_Int_generic.kt rename to native/native.tests/testData/codegen/fileCheck/kt49847_sam_Int_generic.kt diff --git a/compiler/testData/codegen/box/fileCheck/kt49847_simple_function_reference.kt b/native/native.tests/testData/codegen/fileCheck/kt49847_simple_function_reference.kt similarity index 100% rename from compiler/testData/codegen/box/fileCheck/kt49847_simple_function_reference.kt rename to native/native.tests/testData/codegen/fileCheck/kt49847_simple_function_reference.kt diff --git a/compiler/testData/codegen/box/fileCheck/kt53261/kt53261_inline_unbox.kt b/native/native.tests/testData/codegen/fileCheck/kt53261/kt53261_inline_unbox.kt similarity index 100% rename from compiler/testData/codegen/box/fileCheck/kt53261/kt53261_inline_unbox.kt rename to native/native.tests/testData/codegen/fileCheck/kt53261/kt53261_inline_unbox.kt diff --git a/compiler/testData/codegen/box/fileCheck/kt53261/kt53261_noinline_CPointer.kt b/native/native.tests/testData/codegen/fileCheck/kt53261/kt53261_noinline_CPointer.kt similarity index 100% rename from compiler/testData/codegen/box/fileCheck/kt53261/kt53261_noinline_CPointer.kt rename to native/native.tests/testData/codegen/fileCheck/kt53261/kt53261_noinline_CPointer.kt diff --git a/compiler/testData/codegen/box/fileCheck/kt53261/kt53261_noinline_NativePointed.kt b/native/native.tests/testData/codegen/fileCheck/kt53261/kt53261_noinline_NativePointed.kt similarity index 100% rename from compiler/testData/codegen/box/fileCheck/kt53261/kt53261_noinline_NativePointed.kt rename to native/native.tests/testData/codegen/fileCheck/kt53261/kt53261_noinline_NativePointed.kt diff --git a/compiler/testData/codegen/box/fileCheck/kt53261/kt53261_noinline_NonNullNativePtr.kt b/native/native.tests/testData/codegen/fileCheck/kt53261/kt53261_noinline_NonNullNativePtr.kt similarity index 100% rename from compiler/testData/codegen/box/fileCheck/kt53261/kt53261_noinline_NonNullNativePtr.kt rename to native/native.tests/testData/codegen/fileCheck/kt53261/kt53261_noinline_NonNullNativePtr.kt diff --git a/compiler/testData/codegen/box/fileCheck/kt53261/kt53261_noinline_StableRef.kt b/native/native.tests/testData/codegen/fileCheck/kt53261/kt53261_noinline_StableRef.kt similarity index 100% rename from compiler/testData/codegen/box/fileCheck/kt53261/kt53261_noinline_StableRef.kt rename to native/native.tests/testData/codegen/fileCheck/kt53261/kt53261_noinline_StableRef.kt diff --git a/compiler/testData/codegen/box/fileCheck/kt53261/kt53261_noinline_UByteArray.kt b/native/native.tests/testData/codegen/fileCheck/kt53261/kt53261_noinline_UByteArray.kt similarity index 100% rename from compiler/testData/codegen/box/fileCheck/kt53261/kt53261_noinline_UByteArray.kt rename to native/native.tests/testData/codegen/fileCheck/kt53261/kt53261_noinline_UByteArray.kt diff --git a/compiler/testData/codegen/box/fileCheck/kt53261/kt53261_noinline_UIntArray.kt b/native/native.tests/testData/codegen/fileCheck/kt53261/kt53261_noinline_UIntArray.kt similarity index 100% rename from compiler/testData/codegen/box/fileCheck/kt53261/kt53261_noinline_UIntArray.kt rename to native/native.tests/testData/codegen/fileCheck/kt53261/kt53261_noinline_UIntArray.kt diff --git a/compiler/testData/codegen/box/fileCheck/kt53261/kt53261_noinline_ULongArray.kt b/native/native.tests/testData/codegen/fileCheck/kt53261/kt53261_noinline_ULongArray.kt similarity index 100% rename from compiler/testData/codegen/box/fileCheck/kt53261/kt53261_noinline_ULongArray.kt rename to native/native.tests/testData/codegen/fileCheck/kt53261/kt53261_noinline_ULongArray.kt diff --git a/compiler/testData/codegen/box/fileCheck/kt53261/kt53261_noinline_UShortArray.kt b/native/native.tests/testData/codegen/fileCheck/kt53261/kt53261_noinline_UShortArray.kt similarity index 100% rename from compiler/testData/codegen/box/fileCheck/kt53261/kt53261_noinline_UShortArray.kt rename to native/native.tests/testData/codegen/fileCheck/kt53261/kt53261_noinline_UShortArray.kt diff --git a/compiler/testData/codegen/box/fileCheck/kt53261/kt53261_noinline_value_unbox.kt b/native/native.tests/testData/codegen/fileCheck/kt53261/kt53261_noinline_value_unbox.kt similarity index 100% rename from compiler/testData/codegen/box/fileCheck/kt53261/kt53261_noinline_value_unbox.kt rename to native/native.tests/testData/codegen/fileCheck/kt53261/kt53261_noinline_value_unbox.kt diff --git a/compiler/testData/codegen/box/fileCheck/kt58654.kt b/native/native.tests/testData/codegen/fileCheck/kt58654.kt similarity index 100% rename from compiler/testData/codegen/box/fileCheck/kt58654.kt rename to native/native.tests/testData/codegen/fileCheck/kt58654.kt diff --git a/compiler/testData/codegen/box/fileCheck/no_frame_on_constant_object_access.kt b/native/native.tests/testData/codegen/fileCheck/no_frame_on_constant_object_access.kt similarity index 100% rename from compiler/testData/codegen/box/fileCheck/no_frame_on_constant_object_access.kt rename to native/native.tests/testData/codegen/fileCheck/no_frame_on_constant_object_access.kt diff --git a/compiler/testData/codegen/box/fileCheck/redundant_safepoints.kt b/native/native.tests/testData/codegen/fileCheck/redundant_safepoints.kt similarity index 100% rename from compiler/testData/codegen/box/fileCheck/redundant_safepoints.kt rename to native/native.tests/testData/codegen/fileCheck/redundant_safepoints.kt diff --git a/compiler/testData/codegen/box/fileCheck/replace_invoke_with_call.kt b/native/native.tests/testData/codegen/fileCheck/replace_invoke_with_call.kt similarity index 100% rename from compiler/testData/codegen/box/fileCheck/replace_invoke_with_call.kt rename to native/native.tests/testData/codegen/fileCheck/replace_invoke_with_call.kt diff --git a/compiler/testData/codegen/box/fileCheck/signext_zeroext0.kt b/native/native.tests/testData/codegen/fileCheck/signext_zeroext0.kt similarity index 100% rename from compiler/testData/codegen/box/fileCheck/signext_zeroext0.kt rename to native/native.tests/testData/codegen/fileCheck/signext_zeroext0.kt diff --git a/compiler/testData/codegen/box/fileCheck/single_tls_load.kt b/native/native.tests/testData/codegen/fileCheck/single_tls_load.kt similarity index 100% rename from compiler/testData/codegen/box/fileCheck/single_tls_load.kt rename to native/native.tests/testData/codegen/fileCheck/single_tls_load.kt diff --git a/compiler/testData/codegen/box/fileCheck/smoke0.kt b/native/native.tests/testData/codegen/fileCheck/smoke0.kt similarity index 100% rename from compiler/testData/codegen/box/fileCheck/smoke0.kt rename to native/native.tests/testData/codegen/fileCheck/smoke0.kt diff --git a/compiler/testData/codegen/box/fileCheck/stringConcatenationTypeNarrowing/kt53119_append_generated.kt b/native/native.tests/testData/codegen/fileCheck/stringConcatenationTypeNarrowing/kt53119_append_generated.kt similarity index 100% rename from compiler/testData/codegen/box/fileCheck/stringConcatenationTypeNarrowing/kt53119_append_generated.kt rename to native/native.tests/testData/codegen/fileCheck/stringConcatenationTypeNarrowing/kt53119_append_generated.kt diff --git a/compiler/testData/codegen/box/fileCheck/stringConcatenationTypeNarrowing/kt53119_append_manual.kt b/native/native.tests/testData/codegen/fileCheck/stringConcatenationTypeNarrowing/kt53119_append_manual.kt similarity index 100% rename from compiler/testData/codegen/box/fileCheck/stringConcatenationTypeNarrowing/kt53119_append_manual.kt rename to native/native.tests/testData/codegen/fileCheck/stringConcatenationTypeNarrowing/kt53119_append_manual.kt diff --git a/compiler/testData/codegen/box/fileCheck/stringConcatenationTypeNarrowing/kt53119_plus_extension.kt b/native/native.tests/testData/codegen/fileCheck/stringConcatenationTypeNarrowing/kt53119_plus_extension.kt similarity index 100% rename from compiler/testData/codegen/box/fileCheck/stringConcatenationTypeNarrowing/kt53119_plus_extension.kt rename to native/native.tests/testData/codegen/fileCheck/stringConcatenationTypeNarrowing/kt53119_plus_extension.kt diff --git a/compiler/testData/codegen/box/fileCheck/stringConcatenationTypeNarrowing/kt53119_plus_generated_noescape.kt b/native/native.tests/testData/codegen/fileCheck/stringConcatenationTypeNarrowing/kt53119_plus_generated_noescape.kt similarity index 100% rename from compiler/testData/codegen/box/fileCheck/stringConcatenationTypeNarrowing/kt53119_plus_generated_noescape.kt rename to native/native.tests/testData/codegen/fileCheck/stringConcatenationTypeNarrowing/kt53119_plus_generated_noescape.kt diff --git a/compiler/testData/codegen/box/fileCheck/stringConcatenationTypeNarrowing/kt53119_plus_member.kt b/native/native.tests/testData/codegen/fileCheck/stringConcatenationTypeNarrowing/kt53119_plus_member.kt similarity index 100% rename from compiler/testData/codegen/box/fileCheck/stringConcatenationTypeNarrowing/kt53119_plus_member.kt rename to native/native.tests/testData/codegen/fileCheck/stringConcatenationTypeNarrowing/kt53119_plus_member.kt diff --git a/compiler/testData/codegen/box/fileCheck/stringConcatenationTypeNarrowing/kt53119_side_effect.kt b/native/native.tests/testData/codegen/fileCheck/stringConcatenationTypeNarrowing/kt53119_side_effect.kt similarity index 100% rename from compiler/testData/codegen/box/fileCheck/stringConcatenationTypeNarrowing/kt53119_side_effect.kt rename to native/native.tests/testData/codegen/fileCheck/stringConcatenationTypeNarrowing/kt53119_side_effect.kt diff --git a/compiler/testData/codegen/box/fileCheck/suspend_returnNothing.kt b/native/native.tests/testData/codegen/fileCheck/suspend_returnNothing.kt similarity index 100% rename from compiler/testData/codegen/box/fileCheck/suspend_returnNothing.kt rename to native/native.tests/testData/codegen/fileCheck/suspend_returnNothing.kt diff --git a/compiler/testData/codegen/box/fileCheck/suspend_tailcalls_functions.kt b/native/native.tests/testData/codegen/fileCheck/suspend_tailcalls_functions.kt similarity index 100% rename from compiler/testData/codegen/box/fileCheck/suspend_tailcalls_functions.kt rename to native/native.tests/testData/codegen/fileCheck/suspend_tailcalls_functions.kt diff --git a/compiler/testData/codegen/box/fileCheck/suspend_tailcalls_lambdas.kt b/native/native.tests/testData/codegen/fileCheck/suspend_tailcalls_lambdas.kt similarity index 100% rename from compiler/testData/codegen/box/fileCheck/suspend_tailcalls_lambdas.kt rename to native/native.tests/testData/codegen/fileCheck/suspend_tailcalls_lambdas.kt diff --git a/compiler/testData/codegen/box/fileCheck/when.kt b/native/native.tests/testData/codegen/fileCheck/when.kt similarity index 100% rename from compiler/testData/codegen/box/fileCheck/when.kt rename to native/native.tests/testData/codegen/fileCheck/when.kt diff --git a/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/test/blackbox/FirNativeCodegenBoxTestGenerated.java b/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/test/blackbox/FirNativeCodegenBoxTestGenerated.java index 8e4956b5ec1..c3d5934842d 100644 --- a/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/test/blackbox/FirNativeCodegenBoxTestGenerated.java +++ b/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/test/blackbox/FirNativeCodegenBoxTestGenerated.java @@ -4796,510 +4796,6 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe } } - @Nested - @TestMetadata("compiler/testData/codegen/box/cinterop") - @TestDataPath("$PROJECT_ROOT") - @Tag("frontend-fir") - @FirPipeline() - @UseExtTestCaseGroupProvider() - public class Cinterop { - @Test - public void testAllFilesPresentInCinterop() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); - } - - @Test - @TestMetadata("arrayPointers.kt") - public void testArrayPointers() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/arrayPointers.kt"); - } - - @Test - @TestMetadata("auxiliarySources.kt") - public void testAuxiliarySources() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/auxiliarySources.kt"); - } - - @Test - @TestMetadata("bitfields.kt") - public void testBitfields() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/bitfields.kt"); - } - - @Test - @TestMetadata("callbacksAndVarargs.kt") - public void testCallbacksAndVarargs() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/callbacksAndVarargs.kt"); - } - - @Test - @TestMetadata("enums.kt") - public void testEnums() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/enums.kt"); - } - - @Test - @TestMetadata("forwardDeclarations.kt") - public void testForwardDeclarations() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/forwardDeclarations.kt"); - } - - @Test - @TestMetadata("forwardDeclarationsTwoLibs.kt") - public void testForwardDeclarationsTwoLibs() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/forwardDeclarationsTwoLibs.kt"); - } - - @Test - @TestMetadata("globals.kt") - public void testGlobals() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/globals.kt"); - } - - @Test - @TestMetadata("incompleteTypes.kt") - public void testIncompleteTypes() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/incompleteTypes.kt"); - } - - @Test - @TestMetadata("kt43265.kt") - public void testKt43265() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/kt43265.kt"); - } - - @Test - @TestMetadata("kt44283.kt") - public void testKt44283() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/kt44283.kt"); - } - - @Test - @TestMetadata("kt51925.kt") - public void testKt51925() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/kt51925.kt"); - } - - @Test - @TestMetadata("kt54284.kt") - public void testKt54284() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/kt54284.kt"); - } - - @Test - @TestMetadata("kt54284_fmodules.kt") - public void testKt54284_fmodules() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/kt54284_fmodules.kt"); - } - - @Test - @TestMetadata("kt57640.kt") - public void testKt57640() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/kt57640.kt"); - } - - @Test - @TestMetadata("kt59167.kt") - public void testKt59167() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/kt59167.kt"); - } - - @Test - @TestMetadata("kt63048.kt") - public void testKt63048() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/kt63048.kt"); - } - - @Test - @TestMetadata("kt63049.kt") - public void testKt63049() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/kt63049.kt"); - } - - @Test - @TestMetadata("kt64105.kt") - public void testKt64105() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/kt64105.kt"); - } - - @Test - @TestMetadata("leakMemoryWithRunningThreadUnchecked.kt") - public void testLeakMemoryWithRunningThreadUnchecked() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/leakMemoryWithRunningThreadUnchecked.kt"); - } - - @Test - @TestMetadata("toKString.kt") - public void testToKString() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/toKString.kt"); - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/cinterop/basics") - @TestDataPath("$PROJECT_ROOT") - @Tag("frontend-fir") - @FirPipeline() - @UseExtTestCaseGroupProvider() - public class Basics { - @Test - @TestMetadata("1.kt") - public void test1() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/basics/1.kt"); - } - - @Test - @TestMetadata("3.kt") - public void test3() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/basics/3.kt"); - } - - @Test - public void testAllFilesPresentInBasics() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop/basics"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); - } - - @Test - @TestMetadata("available_processors.kt") - public void testAvailable_processors() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/basics/available_processors.kt"); - } - - @Test - @TestMetadata("macros.kt") - public void testMacros() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/basics/macros.kt"); - } - - @Test - @TestMetadata("mangling.kt") - public void testMangling() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/basics/mangling.kt"); - } - - @Test - @TestMetadata("mangling2.kt") - public void testMangling2() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/basics/mangling2.kt"); - } - - @Test - @TestMetadata("mangling_keywords.kt") - public void testMangling_keywords() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/basics/mangling_keywords.kt"); - } - - @Test - @TestMetadata("mangling_keywords2.kt") - public void testMangling_keywords2() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/basics/mangling_keywords2.kt"); - } - - @Test - @TestMetadata("statbuf.kt") - public void testStatbuf() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/basics/statbuf.kt"); - } - - @Test - @TestMetadata("structAnonRecordMember_ExplicitAlignment.kt") - public void testStructAnonRecordMember_ExplicitAlignment() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/basics/structAnonRecordMember_ExplicitAlignment.kt"); - } - - @Test - @TestMetadata("structAnonRecordMember_ImplicitAlignment.kt") - public void testStructAnonRecordMember_ImplicitAlignment() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/basics/structAnonRecordMember_ImplicitAlignment.kt"); - } - - @Test - @TestMetadata("structAnonRecordMember_Nested.kt") - public void testStructAnonRecordMember_Nested() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/basics/structAnonRecordMember_Nested.kt"); - } - - @Test - @TestMetadata("structAnonym_Complicate.kt") - public void testStructAnonym_Complicate() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/basics/structAnonym_Complicate.kt"); - } - - @Test - @TestMetadata("structAnonym_GLKVector3.kt") - public void testStructAnonym_GLKVector3() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/basics/structAnonym_GLKVector3.kt"); - } - - @Test - @TestMetadata("structAnonym_Packed.kt") - public void testStructAnonym_Packed() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/basics/structAnonym_Packed.kt"); - } - - @Test - @TestMetadata("structAnonym_Packed2.kt") - public void testStructAnonym_Packed2() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/basics/structAnonym_Packed2.kt"); - } - - @Test - @TestMetadata("structAnonym_PragmaPacked.kt") - public void testStructAnonym_PragmaPacked() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/basics/structAnonym_PragmaPacked.kt"); - } - - @Test - @TestMetadata("structs.kt") - public void testStructs() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/basics/structs.kt"); - } - - @Test - @TestMetadata("types.kt") - public void testTypes() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/basics/types.kt"); - } - - @Test - @TestMetadata("union.kt") - public void testUnion() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/basics/union.kt"); - } - - @Test - @TestMetadata("unsupported.kt") - public void testUnsupported() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/basics/unsupported.kt"); - } - - @Test - @TestMetadata("values.kt") - public void testValues() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/basics/values.kt"); - } - - @Test - @TestMetadata("vectors.kt") - public void testVectors() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/basics/vectors.kt"); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/cinterop/exceptions") - @TestDataPath("$PROJECT_ROOT") - @Tag("frontend-fir") - @FirPipeline() - @UseExtTestCaseGroupProvider() - public class Exceptions { - @Test - public void testAllFilesPresentInExceptions() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop/exceptions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); - } - - @Test - @TestMetadata("cCallback.kt") - public void testCCallback() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/exceptions/cCallback.kt"); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/cinterop/objc") - @TestDataPath("$PROJECT_ROOT") - @Tag("frontend-fir") - @FirPipeline() - @UseExtTestCaseGroupProvider() - public class Objc { - @Test - public void testAllFilesPresentInObjc() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop/objc"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); - } - - @Test - @TestMetadata("direct.kt") - public void testDirect() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/objc/direct.kt"); - } - - @Test - @TestMetadata("forwardDeclarationsCast.kt") - public void testForwardDeclarationsCast() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/objc/forwardDeclarationsCast.kt"); - } - - @Test - @TestMetadata("kt34467.kt") - public void testKt34467() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/objc/kt34467.kt"); - } - - @Test - @TestMetadata("kt48816_lazy_ir_disable.kt") - public void testKt48816_lazy_ir_disable() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/objc/kt48816_lazy_ir_disable.kt"); - } - - @Test - @TestMetadata("kt48816_lazy_ir_enable.kt") - public void testKt48816_lazy_ir_enable() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/objc/kt48816_lazy_ir_enable.kt"); - } - - @Test - @TestMetadata("kt49034_objcclass.kt") - public void testKt49034_objcclass() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/objc/kt49034_objcclass.kt"); - } - - @Test - @TestMetadata("kt49034_struct.kt") - public void testKt49034_struct() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/objc/kt49034_struct.kt"); - } - - @Test - @TestMetadata("kt53151.kt") - public void testKt53151() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/objc/kt53151.kt"); - } - - @Test - @TestMetadata("overridabilityCondition.kt") - public void testOverridabilityCondition() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/objc/overridabilityCondition.kt"); - } - - @Test - @TestMetadata("sharing_with_weak.kt") - public void testSharing_with_weak() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/objc/sharing_with_weak.kt"); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/cinterop/packages") - @TestDataPath("$PROJECT_ROOT") - @Tag("frontend-fir") - @FirPipeline() - @UseExtTestCaseGroupProvider() - public class Packages { - @Test - public void testAllFilesPresentInPackages() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop/packages"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); - } - - @Test - @TestMetadata("dotFnameNested1.kt") - public void testDotFnameNested1() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/packages/dotFnameNested1.kt"); - } - - @Test - @TestMetadata("dotFnameNested2.kt") - public void testDotFnameNested2() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/packages/dotFnameNested2.kt"); - } - - @Test - @TestMetadata("dotFnameRoot.kt") - public void testDotFnameRoot() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/packages/dotFnameRoot.kt"); - } - - @Test - @TestMetadata("nested1.kt") - public void testNested1() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/packages/nested1.kt"); - } - - @Test - @TestMetadata("nested2.kt") - public void testNested2() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/packages/nested2.kt"); - } - - @Test - @TestMetadata("root.kt") - public void testRoot() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/packages/root.kt"); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/cinterop/threadStates") - @TestDataPath("$PROJECT_ROOT") - @Tag("frontend-fir") - @FirPipeline() - @UseExtTestCaseGroupProvider() - public class ThreadStates { - @Test - public void testAllFilesPresentInThreadStates() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop/threadStates"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); - } - - @Test - @TestMetadata("callback.kt") - public void testCallback() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/threadStates/callback.kt"); - } - - @Test - @TestMetadata("callbackOnSeparateThread.kt") - public void testCallbackOnSeparateThread() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/threadStates/callbackOnSeparateThread.kt"); - } - - @Test - @TestMetadata("callbackWithException.kt") - public void testCallbackWithException() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/threadStates/callbackWithException.kt"); - } - - @Test - @TestMetadata("callbackWithFinally.kt") - public void testCallbackWithFinally() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/threadStates/callbackWithFinally.kt"); - } - - @Test - @TestMetadata("callbackWithFinallyNoCatch.kt") - public void testCallbackWithFinallyNoCatch() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/threadStates/callbackWithFinallyNoCatch.kt"); - } - - @Test - @TestMetadata("directStaticCFunctionCall.kt") - public void testDirectStaticCFunctionCall() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/threadStates/directStaticCFunctionCall.kt"); - } - - @Test - @TestMetadata("nativeCall.kt") - public void testNativeCall() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/threadStates/nativeCall.kt"); - } - - @Test - @TestMetadata("nestedCallbackWithException.kt") - public void testNestedCallbackWithException() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/threadStates/nestedCallbackWithException.kt"); - } - - @Test - @TestMetadata("nestedCallbackWithFinally.kt") - public void testNestedCallbackWithFinally() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/threadStates/nestedCallbackWithFinally.kt"); - } - - @Test - @TestMetadata("nestedCalls.kt") - public void testNestedCalls() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/threadStates/nestedCalls.kt"); - } - } - } - @Nested @TestMetadata("compiler/testData/codegen/box/classLiteral") @TestDataPath("$PROJECT_ROOT") @@ -16144,352 +15640,6 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe } } - @Nested - @TestMetadata("compiler/testData/codegen/box/fileCheck") - @TestDataPath("$PROJECT_ROOT") - @Tag("frontend-fir") - @FirPipeline() - @UseExtTestCaseGroupProvider() - public class FileCheck { - @Test - @TestMetadata("adopted_function_reference.kt") - public void testAdopted_function_reference() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/adopted_function_reference.kt"); - } - - @Test - public void testAllFilesPresentInFileCheck() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fileCheck"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); - } - - @Test - @TestMetadata("atomics.kt") - public void testAtomics() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/atomics.kt"); - } - - @Test - @TestMetadata("bce.kt") - public void testBce() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/bce.kt"); - } - - @Test - @TestMetadata("constants_merge.kt") - public void testConstants_merge() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/constants_merge.kt"); - } - - @Test - @TestMetadata("default_parameters_dont_box.kt") - public void testDefault_parameters_dont_box() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/default_parameters_dont_box.kt"); - } - - @Test - @TestMetadata("enum_when.kt") - public void testEnum_when() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/enum_when.kt"); - } - - @Test - @TestMetadata("escape_analysis.kt") - public void testEscape_analysis() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/escape_analysis.kt"); - } - - @Test - @TestMetadata("filecheck_expected_failure.kt") - public void testFilecheck_expected_failure() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/filecheck_expected_failure.kt"); - } - - @Test - @TestMetadata("force_arm_instruction_set.kt") - public void testForce_arm_instruction_set() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/force_arm_instruction_set.kt"); - } - - @Test - @TestMetadata("function_attributes_at_callsite.kt") - public void testFunction_attributes_at_callsite() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/function_attributes_at_callsite.kt"); - } - - @Test - @TestMetadata("generic_function_references.kt") - public void testGeneric_function_references() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/generic_function_references.kt"); - } - - @Test - @TestMetadata("intrinsics.kt") - public void testIntrinsics() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/intrinsics.kt"); - } - - @Test - @TestMetadata("kt49847_class.kt") - public void testKt49847_class() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/kt49847_class.kt"); - } - - @Test - @TestMetadata("kt49847_generic.kt") - public void testKt49847_generic() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/kt49847_generic.kt"); - } - - @Test - @TestMetadata("kt49847_generic_receiver.kt") - public void testKt49847_generic_receiver() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/kt49847_generic_receiver.kt"); - } - - @Test - @TestMetadata("kt49847_sam_Any.kt") - public void testKt49847_sam_Any() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/kt49847_sam_Any.kt"); - } - - @Test - @TestMetadata("kt49847_sam_Any_generic.kt") - public void testKt49847_sam_Any_generic() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/kt49847_sam_Any_generic.kt"); - } - - @Test - @TestMetadata("kt49847_sam_Int.kt") - public void testKt49847_sam_Int() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/kt49847_sam_Int.kt"); - } - - @Test - @TestMetadata("kt49847_sam_Int_generic.kt") - public void testKt49847_sam_Int_generic() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/kt49847_sam_Int_generic.kt"); - } - - @Test - @TestMetadata("kt49847_simple_function_reference.kt") - public void testKt49847_simple_function_reference() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/kt49847_simple_function_reference.kt"); - } - - @Test - @TestMetadata("kt58654.kt") - public void testKt58654() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/kt58654.kt"); - } - - @Test - @TestMetadata("no_frame_on_constant_object_access.kt") - public void testNo_frame_on_constant_object_access() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/no_frame_on_constant_object_access.kt"); - } - - @Test - @TestMetadata("redundant_safepoints.kt") - public void testRedundant_safepoints() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/redundant_safepoints.kt"); - } - - @Test - @TestMetadata("replace_invoke_with_call.kt") - public void testReplace_invoke_with_call() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/replace_invoke_with_call.kt"); - } - - @Test - @TestMetadata("signext_zeroext0.kt") - public void testSignext_zeroext0() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/signext_zeroext0.kt"); - } - - @Test - @TestMetadata("single_tls_load.kt") - public void testSingle_tls_load() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/single_tls_load.kt"); - } - - @Test - @TestMetadata("smoke0.kt") - public void testSmoke0() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/smoke0.kt"); - } - - @Test - @TestMetadata("suspend_returnNothing.kt") - public void testSuspend_returnNothing() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/suspend_returnNothing.kt"); - } - - @Test - @TestMetadata("suspend_tailcalls_functions.kt") - public void testSuspend_tailcalls_functions() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/suspend_tailcalls_functions.kt"); - } - - @Test - @TestMetadata("suspend_tailcalls_lambdas.kt") - public void testSuspend_tailcalls_lambdas() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/suspend_tailcalls_lambdas.kt"); - } - - @Test - @TestMetadata("when.kt") - public void testWhen() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/when.kt"); - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/fileCheck/cinterop") - @TestDataPath("$PROJECT_ROOT") - @Tag("frontend-fir") - @FirPipeline() - @UseExtTestCaseGroupProvider() - public class Cinterop { - @Test - public void testAllFilesPresentInCinterop() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fileCheck/cinterop"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); - } - - @Test - @TestMetadata("direct.kt") - public void testDirect() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/cinterop/direct.kt"); - } - - @Test - @TestMetadata("signext_zeroext_interop.kt") - public void testSignext_zeroext_interop() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/cinterop/signext_zeroext_interop.kt"); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/fileCheck/kt53261") - @TestDataPath("$PROJECT_ROOT") - @Tag("frontend-fir") - @FirPipeline() - @UseExtTestCaseGroupProvider() - public class Kt53261 { - @Test - public void testAllFilesPresentInKt53261() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fileCheck/kt53261"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); - } - - @Test - @TestMetadata("kt53261_inline_unbox.kt") - public void testKt53261_inline_unbox() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/kt53261/kt53261_inline_unbox.kt"); - } - - @Test - @TestMetadata("kt53261_noinline_CPointer.kt") - public void testKt53261_noinline_CPointer() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/kt53261/kt53261_noinline_CPointer.kt"); - } - - @Test - @TestMetadata("kt53261_noinline_NativePointed.kt") - public void testKt53261_noinline_NativePointed() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/kt53261/kt53261_noinline_NativePointed.kt"); - } - - @Test - @TestMetadata("kt53261_noinline_NonNullNativePtr.kt") - public void testKt53261_noinline_NonNullNativePtr() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/kt53261/kt53261_noinline_NonNullNativePtr.kt"); - } - - @Test - @TestMetadata("kt53261_noinline_StableRef.kt") - public void testKt53261_noinline_StableRef() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/kt53261/kt53261_noinline_StableRef.kt"); - } - - @Test - @TestMetadata("kt53261_noinline_UByteArray.kt") - public void testKt53261_noinline_UByteArray() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/kt53261/kt53261_noinline_UByteArray.kt"); - } - - @Test - @TestMetadata("kt53261_noinline_UIntArray.kt") - public void testKt53261_noinline_UIntArray() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/kt53261/kt53261_noinline_UIntArray.kt"); - } - - @Test - @TestMetadata("kt53261_noinline_ULongArray.kt") - public void testKt53261_noinline_ULongArray() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/kt53261/kt53261_noinline_ULongArray.kt"); - } - - @Test - @TestMetadata("kt53261_noinline_UShortArray.kt") - public void testKt53261_noinline_UShortArray() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/kt53261/kt53261_noinline_UShortArray.kt"); - } - - @Test - @TestMetadata("kt53261_noinline_value_unbox.kt") - public void testKt53261_noinline_value_unbox() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/kt53261/kt53261_noinline_value_unbox.kt"); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/fileCheck/stringConcatenationTypeNarrowing") - @TestDataPath("$PROJECT_ROOT") - @Tag("frontend-fir") - @FirPipeline() - @UseExtTestCaseGroupProvider() - public class StringConcatenationTypeNarrowing { - @Test - public void testAllFilesPresentInStringConcatenationTypeNarrowing() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fileCheck/stringConcatenationTypeNarrowing"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); - } - - @Test - @TestMetadata("kt53119_append_generated.kt") - public void testKt53119_append_generated() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/stringConcatenationTypeNarrowing/kt53119_append_generated.kt"); - } - - @Test - @TestMetadata("kt53119_append_manual.kt") - public void testKt53119_append_manual() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/stringConcatenationTypeNarrowing/kt53119_append_manual.kt"); - } - - @Test - @TestMetadata("kt53119_plus_extension.kt") - public void testKt53119_plus_extension() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/stringConcatenationTypeNarrowing/kt53119_plus_extension.kt"); - } - - @Test - @TestMetadata("kt53119_plus_generated_noescape.kt") - public void testKt53119_plus_generated_noescape() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/stringConcatenationTypeNarrowing/kt53119_plus_generated_noescape.kt"); - } - - @Test - @TestMetadata("kt53119_plus_member.kt") - public void testKt53119_plus_member() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/stringConcatenationTypeNarrowing/kt53119_plus_member.kt"); - } - - @Test - @TestMetadata("kt53119_side_effect.kt") - public void testKt53119_side_effect() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/stringConcatenationTypeNarrowing/kt53119_side_effect.kt"); - } - } - } - @Nested @TestMetadata("compiler/testData/codegen/box/finally") @TestDataPath("$PROJECT_ROOT") diff --git a/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/test/blackbox/FirNativeCodegenBoxTestNoPLGenerated.java b/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/test/blackbox/FirNativeCodegenBoxTestNoPLGenerated.java index ac5c58fd365..92a8a322e40 100644 --- a/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/test/blackbox/FirNativeCodegenBoxTestNoPLGenerated.java +++ b/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/test/blackbox/FirNativeCodegenBoxTestNoPLGenerated.java @@ -4904,522 +4904,6 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB } } - @Nested - @TestMetadata("compiler/testData/codegen/box/cinterop") - @TestDataPath("$PROJECT_ROOT") - @Tag("frontend-fir") - @FirPipeline() - @UseExtTestCaseGroupProvider() - @UsePartialLinkage(mode = Mode.DISABLED) - @Tag("no-partial-linkage-may-be-skipped") - public class Cinterop { - @Test - public void testAllFilesPresentInCinterop() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); - } - - @Test - @TestMetadata("arrayPointers.kt") - public void testArrayPointers() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/arrayPointers.kt"); - } - - @Test - @TestMetadata("auxiliarySources.kt") - public void testAuxiliarySources() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/auxiliarySources.kt"); - } - - @Test - @TestMetadata("bitfields.kt") - public void testBitfields() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/bitfields.kt"); - } - - @Test - @TestMetadata("callbacksAndVarargs.kt") - public void testCallbacksAndVarargs() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/callbacksAndVarargs.kt"); - } - - @Test - @TestMetadata("enums.kt") - public void testEnums() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/enums.kt"); - } - - @Test - @TestMetadata("forwardDeclarations.kt") - public void testForwardDeclarations() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/forwardDeclarations.kt"); - } - - @Test - @TestMetadata("forwardDeclarationsTwoLibs.kt") - public void testForwardDeclarationsTwoLibs() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/forwardDeclarationsTwoLibs.kt"); - } - - @Test - @TestMetadata("globals.kt") - public void testGlobals() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/globals.kt"); - } - - @Test - @TestMetadata("incompleteTypes.kt") - public void testIncompleteTypes() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/incompleteTypes.kt"); - } - - @Test - @TestMetadata("kt43265.kt") - public void testKt43265() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/kt43265.kt"); - } - - @Test - @TestMetadata("kt44283.kt") - public void testKt44283() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/kt44283.kt"); - } - - @Test - @TestMetadata("kt51925.kt") - public void testKt51925() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/kt51925.kt"); - } - - @Test - @TestMetadata("kt54284.kt") - public void testKt54284() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/kt54284.kt"); - } - - @Test - @TestMetadata("kt54284_fmodules.kt") - public void testKt54284_fmodules() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/kt54284_fmodules.kt"); - } - - @Test - @TestMetadata("kt57640.kt") - public void testKt57640() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/kt57640.kt"); - } - - @Test - @TestMetadata("kt59167.kt") - public void testKt59167() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/kt59167.kt"); - } - - @Test - @TestMetadata("kt63048.kt") - public void testKt63048() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/kt63048.kt"); - } - - @Test - @TestMetadata("kt63049.kt") - public void testKt63049() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/kt63049.kt"); - } - - @Test - @TestMetadata("kt64105.kt") - public void testKt64105() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/kt64105.kt"); - } - - @Test - @TestMetadata("leakMemoryWithRunningThreadUnchecked.kt") - public void testLeakMemoryWithRunningThreadUnchecked() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/leakMemoryWithRunningThreadUnchecked.kt"); - } - - @Test - @TestMetadata("toKString.kt") - public void testToKString() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/toKString.kt"); - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/cinterop/basics") - @TestDataPath("$PROJECT_ROOT") - @Tag("frontend-fir") - @FirPipeline() - @UseExtTestCaseGroupProvider() - @UsePartialLinkage(mode = Mode.DISABLED) - @Tag("no-partial-linkage-may-be-skipped") - public class Basics { - @Test - @TestMetadata("1.kt") - public void test1() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/basics/1.kt"); - } - - @Test - @TestMetadata("3.kt") - public void test3() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/basics/3.kt"); - } - - @Test - public void testAllFilesPresentInBasics() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop/basics"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); - } - - @Test - @TestMetadata("available_processors.kt") - public void testAvailable_processors() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/basics/available_processors.kt"); - } - - @Test - @TestMetadata("macros.kt") - public void testMacros() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/basics/macros.kt"); - } - - @Test - @TestMetadata("mangling.kt") - public void testMangling() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/basics/mangling.kt"); - } - - @Test - @TestMetadata("mangling2.kt") - public void testMangling2() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/basics/mangling2.kt"); - } - - @Test - @TestMetadata("mangling_keywords.kt") - public void testMangling_keywords() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/basics/mangling_keywords.kt"); - } - - @Test - @TestMetadata("mangling_keywords2.kt") - public void testMangling_keywords2() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/basics/mangling_keywords2.kt"); - } - - @Test - @TestMetadata("statbuf.kt") - public void testStatbuf() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/basics/statbuf.kt"); - } - - @Test - @TestMetadata("structAnonRecordMember_ExplicitAlignment.kt") - public void testStructAnonRecordMember_ExplicitAlignment() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/basics/structAnonRecordMember_ExplicitAlignment.kt"); - } - - @Test - @TestMetadata("structAnonRecordMember_ImplicitAlignment.kt") - public void testStructAnonRecordMember_ImplicitAlignment() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/basics/structAnonRecordMember_ImplicitAlignment.kt"); - } - - @Test - @TestMetadata("structAnonRecordMember_Nested.kt") - public void testStructAnonRecordMember_Nested() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/basics/structAnonRecordMember_Nested.kt"); - } - - @Test - @TestMetadata("structAnonym_Complicate.kt") - public void testStructAnonym_Complicate() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/basics/structAnonym_Complicate.kt"); - } - - @Test - @TestMetadata("structAnonym_GLKVector3.kt") - public void testStructAnonym_GLKVector3() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/basics/structAnonym_GLKVector3.kt"); - } - - @Test - @TestMetadata("structAnonym_Packed.kt") - public void testStructAnonym_Packed() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/basics/structAnonym_Packed.kt"); - } - - @Test - @TestMetadata("structAnonym_Packed2.kt") - public void testStructAnonym_Packed2() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/basics/structAnonym_Packed2.kt"); - } - - @Test - @TestMetadata("structAnonym_PragmaPacked.kt") - public void testStructAnonym_PragmaPacked() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/basics/structAnonym_PragmaPacked.kt"); - } - - @Test - @TestMetadata("structs.kt") - public void testStructs() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/basics/structs.kt"); - } - - @Test - @TestMetadata("types.kt") - public void testTypes() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/basics/types.kt"); - } - - @Test - @TestMetadata("union.kt") - public void testUnion() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/basics/union.kt"); - } - - @Test - @TestMetadata("unsupported.kt") - public void testUnsupported() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/basics/unsupported.kt"); - } - - @Test - @TestMetadata("values.kt") - public void testValues() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/basics/values.kt"); - } - - @Test - @TestMetadata("vectors.kt") - public void testVectors() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/basics/vectors.kt"); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/cinterop/exceptions") - @TestDataPath("$PROJECT_ROOT") - @Tag("frontend-fir") - @FirPipeline() - @UseExtTestCaseGroupProvider() - @UsePartialLinkage(mode = Mode.DISABLED) - @Tag("no-partial-linkage-may-be-skipped") - public class Exceptions { - @Test - public void testAllFilesPresentInExceptions() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop/exceptions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); - } - - @Test - @TestMetadata("cCallback.kt") - public void testCCallback() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/exceptions/cCallback.kt"); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/cinterop/objc") - @TestDataPath("$PROJECT_ROOT") - @Tag("frontend-fir") - @FirPipeline() - @UseExtTestCaseGroupProvider() - @UsePartialLinkage(mode = Mode.DISABLED) - @Tag("no-partial-linkage-may-be-skipped") - public class Objc { - @Test - public void testAllFilesPresentInObjc() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop/objc"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); - } - - @Test - @TestMetadata("direct.kt") - public void testDirect() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/objc/direct.kt"); - } - - @Test - @TestMetadata("forwardDeclarationsCast.kt") - public void testForwardDeclarationsCast() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/objc/forwardDeclarationsCast.kt"); - } - - @Test - @TestMetadata("kt34467.kt") - public void testKt34467() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/objc/kt34467.kt"); - } - - @Test - @TestMetadata("kt48816_lazy_ir_disable.kt") - public void testKt48816_lazy_ir_disable() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/objc/kt48816_lazy_ir_disable.kt"); - } - - @Test - @TestMetadata("kt48816_lazy_ir_enable.kt") - public void testKt48816_lazy_ir_enable() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/objc/kt48816_lazy_ir_enable.kt"); - } - - @Test - @TestMetadata("kt49034_objcclass.kt") - public void testKt49034_objcclass() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/objc/kt49034_objcclass.kt"); - } - - @Test - @TestMetadata("kt49034_struct.kt") - public void testKt49034_struct() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/objc/kt49034_struct.kt"); - } - - @Test - @TestMetadata("kt53151.kt") - public void testKt53151() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/objc/kt53151.kt"); - } - - @Test - @TestMetadata("overridabilityCondition.kt") - public void testOverridabilityCondition() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/objc/overridabilityCondition.kt"); - } - - @Test - @TestMetadata("sharing_with_weak.kt") - public void testSharing_with_weak() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/objc/sharing_with_weak.kt"); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/cinterop/packages") - @TestDataPath("$PROJECT_ROOT") - @Tag("frontend-fir") - @FirPipeline() - @UseExtTestCaseGroupProvider() - @UsePartialLinkage(mode = Mode.DISABLED) - @Tag("no-partial-linkage-may-be-skipped") - public class Packages { - @Test - public void testAllFilesPresentInPackages() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop/packages"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); - } - - @Test - @TestMetadata("dotFnameNested1.kt") - public void testDotFnameNested1() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/packages/dotFnameNested1.kt"); - } - - @Test - @TestMetadata("dotFnameNested2.kt") - public void testDotFnameNested2() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/packages/dotFnameNested2.kt"); - } - - @Test - @TestMetadata("dotFnameRoot.kt") - public void testDotFnameRoot() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/packages/dotFnameRoot.kt"); - } - - @Test - @TestMetadata("nested1.kt") - public void testNested1() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/packages/nested1.kt"); - } - - @Test - @TestMetadata("nested2.kt") - public void testNested2() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/packages/nested2.kt"); - } - - @Test - @TestMetadata("root.kt") - public void testRoot() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/packages/root.kt"); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/cinterop/threadStates") - @TestDataPath("$PROJECT_ROOT") - @Tag("frontend-fir") - @FirPipeline() - @UseExtTestCaseGroupProvider() - @UsePartialLinkage(mode = Mode.DISABLED) - @Tag("no-partial-linkage-may-be-skipped") - public class ThreadStates { - @Test - public void testAllFilesPresentInThreadStates() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop/threadStates"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); - } - - @Test - @TestMetadata("callback.kt") - public void testCallback() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/threadStates/callback.kt"); - } - - @Test - @TestMetadata("callbackOnSeparateThread.kt") - public void testCallbackOnSeparateThread() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/threadStates/callbackOnSeparateThread.kt"); - } - - @Test - @TestMetadata("callbackWithException.kt") - public void testCallbackWithException() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/threadStates/callbackWithException.kt"); - } - - @Test - @TestMetadata("callbackWithFinally.kt") - public void testCallbackWithFinally() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/threadStates/callbackWithFinally.kt"); - } - - @Test - @TestMetadata("callbackWithFinallyNoCatch.kt") - public void testCallbackWithFinallyNoCatch() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/threadStates/callbackWithFinallyNoCatch.kt"); - } - - @Test - @TestMetadata("directStaticCFunctionCall.kt") - public void testDirectStaticCFunctionCall() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/threadStates/directStaticCFunctionCall.kt"); - } - - @Test - @TestMetadata("nativeCall.kt") - public void testNativeCall() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/threadStates/nativeCall.kt"); - } - - @Test - @TestMetadata("nestedCallbackWithException.kt") - public void testNestedCallbackWithException() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/threadStates/nestedCallbackWithException.kt"); - } - - @Test - @TestMetadata("nestedCallbackWithFinally.kt") - public void testNestedCallbackWithFinally() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/threadStates/nestedCallbackWithFinally.kt"); - } - - @Test - @TestMetadata("nestedCalls.kt") - public void testNestedCalls() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/threadStates/nestedCalls.kt"); - } - } - } - @Nested @TestMetadata("compiler/testData/codegen/box/classLiteral") @TestDataPath("$PROJECT_ROOT") @@ -16520,360 +16004,6 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB } } - @Nested - @TestMetadata("compiler/testData/codegen/box/fileCheck") - @TestDataPath("$PROJECT_ROOT") - @Tag("frontend-fir") - @FirPipeline() - @UseExtTestCaseGroupProvider() - @UsePartialLinkage(mode = Mode.DISABLED) - @Tag("no-partial-linkage-may-be-skipped") - public class FileCheck { - @Test - @TestMetadata("adopted_function_reference.kt") - public void testAdopted_function_reference() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/adopted_function_reference.kt"); - } - - @Test - public void testAllFilesPresentInFileCheck() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fileCheck"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); - } - - @Test - @TestMetadata("atomics.kt") - public void testAtomics() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/atomics.kt"); - } - - @Test - @TestMetadata("bce.kt") - public void testBce() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/bce.kt"); - } - - @Test - @TestMetadata("constants_merge.kt") - public void testConstants_merge() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/constants_merge.kt"); - } - - @Test - @TestMetadata("default_parameters_dont_box.kt") - public void testDefault_parameters_dont_box() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/default_parameters_dont_box.kt"); - } - - @Test - @TestMetadata("enum_when.kt") - public void testEnum_when() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/enum_when.kt"); - } - - @Test - @TestMetadata("escape_analysis.kt") - public void testEscape_analysis() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/escape_analysis.kt"); - } - - @Test - @TestMetadata("filecheck_expected_failure.kt") - public void testFilecheck_expected_failure() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/filecheck_expected_failure.kt"); - } - - @Test - @TestMetadata("force_arm_instruction_set.kt") - public void testForce_arm_instruction_set() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/force_arm_instruction_set.kt"); - } - - @Test - @TestMetadata("function_attributes_at_callsite.kt") - public void testFunction_attributes_at_callsite() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/function_attributes_at_callsite.kt"); - } - - @Test - @TestMetadata("generic_function_references.kt") - public void testGeneric_function_references() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/generic_function_references.kt"); - } - - @Test - @TestMetadata("intrinsics.kt") - public void testIntrinsics() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/intrinsics.kt"); - } - - @Test - @TestMetadata("kt49847_class.kt") - public void testKt49847_class() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/kt49847_class.kt"); - } - - @Test - @TestMetadata("kt49847_generic.kt") - public void testKt49847_generic() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/kt49847_generic.kt"); - } - - @Test - @TestMetadata("kt49847_generic_receiver.kt") - public void testKt49847_generic_receiver() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/kt49847_generic_receiver.kt"); - } - - @Test - @TestMetadata("kt49847_sam_Any.kt") - public void testKt49847_sam_Any() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/kt49847_sam_Any.kt"); - } - - @Test - @TestMetadata("kt49847_sam_Any_generic.kt") - public void testKt49847_sam_Any_generic() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/kt49847_sam_Any_generic.kt"); - } - - @Test - @TestMetadata("kt49847_sam_Int.kt") - public void testKt49847_sam_Int() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/kt49847_sam_Int.kt"); - } - - @Test - @TestMetadata("kt49847_sam_Int_generic.kt") - public void testKt49847_sam_Int_generic() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/kt49847_sam_Int_generic.kt"); - } - - @Test - @TestMetadata("kt49847_simple_function_reference.kt") - public void testKt49847_simple_function_reference() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/kt49847_simple_function_reference.kt"); - } - - @Test - @TestMetadata("kt58654.kt") - public void testKt58654() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/kt58654.kt"); - } - - @Test - @TestMetadata("no_frame_on_constant_object_access.kt") - public void testNo_frame_on_constant_object_access() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/no_frame_on_constant_object_access.kt"); - } - - @Test - @TestMetadata("redundant_safepoints.kt") - public void testRedundant_safepoints() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/redundant_safepoints.kt"); - } - - @Test - @TestMetadata("replace_invoke_with_call.kt") - public void testReplace_invoke_with_call() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/replace_invoke_with_call.kt"); - } - - @Test - @TestMetadata("signext_zeroext0.kt") - public void testSignext_zeroext0() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/signext_zeroext0.kt"); - } - - @Test - @TestMetadata("single_tls_load.kt") - public void testSingle_tls_load() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/single_tls_load.kt"); - } - - @Test - @TestMetadata("smoke0.kt") - public void testSmoke0() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/smoke0.kt"); - } - - @Test - @TestMetadata("suspend_returnNothing.kt") - public void testSuspend_returnNothing() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/suspend_returnNothing.kt"); - } - - @Test - @TestMetadata("suspend_tailcalls_functions.kt") - public void testSuspend_tailcalls_functions() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/suspend_tailcalls_functions.kt"); - } - - @Test - @TestMetadata("suspend_tailcalls_lambdas.kt") - public void testSuspend_tailcalls_lambdas() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/suspend_tailcalls_lambdas.kt"); - } - - @Test - @TestMetadata("when.kt") - public void testWhen() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/when.kt"); - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/fileCheck/cinterop") - @TestDataPath("$PROJECT_ROOT") - @Tag("frontend-fir") - @FirPipeline() - @UseExtTestCaseGroupProvider() - @UsePartialLinkage(mode = Mode.DISABLED) - @Tag("no-partial-linkage-may-be-skipped") - public class Cinterop { - @Test - public void testAllFilesPresentInCinterop() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fileCheck/cinterop"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); - } - - @Test - @TestMetadata("direct.kt") - public void testDirect() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/cinterop/direct.kt"); - } - - @Test - @TestMetadata("signext_zeroext_interop.kt") - public void testSignext_zeroext_interop() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/cinterop/signext_zeroext_interop.kt"); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/fileCheck/kt53261") - @TestDataPath("$PROJECT_ROOT") - @Tag("frontend-fir") - @FirPipeline() - @UseExtTestCaseGroupProvider() - @UsePartialLinkage(mode = Mode.DISABLED) - @Tag("no-partial-linkage-may-be-skipped") - public class Kt53261 { - @Test - public void testAllFilesPresentInKt53261() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fileCheck/kt53261"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); - } - - @Test - @TestMetadata("kt53261_inline_unbox.kt") - public void testKt53261_inline_unbox() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/kt53261/kt53261_inline_unbox.kt"); - } - - @Test - @TestMetadata("kt53261_noinline_CPointer.kt") - public void testKt53261_noinline_CPointer() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/kt53261/kt53261_noinline_CPointer.kt"); - } - - @Test - @TestMetadata("kt53261_noinline_NativePointed.kt") - public void testKt53261_noinline_NativePointed() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/kt53261/kt53261_noinline_NativePointed.kt"); - } - - @Test - @TestMetadata("kt53261_noinline_NonNullNativePtr.kt") - public void testKt53261_noinline_NonNullNativePtr() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/kt53261/kt53261_noinline_NonNullNativePtr.kt"); - } - - @Test - @TestMetadata("kt53261_noinline_StableRef.kt") - public void testKt53261_noinline_StableRef() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/kt53261/kt53261_noinline_StableRef.kt"); - } - - @Test - @TestMetadata("kt53261_noinline_UByteArray.kt") - public void testKt53261_noinline_UByteArray() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/kt53261/kt53261_noinline_UByteArray.kt"); - } - - @Test - @TestMetadata("kt53261_noinline_UIntArray.kt") - public void testKt53261_noinline_UIntArray() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/kt53261/kt53261_noinline_UIntArray.kt"); - } - - @Test - @TestMetadata("kt53261_noinline_ULongArray.kt") - public void testKt53261_noinline_ULongArray() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/kt53261/kt53261_noinline_ULongArray.kt"); - } - - @Test - @TestMetadata("kt53261_noinline_UShortArray.kt") - public void testKt53261_noinline_UShortArray() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/kt53261/kt53261_noinline_UShortArray.kt"); - } - - @Test - @TestMetadata("kt53261_noinline_value_unbox.kt") - public void testKt53261_noinline_value_unbox() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/kt53261/kt53261_noinline_value_unbox.kt"); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/fileCheck/stringConcatenationTypeNarrowing") - @TestDataPath("$PROJECT_ROOT") - @Tag("frontend-fir") - @FirPipeline() - @UseExtTestCaseGroupProvider() - @UsePartialLinkage(mode = Mode.DISABLED) - @Tag("no-partial-linkage-may-be-skipped") - public class StringConcatenationTypeNarrowing { - @Test - public void testAllFilesPresentInStringConcatenationTypeNarrowing() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fileCheck/stringConcatenationTypeNarrowing"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); - } - - @Test - @TestMetadata("kt53119_append_generated.kt") - public void testKt53119_append_generated() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/stringConcatenationTypeNarrowing/kt53119_append_generated.kt"); - } - - @Test - @TestMetadata("kt53119_append_manual.kt") - public void testKt53119_append_manual() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/stringConcatenationTypeNarrowing/kt53119_append_manual.kt"); - } - - @Test - @TestMetadata("kt53119_plus_extension.kt") - public void testKt53119_plus_extension() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/stringConcatenationTypeNarrowing/kt53119_plus_extension.kt"); - } - - @Test - @TestMetadata("kt53119_plus_generated_noescape.kt") - public void testKt53119_plus_generated_noescape() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/stringConcatenationTypeNarrowing/kt53119_plus_generated_noescape.kt"); - } - - @Test - @TestMetadata("kt53119_plus_member.kt") - public void testKt53119_plus_member() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/stringConcatenationTypeNarrowing/kt53119_plus_member.kt"); - } - - @Test - @TestMetadata("kt53119_side_effect.kt") - public void testKt53119_side_effect() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/stringConcatenationTypeNarrowing/kt53119_side_effect.kt"); - } - } - } - @Nested @TestMetadata("compiler/testData/codegen/box/finally") @TestDataPath("$PROJECT_ROOT") diff --git a/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/test/blackbox/FirNativeCodegenLocalTestGenerated.java b/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/test/blackbox/FirNativeCodegenLocalTestGenerated.java index b9f26aba2e2..3864390e0ed 100644 --- a/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/test/blackbox/FirNativeCodegenLocalTestGenerated.java +++ b/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/test/blackbox/FirNativeCodegenLocalTestGenerated.java @@ -831,6 +831,510 @@ public class FirNativeCodegenLocalTestGenerated extends AbstractNativeCodegenBox } } + @Nested + @TestMetadata("native/native.tests/testData/codegen/cinterop") + @TestDataPath("$PROJECT_ROOT") + @Tag("frontend-fir") + @FirPipeline() + @UseExtTestCaseGroupProvider() + public class Cinterop { + @Test + public void testAllFilesPresentInCinterop() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/native.tests/testData/codegen/cinterop"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("arrayPointers.kt") + public void testArrayPointers() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/arrayPointers.kt"); + } + + @Test + @TestMetadata("auxiliarySources.kt") + public void testAuxiliarySources() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/auxiliarySources.kt"); + } + + @Test + @TestMetadata("bitfields.kt") + public void testBitfields() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/bitfields.kt"); + } + + @Test + @TestMetadata("callbacksAndVarargs.kt") + public void testCallbacksAndVarargs() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/callbacksAndVarargs.kt"); + } + + @Test + @TestMetadata("enums.kt") + public void testEnums() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/enums.kt"); + } + + @Test + @TestMetadata("forwardDeclarations.kt") + public void testForwardDeclarations() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/forwardDeclarations.kt"); + } + + @Test + @TestMetadata("forwardDeclarationsTwoLibs.kt") + public void testForwardDeclarationsTwoLibs() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/forwardDeclarationsTwoLibs.kt"); + } + + @Test + @TestMetadata("globals.kt") + public void testGlobals() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/globals.kt"); + } + + @Test + @TestMetadata("incompleteTypes.kt") + public void testIncompleteTypes() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/incompleteTypes.kt"); + } + + @Test + @TestMetadata("kt43265.kt") + public void testKt43265() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/kt43265.kt"); + } + + @Test + @TestMetadata("kt44283.kt") + public void testKt44283() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/kt44283.kt"); + } + + @Test + @TestMetadata("kt51925.kt") + public void testKt51925() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/kt51925.kt"); + } + + @Test + @TestMetadata("kt54284.kt") + public void testKt54284() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/kt54284.kt"); + } + + @Test + @TestMetadata("kt54284_fmodules.kt") + public void testKt54284_fmodules() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/kt54284_fmodules.kt"); + } + + @Test + @TestMetadata("kt57640.kt") + public void testKt57640() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/kt57640.kt"); + } + + @Test + @TestMetadata("kt59167.kt") + public void testKt59167() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/kt59167.kt"); + } + + @Test + @TestMetadata("kt63048.kt") + public void testKt63048() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/kt63048.kt"); + } + + @Test + @TestMetadata("kt63049.kt") + public void testKt63049() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/kt63049.kt"); + } + + @Test + @TestMetadata("kt64105.kt") + public void testKt64105() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/kt64105.kt"); + } + + @Test + @TestMetadata("leakMemoryWithRunningThreadUnchecked.kt") + public void testLeakMemoryWithRunningThreadUnchecked() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/leakMemoryWithRunningThreadUnchecked.kt"); + } + + @Test + @TestMetadata("toKString.kt") + public void testToKString() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/toKString.kt"); + } + + @Nested + @TestMetadata("native/native.tests/testData/codegen/cinterop/basics") + @TestDataPath("$PROJECT_ROOT") + @Tag("frontend-fir") + @FirPipeline() + @UseExtTestCaseGroupProvider() + public class Basics { + @Test + @TestMetadata("1.kt") + public void test1() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/basics/1.kt"); + } + + @Test + @TestMetadata("3.kt") + public void test3() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/basics/3.kt"); + } + + @Test + public void testAllFilesPresentInBasics() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/native.tests/testData/codegen/cinterop/basics"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("available_processors.kt") + public void testAvailable_processors() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/basics/available_processors.kt"); + } + + @Test + @TestMetadata("macros.kt") + public void testMacros() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/basics/macros.kt"); + } + + @Test + @TestMetadata("mangling.kt") + public void testMangling() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/basics/mangling.kt"); + } + + @Test + @TestMetadata("mangling2.kt") + public void testMangling2() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/basics/mangling2.kt"); + } + + @Test + @TestMetadata("mangling_keywords.kt") + public void testMangling_keywords() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/basics/mangling_keywords.kt"); + } + + @Test + @TestMetadata("mangling_keywords2.kt") + public void testMangling_keywords2() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/basics/mangling_keywords2.kt"); + } + + @Test + @TestMetadata("statbuf.kt") + public void testStatbuf() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/basics/statbuf.kt"); + } + + @Test + @TestMetadata("structAnonRecordMember_ExplicitAlignment.kt") + public void testStructAnonRecordMember_ExplicitAlignment() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/basics/structAnonRecordMember_ExplicitAlignment.kt"); + } + + @Test + @TestMetadata("structAnonRecordMember_ImplicitAlignment.kt") + public void testStructAnonRecordMember_ImplicitAlignment() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/basics/structAnonRecordMember_ImplicitAlignment.kt"); + } + + @Test + @TestMetadata("structAnonRecordMember_Nested.kt") + public void testStructAnonRecordMember_Nested() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/basics/structAnonRecordMember_Nested.kt"); + } + + @Test + @TestMetadata("structAnonym_Complicate.kt") + public void testStructAnonym_Complicate() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/basics/structAnonym_Complicate.kt"); + } + + @Test + @TestMetadata("structAnonym_GLKVector3.kt") + public void testStructAnonym_GLKVector3() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/basics/structAnonym_GLKVector3.kt"); + } + + @Test + @TestMetadata("structAnonym_Packed.kt") + public void testStructAnonym_Packed() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/basics/structAnonym_Packed.kt"); + } + + @Test + @TestMetadata("structAnonym_Packed2.kt") + public void testStructAnonym_Packed2() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/basics/structAnonym_Packed2.kt"); + } + + @Test + @TestMetadata("structAnonym_PragmaPacked.kt") + public void testStructAnonym_PragmaPacked() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/basics/structAnonym_PragmaPacked.kt"); + } + + @Test + @TestMetadata("structs.kt") + public void testStructs() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/basics/structs.kt"); + } + + @Test + @TestMetadata("types.kt") + public void testTypes() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/basics/types.kt"); + } + + @Test + @TestMetadata("union.kt") + public void testUnion() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/basics/union.kt"); + } + + @Test + @TestMetadata("unsupported.kt") + public void testUnsupported() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/basics/unsupported.kt"); + } + + @Test + @TestMetadata("values.kt") + public void testValues() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/basics/values.kt"); + } + + @Test + @TestMetadata("vectors.kt") + public void testVectors() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/basics/vectors.kt"); + } + } + + @Nested + @TestMetadata("native/native.tests/testData/codegen/cinterop/exceptions") + @TestDataPath("$PROJECT_ROOT") + @Tag("frontend-fir") + @FirPipeline() + @UseExtTestCaseGroupProvider() + public class Exceptions { + @Test + public void testAllFilesPresentInExceptions() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/native.tests/testData/codegen/cinterop/exceptions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("cCallback.kt") + public void testCCallback() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/exceptions/cCallback.kt"); + } + } + + @Nested + @TestMetadata("native/native.tests/testData/codegen/cinterop/objc") + @TestDataPath("$PROJECT_ROOT") + @Tag("frontend-fir") + @FirPipeline() + @UseExtTestCaseGroupProvider() + public class Objc { + @Test + public void testAllFilesPresentInObjc() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/native.tests/testData/codegen/cinterop/objc"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("direct.kt") + public void testDirect() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/objc/direct.kt"); + } + + @Test + @TestMetadata("forwardDeclarationsCast.kt") + public void testForwardDeclarationsCast() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/objc/forwardDeclarationsCast.kt"); + } + + @Test + @TestMetadata("kt34467.kt") + public void testKt34467() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/objc/kt34467.kt"); + } + + @Test + @TestMetadata("kt48816_lazy_ir_disable.kt") + public void testKt48816_lazy_ir_disable() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/objc/kt48816_lazy_ir_disable.kt"); + } + + @Test + @TestMetadata("kt48816_lazy_ir_enable.kt") + public void testKt48816_lazy_ir_enable() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/objc/kt48816_lazy_ir_enable.kt"); + } + + @Test + @TestMetadata("kt49034_objcclass.kt") + public void testKt49034_objcclass() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/objc/kt49034_objcclass.kt"); + } + + @Test + @TestMetadata("kt49034_struct.kt") + public void testKt49034_struct() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/objc/kt49034_struct.kt"); + } + + @Test + @TestMetadata("kt53151.kt") + public void testKt53151() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/objc/kt53151.kt"); + } + + @Test + @TestMetadata("overridabilityCondition.kt") + public void testOverridabilityCondition() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/objc/overridabilityCondition.kt"); + } + + @Test + @TestMetadata("sharing_with_weak.kt") + public void testSharing_with_weak() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/objc/sharing_with_weak.kt"); + } + } + + @Nested + @TestMetadata("native/native.tests/testData/codegen/cinterop/packages") + @TestDataPath("$PROJECT_ROOT") + @Tag("frontend-fir") + @FirPipeline() + @UseExtTestCaseGroupProvider() + public class Packages { + @Test + public void testAllFilesPresentInPackages() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/native.tests/testData/codegen/cinterop/packages"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("dotFnameNested1.kt") + public void testDotFnameNested1() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/packages/dotFnameNested1.kt"); + } + + @Test + @TestMetadata("dotFnameNested2.kt") + public void testDotFnameNested2() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/packages/dotFnameNested2.kt"); + } + + @Test + @TestMetadata("dotFnameRoot.kt") + public void testDotFnameRoot() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/packages/dotFnameRoot.kt"); + } + + @Test + @TestMetadata("nested1.kt") + public void testNested1() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/packages/nested1.kt"); + } + + @Test + @TestMetadata("nested2.kt") + public void testNested2() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/packages/nested2.kt"); + } + + @Test + @TestMetadata("root.kt") + public void testRoot() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/packages/root.kt"); + } + } + + @Nested + @TestMetadata("native/native.tests/testData/codegen/cinterop/threadStates") + @TestDataPath("$PROJECT_ROOT") + @Tag("frontend-fir") + @FirPipeline() + @UseExtTestCaseGroupProvider() + public class ThreadStates { + @Test + public void testAllFilesPresentInThreadStates() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/native.tests/testData/codegen/cinterop/threadStates"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("callback.kt") + public void testCallback() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/threadStates/callback.kt"); + } + + @Test + @TestMetadata("callbackOnSeparateThread.kt") + public void testCallbackOnSeparateThread() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/threadStates/callbackOnSeparateThread.kt"); + } + + @Test + @TestMetadata("callbackWithException.kt") + public void testCallbackWithException() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/threadStates/callbackWithException.kt"); + } + + @Test + @TestMetadata("callbackWithFinally.kt") + public void testCallbackWithFinally() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/threadStates/callbackWithFinally.kt"); + } + + @Test + @TestMetadata("callbackWithFinallyNoCatch.kt") + public void testCallbackWithFinallyNoCatch() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/threadStates/callbackWithFinallyNoCatch.kt"); + } + + @Test + @TestMetadata("directStaticCFunctionCall.kt") + public void testDirectStaticCFunctionCall() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/threadStates/directStaticCFunctionCall.kt"); + } + + @Test + @TestMetadata("nativeCall.kt") + public void testNativeCall() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/threadStates/nativeCall.kt"); + } + + @Test + @TestMetadata("nestedCallbackWithException.kt") + public void testNestedCallbackWithException() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/threadStates/nestedCallbackWithException.kt"); + } + + @Test + @TestMetadata("nestedCallbackWithFinally.kt") + public void testNestedCallbackWithFinally() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/threadStates/nestedCallbackWithFinally.kt"); + } + + @Test + @TestMetadata("nestedCalls.kt") + public void testNestedCalls() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/threadStates/nestedCalls.kt"); + } + } + } + @Nested @TestMetadata("native/native.tests/testData/codegen/classDelegation") @TestDataPath("$PROJECT_ROOT") @@ -1766,6 +2270,352 @@ public class FirNativeCodegenLocalTestGenerated extends AbstractNativeCodegenBox } } + @Nested + @TestMetadata("native/native.tests/testData/codegen/fileCheck") + @TestDataPath("$PROJECT_ROOT") + @Tag("frontend-fir") + @FirPipeline() + @UseExtTestCaseGroupProvider() + public class FileCheck { + @Test + @TestMetadata("adopted_function_reference.kt") + public void testAdopted_function_reference() throws Exception { + runTest("native/native.tests/testData/codegen/fileCheck/adopted_function_reference.kt"); + } + + @Test + public void testAllFilesPresentInFileCheck() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/native.tests/testData/codegen/fileCheck"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("atomics.kt") + public void testAtomics() throws Exception { + runTest("native/native.tests/testData/codegen/fileCheck/atomics.kt"); + } + + @Test + @TestMetadata("bce.kt") + public void testBce() throws Exception { + runTest("native/native.tests/testData/codegen/fileCheck/bce.kt"); + } + + @Test + @TestMetadata("constants_merge.kt") + public void testConstants_merge() throws Exception { + runTest("native/native.tests/testData/codegen/fileCheck/constants_merge.kt"); + } + + @Test + @TestMetadata("default_parameters_dont_box.kt") + public void testDefault_parameters_dont_box() throws Exception { + runTest("native/native.tests/testData/codegen/fileCheck/default_parameters_dont_box.kt"); + } + + @Test + @TestMetadata("enum_when.kt") + public void testEnum_when() throws Exception { + runTest("native/native.tests/testData/codegen/fileCheck/enum_when.kt"); + } + + @Test + @TestMetadata("escape_analysis.kt") + public void testEscape_analysis() throws Exception { + runTest("native/native.tests/testData/codegen/fileCheck/escape_analysis.kt"); + } + + @Test + @TestMetadata("filecheck_expected_failure.kt") + public void testFilecheck_expected_failure() throws Exception { + runTest("native/native.tests/testData/codegen/fileCheck/filecheck_expected_failure.kt"); + } + + @Test + @TestMetadata("force_arm_instruction_set.kt") + public void testForce_arm_instruction_set() throws Exception { + runTest("native/native.tests/testData/codegen/fileCheck/force_arm_instruction_set.kt"); + } + + @Test + @TestMetadata("function_attributes_at_callsite.kt") + public void testFunction_attributes_at_callsite() throws Exception { + runTest("native/native.tests/testData/codegen/fileCheck/function_attributes_at_callsite.kt"); + } + + @Test + @TestMetadata("generic_function_references.kt") + public void testGeneric_function_references() throws Exception { + runTest("native/native.tests/testData/codegen/fileCheck/generic_function_references.kt"); + } + + @Test + @TestMetadata("intrinsics.kt") + public void testIntrinsics() throws Exception { + runTest("native/native.tests/testData/codegen/fileCheck/intrinsics.kt"); + } + + @Test + @TestMetadata("kt49847_class.kt") + public void testKt49847_class() throws Exception { + runTest("native/native.tests/testData/codegen/fileCheck/kt49847_class.kt"); + } + + @Test + @TestMetadata("kt49847_generic.kt") + public void testKt49847_generic() throws Exception { + runTest("native/native.tests/testData/codegen/fileCheck/kt49847_generic.kt"); + } + + @Test + @TestMetadata("kt49847_generic_receiver.kt") + public void testKt49847_generic_receiver() throws Exception { + runTest("native/native.tests/testData/codegen/fileCheck/kt49847_generic_receiver.kt"); + } + + @Test + @TestMetadata("kt49847_sam_Any.kt") + public void testKt49847_sam_Any() throws Exception { + runTest("native/native.tests/testData/codegen/fileCheck/kt49847_sam_Any.kt"); + } + + @Test + @TestMetadata("kt49847_sam_Any_generic.kt") + public void testKt49847_sam_Any_generic() throws Exception { + runTest("native/native.tests/testData/codegen/fileCheck/kt49847_sam_Any_generic.kt"); + } + + @Test + @TestMetadata("kt49847_sam_Int.kt") + public void testKt49847_sam_Int() throws Exception { + runTest("native/native.tests/testData/codegen/fileCheck/kt49847_sam_Int.kt"); + } + + @Test + @TestMetadata("kt49847_sam_Int_generic.kt") + public void testKt49847_sam_Int_generic() throws Exception { + runTest("native/native.tests/testData/codegen/fileCheck/kt49847_sam_Int_generic.kt"); + } + + @Test + @TestMetadata("kt49847_simple_function_reference.kt") + public void testKt49847_simple_function_reference() throws Exception { + runTest("native/native.tests/testData/codegen/fileCheck/kt49847_simple_function_reference.kt"); + } + + @Test + @TestMetadata("kt58654.kt") + public void testKt58654() throws Exception { + runTest("native/native.tests/testData/codegen/fileCheck/kt58654.kt"); + } + + @Test + @TestMetadata("no_frame_on_constant_object_access.kt") + public void testNo_frame_on_constant_object_access() throws Exception { + runTest("native/native.tests/testData/codegen/fileCheck/no_frame_on_constant_object_access.kt"); + } + + @Test + @TestMetadata("redundant_safepoints.kt") + public void testRedundant_safepoints() throws Exception { + runTest("native/native.tests/testData/codegen/fileCheck/redundant_safepoints.kt"); + } + + @Test + @TestMetadata("replace_invoke_with_call.kt") + public void testReplace_invoke_with_call() throws Exception { + runTest("native/native.tests/testData/codegen/fileCheck/replace_invoke_with_call.kt"); + } + + @Test + @TestMetadata("signext_zeroext0.kt") + public void testSignext_zeroext0() throws Exception { + runTest("native/native.tests/testData/codegen/fileCheck/signext_zeroext0.kt"); + } + + @Test + @TestMetadata("single_tls_load.kt") + public void testSingle_tls_load() throws Exception { + runTest("native/native.tests/testData/codegen/fileCheck/single_tls_load.kt"); + } + + @Test + @TestMetadata("smoke0.kt") + public void testSmoke0() throws Exception { + runTest("native/native.tests/testData/codegen/fileCheck/smoke0.kt"); + } + + @Test + @TestMetadata("suspend_returnNothing.kt") + public void testSuspend_returnNothing() throws Exception { + runTest("native/native.tests/testData/codegen/fileCheck/suspend_returnNothing.kt"); + } + + @Test + @TestMetadata("suspend_tailcalls_functions.kt") + public void testSuspend_tailcalls_functions() throws Exception { + runTest("native/native.tests/testData/codegen/fileCheck/suspend_tailcalls_functions.kt"); + } + + @Test + @TestMetadata("suspend_tailcalls_lambdas.kt") + public void testSuspend_tailcalls_lambdas() throws Exception { + runTest("native/native.tests/testData/codegen/fileCheck/suspend_tailcalls_lambdas.kt"); + } + + @Test + @TestMetadata("when.kt") + public void testWhen() throws Exception { + runTest("native/native.tests/testData/codegen/fileCheck/when.kt"); + } + + @Nested + @TestMetadata("native/native.tests/testData/codegen/fileCheck/cinterop") + @TestDataPath("$PROJECT_ROOT") + @Tag("frontend-fir") + @FirPipeline() + @UseExtTestCaseGroupProvider() + public class Cinterop { + @Test + public void testAllFilesPresentInCinterop() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/native.tests/testData/codegen/fileCheck/cinterop"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("direct.kt") + public void testDirect() throws Exception { + runTest("native/native.tests/testData/codegen/fileCheck/cinterop/direct.kt"); + } + + @Test + @TestMetadata("signext_zeroext_interop.kt") + public void testSignext_zeroext_interop() throws Exception { + runTest("native/native.tests/testData/codegen/fileCheck/cinterop/signext_zeroext_interop.kt"); + } + } + + @Nested + @TestMetadata("native/native.tests/testData/codegen/fileCheck/kt53261") + @TestDataPath("$PROJECT_ROOT") + @Tag("frontend-fir") + @FirPipeline() + @UseExtTestCaseGroupProvider() + public class Kt53261 { + @Test + public void testAllFilesPresentInKt53261() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/native.tests/testData/codegen/fileCheck/kt53261"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("kt53261_inline_unbox.kt") + public void testKt53261_inline_unbox() throws Exception { + runTest("native/native.tests/testData/codegen/fileCheck/kt53261/kt53261_inline_unbox.kt"); + } + + @Test + @TestMetadata("kt53261_noinline_CPointer.kt") + public void testKt53261_noinline_CPointer() throws Exception { + runTest("native/native.tests/testData/codegen/fileCheck/kt53261/kt53261_noinline_CPointer.kt"); + } + + @Test + @TestMetadata("kt53261_noinline_NativePointed.kt") + public void testKt53261_noinline_NativePointed() throws Exception { + runTest("native/native.tests/testData/codegen/fileCheck/kt53261/kt53261_noinline_NativePointed.kt"); + } + + @Test + @TestMetadata("kt53261_noinline_NonNullNativePtr.kt") + public void testKt53261_noinline_NonNullNativePtr() throws Exception { + runTest("native/native.tests/testData/codegen/fileCheck/kt53261/kt53261_noinline_NonNullNativePtr.kt"); + } + + @Test + @TestMetadata("kt53261_noinline_StableRef.kt") + public void testKt53261_noinline_StableRef() throws Exception { + runTest("native/native.tests/testData/codegen/fileCheck/kt53261/kt53261_noinline_StableRef.kt"); + } + + @Test + @TestMetadata("kt53261_noinline_UByteArray.kt") + public void testKt53261_noinline_UByteArray() throws Exception { + runTest("native/native.tests/testData/codegen/fileCheck/kt53261/kt53261_noinline_UByteArray.kt"); + } + + @Test + @TestMetadata("kt53261_noinline_UIntArray.kt") + public void testKt53261_noinline_UIntArray() throws Exception { + runTest("native/native.tests/testData/codegen/fileCheck/kt53261/kt53261_noinline_UIntArray.kt"); + } + + @Test + @TestMetadata("kt53261_noinline_ULongArray.kt") + public void testKt53261_noinline_ULongArray() throws Exception { + runTest("native/native.tests/testData/codegen/fileCheck/kt53261/kt53261_noinline_ULongArray.kt"); + } + + @Test + @TestMetadata("kt53261_noinline_UShortArray.kt") + public void testKt53261_noinline_UShortArray() throws Exception { + runTest("native/native.tests/testData/codegen/fileCheck/kt53261/kt53261_noinline_UShortArray.kt"); + } + + @Test + @TestMetadata("kt53261_noinline_value_unbox.kt") + public void testKt53261_noinline_value_unbox() throws Exception { + runTest("native/native.tests/testData/codegen/fileCheck/kt53261/kt53261_noinline_value_unbox.kt"); + } + } + + @Nested + @TestMetadata("native/native.tests/testData/codegen/fileCheck/stringConcatenationTypeNarrowing") + @TestDataPath("$PROJECT_ROOT") + @Tag("frontend-fir") + @FirPipeline() + @UseExtTestCaseGroupProvider() + public class StringConcatenationTypeNarrowing { + @Test + public void testAllFilesPresentInStringConcatenationTypeNarrowing() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/native.tests/testData/codegen/fileCheck/stringConcatenationTypeNarrowing"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("kt53119_append_generated.kt") + public void testKt53119_append_generated() throws Exception { + runTest("native/native.tests/testData/codegen/fileCheck/stringConcatenationTypeNarrowing/kt53119_append_generated.kt"); + } + + @Test + @TestMetadata("kt53119_append_manual.kt") + public void testKt53119_append_manual() throws Exception { + runTest("native/native.tests/testData/codegen/fileCheck/stringConcatenationTypeNarrowing/kt53119_append_manual.kt"); + } + + @Test + @TestMetadata("kt53119_plus_extension.kt") + public void testKt53119_plus_extension() throws Exception { + runTest("native/native.tests/testData/codegen/fileCheck/stringConcatenationTypeNarrowing/kt53119_plus_extension.kt"); + } + + @Test + @TestMetadata("kt53119_plus_generated_noescape.kt") + public void testKt53119_plus_generated_noescape() throws Exception { + runTest("native/native.tests/testData/codegen/fileCheck/stringConcatenationTypeNarrowing/kt53119_plus_generated_noescape.kt"); + } + + @Test + @TestMetadata("kt53119_plus_member.kt") + public void testKt53119_plus_member() throws Exception { + runTest("native/native.tests/testData/codegen/fileCheck/stringConcatenationTypeNarrowing/kt53119_plus_member.kt"); + } + + @Test + @TestMetadata("kt53119_side_effect.kt") + public void testKt53119_side_effect() throws Exception { + runTest("native/native.tests/testData/codegen/fileCheck/stringConcatenationTypeNarrowing/kt53119_side_effect.kt"); + } + } + } + @Nested @TestMetadata("native/native.tests/testData/codegen/funInterface") @TestDataPath("$PROJECT_ROOT") diff --git a/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/test/blackbox/NativeCodegenBoxTestGenerated.java b/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/test/blackbox/NativeCodegenBoxTestGenerated.java index 352b3556e92..7e732b3808e 100644 --- a/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/test/blackbox/NativeCodegenBoxTestGenerated.java +++ b/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/test/blackbox/NativeCodegenBoxTestGenerated.java @@ -4688,498 +4688,6 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest } } - @Nested - @TestMetadata("compiler/testData/codegen/box/cinterop") - @TestDataPath("$PROJECT_ROOT") - @UseExtTestCaseGroupProvider() - public class Cinterop { - @Test - public void testAllFilesPresentInCinterop() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); - } - - @Test - @TestMetadata("arrayPointers.kt") - public void testArrayPointers() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/arrayPointers.kt"); - } - - @Test - @TestMetadata("auxiliarySources.kt") - public void testAuxiliarySources() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/auxiliarySources.kt"); - } - - @Test - @TestMetadata("bitfields.kt") - public void testBitfields() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/bitfields.kt"); - } - - @Test - @TestMetadata("callbacksAndVarargs.kt") - public void testCallbacksAndVarargs() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/callbacksAndVarargs.kt"); - } - - @Test - @TestMetadata("enums.kt") - public void testEnums() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/enums.kt"); - } - - @Test - @TestMetadata("forwardDeclarations.kt") - public void testForwardDeclarations() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/forwardDeclarations.kt"); - } - - @Test - @TestMetadata("forwardDeclarationsTwoLibs.kt") - public void testForwardDeclarationsTwoLibs() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/forwardDeclarationsTwoLibs.kt"); - } - - @Test - @TestMetadata("globals.kt") - public void testGlobals() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/globals.kt"); - } - - @Test - @TestMetadata("incompleteTypes.kt") - public void testIncompleteTypes() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/incompleteTypes.kt"); - } - - @Test - @TestMetadata("kt43265.kt") - public void testKt43265() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/kt43265.kt"); - } - - @Test - @TestMetadata("kt44283.kt") - public void testKt44283() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/kt44283.kt"); - } - - @Test - @TestMetadata("kt51925.kt") - public void testKt51925() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/kt51925.kt"); - } - - @Test - @TestMetadata("kt54284.kt") - public void testKt54284() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/kt54284.kt"); - } - - @Test - @TestMetadata("kt54284_fmodules.kt") - public void testKt54284_fmodules() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/kt54284_fmodules.kt"); - } - - @Test - @TestMetadata("kt57640.kt") - public void testKt57640() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/kt57640.kt"); - } - - @Test - @TestMetadata("kt59167.kt") - public void testKt59167() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/kt59167.kt"); - } - - @Test - @TestMetadata("kt63048.kt") - public void testKt63048() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/kt63048.kt"); - } - - @Test - @TestMetadata("kt63049.kt") - public void testKt63049() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/kt63049.kt"); - } - - @Test - @TestMetadata("kt64105.kt") - public void testKt64105() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/kt64105.kt"); - } - - @Test - @TestMetadata("leakMemoryWithRunningThreadUnchecked.kt") - public void testLeakMemoryWithRunningThreadUnchecked() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/leakMemoryWithRunningThreadUnchecked.kt"); - } - - @Test - @TestMetadata("toKString.kt") - public void testToKString() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/toKString.kt"); - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/cinterop/basics") - @TestDataPath("$PROJECT_ROOT") - @UseExtTestCaseGroupProvider() - public class Basics { - @Test - @TestMetadata("1.kt") - public void test1() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/basics/1.kt"); - } - - @Test - @TestMetadata("3.kt") - public void test3() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/basics/3.kt"); - } - - @Test - public void testAllFilesPresentInBasics() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop/basics"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); - } - - @Test - @TestMetadata("available_processors.kt") - public void testAvailable_processors() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/basics/available_processors.kt"); - } - - @Test - @TestMetadata("macros.kt") - public void testMacros() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/basics/macros.kt"); - } - - @Test - @TestMetadata("mangling.kt") - public void testMangling() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/basics/mangling.kt"); - } - - @Test - @TestMetadata("mangling2.kt") - public void testMangling2() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/basics/mangling2.kt"); - } - - @Test - @TestMetadata("mangling_keywords.kt") - public void testMangling_keywords() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/basics/mangling_keywords.kt"); - } - - @Test - @TestMetadata("mangling_keywords2.kt") - public void testMangling_keywords2() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/basics/mangling_keywords2.kt"); - } - - @Test - @TestMetadata("statbuf.kt") - public void testStatbuf() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/basics/statbuf.kt"); - } - - @Test - @TestMetadata("structAnonRecordMember_ExplicitAlignment.kt") - public void testStructAnonRecordMember_ExplicitAlignment() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/basics/structAnonRecordMember_ExplicitAlignment.kt"); - } - - @Test - @TestMetadata("structAnonRecordMember_ImplicitAlignment.kt") - public void testStructAnonRecordMember_ImplicitAlignment() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/basics/structAnonRecordMember_ImplicitAlignment.kt"); - } - - @Test - @TestMetadata("structAnonRecordMember_Nested.kt") - public void testStructAnonRecordMember_Nested() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/basics/structAnonRecordMember_Nested.kt"); - } - - @Test - @TestMetadata("structAnonym_Complicate.kt") - public void testStructAnonym_Complicate() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/basics/structAnonym_Complicate.kt"); - } - - @Test - @TestMetadata("structAnonym_GLKVector3.kt") - public void testStructAnonym_GLKVector3() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/basics/structAnonym_GLKVector3.kt"); - } - - @Test - @TestMetadata("structAnonym_Packed.kt") - public void testStructAnonym_Packed() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/basics/structAnonym_Packed.kt"); - } - - @Test - @TestMetadata("structAnonym_Packed2.kt") - public void testStructAnonym_Packed2() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/basics/structAnonym_Packed2.kt"); - } - - @Test - @TestMetadata("structAnonym_PragmaPacked.kt") - public void testStructAnonym_PragmaPacked() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/basics/structAnonym_PragmaPacked.kt"); - } - - @Test - @TestMetadata("structs.kt") - public void testStructs() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/basics/structs.kt"); - } - - @Test - @TestMetadata("types.kt") - public void testTypes() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/basics/types.kt"); - } - - @Test - @TestMetadata("union.kt") - public void testUnion() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/basics/union.kt"); - } - - @Test - @TestMetadata("unsupported.kt") - public void testUnsupported() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/basics/unsupported.kt"); - } - - @Test - @TestMetadata("values.kt") - public void testValues() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/basics/values.kt"); - } - - @Test - @TestMetadata("vectors.kt") - public void testVectors() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/basics/vectors.kt"); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/cinterop/exceptions") - @TestDataPath("$PROJECT_ROOT") - @UseExtTestCaseGroupProvider() - public class Exceptions { - @Test - public void testAllFilesPresentInExceptions() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop/exceptions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); - } - - @Test - @TestMetadata("cCallback.kt") - public void testCCallback() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/exceptions/cCallback.kt"); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/cinterop/objc") - @TestDataPath("$PROJECT_ROOT") - @UseExtTestCaseGroupProvider() - public class Objc { - @Test - public void testAllFilesPresentInObjc() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop/objc"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); - } - - @Test - @TestMetadata("direct.kt") - public void testDirect() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/objc/direct.kt"); - } - - @Test - @TestMetadata("forwardDeclarationsCast.kt") - public void testForwardDeclarationsCast() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/objc/forwardDeclarationsCast.kt"); - } - - @Test - @TestMetadata("kt34467.kt") - public void testKt34467() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/objc/kt34467.kt"); - } - - @Test - @TestMetadata("kt48816_lazy_ir_disable.kt") - public void testKt48816_lazy_ir_disable() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/objc/kt48816_lazy_ir_disable.kt"); - } - - @Test - @TestMetadata("kt48816_lazy_ir_enable.kt") - public void testKt48816_lazy_ir_enable() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/objc/kt48816_lazy_ir_enable.kt"); - } - - @Test - @TestMetadata("kt49034_objcclass.kt") - public void testKt49034_objcclass() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/objc/kt49034_objcclass.kt"); - } - - @Test - @TestMetadata("kt49034_struct.kt") - public void testKt49034_struct() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/objc/kt49034_struct.kt"); - } - - @Test - @TestMetadata("kt53151.kt") - public void testKt53151() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/objc/kt53151.kt"); - } - - @Test - @TestMetadata("overridabilityCondition.kt") - public void testOverridabilityCondition() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/objc/overridabilityCondition.kt"); - } - - @Test - @TestMetadata("sharing_with_weak.kt") - public void testSharing_with_weak() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/objc/sharing_with_weak.kt"); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/cinterop/packages") - @TestDataPath("$PROJECT_ROOT") - @UseExtTestCaseGroupProvider() - public class Packages { - @Test - public void testAllFilesPresentInPackages() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop/packages"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); - } - - @Test - @TestMetadata("dotFnameNested1.kt") - public void testDotFnameNested1() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/packages/dotFnameNested1.kt"); - } - - @Test - @TestMetadata("dotFnameNested2.kt") - public void testDotFnameNested2() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/packages/dotFnameNested2.kt"); - } - - @Test - @TestMetadata("dotFnameRoot.kt") - public void testDotFnameRoot() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/packages/dotFnameRoot.kt"); - } - - @Test - @TestMetadata("nested1.kt") - public void testNested1() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/packages/nested1.kt"); - } - - @Test - @TestMetadata("nested2.kt") - public void testNested2() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/packages/nested2.kt"); - } - - @Test - @TestMetadata("root.kt") - public void testRoot() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/packages/root.kt"); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/cinterop/threadStates") - @TestDataPath("$PROJECT_ROOT") - @UseExtTestCaseGroupProvider() - public class ThreadStates { - @Test - public void testAllFilesPresentInThreadStates() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop/threadStates"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); - } - - @Test - @TestMetadata("callback.kt") - public void testCallback() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/threadStates/callback.kt"); - } - - @Test - @TestMetadata("callbackOnSeparateThread.kt") - public void testCallbackOnSeparateThread() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/threadStates/callbackOnSeparateThread.kt"); - } - - @Test - @TestMetadata("callbackWithException.kt") - public void testCallbackWithException() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/threadStates/callbackWithException.kt"); - } - - @Test - @TestMetadata("callbackWithFinally.kt") - public void testCallbackWithFinally() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/threadStates/callbackWithFinally.kt"); - } - - @Test - @TestMetadata("callbackWithFinallyNoCatch.kt") - public void testCallbackWithFinallyNoCatch() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/threadStates/callbackWithFinallyNoCatch.kt"); - } - - @Test - @TestMetadata("directStaticCFunctionCall.kt") - public void testDirectStaticCFunctionCall() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/threadStates/directStaticCFunctionCall.kt"); - } - - @Test - @TestMetadata("nativeCall.kt") - public void testNativeCall() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/threadStates/nativeCall.kt"); - } - - @Test - @TestMetadata("nestedCallbackWithException.kt") - public void testNestedCallbackWithException() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/threadStates/nestedCallbackWithException.kt"); - } - - @Test - @TestMetadata("nestedCallbackWithFinally.kt") - public void testNestedCallbackWithFinally() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/threadStates/nestedCallbackWithFinally.kt"); - } - - @Test - @TestMetadata("nestedCalls.kt") - public void testNestedCalls() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/threadStates/nestedCalls.kt"); - } - } - } - @Nested @TestMetadata("compiler/testData/codegen/box/classLiteral") @TestDataPath("$PROJECT_ROOT") @@ -15768,344 +15276,6 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest } } - @Nested - @TestMetadata("compiler/testData/codegen/box/fileCheck") - @TestDataPath("$PROJECT_ROOT") - @UseExtTestCaseGroupProvider() - public class FileCheck { - @Test - @TestMetadata("adopted_function_reference.kt") - public void testAdopted_function_reference() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/adopted_function_reference.kt"); - } - - @Test - public void testAllFilesPresentInFileCheck() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fileCheck"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); - } - - @Test - @TestMetadata("atomics.kt") - public void testAtomics() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/atomics.kt"); - } - - @Test - @TestMetadata("bce.kt") - public void testBce() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/bce.kt"); - } - - @Test - @TestMetadata("constants_merge.kt") - public void testConstants_merge() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/constants_merge.kt"); - } - - @Test - @TestMetadata("default_parameters_dont_box.kt") - public void testDefault_parameters_dont_box() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/default_parameters_dont_box.kt"); - } - - @Test - @TestMetadata("enum_when.kt") - public void testEnum_when() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/enum_when.kt"); - } - - @Test - @TestMetadata("escape_analysis.kt") - public void testEscape_analysis() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/escape_analysis.kt"); - } - - @Test - @TestMetadata("filecheck_expected_failure.kt") - public void testFilecheck_expected_failure() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/filecheck_expected_failure.kt"); - } - - @Test - @TestMetadata("force_arm_instruction_set.kt") - public void testForce_arm_instruction_set() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/force_arm_instruction_set.kt"); - } - - @Test - @TestMetadata("function_attributes_at_callsite.kt") - public void testFunction_attributes_at_callsite() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/function_attributes_at_callsite.kt"); - } - - @Test - @TestMetadata("generic_function_references.kt") - public void testGeneric_function_references() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/generic_function_references.kt"); - } - - @Test - @TestMetadata("intrinsics.kt") - public void testIntrinsics() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/intrinsics.kt"); - } - - @Test - @TestMetadata("kt49847_class.kt") - public void testKt49847_class() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/kt49847_class.kt"); - } - - @Test - @TestMetadata("kt49847_generic.kt") - public void testKt49847_generic() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/kt49847_generic.kt"); - } - - @Test - @TestMetadata("kt49847_generic_receiver.kt") - public void testKt49847_generic_receiver() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/kt49847_generic_receiver.kt"); - } - - @Test - @TestMetadata("kt49847_sam_Any.kt") - public void testKt49847_sam_Any() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/kt49847_sam_Any.kt"); - } - - @Test - @TestMetadata("kt49847_sam_Any_generic.kt") - public void testKt49847_sam_Any_generic() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/kt49847_sam_Any_generic.kt"); - } - - @Test - @TestMetadata("kt49847_sam_Int.kt") - public void testKt49847_sam_Int() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/kt49847_sam_Int.kt"); - } - - @Test - @TestMetadata("kt49847_sam_Int_generic.kt") - public void testKt49847_sam_Int_generic() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/kt49847_sam_Int_generic.kt"); - } - - @Test - @TestMetadata("kt49847_simple_function_reference.kt") - public void testKt49847_simple_function_reference() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/kt49847_simple_function_reference.kt"); - } - - @Test - @TestMetadata("kt58654.kt") - public void testKt58654() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/kt58654.kt"); - } - - @Test - @TestMetadata("no_frame_on_constant_object_access.kt") - public void testNo_frame_on_constant_object_access() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/no_frame_on_constant_object_access.kt"); - } - - @Test - @TestMetadata("redundant_safepoints.kt") - public void testRedundant_safepoints() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/redundant_safepoints.kt"); - } - - @Test - @TestMetadata("replace_invoke_with_call.kt") - public void testReplace_invoke_with_call() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/replace_invoke_with_call.kt"); - } - - @Test - @TestMetadata("signext_zeroext0.kt") - public void testSignext_zeroext0() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/signext_zeroext0.kt"); - } - - @Test - @TestMetadata("single_tls_load.kt") - public void testSingle_tls_load() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/single_tls_load.kt"); - } - - @Test - @TestMetadata("smoke0.kt") - public void testSmoke0() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/smoke0.kt"); - } - - @Test - @TestMetadata("suspend_returnNothing.kt") - public void testSuspend_returnNothing() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/suspend_returnNothing.kt"); - } - - @Test - @TestMetadata("suspend_tailcalls_functions.kt") - public void testSuspend_tailcalls_functions() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/suspend_tailcalls_functions.kt"); - } - - @Test - @TestMetadata("suspend_tailcalls_lambdas.kt") - public void testSuspend_tailcalls_lambdas() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/suspend_tailcalls_lambdas.kt"); - } - - @Test - @TestMetadata("when.kt") - public void testWhen() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/when.kt"); - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/fileCheck/cinterop") - @TestDataPath("$PROJECT_ROOT") - @UseExtTestCaseGroupProvider() - public class Cinterop { - @Test - public void testAllFilesPresentInCinterop() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fileCheck/cinterop"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); - } - - @Test - @TestMetadata("direct.kt") - public void testDirect() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/cinterop/direct.kt"); - } - - @Test - @TestMetadata("signext_zeroext_interop.kt") - public void testSignext_zeroext_interop() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/cinterop/signext_zeroext_interop.kt"); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/fileCheck/kt53261") - @TestDataPath("$PROJECT_ROOT") - @UseExtTestCaseGroupProvider() - public class Kt53261 { - @Test - public void testAllFilesPresentInKt53261() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fileCheck/kt53261"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); - } - - @Test - @TestMetadata("kt53261_inline_unbox.kt") - public void testKt53261_inline_unbox() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/kt53261/kt53261_inline_unbox.kt"); - } - - @Test - @TestMetadata("kt53261_noinline_CPointer.kt") - public void testKt53261_noinline_CPointer() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/kt53261/kt53261_noinline_CPointer.kt"); - } - - @Test - @TestMetadata("kt53261_noinline_NativePointed.kt") - public void testKt53261_noinline_NativePointed() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/kt53261/kt53261_noinline_NativePointed.kt"); - } - - @Test - @TestMetadata("kt53261_noinline_NonNullNativePtr.kt") - public void testKt53261_noinline_NonNullNativePtr() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/kt53261/kt53261_noinline_NonNullNativePtr.kt"); - } - - @Test - @TestMetadata("kt53261_noinline_StableRef.kt") - public void testKt53261_noinline_StableRef() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/kt53261/kt53261_noinline_StableRef.kt"); - } - - @Test - @TestMetadata("kt53261_noinline_UByteArray.kt") - public void testKt53261_noinline_UByteArray() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/kt53261/kt53261_noinline_UByteArray.kt"); - } - - @Test - @TestMetadata("kt53261_noinline_UIntArray.kt") - public void testKt53261_noinline_UIntArray() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/kt53261/kt53261_noinline_UIntArray.kt"); - } - - @Test - @TestMetadata("kt53261_noinline_ULongArray.kt") - public void testKt53261_noinline_ULongArray() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/kt53261/kt53261_noinline_ULongArray.kt"); - } - - @Test - @TestMetadata("kt53261_noinline_UShortArray.kt") - public void testKt53261_noinline_UShortArray() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/kt53261/kt53261_noinline_UShortArray.kt"); - } - - @Test - @TestMetadata("kt53261_noinline_value_unbox.kt") - public void testKt53261_noinline_value_unbox() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/kt53261/kt53261_noinline_value_unbox.kt"); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/fileCheck/stringConcatenationTypeNarrowing") - @TestDataPath("$PROJECT_ROOT") - @UseExtTestCaseGroupProvider() - public class StringConcatenationTypeNarrowing { - @Test - public void testAllFilesPresentInStringConcatenationTypeNarrowing() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fileCheck/stringConcatenationTypeNarrowing"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); - } - - @Test - @TestMetadata("kt53119_append_generated.kt") - public void testKt53119_append_generated() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/stringConcatenationTypeNarrowing/kt53119_append_generated.kt"); - } - - @Test - @TestMetadata("kt53119_append_manual.kt") - public void testKt53119_append_manual() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/stringConcatenationTypeNarrowing/kt53119_append_manual.kt"); - } - - @Test - @TestMetadata("kt53119_plus_extension.kt") - public void testKt53119_plus_extension() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/stringConcatenationTypeNarrowing/kt53119_plus_extension.kt"); - } - - @Test - @TestMetadata("kt53119_plus_generated_noescape.kt") - public void testKt53119_plus_generated_noescape() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/stringConcatenationTypeNarrowing/kt53119_plus_generated_noescape.kt"); - } - - @Test - @TestMetadata("kt53119_plus_member.kt") - public void testKt53119_plus_member() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/stringConcatenationTypeNarrowing/kt53119_plus_member.kt"); - } - - @Test - @TestMetadata("kt53119_side_effect.kt") - public void testKt53119_side_effect() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/stringConcatenationTypeNarrowing/kt53119_side_effect.kt"); - } - } - } - @Nested @TestMetadata("compiler/testData/codegen/box/finally") @TestDataPath("$PROJECT_ROOT") diff --git a/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/test/blackbox/NativeCodegenBoxTestNoPLGenerated.java b/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/test/blackbox/NativeCodegenBoxTestNoPLGenerated.java index 7f444178347..18865d1d4ab 100644 --- a/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/test/blackbox/NativeCodegenBoxTestNoPLGenerated.java +++ b/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/test/blackbox/NativeCodegenBoxTestNoPLGenerated.java @@ -4797,510 +4797,6 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT } } - @Nested - @TestMetadata("compiler/testData/codegen/box/cinterop") - @TestDataPath("$PROJECT_ROOT") - @UseExtTestCaseGroupProvider() - @UsePartialLinkage(mode = Mode.DISABLED) - @Tag("no-partial-linkage-may-be-skipped") - public class Cinterop { - @Test - public void testAllFilesPresentInCinterop() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); - } - - @Test - @TestMetadata("arrayPointers.kt") - public void testArrayPointers() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/arrayPointers.kt"); - } - - @Test - @TestMetadata("auxiliarySources.kt") - public void testAuxiliarySources() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/auxiliarySources.kt"); - } - - @Test - @TestMetadata("bitfields.kt") - public void testBitfields() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/bitfields.kt"); - } - - @Test - @TestMetadata("callbacksAndVarargs.kt") - public void testCallbacksAndVarargs() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/callbacksAndVarargs.kt"); - } - - @Test - @TestMetadata("enums.kt") - public void testEnums() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/enums.kt"); - } - - @Test - @TestMetadata("forwardDeclarations.kt") - public void testForwardDeclarations() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/forwardDeclarations.kt"); - } - - @Test - @TestMetadata("forwardDeclarationsTwoLibs.kt") - public void testForwardDeclarationsTwoLibs() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/forwardDeclarationsTwoLibs.kt"); - } - - @Test - @TestMetadata("globals.kt") - public void testGlobals() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/globals.kt"); - } - - @Test - @TestMetadata("incompleteTypes.kt") - public void testIncompleteTypes() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/incompleteTypes.kt"); - } - - @Test - @TestMetadata("kt43265.kt") - public void testKt43265() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/kt43265.kt"); - } - - @Test - @TestMetadata("kt44283.kt") - public void testKt44283() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/kt44283.kt"); - } - - @Test - @TestMetadata("kt51925.kt") - public void testKt51925() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/kt51925.kt"); - } - - @Test - @TestMetadata("kt54284.kt") - public void testKt54284() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/kt54284.kt"); - } - - @Test - @TestMetadata("kt54284_fmodules.kt") - public void testKt54284_fmodules() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/kt54284_fmodules.kt"); - } - - @Test - @TestMetadata("kt57640.kt") - public void testKt57640() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/kt57640.kt"); - } - - @Test - @TestMetadata("kt59167.kt") - public void testKt59167() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/kt59167.kt"); - } - - @Test - @TestMetadata("kt63048.kt") - public void testKt63048() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/kt63048.kt"); - } - - @Test - @TestMetadata("kt63049.kt") - public void testKt63049() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/kt63049.kt"); - } - - @Test - @TestMetadata("kt64105.kt") - public void testKt64105() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/kt64105.kt"); - } - - @Test - @TestMetadata("leakMemoryWithRunningThreadUnchecked.kt") - public void testLeakMemoryWithRunningThreadUnchecked() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/leakMemoryWithRunningThreadUnchecked.kt"); - } - - @Test - @TestMetadata("toKString.kt") - public void testToKString() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/toKString.kt"); - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/cinterop/basics") - @TestDataPath("$PROJECT_ROOT") - @UseExtTestCaseGroupProvider() - @UsePartialLinkage(mode = Mode.DISABLED) - @Tag("no-partial-linkage-may-be-skipped") - public class Basics { - @Test - @TestMetadata("1.kt") - public void test1() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/basics/1.kt"); - } - - @Test - @TestMetadata("3.kt") - public void test3() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/basics/3.kt"); - } - - @Test - public void testAllFilesPresentInBasics() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop/basics"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); - } - - @Test - @TestMetadata("available_processors.kt") - public void testAvailable_processors() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/basics/available_processors.kt"); - } - - @Test - @TestMetadata("macros.kt") - public void testMacros() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/basics/macros.kt"); - } - - @Test - @TestMetadata("mangling.kt") - public void testMangling() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/basics/mangling.kt"); - } - - @Test - @TestMetadata("mangling2.kt") - public void testMangling2() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/basics/mangling2.kt"); - } - - @Test - @TestMetadata("mangling_keywords.kt") - public void testMangling_keywords() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/basics/mangling_keywords.kt"); - } - - @Test - @TestMetadata("mangling_keywords2.kt") - public void testMangling_keywords2() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/basics/mangling_keywords2.kt"); - } - - @Test - @TestMetadata("statbuf.kt") - public void testStatbuf() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/basics/statbuf.kt"); - } - - @Test - @TestMetadata("structAnonRecordMember_ExplicitAlignment.kt") - public void testStructAnonRecordMember_ExplicitAlignment() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/basics/structAnonRecordMember_ExplicitAlignment.kt"); - } - - @Test - @TestMetadata("structAnonRecordMember_ImplicitAlignment.kt") - public void testStructAnonRecordMember_ImplicitAlignment() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/basics/structAnonRecordMember_ImplicitAlignment.kt"); - } - - @Test - @TestMetadata("structAnonRecordMember_Nested.kt") - public void testStructAnonRecordMember_Nested() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/basics/structAnonRecordMember_Nested.kt"); - } - - @Test - @TestMetadata("structAnonym_Complicate.kt") - public void testStructAnonym_Complicate() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/basics/structAnonym_Complicate.kt"); - } - - @Test - @TestMetadata("structAnonym_GLKVector3.kt") - public void testStructAnonym_GLKVector3() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/basics/structAnonym_GLKVector3.kt"); - } - - @Test - @TestMetadata("structAnonym_Packed.kt") - public void testStructAnonym_Packed() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/basics/structAnonym_Packed.kt"); - } - - @Test - @TestMetadata("structAnonym_Packed2.kt") - public void testStructAnonym_Packed2() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/basics/structAnonym_Packed2.kt"); - } - - @Test - @TestMetadata("structAnonym_PragmaPacked.kt") - public void testStructAnonym_PragmaPacked() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/basics/structAnonym_PragmaPacked.kt"); - } - - @Test - @TestMetadata("structs.kt") - public void testStructs() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/basics/structs.kt"); - } - - @Test - @TestMetadata("types.kt") - public void testTypes() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/basics/types.kt"); - } - - @Test - @TestMetadata("union.kt") - public void testUnion() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/basics/union.kt"); - } - - @Test - @TestMetadata("unsupported.kt") - public void testUnsupported() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/basics/unsupported.kt"); - } - - @Test - @TestMetadata("values.kt") - public void testValues() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/basics/values.kt"); - } - - @Test - @TestMetadata("vectors.kt") - public void testVectors() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/basics/vectors.kt"); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/cinterop/exceptions") - @TestDataPath("$PROJECT_ROOT") - @UseExtTestCaseGroupProvider() - @UsePartialLinkage(mode = Mode.DISABLED) - @Tag("no-partial-linkage-may-be-skipped") - public class Exceptions { - @Test - public void testAllFilesPresentInExceptions() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop/exceptions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); - } - - @Test - @TestMetadata("cCallback.kt") - public void testCCallback() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/exceptions/cCallback.kt"); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/cinterop/objc") - @TestDataPath("$PROJECT_ROOT") - @UseExtTestCaseGroupProvider() - @UsePartialLinkage(mode = Mode.DISABLED) - @Tag("no-partial-linkage-may-be-skipped") - public class Objc { - @Test - public void testAllFilesPresentInObjc() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop/objc"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); - } - - @Test - @TestMetadata("direct.kt") - public void testDirect() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/objc/direct.kt"); - } - - @Test - @TestMetadata("forwardDeclarationsCast.kt") - public void testForwardDeclarationsCast() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/objc/forwardDeclarationsCast.kt"); - } - - @Test - @TestMetadata("kt34467.kt") - public void testKt34467() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/objc/kt34467.kt"); - } - - @Test - @TestMetadata("kt48816_lazy_ir_disable.kt") - public void testKt48816_lazy_ir_disable() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/objc/kt48816_lazy_ir_disable.kt"); - } - - @Test - @TestMetadata("kt48816_lazy_ir_enable.kt") - public void testKt48816_lazy_ir_enable() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/objc/kt48816_lazy_ir_enable.kt"); - } - - @Test - @TestMetadata("kt49034_objcclass.kt") - public void testKt49034_objcclass() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/objc/kt49034_objcclass.kt"); - } - - @Test - @TestMetadata("kt49034_struct.kt") - public void testKt49034_struct() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/objc/kt49034_struct.kt"); - } - - @Test - @TestMetadata("kt53151.kt") - public void testKt53151() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/objc/kt53151.kt"); - } - - @Test - @TestMetadata("overridabilityCondition.kt") - public void testOverridabilityCondition() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/objc/overridabilityCondition.kt"); - } - - @Test - @TestMetadata("sharing_with_weak.kt") - public void testSharing_with_weak() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/objc/sharing_with_weak.kt"); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/cinterop/packages") - @TestDataPath("$PROJECT_ROOT") - @UseExtTestCaseGroupProvider() - @UsePartialLinkage(mode = Mode.DISABLED) - @Tag("no-partial-linkage-may-be-skipped") - public class Packages { - @Test - public void testAllFilesPresentInPackages() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop/packages"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); - } - - @Test - @TestMetadata("dotFnameNested1.kt") - public void testDotFnameNested1() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/packages/dotFnameNested1.kt"); - } - - @Test - @TestMetadata("dotFnameNested2.kt") - public void testDotFnameNested2() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/packages/dotFnameNested2.kt"); - } - - @Test - @TestMetadata("dotFnameRoot.kt") - public void testDotFnameRoot() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/packages/dotFnameRoot.kt"); - } - - @Test - @TestMetadata("nested1.kt") - public void testNested1() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/packages/nested1.kt"); - } - - @Test - @TestMetadata("nested2.kt") - public void testNested2() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/packages/nested2.kt"); - } - - @Test - @TestMetadata("root.kt") - public void testRoot() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/packages/root.kt"); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/cinterop/threadStates") - @TestDataPath("$PROJECT_ROOT") - @UseExtTestCaseGroupProvider() - @UsePartialLinkage(mode = Mode.DISABLED) - @Tag("no-partial-linkage-may-be-skipped") - public class ThreadStates { - @Test - public void testAllFilesPresentInThreadStates() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop/threadStates"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); - } - - @Test - @TestMetadata("callback.kt") - public void testCallback() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/threadStates/callback.kt"); - } - - @Test - @TestMetadata("callbackOnSeparateThread.kt") - public void testCallbackOnSeparateThread() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/threadStates/callbackOnSeparateThread.kt"); - } - - @Test - @TestMetadata("callbackWithException.kt") - public void testCallbackWithException() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/threadStates/callbackWithException.kt"); - } - - @Test - @TestMetadata("callbackWithFinally.kt") - public void testCallbackWithFinally() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/threadStates/callbackWithFinally.kt"); - } - - @Test - @TestMetadata("callbackWithFinallyNoCatch.kt") - public void testCallbackWithFinallyNoCatch() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/threadStates/callbackWithFinallyNoCatch.kt"); - } - - @Test - @TestMetadata("directStaticCFunctionCall.kt") - public void testDirectStaticCFunctionCall() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/threadStates/directStaticCFunctionCall.kt"); - } - - @Test - @TestMetadata("nativeCall.kt") - public void testNativeCall() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/threadStates/nativeCall.kt"); - } - - @Test - @TestMetadata("nestedCallbackWithException.kt") - public void testNestedCallbackWithException() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/threadStates/nestedCallbackWithException.kt"); - } - - @Test - @TestMetadata("nestedCallbackWithFinally.kt") - public void testNestedCallbackWithFinally() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/threadStates/nestedCallbackWithFinally.kt"); - } - - @Test - @TestMetadata("nestedCalls.kt") - public void testNestedCalls() throws Exception { - runTest("compiler/testData/codegen/box/cinterop/threadStates/nestedCalls.kt"); - } - } - } - @Nested @TestMetadata("compiler/testData/codegen/box/classLiteral") @TestDataPath("$PROJECT_ROOT") @@ -16145,352 +15641,6 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT } } - @Nested - @TestMetadata("compiler/testData/codegen/box/fileCheck") - @TestDataPath("$PROJECT_ROOT") - @UseExtTestCaseGroupProvider() - @UsePartialLinkage(mode = Mode.DISABLED) - @Tag("no-partial-linkage-may-be-skipped") - public class FileCheck { - @Test - @TestMetadata("adopted_function_reference.kt") - public void testAdopted_function_reference() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/adopted_function_reference.kt"); - } - - @Test - public void testAllFilesPresentInFileCheck() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fileCheck"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); - } - - @Test - @TestMetadata("atomics.kt") - public void testAtomics() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/atomics.kt"); - } - - @Test - @TestMetadata("bce.kt") - public void testBce() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/bce.kt"); - } - - @Test - @TestMetadata("constants_merge.kt") - public void testConstants_merge() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/constants_merge.kt"); - } - - @Test - @TestMetadata("default_parameters_dont_box.kt") - public void testDefault_parameters_dont_box() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/default_parameters_dont_box.kt"); - } - - @Test - @TestMetadata("enum_when.kt") - public void testEnum_when() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/enum_when.kt"); - } - - @Test - @TestMetadata("escape_analysis.kt") - public void testEscape_analysis() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/escape_analysis.kt"); - } - - @Test - @TestMetadata("filecheck_expected_failure.kt") - public void testFilecheck_expected_failure() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/filecheck_expected_failure.kt"); - } - - @Test - @TestMetadata("force_arm_instruction_set.kt") - public void testForce_arm_instruction_set() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/force_arm_instruction_set.kt"); - } - - @Test - @TestMetadata("function_attributes_at_callsite.kt") - public void testFunction_attributes_at_callsite() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/function_attributes_at_callsite.kt"); - } - - @Test - @TestMetadata("generic_function_references.kt") - public void testGeneric_function_references() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/generic_function_references.kt"); - } - - @Test - @TestMetadata("intrinsics.kt") - public void testIntrinsics() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/intrinsics.kt"); - } - - @Test - @TestMetadata("kt49847_class.kt") - public void testKt49847_class() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/kt49847_class.kt"); - } - - @Test - @TestMetadata("kt49847_generic.kt") - public void testKt49847_generic() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/kt49847_generic.kt"); - } - - @Test - @TestMetadata("kt49847_generic_receiver.kt") - public void testKt49847_generic_receiver() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/kt49847_generic_receiver.kt"); - } - - @Test - @TestMetadata("kt49847_sam_Any.kt") - public void testKt49847_sam_Any() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/kt49847_sam_Any.kt"); - } - - @Test - @TestMetadata("kt49847_sam_Any_generic.kt") - public void testKt49847_sam_Any_generic() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/kt49847_sam_Any_generic.kt"); - } - - @Test - @TestMetadata("kt49847_sam_Int.kt") - public void testKt49847_sam_Int() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/kt49847_sam_Int.kt"); - } - - @Test - @TestMetadata("kt49847_sam_Int_generic.kt") - public void testKt49847_sam_Int_generic() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/kt49847_sam_Int_generic.kt"); - } - - @Test - @TestMetadata("kt49847_simple_function_reference.kt") - public void testKt49847_simple_function_reference() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/kt49847_simple_function_reference.kt"); - } - - @Test - @TestMetadata("kt58654.kt") - public void testKt58654() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/kt58654.kt"); - } - - @Test - @TestMetadata("no_frame_on_constant_object_access.kt") - public void testNo_frame_on_constant_object_access() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/no_frame_on_constant_object_access.kt"); - } - - @Test - @TestMetadata("redundant_safepoints.kt") - public void testRedundant_safepoints() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/redundant_safepoints.kt"); - } - - @Test - @TestMetadata("replace_invoke_with_call.kt") - public void testReplace_invoke_with_call() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/replace_invoke_with_call.kt"); - } - - @Test - @TestMetadata("signext_zeroext0.kt") - public void testSignext_zeroext0() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/signext_zeroext0.kt"); - } - - @Test - @TestMetadata("single_tls_load.kt") - public void testSingle_tls_load() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/single_tls_load.kt"); - } - - @Test - @TestMetadata("smoke0.kt") - public void testSmoke0() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/smoke0.kt"); - } - - @Test - @TestMetadata("suspend_returnNothing.kt") - public void testSuspend_returnNothing() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/suspend_returnNothing.kt"); - } - - @Test - @TestMetadata("suspend_tailcalls_functions.kt") - public void testSuspend_tailcalls_functions() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/suspend_tailcalls_functions.kt"); - } - - @Test - @TestMetadata("suspend_tailcalls_lambdas.kt") - public void testSuspend_tailcalls_lambdas() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/suspend_tailcalls_lambdas.kt"); - } - - @Test - @TestMetadata("when.kt") - public void testWhen() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/when.kt"); - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/fileCheck/cinterop") - @TestDataPath("$PROJECT_ROOT") - @UseExtTestCaseGroupProvider() - @UsePartialLinkage(mode = Mode.DISABLED) - @Tag("no-partial-linkage-may-be-skipped") - public class Cinterop { - @Test - public void testAllFilesPresentInCinterop() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fileCheck/cinterop"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); - } - - @Test - @TestMetadata("direct.kt") - public void testDirect() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/cinterop/direct.kt"); - } - - @Test - @TestMetadata("signext_zeroext_interop.kt") - public void testSignext_zeroext_interop() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/cinterop/signext_zeroext_interop.kt"); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/fileCheck/kt53261") - @TestDataPath("$PROJECT_ROOT") - @UseExtTestCaseGroupProvider() - @UsePartialLinkage(mode = Mode.DISABLED) - @Tag("no-partial-linkage-may-be-skipped") - public class Kt53261 { - @Test - public void testAllFilesPresentInKt53261() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fileCheck/kt53261"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); - } - - @Test - @TestMetadata("kt53261_inline_unbox.kt") - public void testKt53261_inline_unbox() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/kt53261/kt53261_inline_unbox.kt"); - } - - @Test - @TestMetadata("kt53261_noinline_CPointer.kt") - public void testKt53261_noinline_CPointer() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/kt53261/kt53261_noinline_CPointer.kt"); - } - - @Test - @TestMetadata("kt53261_noinline_NativePointed.kt") - public void testKt53261_noinline_NativePointed() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/kt53261/kt53261_noinline_NativePointed.kt"); - } - - @Test - @TestMetadata("kt53261_noinline_NonNullNativePtr.kt") - public void testKt53261_noinline_NonNullNativePtr() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/kt53261/kt53261_noinline_NonNullNativePtr.kt"); - } - - @Test - @TestMetadata("kt53261_noinline_StableRef.kt") - public void testKt53261_noinline_StableRef() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/kt53261/kt53261_noinline_StableRef.kt"); - } - - @Test - @TestMetadata("kt53261_noinline_UByteArray.kt") - public void testKt53261_noinline_UByteArray() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/kt53261/kt53261_noinline_UByteArray.kt"); - } - - @Test - @TestMetadata("kt53261_noinline_UIntArray.kt") - public void testKt53261_noinline_UIntArray() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/kt53261/kt53261_noinline_UIntArray.kt"); - } - - @Test - @TestMetadata("kt53261_noinline_ULongArray.kt") - public void testKt53261_noinline_ULongArray() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/kt53261/kt53261_noinline_ULongArray.kt"); - } - - @Test - @TestMetadata("kt53261_noinline_UShortArray.kt") - public void testKt53261_noinline_UShortArray() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/kt53261/kt53261_noinline_UShortArray.kt"); - } - - @Test - @TestMetadata("kt53261_noinline_value_unbox.kt") - public void testKt53261_noinline_value_unbox() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/kt53261/kt53261_noinline_value_unbox.kt"); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/fileCheck/stringConcatenationTypeNarrowing") - @TestDataPath("$PROJECT_ROOT") - @UseExtTestCaseGroupProvider() - @UsePartialLinkage(mode = Mode.DISABLED) - @Tag("no-partial-linkage-may-be-skipped") - public class StringConcatenationTypeNarrowing { - @Test - public void testAllFilesPresentInStringConcatenationTypeNarrowing() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fileCheck/stringConcatenationTypeNarrowing"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); - } - - @Test - @TestMetadata("kt53119_append_generated.kt") - public void testKt53119_append_generated() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/stringConcatenationTypeNarrowing/kt53119_append_generated.kt"); - } - - @Test - @TestMetadata("kt53119_append_manual.kt") - public void testKt53119_append_manual() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/stringConcatenationTypeNarrowing/kt53119_append_manual.kt"); - } - - @Test - @TestMetadata("kt53119_plus_extension.kt") - public void testKt53119_plus_extension() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/stringConcatenationTypeNarrowing/kt53119_plus_extension.kt"); - } - - @Test - @TestMetadata("kt53119_plus_generated_noescape.kt") - public void testKt53119_plus_generated_noescape() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/stringConcatenationTypeNarrowing/kt53119_plus_generated_noescape.kt"); - } - - @Test - @TestMetadata("kt53119_plus_member.kt") - public void testKt53119_plus_member() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/stringConcatenationTypeNarrowing/kt53119_plus_member.kt"); - } - - @Test - @TestMetadata("kt53119_side_effect.kt") - public void testKt53119_side_effect() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/stringConcatenationTypeNarrowing/kt53119_side_effect.kt"); - } - } - } - @Nested @TestMetadata("compiler/testData/codegen/box/finally") @TestDataPath("$PROJECT_ROOT") diff --git a/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/test/blackbox/NativeCodegenLocalTestGenerated.java b/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/test/blackbox/NativeCodegenLocalTestGenerated.java index f370ebdd508..17e114d9c0a 100644 --- a/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/test/blackbox/NativeCodegenLocalTestGenerated.java +++ b/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/test/blackbox/NativeCodegenLocalTestGenerated.java @@ -811,6 +811,498 @@ public class NativeCodegenLocalTestGenerated extends AbstractNativeCodegenBoxTes } } + @Nested + @TestMetadata("native/native.tests/testData/codegen/cinterop") + @TestDataPath("$PROJECT_ROOT") + @UseExtTestCaseGroupProvider() + public class Cinterop { + @Test + public void testAllFilesPresentInCinterop() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/native.tests/testData/codegen/cinterop"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("arrayPointers.kt") + public void testArrayPointers() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/arrayPointers.kt"); + } + + @Test + @TestMetadata("auxiliarySources.kt") + public void testAuxiliarySources() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/auxiliarySources.kt"); + } + + @Test + @TestMetadata("bitfields.kt") + public void testBitfields() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/bitfields.kt"); + } + + @Test + @TestMetadata("callbacksAndVarargs.kt") + public void testCallbacksAndVarargs() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/callbacksAndVarargs.kt"); + } + + @Test + @TestMetadata("enums.kt") + public void testEnums() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/enums.kt"); + } + + @Test + @TestMetadata("forwardDeclarations.kt") + public void testForwardDeclarations() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/forwardDeclarations.kt"); + } + + @Test + @TestMetadata("forwardDeclarationsTwoLibs.kt") + public void testForwardDeclarationsTwoLibs() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/forwardDeclarationsTwoLibs.kt"); + } + + @Test + @TestMetadata("globals.kt") + public void testGlobals() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/globals.kt"); + } + + @Test + @TestMetadata("incompleteTypes.kt") + public void testIncompleteTypes() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/incompleteTypes.kt"); + } + + @Test + @TestMetadata("kt43265.kt") + public void testKt43265() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/kt43265.kt"); + } + + @Test + @TestMetadata("kt44283.kt") + public void testKt44283() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/kt44283.kt"); + } + + @Test + @TestMetadata("kt51925.kt") + public void testKt51925() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/kt51925.kt"); + } + + @Test + @TestMetadata("kt54284.kt") + public void testKt54284() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/kt54284.kt"); + } + + @Test + @TestMetadata("kt54284_fmodules.kt") + public void testKt54284_fmodules() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/kt54284_fmodules.kt"); + } + + @Test + @TestMetadata("kt57640.kt") + public void testKt57640() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/kt57640.kt"); + } + + @Test + @TestMetadata("kt59167.kt") + public void testKt59167() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/kt59167.kt"); + } + + @Test + @TestMetadata("kt63048.kt") + public void testKt63048() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/kt63048.kt"); + } + + @Test + @TestMetadata("kt63049.kt") + public void testKt63049() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/kt63049.kt"); + } + + @Test + @TestMetadata("kt64105.kt") + public void testKt64105() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/kt64105.kt"); + } + + @Test + @TestMetadata("leakMemoryWithRunningThreadUnchecked.kt") + public void testLeakMemoryWithRunningThreadUnchecked() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/leakMemoryWithRunningThreadUnchecked.kt"); + } + + @Test + @TestMetadata("toKString.kt") + public void testToKString() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/toKString.kt"); + } + + @Nested + @TestMetadata("native/native.tests/testData/codegen/cinterop/basics") + @TestDataPath("$PROJECT_ROOT") + @UseExtTestCaseGroupProvider() + public class Basics { + @Test + @TestMetadata("1.kt") + public void test1() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/basics/1.kt"); + } + + @Test + @TestMetadata("3.kt") + public void test3() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/basics/3.kt"); + } + + @Test + public void testAllFilesPresentInBasics() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/native.tests/testData/codegen/cinterop/basics"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("available_processors.kt") + public void testAvailable_processors() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/basics/available_processors.kt"); + } + + @Test + @TestMetadata("macros.kt") + public void testMacros() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/basics/macros.kt"); + } + + @Test + @TestMetadata("mangling.kt") + public void testMangling() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/basics/mangling.kt"); + } + + @Test + @TestMetadata("mangling2.kt") + public void testMangling2() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/basics/mangling2.kt"); + } + + @Test + @TestMetadata("mangling_keywords.kt") + public void testMangling_keywords() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/basics/mangling_keywords.kt"); + } + + @Test + @TestMetadata("mangling_keywords2.kt") + public void testMangling_keywords2() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/basics/mangling_keywords2.kt"); + } + + @Test + @TestMetadata("statbuf.kt") + public void testStatbuf() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/basics/statbuf.kt"); + } + + @Test + @TestMetadata("structAnonRecordMember_ExplicitAlignment.kt") + public void testStructAnonRecordMember_ExplicitAlignment() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/basics/structAnonRecordMember_ExplicitAlignment.kt"); + } + + @Test + @TestMetadata("structAnonRecordMember_ImplicitAlignment.kt") + public void testStructAnonRecordMember_ImplicitAlignment() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/basics/structAnonRecordMember_ImplicitAlignment.kt"); + } + + @Test + @TestMetadata("structAnonRecordMember_Nested.kt") + public void testStructAnonRecordMember_Nested() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/basics/structAnonRecordMember_Nested.kt"); + } + + @Test + @TestMetadata("structAnonym_Complicate.kt") + public void testStructAnonym_Complicate() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/basics/structAnonym_Complicate.kt"); + } + + @Test + @TestMetadata("structAnonym_GLKVector3.kt") + public void testStructAnonym_GLKVector3() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/basics/structAnonym_GLKVector3.kt"); + } + + @Test + @TestMetadata("structAnonym_Packed.kt") + public void testStructAnonym_Packed() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/basics/structAnonym_Packed.kt"); + } + + @Test + @TestMetadata("structAnonym_Packed2.kt") + public void testStructAnonym_Packed2() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/basics/structAnonym_Packed2.kt"); + } + + @Test + @TestMetadata("structAnonym_PragmaPacked.kt") + public void testStructAnonym_PragmaPacked() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/basics/structAnonym_PragmaPacked.kt"); + } + + @Test + @TestMetadata("structs.kt") + public void testStructs() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/basics/structs.kt"); + } + + @Test + @TestMetadata("types.kt") + public void testTypes() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/basics/types.kt"); + } + + @Test + @TestMetadata("union.kt") + public void testUnion() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/basics/union.kt"); + } + + @Test + @TestMetadata("unsupported.kt") + public void testUnsupported() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/basics/unsupported.kt"); + } + + @Test + @TestMetadata("values.kt") + public void testValues() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/basics/values.kt"); + } + + @Test + @TestMetadata("vectors.kt") + public void testVectors() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/basics/vectors.kt"); + } + } + + @Nested + @TestMetadata("native/native.tests/testData/codegen/cinterop/exceptions") + @TestDataPath("$PROJECT_ROOT") + @UseExtTestCaseGroupProvider() + public class Exceptions { + @Test + public void testAllFilesPresentInExceptions() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/native.tests/testData/codegen/cinterop/exceptions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("cCallback.kt") + public void testCCallback() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/exceptions/cCallback.kt"); + } + } + + @Nested + @TestMetadata("native/native.tests/testData/codegen/cinterop/objc") + @TestDataPath("$PROJECT_ROOT") + @UseExtTestCaseGroupProvider() + public class Objc { + @Test + public void testAllFilesPresentInObjc() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/native.tests/testData/codegen/cinterop/objc"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("direct.kt") + public void testDirect() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/objc/direct.kt"); + } + + @Test + @TestMetadata("forwardDeclarationsCast.kt") + public void testForwardDeclarationsCast() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/objc/forwardDeclarationsCast.kt"); + } + + @Test + @TestMetadata("kt34467.kt") + public void testKt34467() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/objc/kt34467.kt"); + } + + @Test + @TestMetadata("kt48816_lazy_ir_disable.kt") + public void testKt48816_lazy_ir_disable() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/objc/kt48816_lazy_ir_disable.kt"); + } + + @Test + @TestMetadata("kt48816_lazy_ir_enable.kt") + public void testKt48816_lazy_ir_enable() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/objc/kt48816_lazy_ir_enable.kt"); + } + + @Test + @TestMetadata("kt49034_objcclass.kt") + public void testKt49034_objcclass() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/objc/kt49034_objcclass.kt"); + } + + @Test + @TestMetadata("kt49034_struct.kt") + public void testKt49034_struct() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/objc/kt49034_struct.kt"); + } + + @Test + @TestMetadata("kt53151.kt") + public void testKt53151() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/objc/kt53151.kt"); + } + + @Test + @TestMetadata("overridabilityCondition.kt") + public void testOverridabilityCondition() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/objc/overridabilityCondition.kt"); + } + + @Test + @TestMetadata("sharing_with_weak.kt") + public void testSharing_with_weak() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/objc/sharing_with_weak.kt"); + } + } + + @Nested + @TestMetadata("native/native.tests/testData/codegen/cinterop/packages") + @TestDataPath("$PROJECT_ROOT") + @UseExtTestCaseGroupProvider() + public class Packages { + @Test + public void testAllFilesPresentInPackages() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/native.tests/testData/codegen/cinterop/packages"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("dotFnameNested1.kt") + public void testDotFnameNested1() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/packages/dotFnameNested1.kt"); + } + + @Test + @TestMetadata("dotFnameNested2.kt") + public void testDotFnameNested2() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/packages/dotFnameNested2.kt"); + } + + @Test + @TestMetadata("dotFnameRoot.kt") + public void testDotFnameRoot() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/packages/dotFnameRoot.kt"); + } + + @Test + @TestMetadata("nested1.kt") + public void testNested1() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/packages/nested1.kt"); + } + + @Test + @TestMetadata("nested2.kt") + public void testNested2() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/packages/nested2.kt"); + } + + @Test + @TestMetadata("root.kt") + public void testRoot() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/packages/root.kt"); + } + } + + @Nested + @TestMetadata("native/native.tests/testData/codegen/cinterop/threadStates") + @TestDataPath("$PROJECT_ROOT") + @UseExtTestCaseGroupProvider() + public class ThreadStates { + @Test + public void testAllFilesPresentInThreadStates() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/native.tests/testData/codegen/cinterop/threadStates"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("callback.kt") + public void testCallback() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/threadStates/callback.kt"); + } + + @Test + @TestMetadata("callbackOnSeparateThread.kt") + public void testCallbackOnSeparateThread() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/threadStates/callbackOnSeparateThread.kt"); + } + + @Test + @TestMetadata("callbackWithException.kt") + public void testCallbackWithException() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/threadStates/callbackWithException.kt"); + } + + @Test + @TestMetadata("callbackWithFinally.kt") + public void testCallbackWithFinally() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/threadStates/callbackWithFinally.kt"); + } + + @Test + @TestMetadata("callbackWithFinallyNoCatch.kt") + public void testCallbackWithFinallyNoCatch() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/threadStates/callbackWithFinallyNoCatch.kt"); + } + + @Test + @TestMetadata("directStaticCFunctionCall.kt") + public void testDirectStaticCFunctionCall() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/threadStates/directStaticCFunctionCall.kt"); + } + + @Test + @TestMetadata("nativeCall.kt") + public void testNativeCall() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/threadStates/nativeCall.kt"); + } + + @Test + @TestMetadata("nestedCallbackWithException.kt") + public void testNestedCallbackWithException() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/threadStates/nestedCallbackWithException.kt"); + } + + @Test + @TestMetadata("nestedCallbackWithFinally.kt") + public void testNestedCallbackWithFinally() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/threadStates/nestedCallbackWithFinally.kt"); + } + + @Test + @TestMetadata("nestedCalls.kt") + public void testNestedCalls() throws Exception { + runTest("native/native.tests/testData/codegen/cinterop/threadStates/nestedCalls.kt"); + } + } + } + @Nested @TestMetadata("native/native.tests/testData/codegen/classDelegation") @TestDataPath("$PROJECT_ROOT") @@ -1724,6 +2216,344 @@ public class NativeCodegenLocalTestGenerated extends AbstractNativeCodegenBoxTes } } + @Nested + @TestMetadata("native/native.tests/testData/codegen/fileCheck") + @TestDataPath("$PROJECT_ROOT") + @UseExtTestCaseGroupProvider() + public class FileCheck { + @Test + @TestMetadata("adopted_function_reference.kt") + public void testAdopted_function_reference() throws Exception { + runTest("native/native.tests/testData/codegen/fileCheck/adopted_function_reference.kt"); + } + + @Test + public void testAllFilesPresentInFileCheck() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/native.tests/testData/codegen/fileCheck"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("atomics.kt") + public void testAtomics() throws Exception { + runTest("native/native.tests/testData/codegen/fileCheck/atomics.kt"); + } + + @Test + @TestMetadata("bce.kt") + public void testBce() throws Exception { + runTest("native/native.tests/testData/codegen/fileCheck/bce.kt"); + } + + @Test + @TestMetadata("constants_merge.kt") + public void testConstants_merge() throws Exception { + runTest("native/native.tests/testData/codegen/fileCheck/constants_merge.kt"); + } + + @Test + @TestMetadata("default_parameters_dont_box.kt") + public void testDefault_parameters_dont_box() throws Exception { + runTest("native/native.tests/testData/codegen/fileCheck/default_parameters_dont_box.kt"); + } + + @Test + @TestMetadata("enum_when.kt") + public void testEnum_when() throws Exception { + runTest("native/native.tests/testData/codegen/fileCheck/enum_when.kt"); + } + + @Test + @TestMetadata("escape_analysis.kt") + public void testEscape_analysis() throws Exception { + runTest("native/native.tests/testData/codegen/fileCheck/escape_analysis.kt"); + } + + @Test + @TestMetadata("filecheck_expected_failure.kt") + public void testFilecheck_expected_failure() throws Exception { + runTest("native/native.tests/testData/codegen/fileCheck/filecheck_expected_failure.kt"); + } + + @Test + @TestMetadata("force_arm_instruction_set.kt") + public void testForce_arm_instruction_set() throws Exception { + runTest("native/native.tests/testData/codegen/fileCheck/force_arm_instruction_set.kt"); + } + + @Test + @TestMetadata("function_attributes_at_callsite.kt") + public void testFunction_attributes_at_callsite() throws Exception { + runTest("native/native.tests/testData/codegen/fileCheck/function_attributes_at_callsite.kt"); + } + + @Test + @TestMetadata("generic_function_references.kt") + public void testGeneric_function_references() throws Exception { + runTest("native/native.tests/testData/codegen/fileCheck/generic_function_references.kt"); + } + + @Test + @TestMetadata("intrinsics.kt") + public void testIntrinsics() throws Exception { + runTest("native/native.tests/testData/codegen/fileCheck/intrinsics.kt"); + } + + @Test + @TestMetadata("kt49847_class.kt") + public void testKt49847_class() throws Exception { + runTest("native/native.tests/testData/codegen/fileCheck/kt49847_class.kt"); + } + + @Test + @TestMetadata("kt49847_generic.kt") + public void testKt49847_generic() throws Exception { + runTest("native/native.tests/testData/codegen/fileCheck/kt49847_generic.kt"); + } + + @Test + @TestMetadata("kt49847_generic_receiver.kt") + public void testKt49847_generic_receiver() throws Exception { + runTest("native/native.tests/testData/codegen/fileCheck/kt49847_generic_receiver.kt"); + } + + @Test + @TestMetadata("kt49847_sam_Any.kt") + public void testKt49847_sam_Any() throws Exception { + runTest("native/native.tests/testData/codegen/fileCheck/kt49847_sam_Any.kt"); + } + + @Test + @TestMetadata("kt49847_sam_Any_generic.kt") + public void testKt49847_sam_Any_generic() throws Exception { + runTest("native/native.tests/testData/codegen/fileCheck/kt49847_sam_Any_generic.kt"); + } + + @Test + @TestMetadata("kt49847_sam_Int.kt") + public void testKt49847_sam_Int() throws Exception { + runTest("native/native.tests/testData/codegen/fileCheck/kt49847_sam_Int.kt"); + } + + @Test + @TestMetadata("kt49847_sam_Int_generic.kt") + public void testKt49847_sam_Int_generic() throws Exception { + runTest("native/native.tests/testData/codegen/fileCheck/kt49847_sam_Int_generic.kt"); + } + + @Test + @TestMetadata("kt49847_simple_function_reference.kt") + public void testKt49847_simple_function_reference() throws Exception { + runTest("native/native.tests/testData/codegen/fileCheck/kt49847_simple_function_reference.kt"); + } + + @Test + @TestMetadata("kt58654.kt") + public void testKt58654() throws Exception { + runTest("native/native.tests/testData/codegen/fileCheck/kt58654.kt"); + } + + @Test + @TestMetadata("no_frame_on_constant_object_access.kt") + public void testNo_frame_on_constant_object_access() throws Exception { + runTest("native/native.tests/testData/codegen/fileCheck/no_frame_on_constant_object_access.kt"); + } + + @Test + @TestMetadata("redundant_safepoints.kt") + public void testRedundant_safepoints() throws Exception { + runTest("native/native.tests/testData/codegen/fileCheck/redundant_safepoints.kt"); + } + + @Test + @TestMetadata("replace_invoke_with_call.kt") + public void testReplace_invoke_with_call() throws Exception { + runTest("native/native.tests/testData/codegen/fileCheck/replace_invoke_with_call.kt"); + } + + @Test + @TestMetadata("signext_zeroext0.kt") + public void testSignext_zeroext0() throws Exception { + runTest("native/native.tests/testData/codegen/fileCheck/signext_zeroext0.kt"); + } + + @Test + @TestMetadata("single_tls_load.kt") + public void testSingle_tls_load() throws Exception { + runTest("native/native.tests/testData/codegen/fileCheck/single_tls_load.kt"); + } + + @Test + @TestMetadata("smoke0.kt") + public void testSmoke0() throws Exception { + runTest("native/native.tests/testData/codegen/fileCheck/smoke0.kt"); + } + + @Test + @TestMetadata("suspend_returnNothing.kt") + public void testSuspend_returnNothing() throws Exception { + runTest("native/native.tests/testData/codegen/fileCheck/suspend_returnNothing.kt"); + } + + @Test + @TestMetadata("suspend_tailcalls_functions.kt") + public void testSuspend_tailcalls_functions() throws Exception { + runTest("native/native.tests/testData/codegen/fileCheck/suspend_tailcalls_functions.kt"); + } + + @Test + @TestMetadata("suspend_tailcalls_lambdas.kt") + public void testSuspend_tailcalls_lambdas() throws Exception { + runTest("native/native.tests/testData/codegen/fileCheck/suspend_tailcalls_lambdas.kt"); + } + + @Test + @TestMetadata("when.kt") + public void testWhen() throws Exception { + runTest("native/native.tests/testData/codegen/fileCheck/when.kt"); + } + + @Nested + @TestMetadata("native/native.tests/testData/codegen/fileCheck/cinterop") + @TestDataPath("$PROJECT_ROOT") + @UseExtTestCaseGroupProvider() + public class Cinterop { + @Test + public void testAllFilesPresentInCinterop() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/native.tests/testData/codegen/fileCheck/cinterop"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("direct.kt") + public void testDirect() throws Exception { + runTest("native/native.tests/testData/codegen/fileCheck/cinterop/direct.kt"); + } + + @Test + @TestMetadata("signext_zeroext_interop.kt") + public void testSignext_zeroext_interop() throws Exception { + runTest("native/native.tests/testData/codegen/fileCheck/cinterop/signext_zeroext_interop.kt"); + } + } + + @Nested + @TestMetadata("native/native.tests/testData/codegen/fileCheck/kt53261") + @TestDataPath("$PROJECT_ROOT") + @UseExtTestCaseGroupProvider() + public class Kt53261 { + @Test + public void testAllFilesPresentInKt53261() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/native.tests/testData/codegen/fileCheck/kt53261"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("kt53261_inline_unbox.kt") + public void testKt53261_inline_unbox() throws Exception { + runTest("native/native.tests/testData/codegen/fileCheck/kt53261/kt53261_inline_unbox.kt"); + } + + @Test + @TestMetadata("kt53261_noinline_CPointer.kt") + public void testKt53261_noinline_CPointer() throws Exception { + runTest("native/native.tests/testData/codegen/fileCheck/kt53261/kt53261_noinline_CPointer.kt"); + } + + @Test + @TestMetadata("kt53261_noinline_NativePointed.kt") + public void testKt53261_noinline_NativePointed() throws Exception { + runTest("native/native.tests/testData/codegen/fileCheck/kt53261/kt53261_noinline_NativePointed.kt"); + } + + @Test + @TestMetadata("kt53261_noinline_NonNullNativePtr.kt") + public void testKt53261_noinline_NonNullNativePtr() throws Exception { + runTest("native/native.tests/testData/codegen/fileCheck/kt53261/kt53261_noinline_NonNullNativePtr.kt"); + } + + @Test + @TestMetadata("kt53261_noinline_StableRef.kt") + public void testKt53261_noinline_StableRef() throws Exception { + runTest("native/native.tests/testData/codegen/fileCheck/kt53261/kt53261_noinline_StableRef.kt"); + } + + @Test + @TestMetadata("kt53261_noinline_UByteArray.kt") + public void testKt53261_noinline_UByteArray() throws Exception { + runTest("native/native.tests/testData/codegen/fileCheck/kt53261/kt53261_noinline_UByteArray.kt"); + } + + @Test + @TestMetadata("kt53261_noinline_UIntArray.kt") + public void testKt53261_noinline_UIntArray() throws Exception { + runTest("native/native.tests/testData/codegen/fileCheck/kt53261/kt53261_noinline_UIntArray.kt"); + } + + @Test + @TestMetadata("kt53261_noinline_ULongArray.kt") + public void testKt53261_noinline_ULongArray() throws Exception { + runTest("native/native.tests/testData/codegen/fileCheck/kt53261/kt53261_noinline_ULongArray.kt"); + } + + @Test + @TestMetadata("kt53261_noinline_UShortArray.kt") + public void testKt53261_noinline_UShortArray() throws Exception { + runTest("native/native.tests/testData/codegen/fileCheck/kt53261/kt53261_noinline_UShortArray.kt"); + } + + @Test + @TestMetadata("kt53261_noinline_value_unbox.kt") + public void testKt53261_noinline_value_unbox() throws Exception { + runTest("native/native.tests/testData/codegen/fileCheck/kt53261/kt53261_noinline_value_unbox.kt"); + } + } + + @Nested + @TestMetadata("native/native.tests/testData/codegen/fileCheck/stringConcatenationTypeNarrowing") + @TestDataPath("$PROJECT_ROOT") + @UseExtTestCaseGroupProvider() + public class StringConcatenationTypeNarrowing { + @Test + public void testAllFilesPresentInStringConcatenationTypeNarrowing() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/native.tests/testData/codegen/fileCheck/stringConcatenationTypeNarrowing"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("kt53119_append_generated.kt") + public void testKt53119_append_generated() throws Exception { + runTest("native/native.tests/testData/codegen/fileCheck/stringConcatenationTypeNarrowing/kt53119_append_generated.kt"); + } + + @Test + @TestMetadata("kt53119_append_manual.kt") + public void testKt53119_append_manual() throws Exception { + runTest("native/native.tests/testData/codegen/fileCheck/stringConcatenationTypeNarrowing/kt53119_append_manual.kt"); + } + + @Test + @TestMetadata("kt53119_plus_extension.kt") + public void testKt53119_plus_extension() throws Exception { + runTest("native/native.tests/testData/codegen/fileCheck/stringConcatenationTypeNarrowing/kt53119_plus_extension.kt"); + } + + @Test + @TestMetadata("kt53119_plus_generated_noescape.kt") + public void testKt53119_plus_generated_noescape() throws Exception { + runTest("native/native.tests/testData/codegen/fileCheck/stringConcatenationTypeNarrowing/kt53119_plus_generated_noescape.kt"); + } + + @Test + @TestMetadata("kt53119_plus_member.kt") + public void testKt53119_plus_member() throws Exception { + runTest("native/native.tests/testData/codegen/fileCheck/stringConcatenationTypeNarrowing/kt53119_plus_member.kt"); + } + + @Test + @TestMetadata("kt53119_side_effect.kt") + public void testKt53119_side_effect() throws Exception { + runTest("native/native.tests/testData/codegen/fileCheck/stringConcatenationTypeNarrowing/kt53119_side_effect.kt"); + } + } + } + @Nested @TestMetadata("native/native.tests/testData/codegen/funInterface") @TestDataPath("$PROJECT_ROOT") diff --git a/native/native.tests/tests/org/jetbrains/kotlin/konan/test/blackbox/CinteropPackagesTest.kt b/native/native.tests/tests/org/jetbrains/kotlin/konan/test/blackbox/CinteropPackagesTest.kt index 8641e23d538..9cd14c4f18e 100644 --- a/native/native.tests/tests/org/jetbrains/kotlin/konan/test/blackbox/CinteropPackagesTest.kt +++ b/native/native.tests/tests/org/jetbrains/kotlin/konan/test/blackbox/CinteropPackagesTest.kt @@ -90,6 +90,6 @@ class CInteropPackagesTest : AbstractNativeSimpleTest() { } companion object { - private const val TEST_DATA_DIR = "compiler/testData/codegen/box/cinterop/packages" + private const val TEST_DATA_DIR = "native/native.tests/testData/codegen/cinterop/packages" } } diff --git a/wasm/wasm.tests/tests-gen/org/jetbrains/kotlin/wasm/test/FirWasmJsCodegenBoxTestGenerated.java b/wasm/wasm.tests/tests-gen/org/jetbrains/kotlin/wasm/test/FirWasmJsCodegenBoxTestGenerated.java index 24563f1adf4..1bc7d6b6601 100644 --- a/wasm/wasm.tests/tests-gen/org/jetbrains/kotlin/wasm/test/FirWasmJsCodegenBoxTestGenerated.java +++ b/wasm/wasm.tests/tests-gen/org/jetbrains/kotlin/wasm/test/FirWasmJsCodegenBoxTestGenerated.java @@ -4626,66 +4626,6 @@ public class FirWasmJsCodegenBoxTestGenerated extends AbstractFirWasmJsCodegenBo } } - @Nested - @TestMetadata("compiler/testData/codegen/box/cinterop") - @TestDataPath("$PROJECT_ROOT") - public class Cinterop { - @Test - public void testAllFilesPresentInCinterop() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true); - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/cinterop/basics") - @TestDataPath("$PROJECT_ROOT") - public class Basics { - @Test - public void testAllFilesPresentInBasics() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop/basics"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/cinterop/exceptions") - @TestDataPath("$PROJECT_ROOT") - public class Exceptions { - @Test - public void testAllFilesPresentInExceptions() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop/exceptions"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/cinterop/objc") - @TestDataPath("$PROJECT_ROOT") - public class Objc { - @Test - public void testAllFilesPresentInObjc() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop/objc"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/cinterop/packages") - @TestDataPath("$PROJECT_ROOT") - public class Packages { - @Test - public void testAllFilesPresentInPackages() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop/packages"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/cinterop/threadStates") - @TestDataPath("$PROJECT_ROOT") - public class ThreadStates { - @Test - public void testAllFilesPresentInThreadStates() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop/threadStates"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true); - } - } - } - @Nested @TestMetadata("compiler/testData/codegen/box/classLiteral") @TestDataPath("$PROJECT_ROOT") @@ -14546,52 +14486,6 @@ public class FirWasmJsCodegenBoxTestGenerated extends AbstractFirWasmJsCodegenBo } } - @Nested - @TestMetadata("compiler/testData/codegen/box/fileCheck") - @TestDataPath("$PROJECT_ROOT") - public class FileCheck { - @Test - public void testAllFilesPresentInFileCheck() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fileCheck"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true); - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/fileCheck/cinterop") - @TestDataPath("$PROJECT_ROOT") - public class Cinterop { - @Test - public void testAllFilesPresentInCinterop() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fileCheck/cinterop"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/fileCheck/kt53261") - @TestDataPath("$PROJECT_ROOT") - public class Kt53261 { - @Test - public void testAllFilesPresentInKt53261() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fileCheck/kt53261"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/fileCheck/stringConcatenationTypeNarrowing") - @TestDataPath("$PROJECT_ROOT") - public class StringConcatenationTypeNarrowing { - @Test - public void testAllFilesPresentInStringConcatenationTypeNarrowing() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fileCheck/stringConcatenationTypeNarrowing"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true); - } - - @Test - @TestMetadata("kt53119_side_effect.kt") - public void testKt53119_side_effect() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/stringConcatenationTypeNarrowing/kt53119_side_effect.kt"); - } - } - } - @Nested @TestMetadata("compiler/testData/codegen/box/finally") @TestDataPath("$PROJECT_ROOT") diff --git a/wasm/wasm.tests/tests-gen/org/jetbrains/kotlin/wasm/test/K1WasmCodegenBoxTestGenerated.java b/wasm/wasm.tests/tests-gen/org/jetbrains/kotlin/wasm/test/K1WasmCodegenBoxTestGenerated.java index 2ee19680567..3e09ea4a4d7 100644 --- a/wasm/wasm.tests/tests-gen/org/jetbrains/kotlin/wasm/test/K1WasmCodegenBoxTestGenerated.java +++ b/wasm/wasm.tests/tests-gen/org/jetbrains/kotlin/wasm/test/K1WasmCodegenBoxTestGenerated.java @@ -4626,66 +4626,6 @@ public class K1WasmCodegenBoxTestGenerated extends AbstractK1WasmCodegenBoxTest } } - @Nested - @TestMetadata("compiler/testData/codegen/box/cinterop") - @TestDataPath("$PROJECT_ROOT") - public class Cinterop { - @Test - public void testAllFilesPresentInCinterop() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true); - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/cinterop/basics") - @TestDataPath("$PROJECT_ROOT") - public class Basics { - @Test - public void testAllFilesPresentInBasics() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop/basics"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/cinterop/exceptions") - @TestDataPath("$PROJECT_ROOT") - public class Exceptions { - @Test - public void testAllFilesPresentInExceptions() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop/exceptions"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/cinterop/objc") - @TestDataPath("$PROJECT_ROOT") - public class Objc { - @Test - public void testAllFilesPresentInObjc() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop/objc"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/cinterop/packages") - @TestDataPath("$PROJECT_ROOT") - public class Packages { - @Test - public void testAllFilesPresentInPackages() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop/packages"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/cinterop/threadStates") - @TestDataPath("$PROJECT_ROOT") - public class ThreadStates { - @Test - public void testAllFilesPresentInThreadStates() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop/threadStates"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true); - } - } - } - @Nested @TestMetadata("compiler/testData/codegen/box/classLiteral") @TestDataPath("$PROJECT_ROOT") @@ -14546,52 +14486,6 @@ public class K1WasmCodegenBoxTestGenerated extends AbstractK1WasmCodegenBoxTest } } - @Nested - @TestMetadata("compiler/testData/codegen/box/fileCheck") - @TestDataPath("$PROJECT_ROOT") - public class FileCheck { - @Test - public void testAllFilesPresentInFileCheck() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fileCheck"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true); - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/fileCheck/cinterop") - @TestDataPath("$PROJECT_ROOT") - public class Cinterop { - @Test - public void testAllFilesPresentInCinterop() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fileCheck/cinterop"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/fileCheck/kt53261") - @TestDataPath("$PROJECT_ROOT") - public class Kt53261 { - @Test - public void testAllFilesPresentInKt53261() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fileCheck/kt53261"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true); - } - } - - @Nested - @TestMetadata("compiler/testData/codegen/box/fileCheck/stringConcatenationTypeNarrowing") - @TestDataPath("$PROJECT_ROOT") - public class StringConcatenationTypeNarrowing { - @Test - public void testAllFilesPresentInStringConcatenationTypeNarrowing() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fileCheck/stringConcatenationTypeNarrowing"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true); - } - - @Test - @TestMetadata("kt53119_side_effect.kt") - public void testKt53119_side_effect() throws Exception { - runTest("compiler/testData/codegen/box/fileCheck/stringConcatenationTypeNarrowing/kt53119_side_effect.kt"); - } - } - } - @Nested @TestMetadata("compiler/testData/codegen/box/finally") @TestDataPath("$PROJECT_ROOT")