From febac0dd5f75b2fb7fbbda4012b7e7d68a77bcb4 Mon Sep 17 00:00:00 2001 From: Vladimir Sukharev Date: Sun, 25 Feb 2024 18:25:58 +0100 Subject: [PATCH] [Tests] Migrate backend-independent tests from `native` to `compiler/testData`. ^KT-65979 --- ...LFirBlackBoxCodegenBasedTestGenerated.java | 3144 ++++++++++++++++ ...rsedBlackBoxCodegenBasedTestGenerated.java | 3144 ++++++++++++++++ ...LightTreeBlackBoxCodegenTestGenerated.java | 3144 ++++++++++++++++ ...hIrFakeOverrideGeneratorTestGenerated.java | 3144 ++++++++++++++++ .../FirPsiBlackBoxCodegenTestGenerated.java | 3144 ++++++++++++++++ .../codegen/box}/annotations/annotations0.kt | 3 + .../box}/arithmetic/basic_charConversions.kt | 1 + .../box}/arithmetic/basic_charCornerCases.kt | 1 + .../arithmetic/basic_compareIntToFloat.kt | 1 + .../box}/arithmetic/basic_doubleBasic.kt | 1 + .../box}/arithmetic/basic_integralToFloat.kt | 3 + .../codegen/box}/arithmetic/basic_kt37412.kt | 1 + .../box}/arithmetic/basic_selfComparison.kt | 1 + .../codegen/box}/arithmetic/basic_shifts.kt | 1 + .../box}/arithmetic/basic_uintTests.kt | 1 + .../codegen/box}/arithmetic/division.kt | 5 + .../codegen/box}/arithmetic/github1856.kt | 1 + .../codegen/box}/basics/array_to_any.kt | 2 +- .../box/basics/canonical_name.jvm_abi.txt | 9 + .../codegen/box}/basics/canonical_name.kt | 3 +- .../testData/codegen/box}/basics/cast_null.kt | 2 +- .../codegen/box}/basics/cast_simple.kt | 2 +- .../codegen/box}/basics/check_type.kt | 1 + .../testData/codegen/box}/basics/companion.kt | 0 .../codegen/box}/basics/concatenation.kt | 2 +- .../codegen/box}/basics/const_infinity.kt | 2 +- .../box}/basics/expression_as_statement.kt | 2 +- .../testData/codegen/box}/basics/k42000_1.kt | 1 + .../testData/codegen/box}/basics/k42000_2.kt | 1 + .../codegen/box}/basics/local_variable.kt | 2 +- .../codegen/box}/basics/null_check.kt | 2 +- .../testData/codegen/box}/basics/safe_cast.kt | 2 +- .../codegen/box}/basics/spread_operator_0.kt | 2 +- .../box/basics/statements0.jvm_abi.txt | 9 + .../codegen/box}/basics/statements0.kt | 3 +- .../codegen/box}/basics/superFunCall.kt | 2 +- .../codegen/box}/basics/superGetterCall.kt | 2 +- .../codegen/box}/basics/superSetterCall.kt | 2 +- .../codegen/box}/basics/typealias1.kt | 2 +- .../box/basics/unchecked_cast1.jvm_abi.txt | 9 + .../codegen/box}/basics/unchecked_cast1.kt | 3 +- .../codegen/box}/basics/unchecked_cast2.kt | 7 +- .../codegen/box}/basics/unchecked_cast3.kt | 2 +- .../codegen/box}/basics/unchecked_cast4.kt | 2 +- .../testData/codegen/box}/basics/unit1.kt | 5 +- .../testData/codegen/box}/basics/unit2.kt | 0 .../testData/codegen/box}/basics/unit3.kt | 0 .../testData/codegen/box}/basics/unit4.kt | 0 .../testData/codegen/box}/bce/bceCases.kt | 1 + .../testData/codegen/box}/bce/customGetter.kt | 3 + .../codegen/box}/bce/delegatedProperty.kt | 4 + .../codegen/box}/bce/differentArrays.kt | 3 + .../codegen/box}/bce/differentObjects.kt | 3 + .../codegen/box}/bce/forDownToSize.kt | 3 + .../codegen/box}/bce/forDownToWithStep.kt | 3 + .../codegen/box}/bce/forEachIndexedTest.kt | 3 + .../codegen/box}/bce/forEachIndicies.kt | 3 + .../codegen/box}/bce/forIndiciesWithStep.kt | 3 + .../codegen/box}/bce/forRangeToSize.kt | 3 + .../codegen/box}/bce/forRangeToWithStep.kt | 3 + .../testData/codegen/box}/bce/forReversed.kt | 3 + .../testData/codegen/box}/bce/forUntilSize.kt | 3 + .../codegen/box}/bce/forUntilWithStep.kt | 3 + .../testData/codegen/box}/bce/forWithIndex.kt | 3 + .../testData/codegen/box}/bce/inheritance.kt | 4 + .../testData/codegen/box}/bce/withGetter.kt | 3 + .../codegen/box}/boxing/box_cache0.kt | 1 + .../testData/codegen/box}/boxing/boxing0.kt | 1 + .../codegen/box/boxing/boxing1.jvm_abi.txt | 9 + .../testData/codegen/box}/boxing/boxing1.kt | 2 + .../testData/codegen/box}/boxing/boxing10.kt | 1 + .../codegen/box/boxing/boxing11.jvm_abi.txt | 9 + .../testData/codegen/box}/boxing/boxing11.kt | 2 + .../codegen/box/boxing/boxing12.jvm_abi.txt | 9 + .../testData/codegen/box}/boxing/boxing12.kt | 2 + .../codegen/box/boxing/boxing13.jvm_abi.txt | 9 + .../testData/codegen/box}/boxing/boxing13.kt | 2 + .../codegen/box/boxing/boxing14.jvm_abi.txt | 9 + .../testData/codegen/box}/boxing/boxing14.kt | 2 + .../testData/codegen/box}/boxing/boxing15.kt | 1 + .../codegen/box/boxing/boxing2.jvm_abi.txt | 9 + .../testData/codegen/box}/boxing/boxing2.kt | 2 + .../codegen/box/boxing/boxing3.jvm_abi.txt | 9 + .../testData/codegen/box}/boxing/boxing3.kt | 2 + .../codegen/box/boxing/boxing4.jvm_abi.txt | 9 + .../testData/codegen/box}/boxing/boxing4.kt | 2 + .../codegen/box/boxing/boxing5.jvm_abi.txt | 9 + .../testData/codegen/box}/boxing/boxing5.kt | 2 + .../codegen/box/boxing/boxing6.jvm_abi.txt | 9 + .../testData/codegen/box}/boxing/boxing6.kt | 2 + .../codegen/box/boxing/boxing7.jvm_abi.txt | 9 + .../testData/codegen/box}/boxing/boxing7.kt | 2 + .../codegen/box/boxing/boxing8.jvm_abi.txt | 9 + .../testData/codegen/box}/boxing/boxing8.kt | 2 + .../codegen/box/boxing/boxing9.jvm_abi.txt | 9 + .../testData/codegen/box}/boxing/boxing9.kt | 2 + .../codegen/box}/boxing/kt53100_casts.kt | 5 + .../codegen/box}/branching/advanced_when2.kt | 1 + .../codegen/box}/branching/advanced_when5.kt | 1 + .../codegen/box}/branching/if_else.kt | 1 + .../testData/codegen/box}/branching/when2.kt | 1 + .../testData/codegen/box}/branching/when4.kt | 1 + .../testData/codegen/box}/branching/when5.kt | 1 + .../testData/codegen/box}/branching/when6.kt | 1 + .../testData/codegen/box}/branching/when7.kt | 1 + .../testData/codegen/box}/branching/when8.kt | 1 + .../testData/codegen/box}/branching/when9.kt | 1 + .../codegen/box}/branching/when_through.kt | 1 + .../codegen/box}/branching/when_with_try1.kt | 1 + .../codegen/box}/bridges/multipleModules1.kt | 1 + .../codegen/box}/bridges/multipleModules2.kt | 1 + .../box}/bridges/returnTypeSignature.kt | 4 + .../testData/codegen/box}/bridges/special.kt | 2 +- .../codegen/box}/bridges/specialGeneric.kt | 1 + .../testData/codegen/box}/bridges/test0.kt | 1 + .../testData/codegen/box}/bridges/test1.kt | 1 + .../codegen/box/bridges/test10.jvm_abi.txt | 9 + .../testData/codegen/box}/bridges/test10.kt | 2 + .../codegen/box/bridges/test11.jvm_abi.txt | 9 + .../testData/codegen/box}/bridges/test11.kt | 2 + .../codegen/box/bridges/test12.jvm_abi.txt | 9 + .../testData/codegen/box}/bridges/test12.kt | 2 + .../codegen/box/bridges/test13.jvm_abi.txt | 9 + .../testData/codegen/box}/bridges/test13.kt | 2 + .../codegen/box/bridges/test14.jvm_abi.txt | 9 + .../testData/codegen/box}/bridges/test14.kt | 2 + .../testData/codegen/box}/bridges/test15.kt | 1 + .../testData/codegen/box}/bridges/test16.kt | 1 + .../testData/codegen/box}/bridges/test17.kt | 1 + .../testData/codegen/box}/bridges/test18.kt | 1 + .../testData/codegen/box}/bridges/test2.kt | 1 + .../testData/codegen/box}/bridges/test3.kt | 1 + .../testData/codegen/box}/bridges/test4.kt | 1 + .../testData/codegen/box}/bridges/test5.kt | 1 + .../testData/codegen/box}/bridges/test6.kt | 1 + .../testData/codegen/box}/bridges/test7.kt | 1 + .../testData/codegen/box}/bridges/test8.kt | 1 + .../testData/codegen/box}/bridges/test9.kt | 1 + .../codegen/box}/classDelegation/generic.kt | 1 + .../codegen/box}/classDelegation/method.kt | 1 + .../box}/classDelegation/multipleModules.kt | 1 + .../box/classDelegation/property.jvm_abi.txt | 11 + .../codegen/box}/classDelegation/property.kt | 2 + .../box}/classDelegation/withBridge.kt | 1 + .../codegen/box}/contracts/contractForCast.kt | 1 + .../codegen/box}/contracts/isNullString.kt | 1 + .../box}/contracts/nonNullSmartCast.kt | 1 + .../codegen/box}/contracts/require.kt | 1 + .../codegen/box}/contracts/runLambdaForVal.kt | 1 + .../codegen/box/controlflow/break.jvm_abi.txt | 9 + .../codegen/box}/controlflow/break.kt | 2 + .../box/controlflow/break1.jvm_abi.txt | 9 + .../codegen/box}/controlflow/break1.kt | 2 + .../box/controlflow/for_loops.jvm_abi.txt | 9 + .../codegen/box}/controlflow/for_loops.kt | 2 + ...for_loops_array_break_continue.jvm_abi.txt | 9 + .../for_loops_array_break_continue.kt | 2 + .../for_loops_array_indices.jvm_abi.txt | 9 + .../controlflow/for_loops_array_indices.kt | 2 + .../for_loops_array_mutation.jvm_abi.txt | 9 + .../controlflow/for_loops_array_mutation.kt | 2 + .../for_loops_array_nested.jvm_abi.txt | 9 + .../controlflow/for_loops_array_nested.kt | 2 + .../for_loops_array_nullable.jvm_abi.txt | 9 + .../controlflow/for_loops_array_nullable.kt | 2 + .../for_loops_array_side_effects.jvm_abi.txt | 9 + .../for_loops_array_side_effects.kt | 2 + .../for_loops_call_order.jvm_abi.txt | 9 + .../box}/controlflow/for_loops_call_order.kt | 2 + .../for_loops_coroutines.jvm_abi.txt | 9 + .../box}/controlflow/for_loops_coroutines.kt | 2 + .../box}/controlflow/for_loops_empty_range.kt | 1 + .../box}/controlflow/for_loops_errors.kt | 1 + .../for_loops_let_with_nullable.jvm_abi.txt | 9 + .../for_loops_let_with_nullable.kt | 2 + .../controlflow/for_loops_nested.jvm_abi.txt | 9 + .../box}/controlflow/for_loops_nested.kt | 2 + .../for_loops_overflow.jvm_abi.txt | 9 + .../box}/controlflow/for_loops_overflow.kt | 2 + .../controlflow/for_loops_types.jvm_abi.txt | 9 + .../box}/controlflow/for_loops_types.kt | 2 + .../box/controlflow/unreachable1.jvm_abi.txt | 9 + .../codegen/box}/controlflow/unreachable1.kt | 2 + .../box}/coroutines/anonymousObject.kt | 2 + .../box}/coroutines/controlFlow_chain.kt | 2 + .../controlFlow_finally1.jvm_abi.txt | 9 + .../box}/coroutines/controlFlow_finally1.kt | 3 + .../controlFlow_finally2.jvm_abi.txt | 9 + .../box}/coroutines/controlFlow_finally2.kt | 3 + .../controlFlow_finally3.jvm_abi.txt | 9 + .../box}/coroutines/controlFlow_finally3.kt | 3 + .../controlFlow_finally4.jvm_abi.txt | 9 + .../box}/coroutines/controlFlow_finally4.kt | 3 + .../controlFlow_finally5.jvm_abi.txt | 9 + .../box}/coroutines/controlFlow_finally5.kt | 3 + .../controlFlow_finally6.jvm_abi.txt | 9 + .../box}/coroutines/controlFlow_finally6.kt | 3 + .../controlFlow_finally7.jvm_abi.txt | 9 + .../box}/coroutines/controlFlow_finally7.kt | 3 + .../coroutines/controlFlow_if1.jvm_abi.txt | 9 + .../box}/coroutines/controlFlow_if1.kt | 3 + .../coroutines/controlFlow_if2.jvm_abi.txt | 9 + .../box}/coroutines/controlFlow_if2.kt | 3 + .../controlFlow_inline1.jvm_abi.txt | 9 + .../box}/coroutines/controlFlow_inline1.kt | 3 + .../controlFlow_inline2.jvm_abi.txt | 9 + .../box}/coroutines/controlFlow_inline2.kt | 3 + .../controlFlow_inline3.jvm_abi.txt | 9 + .../box}/coroutines/controlFlow_inline3.kt | 3 + .../controlFlow_tryCatch1.jvm_abi.txt | 9 + .../box}/coroutines/controlFlow_tryCatch1.kt | 3 + .../controlFlow_tryCatch2.jvm_abi.txt | 9 + .../box}/coroutines/controlFlow_tryCatch2.kt | 3 + .../controlFlow_tryCatch3.jvm_abi.txt | 9 + .../box}/coroutines/controlFlow_tryCatch3.kt | 3 + .../controlFlow_tryCatch4.jvm_abi.txt | 9 + .../box}/coroutines/controlFlow_tryCatch4.kt | 3 + .../controlFlow_tryCatch5.jvm_abi.txt | 9 + .../box}/coroutines/controlFlow_tryCatch5.kt | 3 + .../coroutines/controlFlow_while1.jvm_abi.txt | 9 + .../box}/coroutines/controlFlow_while1.kt | 3 + .../coroutines/controlFlow_while2.jvm_abi.txt | 9 + .../box}/coroutines/controlFlow_while2.kt | 3 + .../coroutines/coroutineContext1.jvm_abi.txt | 9 + .../box}/coroutines/coroutineContext1.kt | 3 + .../coroutines/coroutineContext2.jvm_abi.txt | 9 + .../box}/coroutines/coroutineContext2.kt | 3 + .../box/coroutines/correctOrder1.jvm_abi.txt | 9 + .../codegen/box}/coroutines/correctOrder1.kt | 3 + .../box/coroutines/degenerate1.jvm_abi.txt | 9 + .../codegen/box}/coroutines/degenerate1.kt | 3 + .../box/coroutines/degenerate2.jvm_abi.txt | 9 + .../codegen/box}/coroutines/degenerate2.kt | 3 + .../functionReference_eqeq_name.jvm_abi.txt | 9 + .../coroutines/functionReference_eqeq_name.kt | 15 +- .../functionReference_invokeAsFunction.kt | 14 +- ...functionReference_lambdaAsSuspendLambda.kt | 4 + .../coroutines/functionReference_simple.kt | 2 + .../codegen/box}/coroutines/kt41394.kt | 2 + .../box}/coroutines/returnsNothing1.kt | 2 + .../box/coroutines/returnsUnit1.jvm_abi.txt | 9 + .../codegen/box}/coroutines/returnsUnit1.kt | 3 + .../codegen/box/coroutines/simple2.kt | 2 + .../box}/coroutines/suspendConversion.kt | 4 + .../codegen/box}/coroutines/withReceiver.kt | 2 + .../testData/codegen/box}/cycles/cycle.kt | 1 + .../testData/codegen/box}/cycles/cycle_do.kt | 1 + .../testData/codegen/box}/cycles/cycle_for.kt | 1 + .../testData/codegen/box}/dataflow/scope1.kt | 1 + .../box}/dataflow/uninitialized_val.kt | 1 + .../delegatedProperty/correctFieldsOrder.kt | 1 + .../delegatedOverride.jvm_abi.txt | 9 + .../delegatedProperty/delegatedOverride.kt | 2 + .../box/delegatedProperty/lazy.jvm_abi.txt | 9 + .../codegen/box}/delegatedProperty/lazy.kt | 2 + .../box/delegatedProperty/local.jvm_abi.txt | 9 + .../codegen/box}/delegatedProperty/local.kt | 2 + .../codegen/box}/delegatedProperty/map.kt | 1 + .../delegatedProperty/observable.jvm_abi.txt | 9 + .../box}/delegatedProperty/observable.kt | 2 + .../packageLevel.jvm_abi.txt | 9 + .../box}/delegatedProperty/packageLevel.kt | 2 + .../delegatedProperty/simpleVal.jvm_abi.txt | 9 + .../box}/delegatedProperty/simpleVal.kt | 2 + .../delegatedProperty/simpleVar.jvm_abi.txt | 9 + .../box}/delegatedProperty/simpleVar.kt | 2 + .../anonymousObject.jvm_abi.txt | 9 + .../box}/devirtualization/anonymousObject.kt | 2 + .../getter_looking_as_box_function.kt | 0 .../box}/devirtualization/inline_getter.kt | 1 + .../devirtualization/lateinitInterface.kt | 1 + .../codegen/box}/enum/companionObject.kt | 1 + .../testData/codegen/box}/enum/enum_equals.kt | 1 + .../box}/enum/interfaceCallNoEntryClass.kt | 1 + .../box}/enum/interfaceCallWithEntryClass.kt | 1 + .../testData/codegen/box}/enum/kt38540.kt | 1 + .../codegen/box}/enum/lambdaInDefault.kt | 1 + .../codegen/box/enum/loop.jvm_abi.txt | 9 + .../testData/codegen/box}/enum/loop.kt | 2 + .../codegen/box}/enum/multipleModules.kt | 1 + .../testData/codegen/box}/enum/nested.kt | 1 + .../box}/enum/openMethodNoOverrides.kt | 0 .../codegen/box}/enum/reorderedArguments.kt | 1 + .../box/enum/switchLowering.jvm_abi.txt | 9 + .../codegen/box}/enum/switchLowering.kt | 2 + .../testData/codegen/box}/enum/test0.kt | 1 + .../testData/codegen/box}/enum/test1.kt | 1 + .../codegen/box}/enum/vCallNoEntryClass.kt | 1 + .../codegen/box}/enum/vCallWithEntryClass.kt | 1 + .../testData/codegen/box/enum/valueOf2.kt | 1 + .../testData/codegen/box}/enum/values.kt | 1 + .../testData/codegen/box}/enum/varargParam.kt | 1 + .../codegen/box}/escapeAnalysis/recursion.kt | 1 + .../box}/escapeAnalysis/stack_array.kt | 1 + .../codegen/box}/escapeAnalysis/test1.kt | 0 .../codegen/box}/escapeAnalysis/test10.kt | 1 + .../codegen/box}/escapeAnalysis/test11.kt | 1 + .../codegen/box}/escapeAnalysis/test12.kt | 0 .../codegen/box}/escapeAnalysis/test13.kt | 1 + .../codegen/box}/escapeAnalysis/test2.kt | 0 .../codegen/box}/escapeAnalysis/test3.kt | 0 .../codegen/box}/escapeAnalysis/test4.kt | 0 .../codegen/box}/escapeAnalysis/test5.kt | 0 .../codegen/box}/escapeAnalysis/test6.kt | 0 .../codegen/box}/escapeAnalysis/test7.kt | 0 .../codegen/box}/escapeAnalysis/test8.kt | 0 .../codegen/box}/escapeAnalysis/test9.kt | 1 + .../escapeAnalysis/zeroOutObjectOnAlloc.kt | 1 + .../codegen/box/exceptions/catch1.jvm_abi.txt | 9 + .../codegen/box}/exceptions/catch1.kt | 2 + .../codegen/box/exceptions/catch2.jvm_abi.txt | 9 + .../codegen/box}/exceptions/catch2.kt | 2 + .../codegen/box/exceptions/catch7.jvm_abi.txt | 9 + .../codegen/box}/exceptions/catch7.kt | 2 + .../codegen/box}/exceptions/extend0.kt | 1 + .../codegen/box}/exceptions/rethrow.kt | 1 + .../codegen/box}/exceptions/throw0.kt | 1 + .../box}/exceptions/throw_from_catch.kt | 1 + .../box}/funInterface/implIsNotFunction.kt | 1 + .../codegen/box}/funInterface/kt49384.kt | 1 + .../box}/funInterface/kt49384_getSame.kt | 1 + .../nonTrivialProjectionInSuperType.kt | 1 + .../codegen/box}/function/arithmetic.kt | 0 .../testData/codegen/box}/function/boolean.kt | 0 .../codegen/box}/function/defaults.kt | 1 + .../codegen/box}/function/defaults1.kt | 1 + .../codegen/box}/function/defaults10.kt | 1 + .../codegen/box}/function/defaults2.kt | 1 + .../codegen/box}/function/defaults3.kt | 0 .../box/function/defaults4.jvm_abi.txt | 9 + .../codegen/box}/function/defaults4.kt | 2 + .../box/function/defaults5.jvm_abi.txt | 9 + .../codegen/box}/function/defaults5.kt | 2 + .../codegen/box}/function/defaults6.kt | 1 + .../box/function/defaults7.jvm_abi.txt | 9 + .../codegen/box}/function/defaults7.kt | 2 + .../codegen/box}/function/defaults8.kt | 1 + .../codegen/box}/function/defaults9.kt | 1 + .../box}/function/defaultsFromFakeOverride.kt | 1 + .../function/defaultsWithInlineClasses.kt | 1 + .../function/defaultsWithVarArg1.jvm_abi.txt | 9 + .../box}/function/defaultsWithVarArg1.kt | 2 + .../function/defaultsWithVarArg2.jvm_abi.txt | 9 + .../box}/function/defaultsWithVarArg2.kt | 2 + .../testData/codegen/box}/function/eqeq.kt | 3 + .../codegen/box}/function/extension.kt | 1 + .../codegen/box}/function/intrinsic.kt | 1 + .../box/function/localFunction.jvm_abi.txt | 9 + .../codegen/box}/function/localFunction.kt | 2 + .../codegen/box}/function/localFunction2.kt | 1 + .../codegen/box}/function/localFunction3.kt | 1 + .../codegen/box}/function/minus_eq.kt | 1 + .../testData/codegen/box}/function/named.kt | 1 + .../function/nothingNReturningSafeCall.kt | 3 +- .../testData/codegen/box}/function/plus_eq.kt | 1 + .../box}/function/referenceBigArity.kt | 1 + .../testData/codegen/box}/function/sum.kt | 1 + .../codegen/box}/function/sum_3const.kt | 1 + .../codegen/box}/function/sum_foo_bar.kt | 1 + .../codegen/box}/function/sum_func.kt | 1 + .../testData/codegen/box}/function/sum_imm.kt | 1 + .../codegen/box}/function/sum_mixed.kt | 1 + .../codegen/box}/function/sum_silly.kt | 1 + .../unreachableStatementAfterReturn.kt | 2 + .../box}/initializers/correctOrder1.kt | 1 + .../box}/initializers/correctOrder2.kt | 1 + .../files/globalInitedAfterAccessingFile.kt | 1 + ...alNotInitedAfterAccessingClassInternals.kt | 1 + .../codegen/box}/initializers/files/simple.kt | 1 + .../initializers/files/simpleMultiModule.kt | 1 + .../initializers/initializers0.jvm_abi.txt | 9 + .../box}/initializers/initializers0.kt | 2 + .../initializers/initializers1.jvm_abi.txt | 9 + .../box}/initializers/initializers1.kt | 4 + .../initializers/initializers2.jvm_abi.txt | 9 + .../box}/initializers/initializers2.kt | 2 + .../box}/initializers/initializers3.kt | 1 + .../box}/initializers/initializers4.kt | 1 + .../box}/initializers/initializers5.kt | 1 + .../box}/initializers/initializers7.kt | 25 +- .../box}/initializers/initializers8.kt | 1 + .../box}/initializers/multipleModules1.kt | 1 + .../codegen/box}/initializers/object.kt | 1 + .../box}/initializers/sharedVarInInitBlock.kt | 0 .../box}/initializers/static_arrays.kt | 1 + .../codegen/box}/initializers/static_list.kt | 1 + .../initializers/static_smallIntIdentity.kt | 17 +- .../box}/initializers/static_varargChange.kt | 3 + .../codegen/box}/initializers/throw1.kt | 1 + .../box/initializers/throw2.jvm_abi.txt | 9 + .../codegen/box}/initializers/throw2.kt | 2 + .../box}/inline/changingCapturedLocal.kt | 1 + .../inline/classDeclarationInsideInline.kt | 4 + .../codegen/box}/inline/coercionToUnit.kt | 1 + .../inline/correctOrderFunctionReference.kt | 1 + .../box/inline/defaultArgs.jvm_abi.txt | 9 + .../codegen/box}/inline/defaultArgs.kt | 2 + .../box}/inline/defaultArgsMultipleModules.kt | 1 + .../box}/inline/genericFunctionReference.kt | 1 + .../testData/codegen/box}/inline/getClass.kt | 1 + .../testData/codegen/box}/inline/inline0.kt | 1 + .../testData/codegen/box}/inline/inline1.kt | 1 + .../testData/codegen/box}/inline/inline10.kt | 1 + .../testData/codegen/box}/inline/inline11.kt | 4 + .../testData/codegen/box}/inline/inline12.kt | 1 + .../testData/codegen/box}/inline/inline13.kt | 1 + .../testData/codegen/box}/inline/inline14.kt | 1 + .../testData/codegen/box}/inline/inline15.kt | 1 + .../testData/codegen/box}/inline/inline16.kt | 1 + .../testData/codegen/box}/inline/inline17.kt | 1 + .../testData/codegen/box}/inline/inline19.kt | 1 + .../codegen/box/inline/inline2.jvm_abi.txt | 9 + .../testData/codegen/box}/inline/inline2.kt | 2 + .../testData/codegen/box}/inline/inline20.kt | 1 + .../codegen/box/inline/inline21.jvm_abi.txt | 9 + .../testData/codegen/box}/inline/inline21.kt | 2 + .../testData/codegen/box}/inline/inline22.kt | 1 + .../testData/codegen/box}/inline/inline23.kt | 1 + .../codegen/box/inline/inline24.jvm_abi.txt | 9 + .../testData/codegen/box}/inline/inline24.kt | 2 + .../testData/codegen/box}/inline/inline25.kt | 1 + .../testData/codegen/box}/inline/inline26.kt | 1 + .../testData/codegen/box}/inline/inline3.kt | 1 + .../testData/codegen/box}/inline/inline4.kt | 1 + .../testData/codegen/box}/inline/inline5.kt | 1 + .../codegen/box/inline/inline6.jvm_abi.txt | 9 + .../testData/codegen/box}/inline/inline6.kt | 2 + .../codegen/box/inline/inline7.jvm_abi.txt | 9 + .../testData/codegen/box}/inline/inline7.kt | 2 + .../testData/codegen/box}/inline/inline8.kt | 1 + .../codegen/box/inline/inline9.jvm_abi.txt | 9 + .../testData/codegen/box}/inline/inline9.kt | 2 + .../codegen/box}/inline/inlineCtor.kt | 1 + .../inline/innerInlineFunCapturesOuter.kt | 3 + .../box/inline/lambdaAsAny.jvm_abi.txt | 9 + .../codegen/box}/inline/lambdaAsAny.kt | 2 + .../box}/inline/lambdaInDefaultValue.kt | 1 + .../codegen/box}/inline/lateinitProperty.kt | 1 + ...ocalFunctionInInitializerBlock.jvm_abi.txt | 9 + .../inline/localFunctionInInitializerBlock.kt | 2 + .../inline/localObjectReturnedFromWhen.kt | 3 + .../inline/propertyAccessorInline.jvm_abi.txt | 9 + .../box}/inline/propertyAccessorInline.kt | 2 + .../box}/inline/redundantCoercionsCleaner.kt | 1 + .../redundantCoercionsCleanerKT48876.kt | 1 + .../redundantCoercionsCleanerKT49356.kt | 1 + .../returnLocalClassFromBlock.jvm_abi.txt | 9 + .../box}/inline/returnLocalClassFromBlock.kt | 2 + .../testData/codegen/box}/inline/sharedVar.kt | 1 + .../box}/inline/statementAsLastExprInBlock.kt | 1 + .../box/inline/twiceInlinedObject.jvm_abi.txt | 9 + .../codegen/box}/inline/twiceInlinedObject.kt | 2 + .../inline/typeSubstitutionInFakeOverride.kt | 1 + .../codegen/box}/inlineClass/customEquals.kt | 2 + .../codegen/box}/inlineClass/defaultEquals.kt | 1 + .../box}/inlineClass/nestedInlineClasses.kt | 1 + .../secondaryConstructorWithGenerics.kt | 1 + .../codegen/box}/innerClass/doubleInner.kt | 1 + .../codegen/box}/innerClass/generic.kt | 1 + .../codegen/box}/innerClass/getOuterVal.kt | 1 + .../innerClass/inheritanceMultipleModules1.kt | 1 + .../innerClass/inheritanceMultipleModules2.kt | 0 .../innerClass/inheritanceMultipleModules3.kt | 1 + .../box}/innerClass/multipleModules.kt | 0 .../box}/innerClass/noPrimaryConstructor.kt | 1 + .../codegen/box}/innerClass/qualifiedThis.kt | 1 + .../secondaryConstructor.jvm_abi.txt | 9 + .../box}/innerClass/secondaryConstructor.kt | 2 + .../codegen/box}/innerClass/simple.kt | 1 + .../codegen/box}/innerClass/superOuter.kt | 1 + .../conservativeItable.kt | 1 + .../box}/interfaceCallsNCasts/diamond.kt | 1 + .../box}/interfaceCallsNCasts/finalMethod.kt | 1 + .../interface0.jvm_abi.txt | 9 + .../box}/interfaceCallsNCasts/interface0.kt | 2 + .../codegen/box}/kclass/kClassEnumArgument.kt | 2 + .../codegen/box/kclass/kclass1.jvm_abi.txt | 9 + .../testData/codegen/box}/kclass/kclass1.kt | 16 +- .../codegen/box}/ktype/ktype1_basics1.kt | 6 + .../codegen/box}/ktype/ktype1_inner.kt | 3 + .../codegen/box}/ktype/nonReified_class.kt | 3 + .../codegen/box}/ktype/nonReified_equality.kt | 6 + .../codegen/box}/ktype/nonReified_fun.kt | 3 + .../ktype/nonReified_recursionInReified.kt | 3 + .../box/ktype/nonReified_reifiedUpperBound.kt | 28 + .../codegen/box/lambda/lambda1.jvm_abi.txt | 9 + .../testData/codegen/box}/lambda/lambda1.kt | 2 + .../codegen/box/lambda/lambda10.jvm_abi.txt | 9 + .../testData/codegen/box}/lambda/lambda10.kt | 2 + .../codegen/box/lambda/lambda11.jvm_abi.txt | 9 + .../testData/codegen/box}/lambda/lambda11.kt | 2 + .../codegen/box/lambda/lambda12.jvm_abi.txt | 9 + .../testData/codegen/box}/lambda/lambda12.kt | 2 + .../codegen/box/lambda/lambda13.jvm_abi.txt | 9 + .../testData/codegen/box}/lambda/lambda13.kt | 2 + .../testData/codegen/box}/lambda/lambda14.kt | 1 + .../codegen/box/lambda/lambda2.jvm_abi.txt | 9 + .../testData/codegen/box}/lambda/lambda2.kt | 4 + .../codegen/box/lambda/lambda3.jvm_abi.txt | 9 + .../testData/codegen/box}/lambda/lambda3.kt | 2 + .../codegen/box/lambda/lambda4.jvm_abi.txt | 9 + .../testData/codegen/box}/lambda/lambda4.kt | 2 + .../codegen/box/lambda/lambda5.jvm_abi.txt | 9 + .../testData/codegen/box}/lambda/lambda5.kt | 2 + .../codegen/box/lambda/lambda6.jvm_abi.txt | 9 + .../testData/codegen/box}/lambda/lambda6.kt | 2 + .../testData/codegen/box}/lambda/lambda7.kt | 1 + .../codegen/box/lambda/lambda8.jvm_abi.txt | 9 + .../testData/codegen/box}/lambda/lambda8.kt | 2 + .../codegen/box/lambda/lambda9.jvm_abi.txt | 9 + .../testData/codegen/box}/lambda/lambda9.kt | 2 + .../box}/lambda/lambda_kt49360_trivial.kt | 2 + .../box}/lambda/lambda_kt49360_withFlow.kt | 2 + .../box}/lambda/lambda_kt49360_wrapBlock.kt | 2 + .../lateinit/globalIsInitialized.jvm_abi.txt | 9 + .../box}/lateinit/globalIsInitialized.kt | 2 + .../codegen/box}/lateinit/inBaseClass.kt | 1 + .../codegen/box}/lateinit/initialized.kt | 1 + .../box}/lateinit/innerIsInitialized.kt | 1 + .../box/lateinit/isInitialized.jvm_abi.txt | 9 + .../codegen/box}/lateinit/isInitialized.kt | 2 + .../box}/lateinit/localCapturedInitialized.kt | 1 + .../localCapturedNotInitialized.jvm_abi.txt | 9 + .../lateinit/localCapturedNotInitialized.kt | 2 + .../codegen/box}/lateinit/localInitialized.kt | 1 + .../lateinit/localNotInitialized.jvm_abi.txt | 9 + .../box}/lateinit/localNotInitialized.kt | 2 + .../box/lateinit/notInitialized.jvm_abi.txt | 9 + .../codegen/box}/lateinit/notInitialized.kt | 2 + .../testData/codegen/box}/literals/listof1.kt | 0 .../codegen/box}/literals/strdedup1.kt | 1 + .../innerTakesCapturedFromOuter.jvm_abi.txt | 9 + .../localClass/innerTakesCapturedFromOuter.kt | 2 + .../box}/localClass/innerWithCapture.kt | 3 + .../localFunctionCallFromLocalClass.kt | 1 + .../localClass/localFunctionInLocalClass.kt | 1 + .../codegen/box}/localClass/localHierarchy.kt | 1 + .../box}/localClass/noPrimaryConstructor.kt | 3 + .../objectExpressionInInitializer.kt | 1 + .../localClass/objectExpressionInProperty.kt | 1 + .../box/localClass/tryCatch.jvm_abi.txt | 9 + .../codegen/box}/localClass/tryCatch.kt | 2 + .../localClass/virtualCallFromConstructor.kt | 1 + .../arraysFieldWrite.jvm_abi.txt | 9 + .../localEscapeAnalysis/arraysFieldWrite.kt | 2 + .../box}/lower/localDelegatedProperty.kt | 1 + .../box}/mangling/multipleConstructors.kt | 1 + .../codegen/box}/object/constructor0.kt | 1 + .../testData/codegen/box}/object/fields.kt | 1 + .../testData/codegen/box}/object/fields1.kt | 1 + .../codegen/box/object/fields2.jvm_abi.txt | 9 + .../testData/codegen/box}/object/fields2.kt | 2 + .../codegen/box}/object/globalInitializer.kt | 0 .../testData/codegen/box}/object/init0.kt | 1 + .../codegen/box}/object/initialization.kt | 1 + .../box/object/initialization1.jvm_abi.txt | 17 + .../codegen/box}/object/initialization1.kt | 2 + .../codegen/box}/object/method_call.kt | 1 + .../codegen/box}/objectExpression/expr1.kt | 1 + .../codegen/box}/objectExpression/expr2.kt | 1 + .../box/objectExpression/expr3.jvm_abi.txt | 9 + .../codegen/box}/objectExpression/expr3.kt | 2 + .../dynamicReceiver.jvm_abi.txt | 9 + .../dynamicReceiver.kt | 2 + .../multipleModules.kt | 0 .../propertyCallableReference/valClass.kt | 1 + .../propertyCallableReference/valExtension.kt | 1 + .../propertyCallableReference/valModule.kt | 1 + .../propertyCallableReference/varClass.kt | 1 + .../propertyCallableReference/varExtension.kt | 1 + .../propertyCallableReference/varModule.kt | 1 + .../deserializedMembers.jvm_abi.txt | 9 + .../box}/serialization/deserializedMembers.kt | 7 + .../box}/serialization/serializedCatch.kt | 0 .../serialization/serializedCharConstant.kt | 1 + .../serialization/serializedDefaultArgs.kt | 1 + .../serializedDoWhile.jvm_abi.txt | 9 + .../box}/serialization/serializedDoWhile.kt | 2 + .../serialization/serializedEnumOrdinal.kt | 1 + .../serializedVararg.jvm_abi.txt | 9 + .../box}/serialization/serializedVararg.kt | 2 + .../codegen/box}/stringTrim/stringTrim.kt | 1 + .../codegen/box/try/catch3.jvm_abi.txt | 9 + .../testData/codegen/box}/try/catch3.kt | 2 + .../codegen/box/try/catch4.jvm_abi.txt | 9 + .../testData/codegen/box}/try/catch4.kt | 2 + .../codegen/box/try/catch5.jvm_abi.txt | 9 + .../testData/codegen/box}/try/catch5.kt | 2 + .../codegen/box/try/catch6.jvm_abi.txt | 9 + .../testData/codegen/box}/try/catch6.kt | 2 + .../codegen/box/try/catch8.jvm_abi.txt | 9 + .../testData/codegen/box}/try/catch8.kt | 2 + .../codegen/box/try/finally1.jvm_abi.txt | 9 + .../testData/codegen/box}/try/finally1.kt | 2 + .../codegen/box/try/finally10.jvm_abi.txt | 9 + .../testData/codegen/box}/try/finally10.kt | 2 + .../codegen/box/try/finally11.jvm_abi.txt | 9 + .../testData/codegen/box}/try/finally11.kt | 2 + .../codegen/box/try/finally2.jvm_abi.txt | 9 + .../testData/codegen/box}/try/finally2.kt | 2 + .../codegen/box/try/finally3.jvm_abi.txt | 9 + .../testData/codegen/box}/try/finally3.kt | 2 + .../codegen/box/try/finally4.jvm_abi.txt | 9 + .../testData/codegen/box}/try/finally4.kt | 2 + .../codegen/box/try/finally5.jvm_abi.txt | 9 + .../testData/codegen/box}/try/finally5.kt | 2 + .../codegen/box/try/finally6.jvm_abi.txt | 9 + .../testData/codegen/box}/try/finally6.kt | 2 + .../codegen/box/try/finally7.jvm_abi.txt | 9 + .../testData/codegen/box}/try/finally7.kt | 2 + .../codegen/box/try/finally8.jvm_abi.txt | 9 + .../testData/codegen/box}/try/finally8.kt | 2 + .../codegen/box/try/finally9.jvm_abi.txt | 9 + .../testData/codegen/box}/try/finally9.kt | 2 + .../box/try/returnsDifferentTypes.jvm_abi.txt | 9 + .../codegen/box}/try/returnsDifferentTypes.kt | 2 + .../testData/codegen/box}/try/try1.kt | 1 + .../testData/codegen/box}/try/try2.kt | 1 + .../testData/codegen/box}/try/try3.kt | 1 + .../testData/codegen/box/try/try4.jvm_abi.txt | 9 + .../testData/codegen/box}/try/try4.kt | 2 + .../JvmAbiConsistencyTestBoxGenerated.java | 3144 ++++++++++++++++ .../codegen/BlackBoxCodegenTestGenerated.java | 3120 ++++++++++++++++ .../IrBlackBoxCodegenTestGenerated.java | 3144 ++++++++++++++++ ...kBoxCodegenWithIrInlinerTestGenerated.java | 3144 ++++++++++++++++ ...xCodegenTestWithInlineScopesGenerated.java | 3144 ++++++++++++++++ .../LightAnalysisModeTestGenerated.java | 2774 ++++++++++++++ .../fir/FirJsCodegenBoxTestGenerated.java | 3144 ++++++++++++++++ .../fir/FirJsES6CodegenBoxTestGenerated.java | 3144 ++++++++++++++++ .../test/ir/IrJsCodegenBoxTestGenerated.java | 3144 ++++++++++++++++ .../ir/IrJsES6CodegenBoxTestGenerated.java | 3144 ++++++++++++++++ .../ktype/nonReified_reifiedUpperBound.kt | 24 - .../FirNativeCodegenBoxTestGenerated.java | 3243 ++++++++++++++++ .../FirNativeCodegenBoxTestNoPLGenerated.java | 3309 +++++++++++++++++ .../FirNativeCodegenLocalTestGenerated.java | 3139 ---------------- .../NativeCodegenBoxTestGenerated.java | 3177 ++++++++++++++++ .../NativeCodegenBoxTestNoPLGenerated.java | 3243 ++++++++++++++++ .../NativeCodegenLocalTestGenerated.java | 3089 --------------- .../FirWasmJsCodegenBoxTestGenerated.java | 3144 ++++++++++++++++ .../test/K1WasmCodegenBoxTestGenerated.java | 3144 ++++++++++++++++ 640 files changed, 68168 insertions(+), 6313 deletions(-) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/annotations/annotations0.kt (83%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/arithmetic/basic_charConversions.kt (96%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/arithmetic/basic_charCornerCases.kt (96%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/arithmetic/basic_compareIntToFloat.kt (90%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/arithmetic/basic_doubleBasic.kt (96%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/arithmetic/basic_integralToFloat.kt (88%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/arithmetic/basic_kt37412.kt (88%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/arithmetic/basic_selfComparison.kt (94%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/arithmetic/basic_shifts.kt (93%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/arithmetic/basic_uintTests.kt (88%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/arithmetic/division.kt (75%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/arithmetic/github1856.kt (98%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/basics/array_to_any.kt (95%) create mode 100644 compiler/testData/codegen/box/basics/canonical_name.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/basics/canonical_name.kt (95%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/basics/cast_null.kt (98%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/basics/cast_simple.kt (96%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/basics/check_type.kt (98%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/basics/companion.kt (100%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/basics/concatenation.kt (96%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/basics/const_infinity.kt (97%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/basics/expression_as_statement.kt (95%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/basics/k42000_1.kt (98%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/basics/k42000_2.kt (93%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/basics/local_variable.kt (95%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/basics/null_check.kt (98%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/basics/safe_cast.kt (97%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/basics/spread_operator_0.kt (97%) create mode 100644 compiler/testData/codegen/box/basics/statements0.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/basics/statements0.kt (93%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/basics/superFunCall.kt (97%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/basics/superGetterCall.kt (97%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/basics/superSetterCall.kt (98%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/basics/typealias1.kt (95%) create mode 100644 compiler/testData/codegen/box/basics/unchecked_cast1.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/basics/unchecked_cast1.kt (91%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/basics/unchecked_cast2.kt (77%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/basics/unchecked_cast3.kt (98%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/basics/unchecked_cast4.kt (97%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/basics/unit1.kt (79%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/basics/unit2.kt (100%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/basics/unit3.kt (100%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/basics/unit4.kt (100%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/bce/bceCases.kt (99%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/bce/customGetter.kt (73%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/bce/delegatedProperty.kt (80%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/bce/differentArrays.kt (76%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/bce/differentObjects.kt (78%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/bce/forDownToSize.kt (87%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/bce/forDownToWithStep.kt (86%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/bce/forEachIndexedTest.kt (67%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/bce/forEachIndicies.kt (78%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/bce/forIndiciesWithStep.kt (79%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/bce/forRangeToSize.kt (87%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/bce/forRangeToWithStep.kt (86%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/bce/forReversed.kt (82%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/bce/forUntilSize.kt (82%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/bce/forUntilWithStep.kt (85%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/bce/forWithIndex.kt (85%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/bce/inheritance.kt (88%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/bce/withGetter.kt (78%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/boxing/box_cache0.kt (98%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/boxing/boxing0.kt (96%) create mode 100644 compiler/testData/codegen/box/boxing/boxing1.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/boxing/boxing1.kt (93%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/boxing/boxing10.kt (95%) create mode 100644 compiler/testData/codegen/box/boxing/boxing11.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/boxing/boxing11.kt (90%) create mode 100644 compiler/testData/codegen/box/boxing/boxing12.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/boxing/boxing12.kt (89%) create mode 100644 compiler/testData/codegen/box/boxing/boxing13.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/boxing/boxing13.kt (93%) create mode 100644 compiler/testData/codegen/box/boxing/boxing14.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/boxing/boxing14.kt (89%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/boxing/boxing15.kt (96%) create mode 100644 compiler/testData/codegen/box/boxing/boxing2.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/boxing/boxing2.kt (95%) create mode 100644 compiler/testData/codegen/box/boxing/boxing3.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/boxing/boxing3.kt (90%) create mode 100644 compiler/testData/codegen/box/boxing/boxing4.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/boxing/boxing4.kt (90%) create mode 100644 compiler/testData/codegen/box/boxing/boxing5.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/boxing/boxing5.kt (91%) create mode 100644 compiler/testData/codegen/box/boxing/boxing6.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/boxing/boxing6.kt (91%) create mode 100644 compiler/testData/codegen/box/boxing/boxing7.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/boxing/boxing7.kt (92%) create mode 100644 compiler/testData/codegen/box/boxing/boxing8.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/boxing/boxing8.kt (93%) create mode 100644 compiler/testData/codegen/box/boxing/boxing9.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/boxing/boxing9.kt (92%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/boxing/kt53100_casts.kt (67%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/branching/advanced_when2.kt (96%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/branching/advanced_when5.kt (97%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/branching/if_else.kt (95%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/branching/when2.kt (95%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/branching/when4.kt (96%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/branching/when5.kt (96%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/branching/when6.kt (94%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/branching/when7.kt (95%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/branching/when8.kt (94%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/branching/when9.kt (94%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/branching/when_through.kt (96%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/branching/when_with_try1.kt (97%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/bridges/multipleModules1.kt (96%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/bridges/multipleModules2.kt (96%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/bridges/returnTypeSignature.kt (70%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/bridges/special.kt (99%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/bridges/specialGeneric.kt (98%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/bridges/test0.kt (97%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/bridges/test1.kt (97%) create mode 100644 compiler/testData/codegen/box/bridges/test10.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/bridges/test10.kt (93%) create mode 100644 compiler/testData/codegen/box/bridges/test11.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/bridges/test11.kt (92%) create mode 100644 compiler/testData/codegen/box/bridges/test12.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/bridges/test12.kt (92%) create mode 100644 compiler/testData/codegen/box/bridges/test13.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/bridges/test13.kt (92%) create mode 100644 compiler/testData/codegen/box/bridges/test14.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/bridges/test14.kt (96%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/bridges/test15.kt (97%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/bridges/test16.kt (97%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/bridges/test17.kt (98%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/bridges/test18.kt (96%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/bridges/test2.kt (97%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/bridges/test3.kt (97%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/bridges/test4.kt (97%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/bridges/test5.kt (97%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/bridges/test6.kt (98%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/bridges/test7.kt (97%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/bridges/test8.kt (97%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/bridges/test9.kt (97%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/classDelegation/generic.kt (97%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/classDelegation/method.kt (97%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/classDelegation/multipleModules.kt (97%) create mode 100644 compiler/testData/codegen/box/classDelegation/property.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/classDelegation/property.kt (90%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/classDelegation/withBridge.kt (97%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/contracts/contractForCast.kt (95%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/contracts/isNullString.kt (94%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/contracts/nonNullSmartCast.kt (89%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/contracts/require.kt (95%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/contracts/runLambdaForVal.kt (89%) create mode 100644 compiler/testData/codegen/box/controlflow/break.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/controlflow/break.kt (96%) create mode 100644 compiler/testData/codegen/box/controlflow/break1.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/controlflow/break1.kt (89%) create mode 100644 compiler/testData/codegen/box/controlflow/for_loops.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/controlflow/for_loops.kt (97%) create mode 100644 compiler/testData/codegen/box/controlflow/for_loops_array_break_continue.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/controlflow/for_loops_array_break_continue.kt (90%) create mode 100644 compiler/testData/codegen/box/controlflow/for_loops_array_indices.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/controlflow/for_loops_array_indices.kt (89%) create mode 100644 compiler/testData/codegen/box/controlflow/for_loops_array_mutation.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/controlflow/for_loops_array_mutation.kt (85%) create mode 100644 compiler/testData/codegen/box/controlflow/for_loops_array_nested.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/controlflow/for_loops_array_nested.kt (93%) create mode 100644 compiler/testData/codegen/box/controlflow/for_loops_array_nullable.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/controlflow/for_loops_array_nullable.kt (87%) create mode 100644 compiler/testData/codegen/box/controlflow/for_loops_array_side_effects.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/controlflow/for_loops_array_side_effects.kt (92%) create mode 100644 compiler/testData/codegen/box/controlflow/for_loops_call_order.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/controlflow/for_loops_call_order.kt (93%) create mode 100644 compiler/testData/codegen/box/controlflow/for_loops_coroutines.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/controlflow/for_loops_coroutines.kt (93%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/controlflow/for_loops_empty_range.kt (98%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/controlflow/for_loops_errors.kt (99%) create mode 100644 compiler/testData/codegen/box/controlflow/for_loops_let_with_nullable.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/controlflow/for_loops_let_with_nullable.kt (98%) create mode 100644 compiler/testData/codegen/box/controlflow/for_loops_nested.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/controlflow/for_loops_nested.kt (97%) create mode 100644 compiler/testData/codegen/box/controlflow/for_loops_overflow.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/controlflow/for_loops_overflow.kt (97%) create mode 100644 compiler/testData/codegen/box/controlflow/for_loops_types.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/controlflow/for_loops_types.kt (99%) create mode 100644 compiler/testData/codegen/box/controlflow/unreachable1.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/controlflow/unreachable1.kt (88%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/coroutines/anonymousObject.kt (97%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/coroutines/controlFlow_chain.kt (96%) create mode 100644 compiler/testData/codegen/box/coroutines/controlFlow_finally1.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/coroutines/controlFlow_finally1.kt (94%) create mode 100644 compiler/testData/codegen/box/coroutines/controlFlow_finally2.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/coroutines/controlFlow_finally2.kt (95%) create mode 100644 compiler/testData/codegen/box/coroutines/controlFlow_finally3.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/coroutines/controlFlow_finally3.kt (94%) create mode 100644 compiler/testData/codegen/box/coroutines/controlFlow_finally4.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/coroutines/controlFlow_finally4.kt (95%) create mode 100644 compiler/testData/codegen/box/coroutines/controlFlow_finally5.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/coroutines/controlFlow_finally5.kt (95%) create mode 100644 compiler/testData/codegen/box/coroutines/controlFlow_finally6.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/coroutines/controlFlow_finally6.kt (95%) create mode 100644 compiler/testData/codegen/box/coroutines/controlFlow_finally7.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/coroutines/controlFlow_finally7.kt (96%) create mode 100644 compiler/testData/codegen/box/coroutines/controlFlow_if1.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/coroutines/controlFlow_if1.kt (94%) create mode 100644 compiler/testData/codegen/box/coroutines/controlFlow_if2.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/coroutines/controlFlow_if2.kt (94%) create mode 100644 compiler/testData/codegen/box/coroutines/controlFlow_inline1.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/coroutines/controlFlow_inline1.kt (93%) create mode 100644 compiler/testData/codegen/box/coroutines/controlFlow_inline2.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/coroutines/controlFlow_inline2.kt (93%) create mode 100644 compiler/testData/codegen/box/coroutines/controlFlow_inline3.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/coroutines/controlFlow_inline3.kt (94%) create mode 100644 compiler/testData/codegen/box/coroutines/controlFlow_tryCatch1.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/coroutines/controlFlow_tryCatch1.kt (94%) create mode 100644 compiler/testData/codegen/box/coroutines/controlFlow_tryCatch2.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/coroutines/controlFlow_tryCatch2.kt (94%) create mode 100644 compiler/testData/codegen/box/coroutines/controlFlow_tryCatch3.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/coroutines/controlFlow_tryCatch3.kt (95%) create mode 100644 compiler/testData/codegen/box/coroutines/controlFlow_tryCatch4.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/coroutines/controlFlow_tryCatch4.kt (95%) create mode 100644 compiler/testData/codegen/box/coroutines/controlFlow_tryCatch5.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/coroutines/controlFlow_tryCatch5.kt (95%) create mode 100644 compiler/testData/codegen/box/coroutines/controlFlow_while1.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/coroutines/controlFlow_while1.kt (95%) create mode 100644 compiler/testData/codegen/box/coroutines/controlFlow_while2.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/coroutines/controlFlow_while2.kt (95%) create mode 100644 compiler/testData/codegen/box/coroutines/coroutineContext1.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/coroutines/coroutineContext1.kt (91%) create mode 100644 compiler/testData/codegen/box/coroutines/coroutineContext2.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/coroutines/coroutineContext2.kt (92%) create mode 100644 compiler/testData/codegen/box/coroutines/correctOrder1.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/coroutines/correctOrder1.kt (94%) create mode 100644 compiler/testData/codegen/box/coroutines/degenerate1.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/coroutines/degenerate1.kt (92%) create mode 100644 compiler/testData/codegen/box/coroutines/degenerate2.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/coroutines/degenerate2.kt (93%) create mode 100644 compiler/testData/codegen/box/coroutines/functionReference_eqeq_name.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/coroutines/functionReference_eqeq_name.kt (62%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/coroutines/functionReference_invokeAsFunction.kt (76%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/coroutines/functionReference_lambdaAsSuspendLambda.kt (77%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/coroutines/functionReference_simple.kt (96%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/coroutines/kt41394.kt (96%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/coroutines/returnsNothing1.kt (96%) create mode 100644 compiler/testData/codegen/box/coroutines/returnsUnit1.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/coroutines/returnsUnit1.kt (94%) rename native/native.tests/testData/codegen/coroutines/simple.kt => compiler/testData/codegen/box/coroutines/simple2.kt (96%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/coroutines/suspendConversion.kt (78%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/coroutines/withReceiver.kt (96%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/cycles/cycle.kt (96%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/cycles/cycle_do.kt (96%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/cycles/cycle_for.kt (96%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/dataflow/scope1.kt (95%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/dataflow/uninitialized_val.kt (96%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/delegatedProperty/correctFieldsOrder.kt (96%) create mode 100644 compiler/testData/codegen/box/delegatedProperty/delegatedOverride.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/delegatedProperty/delegatedOverride.kt (94%) create mode 100644 compiler/testData/codegen/box/delegatedProperty/lazy.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/delegatedProperty/lazy.kt (91%) create mode 100644 compiler/testData/codegen/box/delegatedProperty/local.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/delegatedProperty/local.kt (92%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/delegatedProperty/map.kt (96%) create mode 100644 compiler/testData/codegen/box/delegatedProperty/observable.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/delegatedProperty/observable.kt (92%) create mode 100644 compiler/testData/codegen/box/delegatedProperty/packageLevel.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/delegatedProperty/packageLevel.kt (91%) create mode 100644 compiler/testData/codegen/box/delegatedProperty/simpleVal.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/delegatedProperty/simpleVal.kt (92%) create mode 100644 compiler/testData/codegen/box/delegatedProperty/simpleVar.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/delegatedProperty/simpleVar.kt (94%) create mode 100644 compiler/testData/codegen/box/devirtualization/anonymousObject.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/devirtualization/anonymousObject.kt (91%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/devirtualization/getter_looking_as_box_function.kt (100%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/devirtualization/inline_getter.kt (96%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/devirtualization/lateinitInterface.kt (95%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/enum/companionObject.kt (98%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/enum/enum_equals.kt (97%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/enum/interfaceCallNoEntryClass.kt (97%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/enum/interfaceCallWithEntryClass.kt (97%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/enum/kt38540.kt (99%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/enum/lambdaInDefault.kt (95%) create mode 100644 compiler/testData/codegen/box/enum/loop.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/enum/loop.kt (90%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/enum/multipleModules.kt (95%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/enum/nested.kt (95%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/enum/openMethodNoOverrides.kt (100%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/enum/reorderedArguments.kt (99%) create mode 100644 compiler/testData/codegen/box/enum/switchLowering.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/enum/switchLowering.kt (97%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/enum/test0.kt (95%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/enum/test1.kt (95%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/enum/vCallNoEntryClass.kt (96%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/enum/vCallWithEntryClass.kt (96%) rename native/native.tests/testData/codegen/enum/valueOf.kt => compiler/testData/codegen/box/enum/valueOf2.kt (97%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/enum/values.kt (97%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/enum/varargParam.kt (95%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/escapeAnalysis/recursion.kt (96%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/escapeAnalysis/stack_array.kt (96%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/escapeAnalysis/test1.kt (100%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/escapeAnalysis/test10.kt (97%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/escapeAnalysis/test11.kt (97%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/escapeAnalysis/test12.kt (100%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/escapeAnalysis/test13.kt (96%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/escapeAnalysis/test2.kt (100%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/escapeAnalysis/test3.kt (100%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/escapeAnalysis/test4.kt (100%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/escapeAnalysis/test5.kt (100%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/escapeAnalysis/test6.kt (100%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/escapeAnalysis/test7.kt (100%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/escapeAnalysis/test8.kt (100%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/escapeAnalysis/test9.kt (98%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/escapeAnalysis/zeroOutObjectOnAlloc.kt (96%) create mode 100644 compiler/testData/codegen/box/exceptions/catch1.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/exceptions/catch1.kt (93%) create mode 100644 compiler/testData/codegen/box/exceptions/catch2.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/exceptions/catch2.kt (94%) create mode 100644 compiler/testData/codegen/box/exceptions/catch7.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/exceptions/catch7.kt (90%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/exceptions/extend0.kt (95%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/exceptions/rethrow.kt (96%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/exceptions/throw0.kt (96%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/exceptions/throw_from_catch.kt (96%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/funInterface/implIsNotFunction.kt (95%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/funInterface/kt49384.kt (96%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/funInterface/kt49384_getSame.kt (96%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/funInterface/nonTrivialProjectionInSuperType.kt (96%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/function/arithmetic.kt (100%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/function/boolean.kt (100%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/function/defaults.kt (99%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/function/defaults1.kt (96%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/function/defaults10.kt (95%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/function/defaults2.kt (96%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/function/defaults3.kt (100%) create mode 100644 compiler/testData/codegen/box/function/defaults4.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/function/defaults4.kt (90%) create mode 100644 compiler/testData/codegen/box/function/defaults5.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/function/defaults5.kt (90%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/function/defaults6.kt (95%) create mode 100644 compiler/testData/codegen/box/function/defaults7.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/function/defaults7.kt (94%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/function/defaults8.kt (95%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/function/defaults9.kt (95%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/function/defaultsFromFakeOverride.kt (96%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/function/defaultsWithInlineClasses.kt (95%) create mode 100644 compiler/testData/codegen/box/function/defaultsWithVarArg1.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/function/defaultsWithVarArg1.kt (93%) create mode 100644 compiler/testData/codegen/box/function/defaultsWithVarArg2.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/function/defaultsWithVarArg2.kt (90%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/function/eqeq.kt (92%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/function/extension.kt (95%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/function/intrinsic.kt (97%) create mode 100644 compiler/testData/codegen/box/function/localFunction.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/function/localFunction.kt (92%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/function/localFunction2.kt (96%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/function/localFunction3.kt (96%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/function/minus_eq.kt (95%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/function/named.kt (94%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/function/nothingNReturningSafeCall.kt (92%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/function/plus_eq.kt (95%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/function/referenceBigArity.kt (98%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/function/sum.kt (98%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/function/sum_3const.kt (95%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/function/sum_foo_bar.kt (95%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/function/sum_func.kt (95%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/function/sum_imm.kt (94%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/function/sum_mixed.kt (94%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/function/sum_silly.kt (95%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/function/unreachableStatementAfterReturn.kt (97%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/initializers/correctOrder1.kt (95%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/initializers/correctOrder2.kt (95%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/initializers/files/globalInitedAfterAccessingFile.kt (96%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/initializers/files/globalNotInitedAfterAccessingClassInternals.kt (97%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/initializers/files/simple.kt (96%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/initializers/files/simpleMultiModule.kt (96%) create mode 100644 compiler/testData/codegen/box/initializers/initializers0.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/initializers/initializers0.kt (96%) create mode 100644 compiler/testData/codegen/box/initializers/initializers1.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/initializers/initializers1.kt (76%) create mode 100644 compiler/testData/codegen/box/initializers/initializers2.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/initializers/initializers2.kt (94%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/initializers/initializers3.kt (94%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/initializers/initializers4.kt (96%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/initializers/initializers5.kt (94%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/initializers/initializers7.kt (59%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/initializers/initializers8.kt (94%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/initializers/multipleModules1.kt (93%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/initializers/object.kt (97%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/initializers/sharedVarInInitBlock.kt (100%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/initializers/static_arrays.kt (99%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/initializers/static_list.kt (98%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/initializers/static_smallIntIdentity.kt (55%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/initializers/static_varargChange.kt (93%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/initializers/throw1.kt (97%) create mode 100644 compiler/testData/codegen/box/initializers/throw2.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/initializers/throw2.kt (93%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/inline/changingCapturedLocal.kt (96%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/inline/classDeclarationInsideInline.kt (77%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/inline/coercionToUnit.kt (96%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/inline/correctOrderFunctionReference.kt (98%) create mode 100644 compiler/testData/codegen/box/inline/defaultArgs.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/inline/defaultArgs.kt (89%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/inline/defaultArgsMultipleModules.kt (94%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/inline/genericFunctionReference.kt (96%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/inline/getClass.kt (96%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/inline/inline0.kt (96%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/inline/inline1.kt (96%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/inline/inline10.kt (96%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/inline/inline11.kt (69%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/inline/inline12.kt (96%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/inline/inline13.kt (96%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/inline/inline14.kt (97%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/inline/inline15.kt (97%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/inline/inline16.kt (97%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/inline/inline17.kt (96%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/inline/inline19.kt (96%) create mode 100644 compiler/testData/codegen/box/inline/inline2.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/inline/inline2.kt (90%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/inline/inline20.kt (96%) create mode 100644 compiler/testData/codegen/box/inline/inline21.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/inline/inline21.kt (93%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/inline/inline22.kt (96%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/inline/inline23.kt (95%) create mode 100644 compiler/testData/codegen/box/inline/inline24.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/inline/inline24.kt (91%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/inline/inline25.kt (97%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/inline/inline26.kt (96%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/inline/inline3.kt (96%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/inline/inline4.kt (96%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/inline/inline5.kt (96%) create mode 100644 compiler/testData/codegen/box/inline/inline6.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/inline/inline6.kt (92%) create mode 100644 compiler/testData/codegen/box/inline/inline7.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/inline/inline7.kt (91%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/inline/inline8.kt (96%) create mode 100644 compiler/testData/codegen/box/inline/inline9.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/inline/inline9.kt (92%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/inline/inlineCtor.kt (95%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/inline/innerInlineFunCapturesOuter.kt (62%) create mode 100644 compiler/testData/codegen/box/inline/lambdaAsAny.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/inline/lambdaAsAny.kt (87%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/inline/lambdaInDefaultValue.kt (95%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/inline/lateinitProperty.kt (98%) create mode 100644 compiler/testData/codegen/box/inline/localFunctionInInitializerBlock.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/inline/localFunctionInInitializerBlock.kt (88%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/inline/localObjectReturnedFromWhen.kt (74%) create mode 100644 compiler/testData/codegen/box/inline/propertyAccessorInline.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/inline/propertyAccessorInline.kt (90%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/inline/redundantCoercionsCleaner.kt (94%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/inline/redundantCoercionsCleanerKT48876.kt (95%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/inline/redundantCoercionsCleanerKT49356.kt (94%) create mode 100644 compiler/testData/codegen/box/inline/returnLocalClassFromBlock.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/inline/returnLocalClassFromBlock.kt (89%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/inline/sharedVar.kt (97%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/inline/statementAsLastExprInBlock.kt (96%) create mode 100644 compiler/testData/codegen/box/inline/twiceInlinedObject.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/inline/twiceInlinedObject.kt (91%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/inline/typeSubstitutionInFakeOverride.kt (96%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/inlineClass/customEquals.kt (89%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/inlineClass/defaultEquals.kt (97%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/inlineClass/nestedInlineClasses.kt (96%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/inlineClass/secondaryConstructorWithGenerics.kt (96%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/innerClass/doubleInner.kt (97%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/innerClass/generic.kt (96%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/innerClass/getOuterVal.kt (95%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/innerClass/inheritanceMultipleModules1.kt (96%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/innerClass/inheritanceMultipleModules2.kt (100%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/innerClass/inheritanceMultipleModules3.kt (96%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/innerClass/multipleModules.kt (100%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/innerClass/noPrimaryConstructor.kt (97%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/innerClass/qualifiedThis.kt (98%) create mode 100644 compiler/testData/codegen/box/innerClass/secondaryConstructor.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/innerClass/secondaryConstructor.kt (92%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/innerClass/simple.kt (94%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/innerClass/superOuter.kt (96%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/interfaceCallsNCasts/conservativeItable.kt (99%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/interfaceCallsNCasts/diamond.kt (97%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/interfaceCallsNCasts/finalMethod.kt (96%) create mode 100644 compiler/testData/codegen/box/interfaceCallsNCasts/interface0.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/interfaceCallsNCasts/interface0.kt (89%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/kclass/kClassEnumArgument.kt (92%) create mode 100644 compiler/testData/codegen/box/kclass/kclass1.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/kclass/kclass1.kt (65%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/ktype/ktype1_basics1.kt (79%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/ktype/ktype1_inner.kt (95%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/ktype/nonReified_class.kt (94%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/ktype/nonReified_equality.kt (87%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/ktype/nonReified_fun.kt (94%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/ktype/nonReified_recursionInReified.kt (93%) create mode 100644 compiler/testData/codegen/box/ktype/nonReified_reifiedUpperBound.kt create mode 100644 compiler/testData/codegen/box/lambda/lambda1.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/lambda/lambda1.kt (87%) create mode 100644 compiler/testData/codegen/box/lambda/lambda10.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/lambda/lambda10.kt (90%) create mode 100644 compiler/testData/codegen/box/lambda/lambda11.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/lambda/lambda11.kt (91%) create mode 100644 compiler/testData/codegen/box/lambda/lambda12.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/lambda/lambda12.kt (90%) create mode 100644 compiler/testData/codegen/box/lambda/lambda13.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/lambda/lambda13.kt (88%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/lambda/lambda14.kt (96%) create mode 100644 compiler/testData/codegen/box/lambda/lambda2.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/lambda/lambda2.kt (72%) create mode 100644 compiler/testData/codegen/box/lambda/lambda3.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/lambda/lambda3.kt (87%) create mode 100644 compiler/testData/codegen/box/lambda/lambda4.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/lambda/lambda4.kt (94%) create mode 100644 compiler/testData/codegen/box/lambda/lambda5.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/lambda/lambda5.kt (88%) create mode 100644 compiler/testData/codegen/box/lambda/lambda6.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/lambda/lambda6.kt (90%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/lambda/lambda7.kt (95%) create mode 100644 compiler/testData/codegen/box/lambda/lambda8.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/lambda/lambda8.kt (94%) create mode 100644 compiler/testData/codegen/box/lambda/lambda9.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/lambda/lambda9.kt (94%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/lambda/lambda_kt49360_trivial.kt (91%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/lambda/lambda_kt49360_withFlow.kt (98%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/lambda/lambda_kt49360_wrapBlock.kt (92%) create mode 100644 compiler/testData/codegen/box/lateinit/globalIsInitialized.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/lateinit/globalIsInitialized.kt (90%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/lateinit/inBaseClass.kt (96%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/lateinit/initialized.kt (95%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/lateinit/innerIsInitialized.kt (97%) create mode 100644 compiler/testData/codegen/box/lateinit/isInitialized.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/lateinit/isInitialized.kt (91%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/lateinit/localCapturedInitialized.kt (94%) create mode 100644 compiler/testData/codegen/box/lateinit/localCapturedNotInitialized.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/lateinit/localCapturedNotInitialized.kt (90%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/lateinit/localInitialized.kt (94%) create mode 100644 compiler/testData/codegen/box/lateinit/localNotInitialized.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/lateinit/localNotInitialized.kt (89%) create mode 100644 compiler/testData/codegen/box/lateinit/notInitialized.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/lateinit/notInitialized.kt (90%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/literals/listof1.kt (100%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/literals/strdedup1.kt (96%) create mode 100644 compiler/testData/codegen/box/localClass/innerTakesCapturedFromOuter.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/localClass/innerTakesCapturedFromOuter.kt (93%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/localClass/innerWithCapture.kt (78%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/localClass/localFunctionCallFromLocalClass.kt (95%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/localClass/localFunctionInLocalClass.kt (97%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/localClass/localHierarchy.kt (96%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/localClass/noPrimaryConstructor.kt (83%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/localClass/objectExpressionInInitializer.kt (97%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/localClass/objectExpressionInProperty.kt (97%) create mode 100644 compiler/testData/codegen/box/localClass/tryCatch.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/localClass/tryCatch.kt (92%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/localClass/virtualCallFromConstructor.kt (97%) create mode 100644 compiler/testData/codegen/box/localEscapeAnalysis/arraysFieldWrite.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/localEscapeAnalysis/arraysFieldWrite.kt (98%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/lower/localDelegatedProperty.kt (92%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/mangling/multipleConstructors.kt (97%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/object/constructor0.kt (95%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/object/fields.kt (96%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/object/fields1.kt (97%) create mode 100644 compiler/testData/codegen/box/object/fields2.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/object/fields2.kt (95%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/object/globalInitializer.kt (100%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/object/init0.kt (95%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/object/initialization.kt (97%) create mode 100644 compiler/testData/codegen/box/object/initialization1.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/object/initialization1.kt (93%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/object/method_call.kt (95%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/objectExpression/expr1.kt (96%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/objectExpression/expr2.kt (96%) create mode 100644 compiler/testData/codegen/box/objectExpression/expr3.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/objectExpression/expr3.kt (92%) create mode 100644 compiler/testData/codegen/box/propertyCallableReference/dynamicReceiver.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/propertyCallableReference/dynamicReceiver.kt (89%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/propertyCallableReference/multipleModules.kt (100%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/propertyCallableReference/valClass.kt (95%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/propertyCallableReference/valExtension.kt (96%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/propertyCallableReference/valModule.kt (94%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/propertyCallableReference/varClass.kt (96%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/propertyCallableReference/varExtension.kt (97%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/propertyCallableReference/varModule.kt (95%) create mode 100644 compiler/testData/codegen/box/serialization/deserializedMembers.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/serialization/deserializedMembers.kt (92%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/serialization/serializedCatch.kt (100%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/serialization/serializedCharConstant.kt (93%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/serialization/serializedDefaultArgs.kt (95%) create mode 100644 compiler/testData/codegen/box/serialization/serializedDoWhile.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/serialization/serializedDoWhile.kt (84%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/serialization/serializedEnumOrdinal.kt (97%) create mode 100644 compiler/testData/codegen/box/serialization/serializedVararg.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/serialization/serializedVararg.kt (90%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/stringTrim/stringTrim.kt (97%) create mode 100644 compiler/testData/codegen/box/try/catch3.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/try/catch3.kt (92%) create mode 100644 compiler/testData/codegen/box/try/catch4.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/try/catch4.kt (93%) create mode 100644 compiler/testData/codegen/box/try/catch5.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/try/catch5.kt (94%) create mode 100644 compiler/testData/codegen/box/try/catch6.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/try/catch6.kt (94%) create mode 100644 compiler/testData/codegen/box/try/catch8.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/try/catch8.kt (91%) create mode 100644 compiler/testData/codegen/box/try/finally1.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/try/finally1.kt (90%) create mode 100644 compiler/testData/codegen/box/try/finally10.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/try/finally10.kt (91%) create mode 100644 compiler/testData/codegen/box/try/finally11.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/try/finally11.kt (93%) create mode 100644 compiler/testData/codegen/box/try/finally2.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/try/finally2.kt (92%) create mode 100644 compiler/testData/codegen/box/try/finally3.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/try/finally3.kt (93%) create mode 100644 compiler/testData/codegen/box/try/finally4.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/try/finally4.kt (95%) create mode 100644 compiler/testData/codegen/box/try/finally5.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/try/finally5.kt (91%) create mode 100644 compiler/testData/codegen/box/try/finally6.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/try/finally6.kt (92%) create mode 100644 compiler/testData/codegen/box/try/finally7.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/try/finally7.kt (92%) create mode 100644 compiler/testData/codegen/box/try/finally8.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/try/finally8.kt (92%) create mode 100644 compiler/testData/codegen/box/try/finally9.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/try/finally9.kt (93%) create mode 100644 compiler/testData/codegen/box/try/returnsDifferentTypes.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/try/returnsDifferentTypes.kt (95%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/try/try1.kt (95%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/try/try2.kt (95%) rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/try/try3.kt (95%) create mode 100644 compiler/testData/codegen/box/try/try4.jvm_abi.txt rename {native/native.tests/testData/codegen => compiler/testData/codegen/box}/try/try4.kt (90%) delete mode 100644 native/native.tests/testData/codegen/ktype/nonReified_reifiedUpperBound.kt 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 ce9eb8524b9..c3bf8d24def 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 @@ -106,6 +106,12 @@ public class LLFirBlackBoxCodegenBasedTestGenerated extends AbstractLLFirBlackBo runTest("compiler/testData/codegen/box/annotations/annotationWithVarargAsDefaultValue.kt"); } + @Test + @TestMetadata("annotations0.kt") + public void testAnnotations0() { + runTest("compiler/testData/codegen/box/annotations/annotations0.kt"); + } + @Test @TestMetadata("annotationsOnDefault.kt") public void testAnnotationsOnDefault() { @@ -941,6 +947,82 @@ public class LLFirBlackBoxCodegenBasedTestGenerated extends AbstractLLFirBlackBo } } + @Nested + @TestMetadata("compiler/testData/codegen/box/arithmetic") + @TestDataPath("$PROJECT_ROOT") + public class Arithmetic { + @Test + public void testAllFilesPresentInArithmetic() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/arithmetic"), Pattern.compile("^(.+)\\.kt$"), null, true); + } + + @Test + @TestMetadata("basic_charConversions.kt") + public void testBasic_charConversions() { + runTest("compiler/testData/codegen/box/arithmetic/basic_charConversions.kt"); + } + + @Test + @TestMetadata("basic_charCornerCases.kt") + public void testBasic_charCornerCases() { + runTest("compiler/testData/codegen/box/arithmetic/basic_charCornerCases.kt"); + } + + @Test + @TestMetadata("basic_compareIntToFloat.kt") + public void testBasic_compareIntToFloat() { + runTest("compiler/testData/codegen/box/arithmetic/basic_compareIntToFloat.kt"); + } + + @Test + @TestMetadata("basic_doubleBasic.kt") + public void testBasic_doubleBasic() { + runTest("compiler/testData/codegen/box/arithmetic/basic_doubleBasic.kt"); + } + + @Test + @TestMetadata("basic_integralToFloat.kt") + public void testBasic_integralToFloat() { + runTest("compiler/testData/codegen/box/arithmetic/basic_integralToFloat.kt"); + } + + @Test + @TestMetadata("basic_kt37412.kt") + public void testBasic_kt37412() { + runTest("compiler/testData/codegen/box/arithmetic/basic_kt37412.kt"); + } + + @Test + @TestMetadata("basic_selfComparison.kt") + public void testBasic_selfComparison() { + runTest("compiler/testData/codegen/box/arithmetic/basic_selfComparison.kt"); + } + + @Test + @TestMetadata("basic_shifts.kt") + public void testBasic_shifts() { + runTest("compiler/testData/codegen/box/arithmetic/basic_shifts.kt"); + } + + @Test + @TestMetadata("basic_uintTests.kt") + public void testBasic_uintTests() { + runTest("compiler/testData/codegen/box/arithmetic/basic_uintTests.kt"); + } + + @Test + @TestMetadata("division.kt") + public void testDivision() { + runTest("compiler/testData/codegen/box/arithmetic/division.kt"); + } + + @Test + @TestMetadata("github1856.kt") + public void testGithub1856() { + runTest("compiler/testData/codegen/box/arithmetic/github1856.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/arrays") @TestDataPath("$PROJECT_ROOT") @@ -1793,6 +1875,302 @@ public class LLFirBlackBoxCodegenBasedTestGenerated extends AbstractLLFirBlackBo } } + @Nested + @TestMetadata("compiler/testData/codegen/box/basics") + @TestDataPath("$PROJECT_ROOT") + public class Basics { + @Test + public void testAllFilesPresentInBasics() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/basics"), Pattern.compile("^(.+)\\.kt$"), null, true); + } + + @Test + @TestMetadata("array_to_any.kt") + public void testArray_to_any() { + runTest("compiler/testData/codegen/box/basics/array_to_any.kt"); + } + + @Test + @TestMetadata("canonical_name.kt") + public void testCanonical_name() { + runTest("compiler/testData/codegen/box/basics/canonical_name.kt"); + } + + @Test + @TestMetadata("cast_null.kt") + public void testCast_null() { + runTest("compiler/testData/codegen/box/basics/cast_null.kt"); + } + + @Test + @TestMetadata("cast_simple.kt") + public void testCast_simple() { + runTest("compiler/testData/codegen/box/basics/cast_simple.kt"); + } + + @Test + @TestMetadata("check_type.kt") + public void testCheck_type() { + runTest("compiler/testData/codegen/box/basics/check_type.kt"); + } + + @Test + @TestMetadata("companion.kt") + public void testCompanion() { + runTest("compiler/testData/codegen/box/basics/companion.kt"); + } + + @Test + @TestMetadata("concatenation.kt") + public void testConcatenation() { + runTest("compiler/testData/codegen/box/basics/concatenation.kt"); + } + + @Test + @TestMetadata("const_infinity.kt") + public void testConst_infinity() { + runTest("compiler/testData/codegen/box/basics/const_infinity.kt"); + } + + @Test + @TestMetadata("expression_as_statement.kt") + public void testExpression_as_statement() { + runTest("compiler/testData/codegen/box/basics/expression_as_statement.kt"); + } + + @Test + @TestMetadata("k42000_1.kt") + public void testK42000_1() { + runTest("compiler/testData/codegen/box/basics/k42000_1.kt"); + } + + @Test + @TestMetadata("k42000_2.kt") + public void testK42000_2() { + runTest("compiler/testData/codegen/box/basics/k42000_2.kt"); + } + + @Test + @TestMetadata("local_variable.kt") + public void testLocal_variable() { + runTest("compiler/testData/codegen/box/basics/local_variable.kt"); + } + + @Test + @TestMetadata("null_check.kt") + public void testNull_check() { + runTest("compiler/testData/codegen/box/basics/null_check.kt"); + } + + @Test + @TestMetadata("safe_cast.kt") + public void testSafe_cast() { + runTest("compiler/testData/codegen/box/basics/safe_cast.kt"); + } + + @Test + @TestMetadata("spread_operator_0.kt") + public void testSpread_operator_0() { + runTest("compiler/testData/codegen/box/basics/spread_operator_0.kt"); + } + + @Test + @TestMetadata("statements0.kt") + public void testStatements0() { + runTest("compiler/testData/codegen/box/basics/statements0.kt"); + } + + @Test + @TestMetadata("superFunCall.kt") + public void testSuperFunCall() { + runTest("compiler/testData/codegen/box/basics/superFunCall.kt"); + } + + @Test + @TestMetadata("superGetterCall.kt") + public void testSuperGetterCall() { + runTest("compiler/testData/codegen/box/basics/superGetterCall.kt"); + } + + @Test + @TestMetadata("superSetterCall.kt") + public void testSuperSetterCall() { + runTest("compiler/testData/codegen/box/basics/superSetterCall.kt"); + } + + @Test + @TestMetadata("typealias1.kt") + public void testTypealias1() { + runTest("compiler/testData/codegen/box/basics/typealias1.kt"); + } + + @Test + @TestMetadata("unchecked_cast1.kt") + public void testUnchecked_cast1() { + runTest("compiler/testData/codegen/box/basics/unchecked_cast1.kt"); + } + + @Test + @TestMetadata("unchecked_cast2.kt") + public void testUnchecked_cast2() { + runTest("compiler/testData/codegen/box/basics/unchecked_cast2.kt"); + } + + @Test + @TestMetadata("unchecked_cast3.kt") + public void testUnchecked_cast3() { + runTest("compiler/testData/codegen/box/basics/unchecked_cast3.kt"); + } + + @Test + @TestMetadata("unchecked_cast4.kt") + public void testUnchecked_cast4() { + runTest("compiler/testData/codegen/box/basics/unchecked_cast4.kt"); + } + + @Test + @TestMetadata("unit1.kt") + public void testUnit1() { + runTest("compiler/testData/codegen/box/basics/unit1.kt"); + } + + @Test + @TestMetadata("unit2.kt") + public void testUnit2() { + runTest("compiler/testData/codegen/box/basics/unit2.kt"); + } + + @Test + @TestMetadata("unit3.kt") + public void testUnit3() { + runTest("compiler/testData/codegen/box/basics/unit3.kt"); + } + + @Test + @TestMetadata("unit4.kt") + public void testUnit4() { + runTest("compiler/testData/codegen/box/basics/unit4.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/bce") + @TestDataPath("$PROJECT_ROOT") + public class Bce { + @Test + public void testAllFilesPresentInBce() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/bce"), Pattern.compile("^(.+)\\.kt$"), null, true); + } + + @Test + @TestMetadata("bceCases.kt") + public void testBceCases() { + runTest("compiler/testData/codegen/box/bce/bceCases.kt"); + } + + @Test + @TestMetadata("customGetter.kt") + public void testCustomGetter() { + runTest("compiler/testData/codegen/box/bce/customGetter.kt"); + } + + @Test + @TestMetadata("delegatedProperty.kt") + public void testDelegatedProperty() { + runTest("compiler/testData/codegen/box/bce/delegatedProperty.kt"); + } + + @Test + @TestMetadata("differentArrays.kt") + public void testDifferentArrays() { + runTest("compiler/testData/codegen/box/bce/differentArrays.kt"); + } + + @Test + @TestMetadata("differentObjects.kt") + public void testDifferentObjects() { + runTest("compiler/testData/codegen/box/bce/differentObjects.kt"); + } + + @Test + @TestMetadata("forDownToSize.kt") + public void testForDownToSize() { + runTest("compiler/testData/codegen/box/bce/forDownToSize.kt"); + } + + @Test + @TestMetadata("forDownToWithStep.kt") + public void testForDownToWithStep() { + runTest("compiler/testData/codegen/box/bce/forDownToWithStep.kt"); + } + + @Test + @TestMetadata("forEachIndexedTest.kt") + public void testForEachIndexedTest() { + runTest("compiler/testData/codegen/box/bce/forEachIndexedTest.kt"); + } + + @Test + @TestMetadata("forEachIndicies.kt") + public void testForEachIndicies() { + runTest("compiler/testData/codegen/box/bce/forEachIndicies.kt"); + } + + @Test + @TestMetadata("forIndiciesWithStep.kt") + public void testForIndiciesWithStep() { + runTest("compiler/testData/codegen/box/bce/forIndiciesWithStep.kt"); + } + + @Test + @TestMetadata("forRangeToSize.kt") + public void testForRangeToSize() { + runTest("compiler/testData/codegen/box/bce/forRangeToSize.kt"); + } + + @Test + @TestMetadata("forRangeToWithStep.kt") + public void testForRangeToWithStep() { + runTest("compiler/testData/codegen/box/bce/forRangeToWithStep.kt"); + } + + @Test + @TestMetadata("forReversed.kt") + public void testForReversed() { + runTest("compiler/testData/codegen/box/bce/forReversed.kt"); + } + + @Test + @TestMetadata("forUntilSize.kt") + public void testForUntilSize() { + runTest("compiler/testData/codegen/box/bce/forUntilSize.kt"); + } + + @Test + @TestMetadata("forUntilWithStep.kt") + public void testForUntilWithStep() { + runTest("compiler/testData/codegen/box/bce/forUntilWithStep.kt"); + } + + @Test + @TestMetadata("forWithIndex.kt") + public void testForWithIndex() { + runTest("compiler/testData/codegen/box/bce/forWithIndex.kt"); + } + + @Test + @TestMetadata("inheritance.kt") + public void testInheritance() { + runTest("compiler/testData/codegen/box/bce/inheritance.kt"); + } + + @Test + @TestMetadata("withGetter.kt") + public void testWithGetter() { + runTest("compiler/testData/codegen/box/bce/withGetter.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/binaryOp") @TestDataPath("$PROJECT_ROOT") @@ -1989,6 +2367,124 @@ public class LLFirBlackBoxCodegenBasedTestGenerated extends AbstractLLFirBlackBo } } + @Nested + @TestMetadata("compiler/testData/codegen/box/boxing") + @TestDataPath("$PROJECT_ROOT") + public class Boxing { + @Test + public void testAllFilesPresentInBoxing() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/boxing"), Pattern.compile("^(.+)\\.kt$"), null, true); + } + + @Test + @TestMetadata("box_cache0.kt") + public void testBox_cache0() { + runTest("compiler/testData/codegen/box/boxing/box_cache0.kt"); + } + + @Test + @TestMetadata("boxing0.kt") + public void testBoxing0() { + runTest("compiler/testData/codegen/box/boxing/boxing0.kt"); + } + + @Test + @TestMetadata("boxing1.kt") + public void testBoxing1() { + runTest("compiler/testData/codegen/box/boxing/boxing1.kt"); + } + + @Test + @TestMetadata("boxing10.kt") + public void testBoxing10() { + runTest("compiler/testData/codegen/box/boxing/boxing10.kt"); + } + + @Test + @TestMetadata("boxing11.kt") + public void testBoxing11() { + runTest("compiler/testData/codegen/box/boxing/boxing11.kt"); + } + + @Test + @TestMetadata("boxing12.kt") + public void testBoxing12() { + runTest("compiler/testData/codegen/box/boxing/boxing12.kt"); + } + + @Test + @TestMetadata("boxing13.kt") + public void testBoxing13() { + runTest("compiler/testData/codegen/box/boxing/boxing13.kt"); + } + + @Test + @TestMetadata("boxing14.kt") + public void testBoxing14() { + runTest("compiler/testData/codegen/box/boxing/boxing14.kt"); + } + + @Test + @TestMetadata("boxing15.kt") + public void testBoxing15() { + runTest("compiler/testData/codegen/box/boxing/boxing15.kt"); + } + + @Test + @TestMetadata("boxing2.kt") + public void testBoxing2() { + runTest("compiler/testData/codegen/box/boxing/boxing2.kt"); + } + + @Test + @TestMetadata("boxing3.kt") + public void testBoxing3() { + runTest("compiler/testData/codegen/box/boxing/boxing3.kt"); + } + + @Test + @TestMetadata("boxing4.kt") + public void testBoxing4() { + runTest("compiler/testData/codegen/box/boxing/boxing4.kt"); + } + + @Test + @TestMetadata("boxing5.kt") + public void testBoxing5() { + runTest("compiler/testData/codegen/box/boxing/boxing5.kt"); + } + + @Test + @TestMetadata("boxing6.kt") + public void testBoxing6() { + runTest("compiler/testData/codegen/box/boxing/boxing6.kt"); + } + + @Test + @TestMetadata("boxing7.kt") + public void testBoxing7() { + runTest("compiler/testData/codegen/box/boxing/boxing7.kt"); + } + + @Test + @TestMetadata("boxing8.kt") + public void testBoxing8() { + runTest("compiler/testData/codegen/box/boxing/boxing8.kt"); + } + + @Test + @TestMetadata("boxing9.kt") + public void testBoxing9() { + runTest("compiler/testData/codegen/box/boxing/boxing9.kt"); + } + + @Test + @TestMetadata("kt53100_casts.kt") + public void testKt53100_casts() { + runTest("compiler/testData/codegen/box/boxing/kt53100_casts.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/boxingOptimization") @TestDataPath("$PROJECT_ROOT") @@ -2269,6 +2765,88 @@ public class LLFirBlackBoxCodegenBasedTestGenerated extends AbstractLLFirBlackBo } } + @Nested + @TestMetadata("compiler/testData/codegen/box/branching") + @TestDataPath("$PROJECT_ROOT") + public class Branching { + @Test + @TestMetadata("advanced_when2.kt") + public void testAdvanced_when2() { + runTest("compiler/testData/codegen/box/branching/advanced_when2.kt"); + } + + @Test + @TestMetadata("advanced_when5.kt") + public void testAdvanced_when5() { + runTest("compiler/testData/codegen/box/branching/advanced_when5.kt"); + } + + @Test + public void testAllFilesPresentInBranching() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/branching"), Pattern.compile("^(.+)\\.kt$"), null, true); + } + + @Test + @TestMetadata("if_else.kt") + public void testIf_else() { + runTest("compiler/testData/codegen/box/branching/if_else.kt"); + } + + @Test + @TestMetadata("when2.kt") + public void testWhen2() { + runTest("compiler/testData/codegen/box/branching/when2.kt"); + } + + @Test + @TestMetadata("when4.kt") + public void testWhen4() { + runTest("compiler/testData/codegen/box/branching/when4.kt"); + } + + @Test + @TestMetadata("when5.kt") + public void testWhen5() { + runTest("compiler/testData/codegen/box/branching/when5.kt"); + } + + @Test + @TestMetadata("when6.kt") + public void testWhen6() { + runTest("compiler/testData/codegen/box/branching/when6.kt"); + } + + @Test + @TestMetadata("when7.kt") + public void testWhen7() { + runTest("compiler/testData/codegen/box/branching/when7.kt"); + } + + @Test + @TestMetadata("when8.kt") + public void testWhen8() { + runTest("compiler/testData/codegen/box/branching/when8.kt"); + } + + @Test + @TestMetadata("when9.kt") + public void testWhen9() { + runTest("compiler/testData/codegen/box/branching/when9.kt"); + } + + @Test + @TestMetadata("when_through.kt") + public void testWhen_through() { + runTest("compiler/testData/codegen/box/branching/when_through.kt"); + } + + @Test + @TestMetadata("when_with_try1.kt") + public void testWhen_with_try1() { + runTest("compiler/testData/codegen/box/branching/when_with_try1.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/bridges") @TestDataPath("$PROJECT_ROOT") @@ -2542,6 +3120,18 @@ public class LLFirBlackBoxCodegenBasedTestGenerated extends AbstractLLFirBlackBo runTest("compiler/testData/codegen/box/bridges/methodWithDefaultParameter.kt"); } + @Test + @TestMetadata("multipleModules1.kt") + public void testMultipleModules1() { + runTest("compiler/testData/codegen/box/bridges/multipleModules1.kt"); + } + + @Test + @TestMetadata("multipleModules2.kt") + public void testMultipleModules2() { + runTest("compiler/testData/codegen/box/bridges/multipleModules2.kt"); + } + @Test @TestMetadata("nestedClassTypeParameters.kt") public void testNestedClassTypeParameters() { @@ -2608,6 +3198,12 @@ public class LLFirBlackBoxCodegenBasedTestGenerated extends AbstractLLFirBlackBo runTest("compiler/testData/codegen/box/bridges/propertySetter.kt"); } + @Test + @TestMetadata("returnTypeSignature.kt") + public void testReturnTypeSignature() { + runTest("compiler/testData/codegen/box/bridges/returnTypeSignature.kt"); + } + @Test @TestMetadata("simple.kt") public void testSimple() { @@ -2650,6 +3246,18 @@ public class LLFirBlackBoxCodegenBasedTestGenerated extends AbstractLLFirBlackBo runTest("compiler/testData/codegen/box/bridges/simpleUpperBound.kt"); } + @Test + @TestMetadata("special.kt") + public void testSpecial() { + runTest("compiler/testData/codegen/box/bridges/special.kt"); + } + + @Test + @TestMetadata("specialGeneric.kt") + public void testSpecialGeneric() { + runTest("compiler/testData/codegen/box/bridges/specialGeneric.kt"); + } + @Test @TestMetadata("strListContains.kt") public void testStrListContains() { @@ -2662,6 +3270,120 @@ public class LLFirBlackBoxCodegenBasedTestGenerated extends AbstractLLFirBlackBo runTest("compiler/testData/codegen/box/bridges/strListRemove.kt"); } + @Test + @TestMetadata("test0.kt") + public void testTest0() { + runTest("compiler/testData/codegen/box/bridges/test0.kt"); + } + + @Test + @TestMetadata("test1.kt") + public void testTest1() { + runTest("compiler/testData/codegen/box/bridges/test1.kt"); + } + + @Test + @TestMetadata("test10.kt") + public void testTest10() { + runTest("compiler/testData/codegen/box/bridges/test10.kt"); + } + + @Test + @TestMetadata("test11.kt") + public void testTest11() { + runTest("compiler/testData/codegen/box/bridges/test11.kt"); + } + + @Test + @TestMetadata("test12.kt") + public void testTest12() { + runTest("compiler/testData/codegen/box/bridges/test12.kt"); + } + + @Test + @TestMetadata("test13.kt") + public void testTest13() { + runTest("compiler/testData/codegen/box/bridges/test13.kt"); + } + + @Test + @TestMetadata("test14.kt") + public void testTest14() { + runTest("compiler/testData/codegen/box/bridges/test14.kt"); + } + + @Test + @TestMetadata("test15.kt") + public void testTest15() { + runTest("compiler/testData/codegen/box/bridges/test15.kt"); + } + + @Test + @TestMetadata("test16.kt") + public void testTest16() { + runTest("compiler/testData/codegen/box/bridges/test16.kt"); + } + + @Test + @TestMetadata("test17.kt") + public void testTest17() { + runTest("compiler/testData/codegen/box/bridges/test17.kt"); + } + + @Test + @TestMetadata("test18.kt") + public void testTest18() { + runTest("compiler/testData/codegen/box/bridges/test18.kt"); + } + + @Test + @TestMetadata("test2.kt") + public void testTest2() { + runTest("compiler/testData/codegen/box/bridges/test2.kt"); + } + + @Test + @TestMetadata("test3.kt") + public void testTest3() { + runTest("compiler/testData/codegen/box/bridges/test3.kt"); + } + + @Test + @TestMetadata("test4.kt") + public void testTest4() { + runTest("compiler/testData/codegen/box/bridges/test4.kt"); + } + + @Test + @TestMetadata("test5.kt") + public void testTest5() { + runTest("compiler/testData/codegen/box/bridges/test5.kt"); + } + + @Test + @TestMetadata("test6.kt") + public void testTest6() { + runTest("compiler/testData/codegen/box/bridges/test6.kt"); + } + + @Test + @TestMetadata("test7.kt") + public void testTest7() { + runTest("compiler/testData/codegen/box/bridges/test7.kt"); + } + + @Test + @TestMetadata("test8.kt") + public void testTest8() { + runTest("compiler/testData/codegen/box/bridges/test8.kt"); + } + + @Test + @TestMetadata("test9.kt") + public void testTest9() { + runTest("compiler/testData/codegen/box/bridges/test9.kt"); + } + @Test @TestMetadata("traitImplInheritsTraitImpl.kt") public void testTraitImplInheritsTraitImpl() { @@ -6383,6 +7105,46 @@ public class LLFirBlackBoxCodegenBasedTestGenerated extends AbstractLLFirBlackBo } } + @Nested + @TestMetadata("compiler/testData/codegen/box/classDelegation") + @TestDataPath("$PROJECT_ROOT") + public class ClassDelegation { + @Test + public void testAllFilesPresentInClassDelegation() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/classDelegation"), Pattern.compile("^(.+)\\.kt$"), null, true); + } + + @Test + @TestMetadata("generic.kt") + public void testGeneric() { + runTest("compiler/testData/codegen/box/classDelegation/generic.kt"); + } + + @Test + @TestMetadata("method.kt") + public void testMethod() { + runTest("compiler/testData/codegen/box/classDelegation/method.kt"); + } + + @Test + @TestMetadata("multipleModules.kt") + public void testMultipleModules() { + runTest("compiler/testData/codegen/box/classDelegation/multipleModules.kt"); + } + + @Test + @TestMetadata("property.kt") + public void testProperty() { + runTest("compiler/testData/codegen/box/classDelegation/property.kt"); + } + + @Test + @TestMetadata("withBridge.kt") + public void testWithBridge() { + runTest("compiler/testData/codegen/box/classDelegation/withBridge.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/classLiteral") @TestDataPath("$PROJECT_ROOT") @@ -9610,6 +10372,12 @@ public class LLFirBlackBoxCodegenBasedTestGenerated extends AbstractLLFirBlackBo runTest("compiler/testData/codegen/box/contracts/constructorArgument.kt"); } + @Test + @TestMetadata("contractForCast.kt") + public void testContractForCast() { + runTest("compiler/testData/codegen/box/contracts/contractForCast.kt"); + } + @Test @TestMetadata("destructuredVariable.kt") public void testDestructuredVariable() { @@ -9652,6 +10420,12 @@ public class LLFirBlackBoxCodegenBasedTestGenerated extends AbstractLLFirBlackBo runTest("compiler/testData/codegen/box/contracts/functionParameter.kt"); } + @Test + @TestMetadata("isNullString.kt") + public void testIsNullString() { + runTest("compiler/testData/codegen/box/contracts/isNullString.kt"); + } + @Test @TestMetadata("kt39374.kt") public void testKt39374() { @@ -9694,6 +10468,24 @@ public class LLFirBlackBoxCodegenBasedTestGenerated extends AbstractLLFirBlackBo runTest("compiler/testData/codegen/box/contracts/nestedLambdaInNonInlineCallExactlyOnce.kt"); } + @Test + @TestMetadata("nonNullSmartCast.kt") + public void testNonNullSmartCast() { + runTest("compiler/testData/codegen/box/contracts/nonNullSmartCast.kt"); + } + + @Test + @TestMetadata("require.kt") + public void testRequire() { + runTest("compiler/testData/codegen/box/contracts/require.kt"); + } + + @Test + @TestMetadata("runLambdaForVal.kt") + public void testRunLambdaForVal() { + runTest("compiler/testData/codegen/box/contracts/runLambdaForVal.kt"); + } + @Test @TestMetadata("valInWhen.kt") public void testValInWhen() { @@ -11141,6 +11933,124 @@ public class LLFirBlackBoxCodegenBasedTestGenerated extends AbstractLLFirBlackBo } } + @Nested + @TestMetadata("compiler/testData/codegen/box/controlflow") + @TestDataPath("$PROJECT_ROOT") + public class Controlflow { + @Test + public void testAllFilesPresentInControlflow() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/controlflow"), Pattern.compile("^(.+)\\.kt$"), null, true); + } + + @Test + @TestMetadata("break.kt") + public void testBreak() { + runTest("compiler/testData/codegen/box/controlflow/break.kt"); + } + + @Test + @TestMetadata("break1.kt") + public void testBreak1() { + runTest("compiler/testData/codegen/box/controlflow/break1.kt"); + } + + @Test + @TestMetadata("for_loops.kt") + public void testFor_loops() { + runTest("compiler/testData/codegen/box/controlflow/for_loops.kt"); + } + + @Test + @TestMetadata("for_loops_array_break_continue.kt") + public void testFor_loops_array_break_continue() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_array_break_continue.kt"); + } + + @Test + @TestMetadata("for_loops_array_indices.kt") + public void testFor_loops_array_indices() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_array_indices.kt"); + } + + @Test + @TestMetadata("for_loops_array_mutation.kt") + public void testFor_loops_array_mutation() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_array_mutation.kt"); + } + + @Test + @TestMetadata("for_loops_array_nested.kt") + public void testFor_loops_array_nested() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_array_nested.kt"); + } + + @Test + @TestMetadata("for_loops_array_nullable.kt") + public void testFor_loops_array_nullable() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_array_nullable.kt"); + } + + @Test + @TestMetadata("for_loops_array_side_effects.kt") + public void testFor_loops_array_side_effects() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_array_side_effects.kt"); + } + + @Test + @TestMetadata("for_loops_call_order.kt") + public void testFor_loops_call_order() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_call_order.kt"); + } + + @Test + @TestMetadata("for_loops_coroutines.kt") + public void testFor_loops_coroutines() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_coroutines.kt"); + } + + @Test + @TestMetadata("for_loops_empty_range.kt") + public void testFor_loops_empty_range() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_empty_range.kt"); + } + + @Test + @TestMetadata("for_loops_errors.kt") + public void testFor_loops_errors() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_errors.kt"); + } + + @Test + @TestMetadata("for_loops_let_with_nullable.kt") + public void testFor_loops_let_with_nullable() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_let_with_nullable.kt"); + } + + @Test + @TestMetadata("for_loops_nested.kt") + public void testFor_loops_nested() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_nested.kt"); + } + + @Test + @TestMetadata("for_loops_overflow.kt") + public void testFor_loops_overflow() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_overflow.kt"); + } + + @Test + @TestMetadata("for_loops_types.kt") + public void testFor_loops_types() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_types.kt"); + } + + @Test + @TestMetadata("unreachable1.kt") + public void testUnreachable1() { + runTest("compiler/testData/codegen/box/controlflow/unreachable1.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/coroutines") @TestDataPath("$PROJECT_ROOT") @@ -11162,6 +12072,12 @@ public class LLFirBlackBoxCodegenBasedTestGenerated extends AbstractLLFirBlackBo KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines"), Pattern.compile("^(.+)\\.kt$"), null, true); } + @Test + @TestMetadata("anonymousObject.kt") + public void testAnonymousObject() { + runTest("compiler/testData/codegen/box/coroutines/anonymousObject.kt"); + } + @Test @TestMetadata("async.kt") public void testAsync() { @@ -11258,12 +12174,144 @@ public class LLFirBlackBoxCodegenBasedTestGenerated extends AbstractLLFirBlackBo runTest("compiler/testData/codegen/box/coroutines/coercionToUnit.kt"); } + @Test + @TestMetadata("controlFlow_chain.kt") + public void testControlFlow_chain() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_chain.kt"); + } + + @Test + @TestMetadata("controlFlow_finally1.kt") + public void testControlFlow_finally1() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally1.kt"); + } + + @Test + @TestMetadata("controlFlow_finally2.kt") + public void testControlFlow_finally2() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally2.kt"); + } + + @Test + @TestMetadata("controlFlow_finally3.kt") + public void testControlFlow_finally3() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally3.kt"); + } + + @Test + @TestMetadata("controlFlow_finally4.kt") + public void testControlFlow_finally4() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally4.kt"); + } + + @Test + @TestMetadata("controlFlow_finally5.kt") + public void testControlFlow_finally5() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally5.kt"); + } + + @Test + @TestMetadata("controlFlow_finally6.kt") + public void testControlFlow_finally6() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally6.kt"); + } + + @Test + @TestMetadata("controlFlow_finally7.kt") + public void testControlFlow_finally7() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally7.kt"); + } + + @Test + @TestMetadata("controlFlow_if1.kt") + public void testControlFlow_if1() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_if1.kt"); + } + + @Test + @TestMetadata("controlFlow_if2.kt") + public void testControlFlow_if2() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_if2.kt"); + } + + @Test + @TestMetadata("controlFlow_inline1.kt") + public void testControlFlow_inline1() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_inline1.kt"); + } + + @Test + @TestMetadata("controlFlow_inline2.kt") + public void testControlFlow_inline2() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_inline2.kt"); + } + + @Test + @TestMetadata("controlFlow_inline3.kt") + public void testControlFlow_inline3() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_inline3.kt"); + } + + @Test + @TestMetadata("controlFlow_tryCatch1.kt") + public void testControlFlow_tryCatch1() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_tryCatch1.kt"); + } + + @Test + @TestMetadata("controlFlow_tryCatch2.kt") + public void testControlFlow_tryCatch2() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_tryCatch2.kt"); + } + + @Test + @TestMetadata("controlFlow_tryCatch3.kt") + public void testControlFlow_tryCatch3() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_tryCatch3.kt"); + } + + @Test + @TestMetadata("controlFlow_tryCatch4.kt") + public void testControlFlow_tryCatch4() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_tryCatch4.kt"); + } + + @Test + @TestMetadata("controlFlow_tryCatch5.kt") + public void testControlFlow_tryCatch5() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_tryCatch5.kt"); + } + + @Test + @TestMetadata("controlFlow_while1.kt") + public void testControlFlow_while1() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_while1.kt"); + } + + @Test + @TestMetadata("controlFlow_while2.kt") + public void testControlFlow_while2() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_while2.kt"); + } + @Test @TestMetadata("controllerAccessFromInnerLambda.kt") public void testControllerAccessFromInnerLambda() { runTest("compiler/testData/codegen/box/coroutines/controllerAccessFromInnerLambda.kt"); } + @Test + @TestMetadata("coroutineContext1.kt") + public void testCoroutineContext1() { + runTest("compiler/testData/codegen/box/coroutines/coroutineContext1.kt"); + } + + @Test + @TestMetadata("coroutineContext2.kt") + public void testCoroutineContext2() { + runTest("compiler/testData/codegen/box/coroutines/coroutineContext2.kt"); + } + @Test @TestMetadata("coroutineContextInInlinedLambda.kt") public void testCoroutineContextInInlinedLambda() { @@ -11276,6 +12324,12 @@ public class LLFirBlackBoxCodegenBasedTestGenerated extends AbstractLLFirBlackBo runTest("compiler/testData/codegen/box/coroutines/coroutineToString.kt"); } + @Test + @TestMetadata("correctOrder1.kt") + public void testCorrectOrder1() { + runTest("compiler/testData/codegen/box/coroutines/correctOrder1.kt"); + } + @Test @TestMetadata("createCoroutineSafe.kt") public void testCreateCoroutineSafe() { @@ -11312,6 +12366,18 @@ public class LLFirBlackBoxCodegenBasedTestGenerated extends AbstractLLFirBlackBo runTest("compiler/testData/codegen/box/coroutines/defaultParametersInSuspendWithJvmOverloads.kt"); } + @Test + @TestMetadata("degenerate1.kt") + public void testDegenerate1() { + runTest("compiler/testData/codegen/box/coroutines/degenerate1.kt"); + } + + @Test + @TestMetadata("degenerate2.kt") + public void testDegenerate2() { + runTest("compiler/testData/codegen/box/coroutines/degenerate2.kt"); + } + @Test @TestMetadata("delegatedSuspendMember.kt") public void testDelegatedSuspendMember() { @@ -11360,6 +12426,30 @@ public class LLFirBlackBoxCodegenBasedTestGenerated extends AbstractLLFirBlackBo runTest("compiler/testData/codegen/box/coroutines/falseUnitCoercion.kt"); } + @Test + @TestMetadata("functionReference_eqeq_name.kt") + public void testFunctionReference_eqeq_name() { + runTest("compiler/testData/codegen/box/coroutines/functionReference_eqeq_name.kt"); + } + + @Test + @TestMetadata("functionReference_invokeAsFunction.kt") + public void testFunctionReference_invokeAsFunction() { + runTest("compiler/testData/codegen/box/coroutines/functionReference_invokeAsFunction.kt"); + } + + @Test + @TestMetadata("functionReference_lambdaAsSuspendLambda.kt") + public void testFunctionReference_lambdaAsSuspendLambda() { + runTest("compiler/testData/codegen/box/coroutines/functionReference_lambdaAsSuspendLambda.kt"); + } + + @Test + @TestMetadata("functionReference_simple.kt") + public void testFunctionReference_simple() { + runTest("compiler/testData/codegen/box/coroutines/functionReference_simple.kt"); + } + @Test @TestMetadata("generate.kt") public void testGenerate() { @@ -11570,6 +12660,12 @@ public class LLFirBlackBoxCodegenBasedTestGenerated extends AbstractLLFirBlackBo runTest("compiler/testData/codegen/box/coroutines/kt38099.kt"); } + @Test + @TestMetadata("kt41394.kt") + public void testKt41394() { + runTest("compiler/testData/codegen/box/coroutines/kt41394.kt"); + } + @Test @TestMetadata("kt42028.kt") public void testKt42028() { @@ -11816,12 +12912,30 @@ public class LLFirBlackBoxCodegenBasedTestGenerated extends AbstractLLFirBlackBo runTest("compiler/testData/codegen/box/coroutines/returnByLabel.kt"); } + @Test + @TestMetadata("returnsNothing1.kt") + public void testReturnsNothing1() { + runTest("compiler/testData/codegen/box/coroutines/returnsNothing1.kt"); + } + + @Test + @TestMetadata("returnsUnit1.kt") + public void testReturnsUnit1() { + runTest("compiler/testData/codegen/box/coroutines/returnsUnit1.kt"); + } + @Test @TestMetadata("simple.kt") public void testSimple() { runTest("compiler/testData/codegen/box/coroutines/simple.kt"); } + @Test + @TestMetadata("simple2.kt") + public void testSimple2() { + runTest("compiler/testData/codegen/box/coroutines/simple2.kt"); + } + @Test @TestMetadata("simpleException.kt") public void testSimpleException() { @@ -11870,6 +12984,12 @@ public class LLFirBlackBoxCodegenBasedTestGenerated extends AbstractLLFirBlackBo runTest("compiler/testData/codegen/box/coroutines/suspendCallsInArguments.kt"); } + @Test + @TestMetadata("suspendConversion.kt") + public void testSuspendConversion() { + runTest("compiler/testData/codegen/box/coroutines/suspendConversion.kt"); + } + @Test @TestMetadata("suspendCoroutineFromStateMachine.kt") public void testSuspendCoroutineFromStateMachine() { @@ -12062,6 +13182,12 @@ public class LLFirBlackBoxCodegenBasedTestGenerated extends AbstractLLFirBlackBo runTest("compiler/testData/codegen/box/coroutines/varargCallFromSuspend.kt"); } + @Test + @TestMetadata("withReceiver.kt") + public void testWithReceiver() { + runTest("compiler/testData/codegen/box/coroutines/withReceiver.kt"); + } + @Nested @TestMetadata("compiler/testData/codegen/box/coroutines/bridges") @TestDataPath("$PROJECT_ROOT") @@ -14745,6 +15871,34 @@ public class LLFirBlackBoxCodegenBasedTestGenerated extends AbstractLLFirBlackBo } } + @Nested + @TestMetadata("compiler/testData/codegen/box/cycles") + @TestDataPath("$PROJECT_ROOT") + public class Cycles { + @Test + public void testAllFilesPresentInCycles() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cycles"), Pattern.compile("^(.+)\\.kt$"), null, true); + } + + @Test + @TestMetadata("cycle.kt") + public void testCycle() { + runTest("compiler/testData/codegen/box/cycles/cycle.kt"); + } + + @Test + @TestMetadata("cycle_do.kt") + public void testCycle_do() { + runTest("compiler/testData/codegen/box/cycles/cycle_do.kt"); + } + + @Test + @TestMetadata("cycle_for.kt") + public void testCycle_for() { + runTest("compiler/testData/codegen/box/cycles/cycle_for.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/dataClasses") @TestDataPath("$PROJECT_ROOT") @@ -15199,6 +16353,28 @@ public class LLFirBlackBoxCodegenBasedTestGenerated extends AbstractLLFirBlackBo } } + @Nested + @TestMetadata("compiler/testData/codegen/box/dataflow") + @TestDataPath("$PROJECT_ROOT") + public class Dataflow { + @Test + public void testAllFilesPresentInDataflow() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/dataflow"), Pattern.compile("^(.+)\\.kt$"), null, true); + } + + @Test + @TestMetadata("scope1.kt") + public void testScope1() { + runTest("compiler/testData/codegen/box/dataflow/scope1.kt"); + } + + @Test + @TestMetadata("uninitialized_val.kt") + public void testUninitialized_val() { + runTest("compiler/testData/codegen/box/dataflow/uninitialized_val.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/deadCodeElimination") @TestDataPath("$PROJECT_ROOT") @@ -15860,6 +17036,12 @@ public class LLFirBlackBoxCodegenBasedTestGenerated extends AbstractLLFirBlackBo runTest("compiler/testData/codegen/box/delegatedProperty/castSetParameter.kt"); } + @Test + @TestMetadata("correctFieldsOrder.kt") + public void testCorrectFieldsOrder() { + runTest("compiler/testData/codegen/box/delegatedProperty/correctFieldsOrder.kt"); + } + @Test @TestMetadata("delegateAsInnerClass.kt") public void testDelegateAsInnerClass() { @@ -15920,6 +17102,12 @@ public class LLFirBlackBoxCodegenBasedTestGenerated extends AbstractLLFirBlackBo runTest("compiler/testData/codegen/box/delegatedProperty/delegateWithPrivateSet.kt"); } + @Test + @TestMetadata("delegatedOverride.kt") + public void testDelegatedOverride() { + runTest("compiler/testData/codegen/box/delegatedProperty/delegatedOverride.kt"); + } + @Test @TestMetadata("delegatedPropertyInEnum.kt") public void testDelegatedPropertyInEnum() { @@ -16064,12 +17252,42 @@ public class LLFirBlackBoxCodegenBasedTestGenerated extends AbstractLLFirBlackBo runTest("compiler/testData/codegen/box/delegatedProperty/kt9712.kt"); } + @Test + @TestMetadata("lazy.kt") + public void testLazy() { + runTest("compiler/testData/codegen/box/delegatedProperty/lazy.kt"); + } + + @Test + @TestMetadata("local.kt") + public void testLocal() { + runTest("compiler/testData/codegen/box/delegatedProperty/local.kt"); + } + + @Test + @TestMetadata("map.kt") + public void testMap() { + runTest("compiler/testData/codegen/box/delegatedProperty/map.kt"); + } + @Test @TestMetadata("noTypeVariablesLeft.kt") public void testNoTypeVariablesLeft() { runTest("compiler/testData/codegen/box/delegatedProperty/noTypeVariablesLeft.kt"); } + @Test + @TestMetadata("observable.kt") + public void testObservable() { + runTest("compiler/testData/codegen/box/delegatedProperty/observable.kt"); + } + + @Test + @TestMetadata("packageLevel.kt") + public void testPackageLevel() { + runTest("compiler/testData/codegen/box/delegatedProperty/packageLevel.kt"); + } + @Test @TestMetadata("privateInSubClass.kt") public void testPrivateInSubClass() { @@ -16130,6 +17348,18 @@ public class LLFirBlackBoxCodegenBasedTestGenerated extends AbstractLLFirBlackBo runTest("compiler/testData/codegen/box/delegatedProperty/setAsExtensionFunInClass.kt"); } + @Test + @TestMetadata("simpleVal.kt") + public void testSimpleVal() { + runTest("compiler/testData/codegen/box/delegatedProperty/simpleVal.kt"); + } + + @Test + @TestMetadata("simpleVar.kt") + public void testSimpleVar() { + runTest("compiler/testData/codegen/box/delegatedProperty/simpleVar.kt"); + } + @Test @TestMetadata("stackOverflowOnCallFromGetValue.kt") public void testStackOverflowOnCallFromGetValue() { @@ -17099,6 +18329,40 @@ public class LLFirBlackBoxCodegenBasedTestGenerated extends AbstractLLFirBlackBo } } + @Nested + @TestMetadata("compiler/testData/codegen/box/devirtualization") + @TestDataPath("$PROJECT_ROOT") + public class Devirtualization { + @Test + public void testAllFilesPresentInDevirtualization() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/devirtualization"), Pattern.compile("^(.+)\\.kt$"), null, true); + } + + @Test + @TestMetadata("anonymousObject.kt") + public void testAnonymousObject() { + runTest("compiler/testData/codegen/box/devirtualization/anonymousObject.kt"); + } + + @Test + @TestMetadata("getter_looking_as_box_function.kt") + public void testGetter_looking_as_box_function() { + runTest("compiler/testData/codegen/box/devirtualization/getter_looking_as_box_function.kt"); + } + + @Test + @TestMetadata("inline_getter.kt") + public void testInline_getter() { + runTest("compiler/testData/codegen/box/devirtualization/inline_getter.kt"); + } + + @Test + @TestMetadata("lateinitInterface.kt") + public void testLateinitInterface() { + runTest("compiler/testData/codegen/box/devirtualization/lateinitInterface.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/diagnostics") @TestDataPath("$PROJECT_ROOT") @@ -17760,6 +19024,12 @@ public class LLFirBlackBoxCodegenBasedTestGenerated extends AbstractLLFirBlackBo runTest("compiler/testData/codegen/box/enum/companionAccessingEnumValue.kt"); } + @Test + @TestMetadata("companionObject.kt") + public void testCompanionObject() { + runTest("compiler/testData/codegen/box/enum/companionObject.kt"); + } + @Test @TestMetadata("companionObjectInEnum.kt") public void testCompanionObjectInEnum() { @@ -17952,6 +19222,12 @@ public class LLFirBlackBoxCodegenBasedTestGenerated extends AbstractLLFirBlackBo runTest("compiler/testData/codegen/box/enum/enumWithLambdaParameter.kt"); } + @Test + @TestMetadata("enum_equals.kt") + public void testEnum_equals() { + runTest("compiler/testData/codegen/box/enum/enum_equals.kt"); + } + @Test @TestMetadata("getEnumEntityByOrdinal.kt") public void testGetEnumEntityByOrdinal() { @@ -18030,6 +19306,18 @@ public class LLFirBlackBoxCodegenBasedTestGenerated extends AbstractLLFirBlackBo runTest("compiler/testData/codegen/box/enum/innerWithExistingClassObject.kt"); } + @Test + @TestMetadata("interfaceCallNoEntryClass.kt") + public void testInterfaceCallNoEntryClass() { + runTest("compiler/testData/codegen/box/enum/interfaceCallNoEntryClass.kt"); + } + + @Test + @TestMetadata("interfaceCallWithEntryClass.kt") + public void testInterfaceCallWithEntryClass() { + runTest("compiler/testData/codegen/box/enum/interfaceCallWithEntryClass.kt"); + } + @Test @TestMetadata("javaClassWithNestedEnum.kt") public void testJavaClassWithNestedEnum() { @@ -18120,6 +19408,12 @@ public class LLFirBlackBoxCodegenBasedTestGenerated extends AbstractLLFirBlackBo runTest("compiler/testData/codegen/box/enum/kt2350.kt"); } + @Test + @TestMetadata("kt38540.kt") + public void testKt38540() { + runTest("compiler/testData/codegen/box/enum/kt38540.kt"); + } + @Test @TestMetadata("kt38996.kt") public void testKt38996() { @@ -18216,6 +19510,18 @@ public class LLFirBlackBoxCodegenBasedTestGenerated extends AbstractLLFirBlackBo runTest("compiler/testData/codegen/box/enum/kt9711_2.kt"); } + @Test + @TestMetadata("lambdaInDefault.kt") + public void testLambdaInDefault() { + runTest("compiler/testData/codegen/box/enum/lambdaInDefault.kt"); + } + + @Test + @TestMetadata("loop.kt") + public void testLoop() { + runTest("compiler/testData/codegen/box/enum/loop.kt"); + } + @Test @TestMetadata("manyDefaultParameters.kt") public void testManyDefaultParameters() { @@ -18228,6 +19534,12 @@ public class LLFirBlackBoxCodegenBasedTestGenerated extends AbstractLLFirBlackBo runTest("compiler/testData/codegen/box/enum/modifierFlags.kt"); } + @Test + @TestMetadata("multipleModules.kt") + public void testMultipleModules() { + runTest("compiler/testData/codegen/box/enum/multipleModules.kt"); + } + @Test @TestMetadata("nameClashWithCompanion.kt") public void testNameClashWithCompanion() { @@ -18240,12 +19552,24 @@ public class LLFirBlackBoxCodegenBasedTestGenerated extends AbstractLLFirBlackBo runTest("compiler/testData/codegen/box/enum/nameConflict.kt"); } + @Test + @TestMetadata("nested.kt") + public void testNested() { + runTest("compiler/testData/codegen/box/enum/nested.kt"); + } + @Test @TestMetadata("noClassForSimpleEnum.kt") public void testNoClassForSimpleEnum() { runTest("compiler/testData/codegen/box/enum/noClassForSimpleEnum.kt"); } + @Test + @TestMetadata("openMethodNoOverrides.kt") + public void testOpenMethodNoOverrides() { + runTest("compiler/testData/codegen/box/enum/openMethodNoOverrides.kt"); + } + @Test @TestMetadata("ordinal.kt") public void testOrdinal() { @@ -18276,6 +19600,12 @@ public class LLFirBlackBoxCodegenBasedTestGenerated extends AbstractLLFirBlackBo runTest("compiler/testData/codegen/box/enum/refToThis.kt"); } + @Test + @TestMetadata("reorderedArguments.kt") + public void testReorderedArguments() { + runTest("compiler/testData/codegen/box/enum/reorderedArguments.kt"); + } + @Test @TestMetadata("simple.kt") public void testSimple() { @@ -18330,18 +19660,66 @@ public class LLFirBlackBoxCodegenBasedTestGenerated extends AbstractLLFirBlackBo runTest("compiler/testData/codegen/box/enum/superCallInEnumLiteral.kt"); } + @Test + @TestMetadata("switchLowering.kt") + public void testSwitchLowering() { + runTest("compiler/testData/codegen/box/enum/switchLowering.kt"); + } + + @Test + @TestMetadata("test0.kt") + public void testTest0() { + runTest("compiler/testData/codegen/box/enum/test0.kt"); + } + + @Test + @TestMetadata("test1.kt") + public void testTest1() { + runTest("compiler/testData/codegen/box/enum/test1.kt"); + } + @Test @TestMetadata("toString.kt") public void testToString() { runTest("compiler/testData/codegen/box/enum/toString.kt"); } + @Test + @TestMetadata("vCallNoEntryClass.kt") + public void testVCallNoEntryClass() { + runTest("compiler/testData/codegen/box/enum/vCallNoEntryClass.kt"); + } + + @Test + @TestMetadata("vCallWithEntryClass.kt") + public void testVCallWithEntryClass() { + runTest("compiler/testData/codegen/box/enum/vCallWithEntryClass.kt"); + } + + @Test + @TestMetadata("valueOf2.kt") + public void testValueOf2() { + runTest("compiler/testData/codegen/box/enum/valueOf2.kt"); + } + @Test @TestMetadata("valueof.kt") public void testValueof() { runTest("compiler/testData/codegen/box/enum/valueof.kt"); } + @Test + @TestMetadata("values.kt") + public void testValues() { + runTest("compiler/testData/codegen/box/enum/values.kt"); + } + + @Test + @TestMetadata("varargParam.kt") + public void testVarargParam() { + runTest("compiler/testData/codegen/box/enum/varargParam.kt"); + } + @Test @TestMetadata("whenInObject.kt") public void testWhenInObject() { @@ -18417,6 +19795,112 @@ public class LLFirBlackBoxCodegenBasedTestGenerated extends AbstractLLFirBlackBo } } + @Nested + @TestMetadata("compiler/testData/codegen/box/escapeAnalysis") + @TestDataPath("$PROJECT_ROOT") + public class EscapeAnalysis { + @Test + public void testAllFilesPresentInEscapeAnalysis() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/escapeAnalysis"), Pattern.compile("^(.+)\\.kt$"), null, true); + } + + @Test + @TestMetadata("recursion.kt") + public void testRecursion() { + runTest("compiler/testData/codegen/box/escapeAnalysis/recursion.kt"); + } + + @Test + @TestMetadata("stack_array.kt") + public void testStack_array() { + runTest("compiler/testData/codegen/box/escapeAnalysis/stack_array.kt"); + } + + @Test + @TestMetadata("test1.kt") + public void testTest1() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test1.kt"); + } + + @Test + @TestMetadata("test10.kt") + public void testTest10() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test10.kt"); + } + + @Test + @TestMetadata("test11.kt") + public void testTest11() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test11.kt"); + } + + @Test + @TestMetadata("test12.kt") + public void testTest12() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test12.kt"); + } + + @Test + @TestMetadata("test13.kt") + public void testTest13() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test13.kt"); + } + + @Test + @TestMetadata("test2.kt") + public void testTest2() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test2.kt"); + } + + @Test + @TestMetadata("test3.kt") + public void testTest3() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test3.kt"); + } + + @Test + @TestMetadata("test4.kt") + public void testTest4() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test4.kt"); + } + + @Test + @TestMetadata("test5.kt") + public void testTest5() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test5.kt"); + } + + @Test + @TestMetadata("test6.kt") + public void testTest6() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test6.kt"); + } + + @Test + @TestMetadata("test7.kt") + public void testTest7() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test7.kt"); + } + + @Test + @TestMetadata("test8.kt") + public void testTest8() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test8.kt"); + } + + @Test + @TestMetadata("test9.kt") + public void testTest9() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test9.kt"); + } + + @Test + @TestMetadata("zeroOutObjectOnAlloc.kt") + public void testZeroOutObjectOnAlloc() { + runTest("compiler/testData/codegen/box/escapeAnalysis/zeroOutObjectOnAlloc.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/evaluate") @TestDataPath("$PROJECT_ROOT") @@ -18529,6 +20013,58 @@ public class LLFirBlackBoxCodegenBasedTestGenerated extends AbstractLLFirBlackBo } } + @Nested + @TestMetadata("compiler/testData/codegen/box/exceptions") + @TestDataPath("$PROJECT_ROOT") + public class Exceptions { + @Test + public void testAllFilesPresentInExceptions() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/exceptions"), Pattern.compile("^(.+)\\.kt$"), null, true); + } + + @Test + @TestMetadata("catch1.kt") + public void testCatch1() { + runTest("compiler/testData/codegen/box/exceptions/catch1.kt"); + } + + @Test + @TestMetadata("catch2.kt") + public void testCatch2() { + runTest("compiler/testData/codegen/box/exceptions/catch2.kt"); + } + + @Test + @TestMetadata("catch7.kt") + public void testCatch7() { + runTest("compiler/testData/codegen/box/exceptions/catch7.kt"); + } + + @Test + @TestMetadata("extend0.kt") + public void testExtend0() { + runTest("compiler/testData/codegen/box/exceptions/extend0.kt"); + } + + @Test + @TestMetadata("rethrow.kt") + public void testRethrow() { + runTest("compiler/testData/codegen/box/exceptions/rethrow.kt"); + } + + @Test + @TestMetadata("throw0.kt") + public void testThrow0() { + runTest("compiler/testData/codegen/box/exceptions/throw0.kt"); + } + + @Test + @TestMetadata("throw_from_catch.kt") + public void testThrow_from_catch() { + runTest("compiler/testData/codegen/box/exceptions/throw_from_catch.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/exclExcl") @TestDataPath("$PROJECT_ROOT") @@ -20422,6 +21958,12 @@ public class LLFirBlackBoxCodegenBasedTestGenerated extends AbstractLLFirBlackBo runTest("compiler/testData/codegen/box/funInterface/funInterfaceWithReceiver.kt"); } + @Test + @TestMetadata("implIsNotFunction.kt") + public void testImplIsNotFunction() { + runTest("compiler/testData/codegen/box/funInterface/implIsNotFunction.kt"); + } + @Test @TestMetadata("inlinedSamWrapper.kt") public void testInlinedSamWrapper() { @@ -20470,6 +22012,18 @@ public class LLFirBlackBoxCodegenBasedTestGenerated extends AbstractLLFirBlackBo runTest("compiler/testData/codegen/box/funInterface/kt46908_functionSupertype.kt"); } + @Test + @TestMetadata("kt49384.kt") + public void testKt49384() { + runTest("compiler/testData/codegen/box/funInterface/kt49384.kt"); + } + + @Test + @TestMetadata("kt49384_getSame.kt") + public void testKt49384_getSame() { + runTest("compiler/testData/codegen/box/funInterface/kt49384_getSame.kt"); + } + @Test @TestMetadata("multimodule.kt") public void testMultimodule() { @@ -20488,6 +22042,12 @@ public class LLFirBlackBoxCodegenBasedTestGenerated extends AbstractLLFirBlackBo runTest("compiler/testData/codegen/box/funInterface/nonAbstractMethod.kt"); } + @Test + @TestMetadata("nonTrivialProjectionInSuperType.kt") + public void testNonTrivialProjectionInSuperType() { + runTest("compiler/testData/codegen/box/funInterface/nonTrivialProjectionInSuperType.kt"); + } + @Test @TestMetadata("nullableSam.kt") public void testNullableSam() { @@ -20577,6 +22137,232 @@ public class LLFirBlackBoxCodegenBasedTestGenerated extends AbstractLLFirBlackBo } } + @Nested + @TestMetadata("compiler/testData/codegen/box/function") + @TestDataPath("$PROJECT_ROOT") + public class Function { + @Test + public void testAllFilesPresentInFunction() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/function"), Pattern.compile("^(.+)\\.kt$"), null, true); + } + + @Test + @TestMetadata("arithmetic.kt") + public void testArithmetic() { + runTest("compiler/testData/codegen/box/function/arithmetic.kt"); + } + + @Test + @TestMetadata("boolean.kt") + public void testBoolean() { + runTest("compiler/testData/codegen/box/function/boolean.kt"); + } + + @Test + @TestMetadata("defaults.kt") + public void testDefaults() { + runTest("compiler/testData/codegen/box/function/defaults.kt"); + } + + @Test + @TestMetadata("defaults1.kt") + public void testDefaults1() { + runTest("compiler/testData/codegen/box/function/defaults1.kt"); + } + + @Test + @TestMetadata("defaults10.kt") + public void testDefaults10() { + runTest("compiler/testData/codegen/box/function/defaults10.kt"); + } + + @Test + @TestMetadata("defaults2.kt") + public void testDefaults2() { + runTest("compiler/testData/codegen/box/function/defaults2.kt"); + } + + @Test + @TestMetadata("defaults3.kt") + public void testDefaults3() { + runTest("compiler/testData/codegen/box/function/defaults3.kt"); + } + + @Test + @TestMetadata("defaults4.kt") + public void testDefaults4() { + runTest("compiler/testData/codegen/box/function/defaults4.kt"); + } + + @Test + @TestMetadata("defaults5.kt") + public void testDefaults5() { + runTest("compiler/testData/codegen/box/function/defaults5.kt"); + } + + @Test + @TestMetadata("defaults6.kt") + public void testDefaults6() { + runTest("compiler/testData/codegen/box/function/defaults6.kt"); + } + + @Test + @TestMetadata("defaults7.kt") + public void testDefaults7() { + runTest("compiler/testData/codegen/box/function/defaults7.kt"); + } + + @Test + @TestMetadata("defaults8.kt") + public void testDefaults8() { + runTest("compiler/testData/codegen/box/function/defaults8.kt"); + } + + @Test + @TestMetadata("defaults9.kt") + public void testDefaults9() { + runTest("compiler/testData/codegen/box/function/defaults9.kt"); + } + + @Test + @TestMetadata("defaultsFromFakeOverride.kt") + public void testDefaultsFromFakeOverride() { + runTest("compiler/testData/codegen/box/function/defaultsFromFakeOverride.kt"); + } + + @Test + @TestMetadata("defaultsWithInlineClasses.kt") + public void testDefaultsWithInlineClasses() { + runTest("compiler/testData/codegen/box/function/defaultsWithInlineClasses.kt"); + } + + @Test + @TestMetadata("defaultsWithVarArg1.kt") + public void testDefaultsWithVarArg1() { + runTest("compiler/testData/codegen/box/function/defaultsWithVarArg1.kt"); + } + + @Test + @TestMetadata("defaultsWithVarArg2.kt") + public void testDefaultsWithVarArg2() { + runTest("compiler/testData/codegen/box/function/defaultsWithVarArg2.kt"); + } + + @Test + @TestMetadata("eqeq.kt") + public void testEqeq() { + runTest("compiler/testData/codegen/box/function/eqeq.kt"); + } + + @Test + @TestMetadata("extension.kt") + public void testExtension() { + runTest("compiler/testData/codegen/box/function/extension.kt"); + } + + @Test + @TestMetadata("intrinsic.kt") + public void testIntrinsic() { + runTest("compiler/testData/codegen/box/function/intrinsic.kt"); + } + + @Test + @TestMetadata("localFunction.kt") + public void testLocalFunction() { + runTest("compiler/testData/codegen/box/function/localFunction.kt"); + } + + @Test + @TestMetadata("localFunction2.kt") + public void testLocalFunction2() { + runTest("compiler/testData/codegen/box/function/localFunction2.kt"); + } + + @Test + @TestMetadata("localFunction3.kt") + public void testLocalFunction3() { + runTest("compiler/testData/codegen/box/function/localFunction3.kt"); + } + + @Test + @TestMetadata("minus_eq.kt") + public void testMinus_eq() { + runTest("compiler/testData/codegen/box/function/minus_eq.kt"); + } + + @Test + @TestMetadata("named.kt") + public void testNamed() { + runTest("compiler/testData/codegen/box/function/named.kt"); + } + + @Test + @TestMetadata("nothingNReturningSafeCall.kt") + public void testNothingNReturningSafeCall() { + runTest("compiler/testData/codegen/box/function/nothingNReturningSafeCall.kt"); + } + + @Test + @TestMetadata("plus_eq.kt") + public void testPlus_eq() { + runTest("compiler/testData/codegen/box/function/plus_eq.kt"); + } + + @Test + @TestMetadata("referenceBigArity.kt") + public void testReferenceBigArity() { + runTest("compiler/testData/codegen/box/function/referenceBigArity.kt"); + } + + @Test + @TestMetadata("sum.kt") + public void testSum() { + runTest("compiler/testData/codegen/box/function/sum.kt"); + } + + @Test + @TestMetadata("sum_3const.kt") + public void testSum_3const() { + runTest("compiler/testData/codegen/box/function/sum_3const.kt"); + } + + @Test + @TestMetadata("sum_foo_bar.kt") + public void testSum_foo_bar() { + runTest("compiler/testData/codegen/box/function/sum_foo_bar.kt"); + } + + @Test + @TestMetadata("sum_func.kt") + public void testSum_func() { + runTest("compiler/testData/codegen/box/function/sum_func.kt"); + } + + @Test + @TestMetadata("sum_imm.kt") + public void testSum_imm() { + runTest("compiler/testData/codegen/box/function/sum_imm.kt"); + } + + @Test + @TestMetadata("sum_mixed.kt") + public void testSum_mixed() { + runTest("compiler/testData/codegen/box/function/sum_mixed.kt"); + } + + @Test + @TestMetadata("sum_silly.kt") + public void testSum_silly() { + runTest("compiler/testData/codegen/box/function/sum_silly.kt"); + } + + @Test + @TestMetadata("unreachableStatementAfterReturn.kt") + public void testUnreachableStatementAfterReturn() { + runTest("compiler/testData/codegen/box/function/unreachableStatementAfterReturn.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/functions") @TestDataPath("$PROJECT_ROOT") @@ -22485,6 +24271,474 @@ public class LLFirBlackBoxCodegenBasedTestGenerated extends AbstractLLFirBlackBo } } + @Nested + @TestMetadata("compiler/testData/codegen/box/initializers") + @TestDataPath("$PROJECT_ROOT") + public class Initializers { + @Test + public void testAllFilesPresentInInitializers() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/initializers"), Pattern.compile("^(.+)\\.kt$"), null, true); + } + + @Test + @TestMetadata("correctOrder1.kt") + public void testCorrectOrder1() { + runTest("compiler/testData/codegen/box/initializers/correctOrder1.kt"); + } + + @Test + @TestMetadata("correctOrder2.kt") + public void testCorrectOrder2() { + runTest("compiler/testData/codegen/box/initializers/correctOrder2.kt"); + } + + @Test + @TestMetadata("initializers0.kt") + public void testInitializers0() { + runTest("compiler/testData/codegen/box/initializers/initializers0.kt"); + } + + @Test + @TestMetadata("initializers1.kt") + public void testInitializers1() { + runTest("compiler/testData/codegen/box/initializers/initializers1.kt"); + } + + @Test + @TestMetadata("initializers2.kt") + public void testInitializers2() { + runTest("compiler/testData/codegen/box/initializers/initializers2.kt"); + } + + @Test + @TestMetadata("initializers3.kt") + public void testInitializers3() { + runTest("compiler/testData/codegen/box/initializers/initializers3.kt"); + } + + @Test + @TestMetadata("initializers4.kt") + public void testInitializers4() { + runTest("compiler/testData/codegen/box/initializers/initializers4.kt"); + } + + @Test + @TestMetadata("initializers5.kt") + public void testInitializers5() { + runTest("compiler/testData/codegen/box/initializers/initializers5.kt"); + } + + @Test + @TestMetadata("initializers7.kt") + public void testInitializers7() { + runTest("compiler/testData/codegen/box/initializers/initializers7.kt"); + } + + @Test + @TestMetadata("initializers8.kt") + public void testInitializers8() { + runTest("compiler/testData/codegen/box/initializers/initializers8.kt"); + } + + @Test + @TestMetadata("multipleModules1.kt") + public void testMultipleModules1() { + runTest("compiler/testData/codegen/box/initializers/multipleModules1.kt"); + } + + @Test + @TestMetadata("object.kt") + public void testObject() { + runTest("compiler/testData/codegen/box/initializers/object.kt"); + } + + @Test + @TestMetadata("sharedVarInInitBlock.kt") + public void testSharedVarInInitBlock() { + runTest("compiler/testData/codegen/box/initializers/sharedVarInInitBlock.kt"); + } + + @Test + @TestMetadata("static_arrays.kt") + public void testStatic_arrays() { + runTest("compiler/testData/codegen/box/initializers/static_arrays.kt"); + } + + @Test + @TestMetadata("static_list.kt") + public void testStatic_list() { + runTest("compiler/testData/codegen/box/initializers/static_list.kt"); + } + + @Test + @TestMetadata("static_smallIntIdentity.kt") + public void testStatic_smallIntIdentity() { + runTest("compiler/testData/codegen/box/initializers/static_smallIntIdentity.kt"); + } + + @Test + @TestMetadata("static_varargChange.kt") + public void testStatic_varargChange() { + runTest("compiler/testData/codegen/box/initializers/static_varargChange.kt"); + } + + @Test + @TestMetadata("throw1.kt") + public void testThrow1() { + runTest("compiler/testData/codegen/box/initializers/throw1.kt"); + } + + @Test + @TestMetadata("throw2.kt") + public void testThrow2() { + runTest("compiler/testData/codegen/box/initializers/throw2.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/initializers/files") + @TestDataPath("$PROJECT_ROOT") + public class Files { + @Test + public void testAllFilesPresentInFiles() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/initializers/files"), Pattern.compile("^(.+)\\.kt$"), null, true); + } + + @Test + @TestMetadata("globalInitedAfterAccessingFile.kt") + public void testGlobalInitedAfterAccessingFile() { + runTest("compiler/testData/codegen/box/initializers/files/globalInitedAfterAccessingFile.kt"); + } + + @Test + @TestMetadata("globalNotInitedAfterAccessingClassInternals.kt") + public void testGlobalNotInitedAfterAccessingClassInternals() { + runTest("compiler/testData/codegen/box/initializers/files/globalNotInitedAfterAccessingClassInternals.kt"); + } + + @Test + @TestMetadata("simple.kt") + public void testSimple() { + runTest("compiler/testData/codegen/box/initializers/files/simple.kt"); + } + + @Test + @TestMetadata("simpleMultiModule.kt") + public void testSimpleMultiModule() { + runTest("compiler/testData/codegen/box/initializers/files/simpleMultiModule.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/inline") + @TestDataPath("$PROJECT_ROOT") + public class Inline { + @Test + public void testAllFilesPresentInInline() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inline"), Pattern.compile("^(.+)\\.kt$"), null, true); + } + + @Test + @TestMetadata("changingCapturedLocal.kt") + public void testChangingCapturedLocal() { + runTest("compiler/testData/codegen/box/inline/changingCapturedLocal.kt"); + } + + @Test + @TestMetadata("classDeclarationInsideInline.kt") + public void testClassDeclarationInsideInline() { + runTest("compiler/testData/codegen/box/inline/classDeclarationInsideInline.kt"); + } + + @Test + @TestMetadata("coercionToUnit.kt") + public void testCoercionToUnit() { + runTest("compiler/testData/codegen/box/inline/coercionToUnit.kt"); + } + + @Test + @TestMetadata("correctOrderFunctionReference.kt") + public void testCorrectOrderFunctionReference() { + runTest("compiler/testData/codegen/box/inline/correctOrderFunctionReference.kt"); + } + + @Test + @TestMetadata("defaultArgs.kt") + public void testDefaultArgs() { + runTest("compiler/testData/codegen/box/inline/defaultArgs.kt"); + } + + @Test + @TestMetadata("defaultArgsMultipleModules.kt") + public void testDefaultArgsMultipleModules() { + runTest("compiler/testData/codegen/box/inline/defaultArgsMultipleModules.kt"); + } + + @Test + @TestMetadata("genericFunctionReference.kt") + public void testGenericFunctionReference() { + runTest("compiler/testData/codegen/box/inline/genericFunctionReference.kt"); + } + + @Test + @TestMetadata("getClass.kt") + public void testGetClass() { + runTest("compiler/testData/codegen/box/inline/getClass.kt"); + } + + @Test + @TestMetadata("inline0.kt") + public void testInline0() { + runTest("compiler/testData/codegen/box/inline/inline0.kt"); + } + + @Test + @TestMetadata("inline1.kt") + public void testInline1() { + runTest("compiler/testData/codegen/box/inline/inline1.kt"); + } + + @Test + @TestMetadata("inline10.kt") + public void testInline10() { + runTest("compiler/testData/codegen/box/inline/inline10.kt"); + } + + @Test + @TestMetadata("inline11.kt") + public void testInline11() { + runTest("compiler/testData/codegen/box/inline/inline11.kt"); + } + + @Test + @TestMetadata("inline12.kt") + public void testInline12() { + runTest("compiler/testData/codegen/box/inline/inline12.kt"); + } + + @Test + @TestMetadata("inline13.kt") + public void testInline13() { + runTest("compiler/testData/codegen/box/inline/inline13.kt"); + } + + @Test + @TestMetadata("inline14.kt") + public void testInline14() { + runTest("compiler/testData/codegen/box/inline/inline14.kt"); + } + + @Test + @TestMetadata("inline15.kt") + public void testInline15() { + runTest("compiler/testData/codegen/box/inline/inline15.kt"); + } + + @Test + @TestMetadata("inline16.kt") + public void testInline16() { + runTest("compiler/testData/codegen/box/inline/inline16.kt"); + } + + @Test + @TestMetadata("inline17.kt") + public void testInline17() { + runTest("compiler/testData/codegen/box/inline/inline17.kt"); + } + + @Test + @TestMetadata("inline19.kt") + public void testInline19() { + runTest("compiler/testData/codegen/box/inline/inline19.kt"); + } + + @Test + @TestMetadata("inline2.kt") + public void testInline2() { + runTest("compiler/testData/codegen/box/inline/inline2.kt"); + } + + @Test + @TestMetadata("inline20.kt") + public void testInline20() { + runTest("compiler/testData/codegen/box/inline/inline20.kt"); + } + + @Test + @TestMetadata("inline21.kt") + public void testInline21() { + runTest("compiler/testData/codegen/box/inline/inline21.kt"); + } + + @Test + @TestMetadata("inline22.kt") + public void testInline22() { + runTest("compiler/testData/codegen/box/inline/inline22.kt"); + } + + @Test + @TestMetadata("inline23.kt") + public void testInline23() { + runTest("compiler/testData/codegen/box/inline/inline23.kt"); + } + + @Test + @TestMetadata("inline24.kt") + public void testInline24() { + runTest("compiler/testData/codegen/box/inline/inline24.kt"); + } + + @Test + @TestMetadata("inline25.kt") + public void testInline25() { + runTest("compiler/testData/codegen/box/inline/inline25.kt"); + } + + @Test + @TestMetadata("inline26.kt") + public void testInline26() { + runTest("compiler/testData/codegen/box/inline/inline26.kt"); + } + + @Test + @TestMetadata("inline3.kt") + public void testInline3() { + runTest("compiler/testData/codegen/box/inline/inline3.kt"); + } + + @Test + @TestMetadata("inline4.kt") + public void testInline4() { + runTest("compiler/testData/codegen/box/inline/inline4.kt"); + } + + @Test + @TestMetadata("inline5.kt") + public void testInline5() { + runTest("compiler/testData/codegen/box/inline/inline5.kt"); + } + + @Test + @TestMetadata("inline6.kt") + public void testInline6() { + runTest("compiler/testData/codegen/box/inline/inline6.kt"); + } + + @Test + @TestMetadata("inline7.kt") + public void testInline7() { + runTest("compiler/testData/codegen/box/inline/inline7.kt"); + } + + @Test + @TestMetadata("inline8.kt") + public void testInline8() { + runTest("compiler/testData/codegen/box/inline/inline8.kt"); + } + + @Test + @TestMetadata("inline9.kt") + public void testInline9() { + runTest("compiler/testData/codegen/box/inline/inline9.kt"); + } + + @Test + @TestMetadata("inlineCtor.kt") + public void testInlineCtor() { + runTest("compiler/testData/codegen/box/inline/inlineCtor.kt"); + } + + @Test + @TestMetadata("innerInlineFunCapturesOuter.kt") + public void testInnerInlineFunCapturesOuter() { + runTest("compiler/testData/codegen/box/inline/innerInlineFunCapturesOuter.kt"); + } + + @Test + @TestMetadata("lambdaAsAny.kt") + public void testLambdaAsAny() { + runTest("compiler/testData/codegen/box/inline/lambdaAsAny.kt"); + } + + @Test + @TestMetadata("lambdaInDefaultValue.kt") + public void testLambdaInDefaultValue() { + runTest("compiler/testData/codegen/box/inline/lambdaInDefaultValue.kt"); + } + + @Test + @TestMetadata("lateinitProperty.kt") + public void testLateinitProperty() { + runTest("compiler/testData/codegen/box/inline/lateinitProperty.kt"); + } + + @Test + @TestMetadata("localFunctionInInitializerBlock.kt") + public void testLocalFunctionInInitializerBlock() { + runTest("compiler/testData/codegen/box/inline/localFunctionInInitializerBlock.kt"); + } + + @Test + @TestMetadata("localObjectReturnedFromWhen.kt") + public void testLocalObjectReturnedFromWhen() { + runTest("compiler/testData/codegen/box/inline/localObjectReturnedFromWhen.kt"); + } + + @Test + @TestMetadata("propertyAccessorInline.kt") + public void testPropertyAccessorInline() { + runTest("compiler/testData/codegen/box/inline/propertyAccessorInline.kt"); + } + + @Test + @TestMetadata("redundantCoercionsCleaner.kt") + public void testRedundantCoercionsCleaner() { + runTest("compiler/testData/codegen/box/inline/redundantCoercionsCleaner.kt"); + } + + @Test + @TestMetadata("redundantCoercionsCleanerKT48876.kt") + public void testRedundantCoercionsCleanerKT48876() { + runTest("compiler/testData/codegen/box/inline/redundantCoercionsCleanerKT48876.kt"); + } + + @Test + @TestMetadata("redundantCoercionsCleanerKT49356.kt") + public void testRedundantCoercionsCleanerKT49356() { + runTest("compiler/testData/codegen/box/inline/redundantCoercionsCleanerKT49356.kt"); + } + + @Test + @TestMetadata("returnLocalClassFromBlock.kt") + public void testReturnLocalClassFromBlock() { + runTest("compiler/testData/codegen/box/inline/returnLocalClassFromBlock.kt"); + } + + @Test + @TestMetadata("sharedVar.kt") + public void testSharedVar() { + runTest("compiler/testData/codegen/box/inline/sharedVar.kt"); + } + + @Test + @TestMetadata("statementAsLastExprInBlock.kt") + public void testStatementAsLastExprInBlock() { + runTest("compiler/testData/codegen/box/inline/statementAsLastExprInBlock.kt"); + } + + @Test + @TestMetadata("twiceInlinedObject.kt") + public void testTwiceInlinedObject() { + runTest("compiler/testData/codegen/box/inline/twiceInlinedObject.kt"); + } + + @Test + @TestMetadata("typeSubstitutionInFakeOverride.kt") + public void testTypeSubstitutionInFakeOverride() { + runTest("compiler/testData/codegen/box/inline/typeSubstitutionInFakeOverride.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/inlineArgsInPlace") @TestDataPath("$PROJECT_ROOT") @@ -22567,6 +24821,40 @@ public class LLFirBlackBoxCodegenBasedTestGenerated extends AbstractLLFirBlackBo } } + @Nested + @TestMetadata("compiler/testData/codegen/box/inlineClass") + @TestDataPath("$PROJECT_ROOT") + public class InlineClass { + @Test + public void testAllFilesPresentInInlineClass() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineClass"), Pattern.compile("^(.+)\\.kt$"), null, true); + } + + @Test + @TestMetadata("customEquals.kt") + public void testCustomEquals() { + runTest("compiler/testData/codegen/box/inlineClass/customEquals.kt"); + } + + @Test + @TestMetadata("defaultEquals.kt") + public void testDefaultEquals() { + runTest("compiler/testData/codegen/box/inlineClass/defaultEquals.kt"); + } + + @Test + @TestMetadata("nestedInlineClasses.kt") + public void testNestedInlineClasses() { + runTest("compiler/testData/codegen/box/inlineClass/nestedInlineClasses.kt"); + } + + @Test + @TestMetadata("secondaryConstructorWithGenerics.kt") + public void testSecondaryConstructorWithGenerics() { + runTest("compiler/testData/codegen/box/inlineClass/secondaryConstructorWithGenerics.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/inlineClasses") @TestDataPath("$PROJECT_ROOT") @@ -28209,6 +30497,88 @@ public class LLFirBlackBoxCodegenBasedTestGenerated extends AbstractLLFirBlackBo } } + @Nested + @TestMetadata("compiler/testData/codegen/box/innerClass") + @TestDataPath("$PROJECT_ROOT") + public class InnerClass { + @Test + public void testAllFilesPresentInInnerClass() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/innerClass"), Pattern.compile("^(.+)\\.kt$"), null, true); + } + + @Test + @TestMetadata("doubleInner.kt") + public void testDoubleInner() { + runTest("compiler/testData/codegen/box/innerClass/doubleInner.kt"); + } + + @Test + @TestMetadata("generic.kt") + public void testGeneric() { + runTest("compiler/testData/codegen/box/innerClass/generic.kt"); + } + + @Test + @TestMetadata("getOuterVal.kt") + public void testGetOuterVal() { + runTest("compiler/testData/codegen/box/innerClass/getOuterVal.kt"); + } + + @Test + @TestMetadata("inheritanceMultipleModules1.kt") + public void testInheritanceMultipleModules1() { + runTest("compiler/testData/codegen/box/innerClass/inheritanceMultipleModules1.kt"); + } + + @Test + @TestMetadata("inheritanceMultipleModules2.kt") + public void testInheritanceMultipleModules2() { + runTest("compiler/testData/codegen/box/innerClass/inheritanceMultipleModules2.kt"); + } + + @Test + @TestMetadata("inheritanceMultipleModules3.kt") + public void testInheritanceMultipleModules3() { + runTest("compiler/testData/codegen/box/innerClass/inheritanceMultipleModules3.kt"); + } + + @Test + @TestMetadata("multipleModules.kt") + public void testMultipleModules() { + runTest("compiler/testData/codegen/box/innerClass/multipleModules.kt"); + } + + @Test + @TestMetadata("noPrimaryConstructor.kt") + public void testNoPrimaryConstructor() { + runTest("compiler/testData/codegen/box/innerClass/noPrimaryConstructor.kt"); + } + + @Test + @TestMetadata("qualifiedThis.kt") + public void testQualifiedThis() { + runTest("compiler/testData/codegen/box/innerClass/qualifiedThis.kt"); + } + + @Test + @TestMetadata("secondaryConstructor.kt") + public void testSecondaryConstructor() { + runTest("compiler/testData/codegen/box/innerClass/secondaryConstructor.kt"); + } + + @Test + @TestMetadata("simple.kt") + public void testSimple() { + runTest("compiler/testData/codegen/box/innerClass/simple.kt"); + } + + @Test + @TestMetadata("superOuter.kt") + public void testSuperOuter() { + runTest("compiler/testData/codegen/box/innerClass/superOuter.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/innerNested") @TestDataPath("$PROJECT_ROOT") @@ -28609,6 +30979,40 @@ public class LLFirBlackBoxCodegenBasedTestGenerated extends AbstractLLFirBlackBo } } + @Nested + @TestMetadata("compiler/testData/codegen/box/interfaceCallsNCasts") + @TestDataPath("$PROJECT_ROOT") + public class InterfaceCallsNCasts { + @Test + public void testAllFilesPresentInInterfaceCallsNCasts() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/interfaceCallsNCasts"), Pattern.compile("^(.+)\\.kt$"), null, true); + } + + @Test + @TestMetadata("conservativeItable.kt") + public void testConservativeItable() { + runTest("compiler/testData/codegen/box/interfaceCallsNCasts/conservativeItable.kt"); + } + + @Test + @TestMetadata("diamond.kt") + public void testDiamond() { + runTest("compiler/testData/codegen/box/interfaceCallsNCasts/diamond.kt"); + } + + @Test + @TestMetadata("finalMethod.kt") + public void testFinalMethod() { + runTest("compiler/testData/codegen/box/interfaceCallsNCasts/finalMethod.kt"); + } + + @Test + @TestMetadata("interface0.kt") + public void testInterface0() { + runTest("compiler/testData/codegen/box/interfaceCallsNCasts/interface0.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/intrinsics") @TestDataPath("$PROJECT_ROOT") @@ -33825,6 +36229,80 @@ public class LLFirBlackBoxCodegenBasedTestGenerated extends AbstractLLFirBlackBo } } + @Nested + @TestMetadata("compiler/testData/codegen/box/kclass") + @TestDataPath("$PROJECT_ROOT") + public class Kclass { + @Test + public void testAllFilesPresentInKclass() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/kclass"), Pattern.compile("^(.+)\\.kt$"), null, true); + } + + @Test + @TestMetadata("kClassEnumArgument.kt") + public void testKClassEnumArgument() { + runTest("compiler/testData/codegen/box/kclass/kClassEnumArgument.kt"); + } + + @Test + @TestMetadata("kclass1.kt") + public void testKclass1() { + runTest("compiler/testData/codegen/box/kclass/kclass1.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/ktype") + @TestDataPath("$PROJECT_ROOT") + public class Ktype { + @Test + public void testAllFilesPresentInKtype() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ktype"), Pattern.compile("^(.+)\\.kt$"), null, true); + } + + @Test + @TestMetadata("ktype1_basics1.kt") + public void testKtype1_basics1() { + runTest("compiler/testData/codegen/box/ktype/ktype1_basics1.kt"); + } + + @Test + @TestMetadata("ktype1_inner.kt") + public void testKtype1_inner() { + runTest("compiler/testData/codegen/box/ktype/ktype1_inner.kt"); + } + + @Test + @TestMetadata("nonReified_class.kt") + public void testNonReified_class() { + runTest("compiler/testData/codegen/box/ktype/nonReified_class.kt"); + } + + @Test + @TestMetadata("nonReified_equality.kt") + public void testNonReified_equality() { + runTest("compiler/testData/codegen/box/ktype/nonReified_equality.kt"); + } + + @Test + @TestMetadata("nonReified_fun.kt") + public void testNonReified_fun() { + runTest("compiler/testData/codegen/box/ktype/nonReified_fun.kt"); + } + + @Test + @TestMetadata("nonReified_recursionInReified.kt") + public void testNonReified_recursionInReified() { + runTest("compiler/testData/codegen/box/ktype/nonReified_recursionInReified.kt"); + } + + @Test + @TestMetadata("nonReified_reifiedUpperBound.kt") + public void testNonReified_reifiedUpperBound() { + runTest("compiler/testData/codegen/box/ktype/nonReified_reifiedUpperBound.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/labels") @TestDataPath("$PROJECT_ROOT") @@ -33883,6 +36361,188 @@ public class LLFirBlackBoxCodegenBasedTestGenerated extends AbstractLLFirBlackBo } } + @Nested + @TestMetadata("compiler/testData/codegen/box/lambda") + @TestDataPath("$PROJECT_ROOT") + public class Lambda { + @Test + public void testAllFilesPresentInLambda() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/lambda"), Pattern.compile("^(.+)\\.kt$"), null, true); + } + + @Test + @TestMetadata("lambda1.kt") + public void testLambda1() { + runTest("compiler/testData/codegen/box/lambda/lambda1.kt"); + } + + @Test + @TestMetadata("lambda10.kt") + public void testLambda10() { + runTest("compiler/testData/codegen/box/lambda/lambda10.kt"); + } + + @Test + @TestMetadata("lambda11.kt") + public void testLambda11() { + runTest("compiler/testData/codegen/box/lambda/lambda11.kt"); + } + + @Test + @TestMetadata("lambda12.kt") + public void testLambda12() { + runTest("compiler/testData/codegen/box/lambda/lambda12.kt"); + } + + @Test + @TestMetadata("lambda13.kt") + public void testLambda13() { + runTest("compiler/testData/codegen/box/lambda/lambda13.kt"); + } + + @Test + @TestMetadata("lambda14.kt") + public void testLambda14() { + runTest("compiler/testData/codegen/box/lambda/lambda14.kt"); + } + + @Test + @TestMetadata("lambda2.kt") + public void testLambda2() { + runTest("compiler/testData/codegen/box/lambda/lambda2.kt"); + } + + @Test + @TestMetadata("lambda3.kt") + public void testLambda3() { + runTest("compiler/testData/codegen/box/lambda/lambda3.kt"); + } + + @Test + @TestMetadata("lambda4.kt") + public void testLambda4() { + runTest("compiler/testData/codegen/box/lambda/lambda4.kt"); + } + + @Test + @TestMetadata("lambda5.kt") + public void testLambda5() { + runTest("compiler/testData/codegen/box/lambda/lambda5.kt"); + } + + @Test + @TestMetadata("lambda6.kt") + public void testLambda6() { + runTest("compiler/testData/codegen/box/lambda/lambda6.kt"); + } + + @Test + @TestMetadata("lambda7.kt") + public void testLambda7() { + runTest("compiler/testData/codegen/box/lambda/lambda7.kt"); + } + + @Test + @TestMetadata("lambda8.kt") + public void testLambda8() { + runTest("compiler/testData/codegen/box/lambda/lambda8.kt"); + } + + @Test + @TestMetadata("lambda9.kt") + public void testLambda9() { + runTest("compiler/testData/codegen/box/lambda/lambda9.kt"); + } + + @Test + @TestMetadata("lambda_kt49360_trivial.kt") + public void testLambda_kt49360_trivial() { + runTest("compiler/testData/codegen/box/lambda/lambda_kt49360_trivial.kt"); + } + + @Test + @TestMetadata("lambda_kt49360_withFlow.kt") + public void testLambda_kt49360_withFlow() { + runTest("compiler/testData/codegen/box/lambda/lambda_kt49360_withFlow.kt"); + } + + @Test + @TestMetadata("lambda_kt49360_wrapBlock.kt") + public void testLambda_kt49360_wrapBlock() { + runTest("compiler/testData/codegen/box/lambda/lambda_kt49360_wrapBlock.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/lateinit") + @TestDataPath("$PROJECT_ROOT") + public class Lateinit { + @Test + public void testAllFilesPresentInLateinit() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/lateinit"), Pattern.compile("^(.+)\\.kt$"), null, true); + } + + @Test + @TestMetadata("globalIsInitialized.kt") + public void testGlobalIsInitialized() { + runTest("compiler/testData/codegen/box/lateinit/globalIsInitialized.kt"); + } + + @Test + @TestMetadata("inBaseClass.kt") + public void testInBaseClass() { + runTest("compiler/testData/codegen/box/lateinit/inBaseClass.kt"); + } + + @Test + @TestMetadata("initialized.kt") + public void testInitialized() { + runTest("compiler/testData/codegen/box/lateinit/initialized.kt"); + } + + @Test + @TestMetadata("innerIsInitialized.kt") + public void testInnerIsInitialized() { + runTest("compiler/testData/codegen/box/lateinit/innerIsInitialized.kt"); + } + + @Test + @TestMetadata("isInitialized.kt") + public void testIsInitialized() { + runTest("compiler/testData/codegen/box/lateinit/isInitialized.kt"); + } + + @Test + @TestMetadata("localCapturedInitialized.kt") + public void testLocalCapturedInitialized() { + runTest("compiler/testData/codegen/box/lateinit/localCapturedInitialized.kt"); + } + + @Test + @TestMetadata("localCapturedNotInitialized.kt") + public void testLocalCapturedNotInitialized() { + runTest("compiler/testData/codegen/box/lateinit/localCapturedNotInitialized.kt"); + } + + @Test + @TestMetadata("localInitialized.kt") + public void testLocalInitialized() { + runTest("compiler/testData/codegen/box/lateinit/localInitialized.kt"); + } + + @Test + @TestMetadata("localNotInitialized.kt") + public void testLocalNotInitialized() { + runTest("compiler/testData/codegen/box/lateinit/localNotInitialized.kt"); + } + + @Test + @TestMetadata("notInitialized.kt") + public void testNotInitialized() { + runTest("compiler/testData/codegen/box/lateinit/notInitialized.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/lazyCodegen") @TestDataPath("$PROJECT_ROOT") @@ -34011,6 +36671,98 @@ public class LLFirBlackBoxCodegenBasedTestGenerated extends AbstractLLFirBlackBo } } + @Nested + @TestMetadata("compiler/testData/codegen/box/literals") + @TestDataPath("$PROJECT_ROOT") + public class Literals { + @Test + public void testAllFilesPresentInLiterals() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/literals"), Pattern.compile("^(.+)\\.kt$"), null, true); + } + + @Test + @TestMetadata("listof1.kt") + public void testListof1() { + runTest("compiler/testData/codegen/box/literals/listof1.kt"); + } + + @Test + @TestMetadata("strdedup1.kt") + public void testStrdedup1() { + runTest("compiler/testData/codegen/box/literals/strdedup1.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/localClass") + @TestDataPath("$PROJECT_ROOT") + public class LocalClass { + @Test + public void testAllFilesPresentInLocalClass() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/localClass"), Pattern.compile("^(.+)\\.kt$"), null, true); + } + + @Test + @TestMetadata("innerTakesCapturedFromOuter.kt") + public void testInnerTakesCapturedFromOuter() { + runTest("compiler/testData/codegen/box/localClass/innerTakesCapturedFromOuter.kt"); + } + + @Test + @TestMetadata("innerWithCapture.kt") + public void testInnerWithCapture() { + runTest("compiler/testData/codegen/box/localClass/innerWithCapture.kt"); + } + + @Test + @TestMetadata("localFunctionCallFromLocalClass.kt") + public void testLocalFunctionCallFromLocalClass() { + runTest("compiler/testData/codegen/box/localClass/localFunctionCallFromLocalClass.kt"); + } + + @Test + @TestMetadata("localFunctionInLocalClass.kt") + public void testLocalFunctionInLocalClass() { + runTest("compiler/testData/codegen/box/localClass/localFunctionInLocalClass.kt"); + } + + @Test + @TestMetadata("localHierarchy.kt") + public void testLocalHierarchy() { + runTest("compiler/testData/codegen/box/localClass/localHierarchy.kt"); + } + + @Test + @TestMetadata("noPrimaryConstructor.kt") + public void testNoPrimaryConstructor() { + runTest("compiler/testData/codegen/box/localClass/noPrimaryConstructor.kt"); + } + + @Test + @TestMetadata("objectExpressionInInitializer.kt") + public void testObjectExpressionInInitializer() { + runTest("compiler/testData/codegen/box/localClass/objectExpressionInInitializer.kt"); + } + + @Test + @TestMetadata("objectExpressionInProperty.kt") + public void testObjectExpressionInProperty() { + runTest("compiler/testData/codegen/box/localClass/objectExpressionInProperty.kt"); + } + + @Test + @TestMetadata("tryCatch.kt") + public void testTryCatch() { + runTest("compiler/testData/codegen/box/localClass/tryCatch.kt"); + } + + @Test + @TestMetadata("virtualCallFromConstructor.kt") + public void testVirtualCallFromConstructor() { + runTest("compiler/testData/codegen/box/localClass/virtualCallFromConstructor.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/localClasses") @TestDataPath("$PROJECT_ROOT") @@ -34261,6 +37013,38 @@ public class LLFirBlackBoxCodegenBasedTestGenerated extends AbstractLLFirBlackBo } } + @Nested + @TestMetadata("compiler/testData/codegen/box/localEscapeAnalysis") + @TestDataPath("$PROJECT_ROOT") + public class LocalEscapeAnalysis { + @Test + public void testAllFilesPresentInLocalEscapeAnalysis() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/localEscapeAnalysis"), Pattern.compile("^(.+)\\.kt$"), null, true); + } + + @Test + @TestMetadata("arraysFieldWrite.kt") + public void testArraysFieldWrite() { + runTest("compiler/testData/codegen/box/localEscapeAnalysis/arraysFieldWrite.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/lower") + @TestDataPath("$PROJECT_ROOT") + public class Lower { + @Test + public void testAllFilesPresentInLower() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/lower"), Pattern.compile("^(.+)\\.kt$"), null, true); + } + + @Test + @TestMetadata("localDelegatedProperty.kt") + public void testLocalDelegatedProperty() { + runTest("compiler/testData/codegen/box/lower/localDelegatedProperty.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/mangling") @TestDataPath("$PROJECT_ROOT") @@ -34300,6 +37084,12 @@ public class LLFirBlackBoxCodegenBasedTestGenerated extends AbstractLLFirBlackBo runTest("compiler/testData/codegen/box/mangling/internalOverrideSuperCall.kt"); } + @Test + @TestMetadata("multipleConstructors.kt") + public void testMultipleConstructors() { + runTest("compiler/testData/codegen/box/mangling/multipleConstructors.kt"); + } + @Test @TestMetadata("noOverrideWithJava.kt") public void testNoOverrideWithJava() { @@ -36343,6 +39133,98 @@ public class LLFirBlackBoxCodegenBasedTestGenerated extends AbstractLLFirBlackBo } } + @Nested + @TestMetadata("compiler/testData/codegen/box/object") + @TestDataPath("$PROJECT_ROOT") + public class Object { + @Test + public void testAllFilesPresentInObject() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/object"), Pattern.compile("^(.+)\\.kt$"), null, true); + } + + @Test + @TestMetadata("constructor0.kt") + public void testConstructor0() { + runTest("compiler/testData/codegen/box/object/constructor0.kt"); + } + + @Test + @TestMetadata("fields.kt") + public void testFields() { + runTest("compiler/testData/codegen/box/object/fields.kt"); + } + + @Test + @TestMetadata("fields1.kt") + public void testFields1() { + runTest("compiler/testData/codegen/box/object/fields1.kt"); + } + + @Test + @TestMetadata("fields2.kt") + public void testFields2() { + runTest("compiler/testData/codegen/box/object/fields2.kt"); + } + + @Test + @TestMetadata("globalInitializer.kt") + public void testGlobalInitializer() { + runTest("compiler/testData/codegen/box/object/globalInitializer.kt"); + } + + @Test + @TestMetadata("init0.kt") + public void testInit0() { + runTest("compiler/testData/codegen/box/object/init0.kt"); + } + + @Test + @TestMetadata("initialization.kt") + public void testInitialization() { + runTest("compiler/testData/codegen/box/object/initialization.kt"); + } + + @Test + @TestMetadata("initialization1.kt") + public void testInitialization1() { + runTest("compiler/testData/codegen/box/object/initialization1.kt"); + } + + @Test + @TestMetadata("method_call.kt") + public void testMethod_call() { + runTest("compiler/testData/codegen/box/object/method_call.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/objectExpression") + @TestDataPath("$PROJECT_ROOT") + public class ObjectExpression { + @Test + public void testAllFilesPresentInObjectExpression() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/objectExpression"), Pattern.compile("^(.+)\\.kt$"), null, true); + } + + @Test + @TestMetadata("expr1.kt") + public void testExpr1() { + runTest("compiler/testData/codegen/box/objectExpression/expr1.kt"); + } + + @Test + @TestMetadata("expr2.kt") + public void testExpr2() { + runTest("compiler/testData/codegen/box/objectExpression/expr2.kt"); + } + + @Test + @TestMetadata("expr3.kt") + public void testExpr3() { + runTest("compiler/testData/codegen/box/objectExpression/expr3.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/objectIntrinsics") @TestDataPath("$PROJECT_ROOT") @@ -39681,6 +42563,64 @@ public class LLFirBlackBoxCodegenBasedTestGenerated extends AbstractLLFirBlackBo } } + @Nested + @TestMetadata("compiler/testData/codegen/box/propertyCallableReference") + @TestDataPath("$PROJECT_ROOT") + public class PropertyCallableReference { + @Test + public void testAllFilesPresentInPropertyCallableReference() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/propertyCallableReference"), Pattern.compile("^(.+)\\.kt$"), null, true); + } + + @Test + @TestMetadata("dynamicReceiver.kt") + public void testDynamicReceiver() { + runTest("compiler/testData/codegen/box/propertyCallableReference/dynamicReceiver.kt"); + } + + @Test + @TestMetadata("multipleModules.kt") + public void testMultipleModules() { + runTest("compiler/testData/codegen/box/propertyCallableReference/multipleModules.kt"); + } + + @Test + @TestMetadata("valClass.kt") + public void testValClass() { + runTest("compiler/testData/codegen/box/propertyCallableReference/valClass.kt"); + } + + @Test + @TestMetadata("valExtension.kt") + public void testValExtension() { + runTest("compiler/testData/codegen/box/propertyCallableReference/valExtension.kt"); + } + + @Test + @TestMetadata("valModule.kt") + public void testValModule() { + runTest("compiler/testData/codegen/box/propertyCallableReference/valModule.kt"); + } + + @Test + @TestMetadata("varClass.kt") + public void testVarClass() { + runTest("compiler/testData/codegen/box/propertyCallableReference/varClass.kt"); + } + + @Test + @TestMetadata("varExtension.kt") + public void testVarExtension() { + runTest("compiler/testData/codegen/box/propertyCallableReference/varExtension.kt"); + } + + @Test + @TestMetadata("varModule.kt") + public void testVarModule() { + runTest("compiler/testData/codegen/box/propertyCallableReference/varModule.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/publishedApi") @TestDataPath("$PROJECT_ROOT") @@ -51941,6 +54881,58 @@ public class LLFirBlackBoxCodegenBasedTestGenerated extends AbstractLLFirBlackBo } } + @Nested + @TestMetadata("compiler/testData/codegen/box/serialization") + @TestDataPath("$PROJECT_ROOT") + public class Serialization { + @Test + public void testAllFilesPresentInSerialization() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/serialization"), Pattern.compile("^(.+)\\.kt$"), null, true); + } + + @Test + @TestMetadata("deserializedMembers.kt") + public void testDeserializedMembers() { + runTest("compiler/testData/codegen/box/serialization/deserializedMembers.kt"); + } + + @Test + @TestMetadata("serializedCatch.kt") + public void testSerializedCatch() { + runTest("compiler/testData/codegen/box/serialization/serializedCatch.kt"); + } + + @Test + @TestMetadata("serializedCharConstant.kt") + public void testSerializedCharConstant() { + runTest("compiler/testData/codegen/box/serialization/serializedCharConstant.kt"); + } + + @Test + @TestMetadata("serializedDefaultArgs.kt") + public void testSerializedDefaultArgs() { + runTest("compiler/testData/codegen/box/serialization/serializedDefaultArgs.kt"); + } + + @Test + @TestMetadata("serializedDoWhile.kt") + public void testSerializedDoWhile() { + runTest("compiler/testData/codegen/box/serialization/serializedDoWhile.kt"); + } + + @Test + @TestMetadata("serializedEnumOrdinal.kt") + public void testSerializedEnumOrdinal() { + runTest("compiler/testData/codegen/box/serialization/serializedEnumOrdinal.kt"); + } + + @Test + @TestMetadata("serializedVararg.kt") + public void testSerializedVararg() { + runTest("compiler/testData/codegen/box/serialization/serializedVararg.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/size") @TestDataPath("$PROJECT_ROOT") @@ -52655,6 +55647,22 @@ public class LLFirBlackBoxCodegenBasedTestGenerated extends AbstractLLFirBlackBo } } + @Nested + @TestMetadata("compiler/testData/codegen/box/stringTrim") + @TestDataPath("$PROJECT_ROOT") + public class StringTrim { + @Test + public void testAllFilesPresentInStringTrim() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/stringTrim"), Pattern.compile("^(.+)\\.kt$"), null, true); + } + + @Test + @TestMetadata("stringTrim.kt") + public void testStringTrim() { + runTest("compiler/testData/codegen/box/stringTrim/stringTrim.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/strings") @TestDataPath("$PROJECT_ROOT") @@ -54201,6 +57209,142 @@ public class LLFirBlackBoxCodegenBasedTestGenerated extends AbstractLLFirBlackBo } } + @Nested + @TestMetadata("compiler/testData/codegen/box/try") + @TestDataPath("$PROJECT_ROOT") + public class Try { + @Test + public void testAllFilesPresentInTry() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/try"), Pattern.compile("^(.+)\\.kt$"), null, true); + } + + @Test + @TestMetadata("catch3.kt") + public void testCatch3() { + runTest("compiler/testData/codegen/box/try/catch3.kt"); + } + + @Test + @TestMetadata("catch4.kt") + public void testCatch4() { + runTest("compiler/testData/codegen/box/try/catch4.kt"); + } + + @Test + @TestMetadata("catch5.kt") + public void testCatch5() { + runTest("compiler/testData/codegen/box/try/catch5.kt"); + } + + @Test + @TestMetadata("catch6.kt") + public void testCatch6() { + runTest("compiler/testData/codegen/box/try/catch6.kt"); + } + + @Test + @TestMetadata("catch8.kt") + public void testCatch8() { + runTest("compiler/testData/codegen/box/try/catch8.kt"); + } + + @Test + @TestMetadata("finally1.kt") + public void testFinally1() { + runTest("compiler/testData/codegen/box/try/finally1.kt"); + } + + @Test + @TestMetadata("finally10.kt") + public void testFinally10() { + runTest("compiler/testData/codegen/box/try/finally10.kt"); + } + + @Test + @TestMetadata("finally11.kt") + public void testFinally11() { + runTest("compiler/testData/codegen/box/try/finally11.kt"); + } + + @Test + @TestMetadata("finally2.kt") + public void testFinally2() { + runTest("compiler/testData/codegen/box/try/finally2.kt"); + } + + @Test + @TestMetadata("finally3.kt") + public void testFinally3() { + runTest("compiler/testData/codegen/box/try/finally3.kt"); + } + + @Test + @TestMetadata("finally4.kt") + public void testFinally4() { + runTest("compiler/testData/codegen/box/try/finally4.kt"); + } + + @Test + @TestMetadata("finally5.kt") + public void testFinally5() { + runTest("compiler/testData/codegen/box/try/finally5.kt"); + } + + @Test + @TestMetadata("finally6.kt") + public void testFinally6() { + runTest("compiler/testData/codegen/box/try/finally6.kt"); + } + + @Test + @TestMetadata("finally7.kt") + public void testFinally7() { + runTest("compiler/testData/codegen/box/try/finally7.kt"); + } + + @Test + @TestMetadata("finally8.kt") + public void testFinally8() { + runTest("compiler/testData/codegen/box/try/finally8.kt"); + } + + @Test + @TestMetadata("finally9.kt") + public void testFinally9() { + runTest("compiler/testData/codegen/box/try/finally9.kt"); + } + + @Test + @TestMetadata("returnsDifferentTypes.kt") + public void testReturnsDifferentTypes() { + runTest("compiler/testData/codegen/box/try/returnsDifferentTypes.kt"); + } + + @Test + @TestMetadata("try1.kt") + public void testTry1() { + runTest("compiler/testData/codegen/box/try/try1.kt"); + } + + @Test + @TestMetadata("try2.kt") + public void testTry2() { + runTest("compiler/testData/codegen/box/try/try2.kt"); + } + + @Test + @TestMetadata("try3.kt") + public void testTry3() { + runTest("compiler/testData/codegen/box/try/try3.kt"); + } + + @Test + @TestMetadata("try4.kt") + public void testTry4() { + runTest("compiler/testData/codegen/box/try/try4.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/typeInfo") @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 a6b996a3412..6506352adf6 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 @@ -106,6 +106,12 @@ public class LLFirReversedBlackBoxCodegenBasedTestGenerated extends AbstractLLFi runTest("compiler/testData/codegen/box/annotations/annotationWithVarargAsDefaultValue.kt"); } + @Test + @TestMetadata("annotations0.kt") + public void testAnnotations0() { + runTest("compiler/testData/codegen/box/annotations/annotations0.kt"); + } + @Test @TestMetadata("annotationsOnDefault.kt") public void testAnnotationsOnDefault() { @@ -941,6 +947,82 @@ public class LLFirReversedBlackBoxCodegenBasedTestGenerated extends AbstractLLFi } } + @Nested + @TestMetadata("compiler/testData/codegen/box/arithmetic") + @TestDataPath("$PROJECT_ROOT") + public class Arithmetic { + @Test + public void testAllFilesPresentInArithmetic() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/arithmetic"), Pattern.compile("^(.+)\\.kt$"), null, true); + } + + @Test + @TestMetadata("basic_charConversions.kt") + public void testBasic_charConversions() { + runTest("compiler/testData/codegen/box/arithmetic/basic_charConversions.kt"); + } + + @Test + @TestMetadata("basic_charCornerCases.kt") + public void testBasic_charCornerCases() { + runTest("compiler/testData/codegen/box/arithmetic/basic_charCornerCases.kt"); + } + + @Test + @TestMetadata("basic_compareIntToFloat.kt") + public void testBasic_compareIntToFloat() { + runTest("compiler/testData/codegen/box/arithmetic/basic_compareIntToFloat.kt"); + } + + @Test + @TestMetadata("basic_doubleBasic.kt") + public void testBasic_doubleBasic() { + runTest("compiler/testData/codegen/box/arithmetic/basic_doubleBasic.kt"); + } + + @Test + @TestMetadata("basic_integralToFloat.kt") + public void testBasic_integralToFloat() { + runTest("compiler/testData/codegen/box/arithmetic/basic_integralToFloat.kt"); + } + + @Test + @TestMetadata("basic_kt37412.kt") + public void testBasic_kt37412() { + runTest("compiler/testData/codegen/box/arithmetic/basic_kt37412.kt"); + } + + @Test + @TestMetadata("basic_selfComparison.kt") + public void testBasic_selfComparison() { + runTest("compiler/testData/codegen/box/arithmetic/basic_selfComparison.kt"); + } + + @Test + @TestMetadata("basic_shifts.kt") + public void testBasic_shifts() { + runTest("compiler/testData/codegen/box/arithmetic/basic_shifts.kt"); + } + + @Test + @TestMetadata("basic_uintTests.kt") + public void testBasic_uintTests() { + runTest("compiler/testData/codegen/box/arithmetic/basic_uintTests.kt"); + } + + @Test + @TestMetadata("division.kt") + public void testDivision() { + runTest("compiler/testData/codegen/box/arithmetic/division.kt"); + } + + @Test + @TestMetadata("github1856.kt") + public void testGithub1856() { + runTest("compiler/testData/codegen/box/arithmetic/github1856.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/arrays") @TestDataPath("$PROJECT_ROOT") @@ -1793,6 +1875,302 @@ public class LLFirReversedBlackBoxCodegenBasedTestGenerated extends AbstractLLFi } } + @Nested + @TestMetadata("compiler/testData/codegen/box/basics") + @TestDataPath("$PROJECT_ROOT") + public class Basics { + @Test + public void testAllFilesPresentInBasics() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/basics"), Pattern.compile("^(.+)\\.kt$"), null, true); + } + + @Test + @TestMetadata("array_to_any.kt") + public void testArray_to_any() { + runTest("compiler/testData/codegen/box/basics/array_to_any.kt"); + } + + @Test + @TestMetadata("canonical_name.kt") + public void testCanonical_name() { + runTest("compiler/testData/codegen/box/basics/canonical_name.kt"); + } + + @Test + @TestMetadata("cast_null.kt") + public void testCast_null() { + runTest("compiler/testData/codegen/box/basics/cast_null.kt"); + } + + @Test + @TestMetadata("cast_simple.kt") + public void testCast_simple() { + runTest("compiler/testData/codegen/box/basics/cast_simple.kt"); + } + + @Test + @TestMetadata("check_type.kt") + public void testCheck_type() { + runTest("compiler/testData/codegen/box/basics/check_type.kt"); + } + + @Test + @TestMetadata("companion.kt") + public void testCompanion() { + runTest("compiler/testData/codegen/box/basics/companion.kt"); + } + + @Test + @TestMetadata("concatenation.kt") + public void testConcatenation() { + runTest("compiler/testData/codegen/box/basics/concatenation.kt"); + } + + @Test + @TestMetadata("const_infinity.kt") + public void testConst_infinity() { + runTest("compiler/testData/codegen/box/basics/const_infinity.kt"); + } + + @Test + @TestMetadata("expression_as_statement.kt") + public void testExpression_as_statement() { + runTest("compiler/testData/codegen/box/basics/expression_as_statement.kt"); + } + + @Test + @TestMetadata("k42000_1.kt") + public void testK42000_1() { + runTest("compiler/testData/codegen/box/basics/k42000_1.kt"); + } + + @Test + @TestMetadata("k42000_2.kt") + public void testK42000_2() { + runTest("compiler/testData/codegen/box/basics/k42000_2.kt"); + } + + @Test + @TestMetadata("local_variable.kt") + public void testLocal_variable() { + runTest("compiler/testData/codegen/box/basics/local_variable.kt"); + } + + @Test + @TestMetadata("null_check.kt") + public void testNull_check() { + runTest("compiler/testData/codegen/box/basics/null_check.kt"); + } + + @Test + @TestMetadata("safe_cast.kt") + public void testSafe_cast() { + runTest("compiler/testData/codegen/box/basics/safe_cast.kt"); + } + + @Test + @TestMetadata("spread_operator_0.kt") + public void testSpread_operator_0() { + runTest("compiler/testData/codegen/box/basics/spread_operator_0.kt"); + } + + @Test + @TestMetadata("statements0.kt") + public void testStatements0() { + runTest("compiler/testData/codegen/box/basics/statements0.kt"); + } + + @Test + @TestMetadata("superFunCall.kt") + public void testSuperFunCall() { + runTest("compiler/testData/codegen/box/basics/superFunCall.kt"); + } + + @Test + @TestMetadata("superGetterCall.kt") + public void testSuperGetterCall() { + runTest("compiler/testData/codegen/box/basics/superGetterCall.kt"); + } + + @Test + @TestMetadata("superSetterCall.kt") + public void testSuperSetterCall() { + runTest("compiler/testData/codegen/box/basics/superSetterCall.kt"); + } + + @Test + @TestMetadata("typealias1.kt") + public void testTypealias1() { + runTest("compiler/testData/codegen/box/basics/typealias1.kt"); + } + + @Test + @TestMetadata("unchecked_cast1.kt") + public void testUnchecked_cast1() { + runTest("compiler/testData/codegen/box/basics/unchecked_cast1.kt"); + } + + @Test + @TestMetadata("unchecked_cast2.kt") + public void testUnchecked_cast2() { + runTest("compiler/testData/codegen/box/basics/unchecked_cast2.kt"); + } + + @Test + @TestMetadata("unchecked_cast3.kt") + public void testUnchecked_cast3() { + runTest("compiler/testData/codegen/box/basics/unchecked_cast3.kt"); + } + + @Test + @TestMetadata("unchecked_cast4.kt") + public void testUnchecked_cast4() { + runTest("compiler/testData/codegen/box/basics/unchecked_cast4.kt"); + } + + @Test + @TestMetadata("unit1.kt") + public void testUnit1() { + runTest("compiler/testData/codegen/box/basics/unit1.kt"); + } + + @Test + @TestMetadata("unit2.kt") + public void testUnit2() { + runTest("compiler/testData/codegen/box/basics/unit2.kt"); + } + + @Test + @TestMetadata("unit3.kt") + public void testUnit3() { + runTest("compiler/testData/codegen/box/basics/unit3.kt"); + } + + @Test + @TestMetadata("unit4.kt") + public void testUnit4() { + runTest("compiler/testData/codegen/box/basics/unit4.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/bce") + @TestDataPath("$PROJECT_ROOT") + public class Bce { + @Test + public void testAllFilesPresentInBce() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/bce"), Pattern.compile("^(.+)\\.kt$"), null, true); + } + + @Test + @TestMetadata("bceCases.kt") + public void testBceCases() { + runTest("compiler/testData/codegen/box/bce/bceCases.kt"); + } + + @Test + @TestMetadata("customGetter.kt") + public void testCustomGetter() { + runTest("compiler/testData/codegen/box/bce/customGetter.kt"); + } + + @Test + @TestMetadata("delegatedProperty.kt") + public void testDelegatedProperty() { + runTest("compiler/testData/codegen/box/bce/delegatedProperty.kt"); + } + + @Test + @TestMetadata("differentArrays.kt") + public void testDifferentArrays() { + runTest("compiler/testData/codegen/box/bce/differentArrays.kt"); + } + + @Test + @TestMetadata("differentObjects.kt") + public void testDifferentObjects() { + runTest("compiler/testData/codegen/box/bce/differentObjects.kt"); + } + + @Test + @TestMetadata("forDownToSize.kt") + public void testForDownToSize() { + runTest("compiler/testData/codegen/box/bce/forDownToSize.kt"); + } + + @Test + @TestMetadata("forDownToWithStep.kt") + public void testForDownToWithStep() { + runTest("compiler/testData/codegen/box/bce/forDownToWithStep.kt"); + } + + @Test + @TestMetadata("forEachIndexedTest.kt") + public void testForEachIndexedTest() { + runTest("compiler/testData/codegen/box/bce/forEachIndexedTest.kt"); + } + + @Test + @TestMetadata("forEachIndicies.kt") + public void testForEachIndicies() { + runTest("compiler/testData/codegen/box/bce/forEachIndicies.kt"); + } + + @Test + @TestMetadata("forIndiciesWithStep.kt") + public void testForIndiciesWithStep() { + runTest("compiler/testData/codegen/box/bce/forIndiciesWithStep.kt"); + } + + @Test + @TestMetadata("forRangeToSize.kt") + public void testForRangeToSize() { + runTest("compiler/testData/codegen/box/bce/forRangeToSize.kt"); + } + + @Test + @TestMetadata("forRangeToWithStep.kt") + public void testForRangeToWithStep() { + runTest("compiler/testData/codegen/box/bce/forRangeToWithStep.kt"); + } + + @Test + @TestMetadata("forReversed.kt") + public void testForReversed() { + runTest("compiler/testData/codegen/box/bce/forReversed.kt"); + } + + @Test + @TestMetadata("forUntilSize.kt") + public void testForUntilSize() { + runTest("compiler/testData/codegen/box/bce/forUntilSize.kt"); + } + + @Test + @TestMetadata("forUntilWithStep.kt") + public void testForUntilWithStep() { + runTest("compiler/testData/codegen/box/bce/forUntilWithStep.kt"); + } + + @Test + @TestMetadata("forWithIndex.kt") + public void testForWithIndex() { + runTest("compiler/testData/codegen/box/bce/forWithIndex.kt"); + } + + @Test + @TestMetadata("inheritance.kt") + public void testInheritance() { + runTest("compiler/testData/codegen/box/bce/inheritance.kt"); + } + + @Test + @TestMetadata("withGetter.kt") + public void testWithGetter() { + runTest("compiler/testData/codegen/box/bce/withGetter.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/binaryOp") @TestDataPath("$PROJECT_ROOT") @@ -1989,6 +2367,124 @@ public class LLFirReversedBlackBoxCodegenBasedTestGenerated extends AbstractLLFi } } + @Nested + @TestMetadata("compiler/testData/codegen/box/boxing") + @TestDataPath("$PROJECT_ROOT") + public class Boxing { + @Test + public void testAllFilesPresentInBoxing() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/boxing"), Pattern.compile("^(.+)\\.kt$"), null, true); + } + + @Test + @TestMetadata("box_cache0.kt") + public void testBox_cache0() { + runTest("compiler/testData/codegen/box/boxing/box_cache0.kt"); + } + + @Test + @TestMetadata("boxing0.kt") + public void testBoxing0() { + runTest("compiler/testData/codegen/box/boxing/boxing0.kt"); + } + + @Test + @TestMetadata("boxing1.kt") + public void testBoxing1() { + runTest("compiler/testData/codegen/box/boxing/boxing1.kt"); + } + + @Test + @TestMetadata("boxing10.kt") + public void testBoxing10() { + runTest("compiler/testData/codegen/box/boxing/boxing10.kt"); + } + + @Test + @TestMetadata("boxing11.kt") + public void testBoxing11() { + runTest("compiler/testData/codegen/box/boxing/boxing11.kt"); + } + + @Test + @TestMetadata("boxing12.kt") + public void testBoxing12() { + runTest("compiler/testData/codegen/box/boxing/boxing12.kt"); + } + + @Test + @TestMetadata("boxing13.kt") + public void testBoxing13() { + runTest("compiler/testData/codegen/box/boxing/boxing13.kt"); + } + + @Test + @TestMetadata("boxing14.kt") + public void testBoxing14() { + runTest("compiler/testData/codegen/box/boxing/boxing14.kt"); + } + + @Test + @TestMetadata("boxing15.kt") + public void testBoxing15() { + runTest("compiler/testData/codegen/box/boxing/boxing15.kt"); + } + + @Test + @TestMetadata("boxing2.kt") + public void testBoxing2() { + runTest("compiler/testData/codegen/box/boxing/boxing2.kt"); + } + + @Test + @TestMetadata("boxing3.kt") + public void testBoxing3() { + runTest("compiler/testData/codegen/box/boxing/boxing3.kt"); + } + + @Test + @TestMetadata("boxing4.kt") + public void testBoxing4() { + runTest("compiler/testData/codegen/box/boxing/boxing4.kt"); + } + + @Test + @TestMetadata("boxing5.kt") + public void testBoxing5() { + runTest("compiler/testData/codegen/box/boxing/boxing5.kt"); + } + + @Test + @TestMetadata("boxing6.kt") + public void testBoxing6() { + runTest("compiler/testData/codegen/box/boxing/boxing6.kt"); + } + + @Test + @TestMetadata("boxing7.kt") + public void testBoxing7() { + runTest("compiler/testData/codegen/box/boxing/boxing7.kt"); + } + + @Test + @TestMetadata("boxing8.kt") + public void testBoxing8() { + runTest("compiler/testData/codegen/box/boxing/boxing8.kt"); + } + + @Test + @TestMetadata("boxing9.kt") + public void testBoxing9() { + runTest("compiler/testData/codegen/box/boxing/boxing9.kt"); + } + + @Test + @TestMetadata("kt53100_casts.kt") + public void testKt53100_casts() { + runTest("compiler/testData/codegen/box/boxing/kt53100_casts.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/boxingOptimization") @TestDataPath("$PROJECT_ROOT") @@ -2269,6 +2765,88 @@ public class LLFirReversedBlackBoxCodegenBasedTestGenerated extends AbstractLLFi } } + @Nested + @TestMetadata("compiler/testData/codegen/box/branching") + @TestDataPath("$PROJECT_ROOT") + public class Branching { + @Test + @TestMetadata("advanced_when2.kt") + public void testAdvanced_when2() { + runTest("compiler/testData/codegen/box/branching/advanced_when2.kt"); + } + + @Test + @TestMetadata("advanced_when5.kt") + public void testAdvanced_when5() { + runTest("compiler/testData/codegen/box/branching/advanced_when5.kt"); + } + + @Test + public void testAllFilesPresentInBranching() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/branching"), Pattern.compile("^(.+)\\.kt$"), null, true); + } + + @Test + @TestMetadata("if_else.kt") + public void testIf_else() { + runTest("compiler/testData/codegen/box/branching/if_else.kt"); + } + + @Test + @TestMetadata("when2.kt") + public void testWhen2() { + runTest("compiler/testData/codegen/box/branching/when2.kt"); + } + + @Test + @TestMetadata("when4.kt") + public void testWhen4() { + runTest("compiler/testData/codegen/box/branching/when4.kt"); + } + + @Test + @TestMetadata("when5.kt") + public void testWhen5() { + runTest("compiler/testData/codegen/box/branching/when5.kt"); + } + + @Test + @TestMetadata("when6.kt") + public void testWhen6() { + runTest("compiler/testData/codegen/box/branching/when6.kt"); + } + + @Test + @TestMetadata("when7.kt") + public void testWhen7() { + runTest("compiler/testData/codegen/box/branching/when7.kt"); + } + + @Test + @TestMetadata("when8.kt") + public void testWhen8() { + runTest("compiler/testData/codegen/box/branching/when8.kt"); + } + + @Test + @TestMetadata("when9.kt") + public void testWhen9() { + runTest("compiler/testData/codegen/box/branching/when9.kt"); + } + + @Test + @TestMetadata("when_through.kt") + public void testWhen_through() { + runTest("compiler/testData/codegen/box/branching/when_through.kt"); + } + + @Test + @TestMetadata("when_with_try1.kt") + public void testWhen_with_try1() { + runTest("compiler/testData/codegen/box/branching/when_with_try1.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/bridges") @TestDataPath("$PROJECT_ROOT") @@ -2542,6 +3120,18 @@ public class LLFirReversedBlackBoxCodegenBasedTestGenerated extends AbstractLLFi runTest("compiler/testData/codegen/box/bridges/methodWithDefaultParameter.kt"); } + @Test + @TestMetadata("multipleModules1.kt") + public void testMultipleModules1() { + runTest("compiler/testData/codegen/box/bridges/multipleModules1.kt"); + } + + @Test + @TestMetadata("multipleModules2.kt") + public void testMultipleModules2() { + runTest("compiler/testData/codegen/box/bridges/multipleModules2.kt"); + } + @Test @TestMetadata("nestedClassTypeParameters.kt") public void testNestedClassTypeParameters() { @@ -2608,6 +3198,12 @@ public class LLFirReversedBlackBoxCodegenBasedTestGenerated extends AbstractLLFi runTest("compiler/testData/codegen/box/bridges/propertySetter.kt"); } + @Test + @TestMetadata("returnTypeSignature.kt") + public void testReturnTypeSignature() { + runTest("compiler/testData/codegen/box/bridges/returnTypeSignature.kt"); + } + @Test @TestMetadata("simple.kt") public void testSimple() { @@ -2650,6 +3246,18 @@ public class LLFirReversedBlackBoxCodegenBasedTestGenerated extends AbstractLLFi runTest("compiler/testData/codegen/box/bridges/simpleUpperBound.kt"); } + @Test + @TestMetadata("special.kt") + public void testSpecial() { + runTest("compiler/testData/codegen/box/bridges/special.kt"); + } + + @Test + @TestMetadata("specialGeneric.kt") + public void testSpecialGeneric() { + runTest("compiler/testData/codegen/box/bridges/specialGeneric.kt"); + } + @Test @TestMetadata("strListContains.kt") public void testStrListContains() { @@ -2662,6 +3270,120 @@ public class LLFirReversedBlackBoxCodegenBasedTestGenerated extends AbstractLLFi runTest("compiler/testData/codegen/box/bridges/strListRemove.kt"); } + @Test + @TestMetadata("test0.kt") + public void testTest0() { + runTest("compiler/testData/codegen/box/bridges/test0.kt"); + } + + @Test + @TestMetadata("test1.kt") + public void testTest1() { + runTest("compiler/testData/codegen/box/bridges/test1.kt"); + } + + @Test + @TestMetadata("test10.kt") + public void testTest10() { + runTest("compiler/testData/codegen/box/bridges/test10.kt"); + } + + @Test + @TestMetadata("test11.kt") + public void testTest11() { + runTest("compiler/testData/codegen/box/bridges/test11.kt"); + } + + @Test + @TestMetadata("test12.kt") + public void testTest12() { + runTest("compiler/testData/codegen/box/bridges/test12.kt"); + } + + @Test + @TestMetadata("test13.kt") + public void testTest13() { + runTest("compiler/testData/codegen/box/bridges/test13.kt"); + } + + @Test + @TestMetadata("test14.kt") + public void testTest14() { + runTest("compiler/testData/codegen/box/bridges/test14.kt"); + } + + @Test + @TestMetadata("test15.kt") + public void testTest15() { + runTest("compiler/testData/codegen/box/bridges/test15.kt"); + } + + @Test + @TestMetadata("test16.kt") + public void testTest16() { + runTest("compiler/testData/codegen/box/bridges/test16.kt"); + } + + @Test + @TestMetadata("test17.kt") + public void testTest17() { + runTest("compiler/testData/codegen/box/bridges/test17.kt"); + } + + @Test + @TestMetadata("test18.kt") + public void testTest18() { + runTest("compiler/testData/codegen/box/bridges/test18.kt"); + } + + @Test + @TestMetadata("test2.kt") + public void testTest2() { + runTest("compiler/testData/codegen/box/bridges/test2.kt"); + } + + @Test + @TestMetadata("test3.kt") + public void testTest3() { + runTest("compiler/testData/codegen/box/bridges/test3.kt"); + } + + @Test + @TestMetadata("test4.kt") + public void testTest4() { + runTest("compiler/testData/codegen/box/bridges/test4.kt"); + } + + @Test + @TestMetadata("test5.kt") + public void testTest5() { + runTest("compiler/testData/codegen/box/bridges/test5.kt"); + } + + @Test + @TestMetadata("test6.kt") + public void testTest6() { + runTest("compiler/testData/codegen/box/bridges/test6.kt"); + } + + @Test + @TestMetadata("test7.kt") + public void testTest7() { + runTest("compiler/testData/codegen/box/bridges/test7.kt"); + } + + @Test + @TestMetadata("test8.kt") + public void testTest8() { + runTest("compiler/testData/codegen/box/bridges/test8.kt"); + } + + @Test + @TestMetadata("test9.kt") + public void testTest9() { + runTest("compiler/testData/codegen/box/bridges/test9.kt"); + } + @Test @TestMetadata("traitImplInheritsTraitImpl.kt") public void testTraitImplInheritsTraitImpl() { @@ -6383,6 +7105,46 @@ public class LLFirReversedBlackBoxCodegenBasedTestGenerated extends AbstractLLFi } } + @Nested + @TestMetadata("compiler/testData/codegen/box/classDelegation") + @TestDataPath("$PROJECT_ROOT") + public class ClassDelegation { + @Test + public void testAllFilesPresentInClassDelegation() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/classDelegation"), Pattern.compile("^(.+)\\.kt$"), null, true); + } + + @Test + @TestMetadata("generic.kt") + public void testGeneric() { + runTest("compiler/testData/codegen/box/classDelegation/generic.kt"); + } + + @Test + @TestMetadata("method.kt") + public void testMethod() { + runTest("compiler/testData/codegen/box/classDelegation/method.kt"); + } + + @Test + @TestMetadata("multipleModules.kt") + public void testMultipleModules() { + runTest("compiler/testData/codegen/box/classDelegation/multipleModules.kt"); + } + + @Test + @TestMetadata("property.kt") + public void testProperty() { + runTest("compiler/testData/codegen/box/classDelegation/property.kt"); + } + + @Test + @TestMetadata("withBridge.kt") + public void testWithBridge() { + runTest("compiler/testData/codegen/box/classDelegation/withBridge.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/classLiteral") @TestDataPath("$PROJECT_ROOT") @@ -9610,6 +10372,12 @@ public class LLFirReversedBlackBoxCodegenBasedTestGenerated extends AbstractLLFi runTest("compiler/testData/codegen/box/contracts/constructorArgument.kt"); } + @Test + @TestMetadata("contractForCast.kt") + public void testContractForCast() { + runTest("compiler/testData/codegen/box/contracts/contractForCast.kt"); + } + @Test @TestMetadata("destructuredVariable.kt") public void testDestructuredVariable() { @@ -9652,6 +10420,12 @@ public class LLFirReversedBlackBoxCodegenBasedTestGenerated extends AbstractLLFi runTest("compiler/testData/codegen/box/contracts/functionParameter.kt"); } + @Test + @TestMetadata("isNullString.kt") + public void testIsNullString() { + runTest("compiler/testData/codegen/box/contracts/isNullString.kt"); + } + @Test @TestMetadata("kt39374.kt") public void testKt39374() { @@ -9694,6 +10468,24 @@ public class LLFirReversedBlackBoxCodegenBasedTestGenerated extends AbstractLLFi runTest("compiler/testData/codegen/box/contracts/nestedLambdaInNonInlineCallExactlyOnce.kt"); } + @Test + @TestMetadata("nonNullSmartCast.kt") + public void testNonNullSmartCast() { + runTest("compiler/testData/codegen/box/contracts/nonNullSmartCast.kt"); + } + + @Test + @TestMetadata("require.kt") + public void testRequire() { + runTest("compiler/testData/codegen/box/contracts/require.kt"); + } + + @Test + @TestMetadata("runLambdaForVal.kt") + public void testRunLambdaForVal() { + runTest("compiler/testData/codegen/box/contracts/runLambdaForVal.kt"); + } + @Test @TestMetadata("valInWhen.kt") public void testValInWhen() { @@ -11141,6 +11933,124 @@ public class LLFirReversedBlackBoxCodegenBasedTestGenerated extends AbstractLLFi } } + @Nested + @TestMetadata("compiler/testData/codegen/box/controlflow") + @TestDataPath("$PROJECT_ROOT") + public class Controlflow { + @Test + public void testAllFilesPresentInControlflow() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/controlflow"), Pattern.compile("^(.+)\\.kt$"), null, true); + } + + @Test + @TestMetadata("break.kt") + public void testBreak() { + runTest("compiler/testData/codegen/box/controlflow/break.kt"); + } + + @Test + @TestMetadata("break1.kt") + public void testBreak1() { + runTest("compiler/testData/codegen/box/controlflow/break1.kt"); + } + + @Test + @TestMetadata("for_loops.kt") + public void testFor_loops() { + runTest("compiler/testData/codegen/box/controlflow/for_loops.kt"); + } + + @Test + @TestMetadata("for_loops_array_break_continue.kt") + public void testFor_loops_array_break_continue() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_array_break_continue.kt"); + } + + @Test + @TestMetadata("for_loops_array_indices.kt") + public void testFor_loops_array_indices() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_array_indices.kt"); + } + + @Test + @TestMetadata("for_loops_array_mutation.kt") + public void testFor_loops_array_mutation() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_array_mutation.kt"); + } + + @Test + @TestMetadata("for_loops_array_nested.kt") + public void testFor_loops_array_nested() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_array_nested.kt"); + } + + @Test + @TestMetadata("for_loops_array_nullable.kt") + public void testFor_loops_array_nullable() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_array_nullable.kt"); + } + + @Test + @TestMetadata("for_loops_array_side_effects.kt") + public void testFor_loops_array_side_effects() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_array_side_effects.kt"); + } + + @Test + @TestMetadata("for_loops_call_order.kt") + public void testFor_loops_call_order() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_call_order.kt"); + } + + @Test + @TestMetadata("for_loops_coroutines.kt") + public void testFor_loops_coroutines() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_coroutines.kt"); + } + + @Test + @TestMetadata("for_loops_empty_range.kt") + public void testFor_loops_empty_range() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_empty_range.kt"); + } + + @Test + @TestMetadata("for_loops_errors.kt") + public void testFor_loops_errors() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_errors.kt"); + } + + @Test + @TestMetadata("for_loops_let_with_nullable.kt") + public void testFor_loops_let_with_nullable() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_let_with_nullable.kt"); + } + + @Test + @TestMetadata("for_loops_nested.kt") + public void testFor_loops_nested() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_nested.kt"); + } + + @Test + @TestMetadata("for_loops_overflow.kt") + public void testFor_loops_overflow() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_overflow.kt"); + } + + @Test + @TestMetadata("for_loops_types.kt") + public void testFor_loops_types() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_types.kt"); + } + + @Test + @TestMetadata("unreachable1.kt") + public void testUnreachable1() { + runTest("compiler/testData/codegen/box/controlflow/unreachable1.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/coroutines") @TestDataPath("$PROJECT_ROOT") @@ -11162,6 +12072,12 @@ public class LLFirReversedBlackBoxCodegenBasedTestGenerated extends AbstractLLFi KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines"), Pattern.compile("^(.+)\\.kt$"), null, true); } + @Test + @TestMetadata("anonymousObject.kt") + public void testAnonymousObject() { + runTest("compiler/testData/codegen/box/coroutines/anonymousObject.kt"); + } + @Test @TestMetadata("async.kt") public void testAsync() { @@ -11258,12 +12174,144 @@ public class LLFirReversedBlackBoxCodegenBasedTestGenerated extends AbstractLLFi runTest("compiler/testData/codegen/box/coroutines/coercionToUnit.kt"); } + @Test + @TestMetadata("controlFlow_chain.kt") + public void testControlFlow_chain() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_chain.kt"); + } + + @Test + @TestMetadata("controlFlow_finally1.kt") + public void testControlFlow_finally1() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally1.kt"); + } + + @Test + @TestMetadata("controlFlow_finally2.kt") + public void testControlFlow_finally2() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally2.kt"); + } + + @Test + @TestMetadata("controlFlow_finally3.kt") + public void testControlFlow_finally3() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally3.kt"); + } + + @Test + @TestMetadata("controlFlow_finally4.kt") + public void testControlFlow_finally4() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally4.kt"); + } + + @Test + @TestMetadata("controlFlow_finally5.kt") + public void testControlFlow_finally5() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally5.kt"); + } + + @Test + @TestMetadata("controlFlow_finally6.kt") + public void testControlFlow_finally6() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally6.kt"); + } + + @Test + @TestMetadata("controlFlow_finally7.kt") + public void testControlFlow_finally7() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally7.kt"); + } + + @Test + @TestMetadata("controlFlow_if1.kt") + public void testControlFlow_if1() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_if1.kt"); + } + + @Test + @TestMetadata("controlFlow_if2.kt") + public void testControlFlow_if2() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_if2.kt"); + } + + @Test + @TestMetadata("controlFlow_inline1.kt") + public void testControlFlow_inline1() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_inline1.kt"); + } + + @Test + @TestMetadata("controlFlow_inline2.kt") + public void testControlFlow_inline2() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_inline2.kt"); + } + + @Test + @TestMetadata("controlFlow_inline3.kt") + public void testControlFlow_inline3() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_inline3.kt"); + } + + @Test + @TestMetadata("controlFlow_tryCatch1.kt") + public void testControlFlow_tryCatch1() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_tryCatch1.kt"); + } + + @Test + @TestMetadata("controlFlow_tryCatch2.kt") + public void testControlFlow_tryCatch2() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_tryCatch2.kt"); + } + + @Test + @TestMetadata("controlFlow_tryCatch3.kt") + public void testControlFlow_tryCatch3() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_tryCatch3.kt"); + } + + @Test + @TestMetadata("controlFlow_tryCatch4.kt") + public void testControlFlow_tryCatch4() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_tryCatch4.kt"); + } + + @Test + @TestMetadata("controlFlow_tryCatch5.kt") + public void testControlFlow_tryCatch5() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_tryCatch5.kt"); + } + + @Test + @TestMetadata("controlFlow_while1.kt") + public void testControlFlow_while1() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_while1.kt"); + } + + @Test + @TestMetadata("controlFlow_while2.kt") + public void testControlFlow_while2() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_while2.kt"); + } + @Test @TestMetadata("controllerAccessFromInnerLambda.kt") public void testControllerAccessFromInnerLambda() { runTest("compiler/testData/codegen/box/coroutines/controllerAccessFromInnerLambda.kt"); } + @Test + @TestMetadata("coroutineContext1.kt") + public void testCoroutineContext1() { + runTest("compiler/testData/codegen/box/coroutines/coroutineContext1.kt"); + } + + @Test + @TestMetadata("coroutineContext2.kt") + public void testCoroutineContext2() { + runTest("compiler/testData/codegen/box/coroutines/coroutineContext2.kt"); + } + @Test @TestMetadata("coroutineContextInInlinedLambda.kt") public void testCoroutineContextInInlinedLambda() { @@ -11276,6 +12324,12 @@ public class LLFirReversedBlackBoxCodegenBasedTestGenerated extends AbstractLLFi runTest("compiler/testData/codegen/box/coroutines/coroutineToString.kt"); } + @Test + @TestMetadata("correctOrder1.kt") + public void testCorrectOrder1() { + runTest("compiler/testData/codegen/box/coroutines/correctOrder1.kt"); + } + @Test @TestMetadata("createCoroutineSafe.kt") public void testCreateCoroutineSafe() { @@ -11312,6 +12366,18 @@ public class LLFirReversedBlackBoxCodegenBasedTestGenerated extends AbstractLLFi runTest("compiler/testData/codegen/box/coroutines/defaultParametersInSuspendWithJvmOverloads.kt"); } + @Test + @TestMetadata("degenerate1.kt") + public void testDegenerate1() { + runTest("compiler/testData/codegen/box/coroutines/degenerate1.kt"); + } + + @Test + @TestMetadata("degenerate2.kt") + public void testDegenerate2() { + runTest("compiler/testData/codegen/box/coroutines/degenerate2.kt"); + } + @Test @TestMetadata("delegatedSuspendMember.kt") public void testDelegatedSuspendMember() { @@ -11360,6 +12426,30 @@ public class LLFirReversedBlackBoxCodegenBasedTestGenerated extends AbstractLLFi runTest("compiler/testData/codegen/box/coroutines/falseUnitCoercion.kt"); } + @Test + @TestMetadata("functionReference_eqeq_name.kt") + public void testFunctionReference_eqeq_name() { + runTest("compiler/testData/codegen/box/coroutines/functionReference_eqeq_name.kt"); + } + + @Test + @TestMetadata("functionReference_invokeAsFunction.kt") + public void testFunctionReference_invokeAsFunction() { + runTest("compiler/testData/codegen/box/coroutines/functionReference_invokeAsFunction.kt"); + } + + @Test + @TestMetadata("functionReference_lambdaAsSuspendLambda.kt") + public void testFunctionReference_lambdaAsSuspendLambda() { + runTest("compiler/testData/codegen/box/coroutines/functionReference_lambdaAsSuspendLambda.kt"); + } + + @Test + @TestMetadata("functionReference_simple.kt") + public void testFunctionReference_simple() { + runTest("compiler/testData/codegen/box/coroutines/functionReference_simple.kt"); + } + @Test @TestMetadata("generate.kt") public void testGenerate() { @@ -11570,6 +12660,12 @@ public class LLFirReversedBlackBoxCodegenBasedTestGenerated extends AbstractLLFi runTest("compiler/testData/codegen/box/coroutines/kt38099.kt"); } + @Test + @TestMetadata("kt41394.kt") + public void testKt41394() { + runTest("compiler/testData/codegen/box/coroutines/kt41394.kt"); + } + @Test @TestMetadata("kt42028.kt") public void testKt42028() { @@ -11816,12 +12912,30 @@ public class LLFirReversedBlackBoxCodegenBasedTestGenerated extends AbstractLLFi runTest("compiler/testData/codegen/box/coroutines/returnByLabel.kt"); } + @Test + @TestMetadata("returnsNothing1.kt") + public void testReturnsNothing1() { + runTest("compiler/testData/codegen/box/coroutines/returnsNothing1.kt"); + } + + @Test + @TestMetadata("returnsUnit1.kt") + public void testReturnsUnit1() { + runTest("compiler/testData/codegen/box/coroutines/returnsUnit1.kt"); + } + @Test @TestMetadata("simple.kt") public void testSimple() { runTest("compiler/testData/codegen/box/coroutines/simple.kt"); } + @Test + @TestMetadata("simple2.kt") + public void testSimple2() { + runTest("compiler/testData/codegen/box/coroutines/simple2.kt"); + } + @Test @TestMetadata("simpleException.kt") public void testSimpleException() { @@ -11870,6 +12984,12 @@ public class LLFirReversedBlackBoxCodegenBasedTestGenerated extends AbstractLLFi runTest("compiler/testData/codegen/box/coroutines/suspendCallsInArguments.kt"); } + @Test + @TestMetadata("suspendConversion.kt") + public void testSuspendConversion() { + runTest("compiler/testData/codegen/box/coroutines/suspendConversion.kt"); + } + @Test @TestMetadata("suspendCoroutineFromStateMachine.kt") public void testSuspendCoroutineFromStateMachine() { @@ -12062,6 +13182,12 @@ public class LLFirReversedBlackBoxCodegenBasedTestGenerated extends AbstractLLFi runTest("compiler/testData/codegen/box/coroutines/varargCallFromSuspend.kt"); } + @Test + @TestMetadata("withReceiver.kt") + public void testWithReceiver() { + runTest("compiler/testData/codegen/box/coroutines/withReceiver.kt"); + } + @Nested @TestMetadata("compiler/testData/codegen/box/coroutines/bridges") @TestDataPath("$PROJECT_ROOT") @@ -14745,6 +15871,34 @@ public class LLFirReversedBlackBoxCodegenBasedTestGenerated extends AbstractLLFi } } + @Nested + @TestMetadata("compiler/testData/codegen/box/cycles") + @TestDataPath("$PROJECT_ROOT") + public class Cycles { + @Test + public void testAllFilesPresentInCycles() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cycles"), Pattern.compile("^(.+)\\.kt$"), null, true); + } + + @Test + @TestMetadata("cycle.kt") + public void testCycle() { + runTest("compiler/testData/codegen/box/cycles/cycle.kt"); + } + + @Test + @TestMetadata("cycle_do.kt") + public void testCycle_do() { + runTest("compiler/testData/codegen/box/cycles/cycle_do.kt"); + } + + @Test + @TestMetadata("cycle_for.kt") + public void testCycle_for() { + runTest("compiler/testData/codegen/box/cycles/cycle_for.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/dataClasses") @TestDataPath("$PROJECT_ROOT") @@ -15199,6 +16353,28 @@ public class LLFirReversedBlackBoxCodegenBasedTestGenerated extends AbstractLLFi } } + @Nested + @TestMetadata("compiler/testData/codegen/box/dataflow") + @TestDataPath("$PROJECT_ROOT") + public class Dataflow { + @Test + public void testAllFilesPresentInDataflow() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/dataflow"), Pattern.compile("^(.+)\\.kt$"), null, true); + } + + @Test + @TestMetadata("scope1.kt") + public void testScope1() { + runTest("compiler/testData/codegen/box/dataflow/scope1.kt"); + } + + @Test + @TestMetadata("uninitialized_val.kt") + public void testUninitialized_val() { + runTest("compiler/testData/codegen/box/dataflow/uninitialized_val.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/deadCodeElimination") @TestDataPath("$PROJECT_ROOT") @@ -15860,6 +17036,12 @@ public class LLFirReversedBlackBoxCodegenBasedTestGenerated extends AbstractLLFi runTest("compiler/testData/codegen/box/delegatedProperty/castSetParameter.kt"); } + @Test + @TestMetadata("correctFieldsOrder.kt") + public void testCorrectFieldsOrder() { + runTest("compiler/testData/codegen/box/delegatedProperty/correctFieldsOrder.kt"); + } + @Test @TestMetadata("delegateAsInnerClass.kt") public void testDelegateAsInnerClass() { @@ -15920,6 +17102,12 @@ public class LLFirReversedBlackBoxCodegenBasedTestGenerated extends AbstractLLFi runTest("compiler/testData/codegen/box/delegatedProperty/delegateWithPrivateSet.kt"); } + @Test + @TestMetadata("delegatedOverride.kt") + public void testDelegatedOverride() { + runTest("compiler/testData/codegen/box/delegatedProperty/delegatedOverride.kt"); + } + @Test @TestMetadata("delegatedPropertyInEnum.kt") public void testDelegatedPropertyInEnum() { @@ -16064,12 +17252,42 @@ public class LLFirReversedBlackBoxCodegenBasedTestGenerated extends AbstractLLFi runTest("compiler/testData/codegen/box/delegatedProperty/kt9712.kt"); } + @Test + @TestMetadata("lazy.kt") + public void testLazy() { + runTest("compiler/testData/codegen/box/delegatedProperty/lazy.kt"); + } + + @Test + @TestMetadata("local.kt") + public void testLocal() { + runTest("compiler/testData/codegen/box/delegatedProperty/local.kt"); + } + + @Test + @TestMetadata("map.kt") + public void testMap() { + runTest("compiler/testData/codegen/box/delegatedProperty/map.kt"); + } + @Test @TestMetadata("noTypeVariablesLeft.kt") public void testNoTypeVariablesLeft() { runTest("compiler/testData/codegen/box/delegatedProperty/noTypeVariablesLeft.kt"); } + @Test + @TestMetadata("observable.kt") + public void testObservable() { + runTest("compiler/testData/codegen/box/delegatedProperty/observable.kt"); + } + + @Test + @TestMetadata("packageLevel.kt") + public void testPackageLevel() { + runTest("compiler/testData/codegen/box/delegatedProperty/packageLevel.kt"); + } + @Test @TestMetadata("privateInSubClass.kt") public void testPrivateInSubClass() { @@ -16130,6 +17348,18 @@ public class LLFirReversedBlackBoxCodegenBasedTestGenerated extends AbstractLLFi runTest("compiler/testData/codegen/box/delegatedProperty/setAsExtensionFunInClass.kt"); } + @Test + @TestMetadata("simpleVal.kt") + public void testSimpleVal() { + runTest("compiler/testData/codegen/box/delegatedProperty/simpleVal.kt"); + } + + @Test + @TestMetadata("simpleVar.kt") + public void testSimpleVar() { + runTest("compiler/testData/codegen/box/delegatedProperty/simpleVar.kt"); + } + @Test @TestMetadata("stackOverflowOnCallFromGetValue.kt") public void testStackOverflowOnCallFromGetValue() { @@ -17099,6 +18329,40 @@ public class LLFirReversedBlackBoxCodegenBasedTestGenerated extends AbstractLLFi } } + @Nested + @TestMetadata("compiler/testData/codegen/box/devirtualization") + @TestDataPath("$PROJECT_ROOT") + public class Devirtualization { + @Test + public void testAllFilesPresentInDevirtualization() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/devirtualization"), Pattern.compile("^(.+)\\.kt$"), null, true); + } + + @Test + @TestMetadata("anonymousObject.kt") + public void testAnonymousObject() { + runTest("compiler/testData/codegen/box/devirtualization/anonymousObject.kt"); + } + + @Test + @TestMetadata("getter_looking_as_box_function.kt") + public void testGetter_looking_as_box_function() { + runTest("compiler/testData/codegen/box/devirtualization/getter_looking_as_box_function.kt"); + } + + @Test + @TestMetadata("inline_getter.kt") + public void testInline_getter() { + runTest("compiler/testData/codegen/box/devirtualization/inline_getter.kt"); + } + + @Test + @TestMetadata("lateinitInterface.kt") + public void testLateinitInterface() { + runTest("compiler/testData/codegen/box/devirtualization/lateinitInterface.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/diagnostics") @TestDataPath("$PROJECT_ROOT") @@ -17760,6 +19024,12 @@ public class LLFirReversedBlackBoxCodegenBasedTestGenerated extends AbstractLLFi runTest("compiler/testData/codegen/box/enum/companionAccessingEnumValue.kt"); } + @Test + @TestMetadata("companionObject.kt") + public void testCompanionObject() { + runTest("compiler/testData/codegen/box/enum/companionObject.kt"); + } + @Test @TestMetadata("companionObjectInEnum.kt") public void testCompanionObjectInEnum() { @@ -17952,6 +19222,12 @@ public class LLFirReversedBlackBoxCodegenBasedTestGenerated extends AbstractLLFi runTest("compiler/testData/codegen/box/enum/enumWithLambdaParameter.kt"); } + @Test + @TestMetadata("enum_equals.kt") + public void testEnum_equals() { + runTest("compiler/testData/codegen/box/enum/enum_equals.kt"); + } + @Test @TestMetadata("getEnumEntityByOrdinal.kt") public void testGetEnumEntityByOrdinal() { @@ -18030,6 +19306,18 @@ public class LLFirReversedBlackBoxCodegenBasedTestGenerated extends AbstractLLFi runTest("compiler/testData/codegen/box/enum/innerWithExistingClassObject.kt"); } + @Test + @TestMetadata("interfaceCallNoEntryClass.kt") + public void testInterfaceCallNoEntryClass() { + runTest("compiler/testData/codegen/box/enum/interfaceCallNoEntryClass.kt"); + } + + @Test + @TestMetadata("interfaceCallWithEntryClass.kt") + public void testInterfaceCallWithEntryClass() { + runTest("compiler/testData/codegen/box/enum/interfaceCallWithEntryClass.kt"); + } + @Test @TestMetadata("javaClassWithNestedEnum.kt") public void testJavaClassWithNestedEnum() { @@ -18120,6 +19408,12 @@ public class LLFirReversedBlackBoxCodegenBasedTestGenerated extends AbstractLLFi runTest("compiler/testData/codegen/box/enum/kt2350.kt"); } + @Test + @TestMetadata("kt38540.kt") + public void testKt38540() { + runTest("compiler/testData/codegen/box/enum/kt38540.kt"); + } + @Test @TestMetadata("kt38996.kt") public void testKt38996() { @@ -18216,6 +19510,18 @@ public class LLFirReversedBlackBoxCodegenBasedTestGenerated extends AbstractLLFi runTest("compiler/testData/codegen/box/enum/kt9711_2.kt"); } + @Test + @TestMetadata("lambdaInDefault.kt") + public void testLambdaInDefault() { + runTest("compiler/testData/codegen/box/enum/lambdaInDefault.kt"); + } + + @Test + @TestMetadata("loop.kt") + public void testLoop() { + runTest("compiler/testData/codegen/box/enum/loop.kt"); + } + @Test @TestMetadata("manyDefaultParameters.kt") public void testManyDefaultParameters() { @@ -18228,6 +19534,12 @@ public class LLFirReversedBlackBoxCodegenBasedTestGenerated extends AbstractLLFi runTest("compiler/testData/codegen/box/enum/modifierFlags.kt"); } + @Test + @TestMetadata("multipleModules.kt") + public void testMultipleModules() { + runTest("compiler/testData/codegen/box/enum/multipleModules.kt"); + } + @Test @TestMetadata("nameClashWithCompanion.kt") public void testNameClashWithCompanion() { @@ -18240,12 +19552,24 @@ public class LLFirReversedBlackBoxCodegenBasedTestGenerated extends AbstractLLFi runTest("compiler/testData/codegen/box/enum/nameConflict.kt"); } + @Test + @TestMetadata("nested.kt") + public void testNested() { + runTest("compiler/testData/codegen/box/enum/nested.kt"); + } + @Test @TestMetadata("noClassForSimpleEnum.kt") public void testNoClassForSimpleEnum() { runTest("compiler/testData/codegen/box/enum/noClassForSimpleEnum.kt"); } + @Test + @TestMetadata("openMethodNoOverrides.kt") + public void testOpenMethodNoOverrides() { + runTest("compiler/testData/codegen/box/enum/openMethodNoOverrides.kt"); + } + @Test @TestMetadata("ordinal.kt") public void testOrdinal() { @@ -18276,6 +19600,12 @@ public class LLFirReversedBlackBoxCodegenBasedTestGenerated extends AbstractLLFi runTest("compiler/testData/codegen/box/enum/refToThis.kt"); } + @Test + @TestMetadata("reorderedArguments.kt") + public void testReorderedArguments() { + runTest("compiler/testData/codegen/box/enum/reorderedArguments.kt"); + } + @Test @TestMetadata("simple.kt") public void testSimple() { @@ -18330,18 +19660,66 @@ public class LLFirReversedBlackBoxCodegenBasedTestGenerated extends AbstractLLFi runTest("compiler/testData/codegen/box/enum/superCallInEnumLiteral.kt"); } + @Test + @TestMetadata("switchLowering.kt") + public void testSwitchLowering() { + runTest("compiler/testData/codegen/box/enum/switchLowering.kt"); + } + + @Test + @TestMetadata("test0.kt") + public void testTest0() { + runTest("compiler/testData/codegen/box/enum/test0.kt"); + } + + @Test + @TestMetadata("test1.kt") + public void testTest1() { + runTest("compiler/testData/codegen/box/enum/test1.kt"); + } + @Test @TestMetadata("toString.kt") public void testToString() { runTest("compiler/testData/codegen/box/enum/toString.kt"); } + @Test + @TestMetadata("vCallNoEntryClass.kt") + public void testVCallNoEntryClass() { + runTest("compiler/testData/codegen/box/enum/vCallNoEntryClass.kt"); + } + + @Test + @TestMetadata("vCallWithEntryClass.kt") + public void testVCallWithEntryClass() { + runTest("compiler/testData/codegen/box/enum/vCallWithEntryClass.kt"); + } + + @Test + @TestMetadata("valueOf2.kt") + public void testValueOf2() { + runTest("compiler/testData/codegen/box/enum/valueOf2.kt"); + } + @Test @TestMetadata("valueof.kt") public void testValueof() { runTest("compiler/testData/codegen/box/enum/valueof.kt"); } + @Test + @TestMetadata("values.kt") + public void testValues() { + runTest("compiler/testData/codegen/box/enum/values.kt"); + } + + @Test + @TestMetadata("varargParam.kt") + public void testVarargParam() { + runTest("compiler/testData/codegen/box/enum/varargParam.kt"); + } + @Test @TestMetadata("whenInObject.kt") public void testWhenInObject() { @@ -18417,6 +19795,112 @@ public class LLFirReversedBlackBoxCodegenBasedTestGenerated extends AbstractLLFi } } + @Nested + @TestMetadata("compiler/testData/codegen/box/escapeAnalysis") + @TestDataPath("$PROJECT_ROOT") + public class EscapeAnalysis { + @Test + public void testAllFilesPresentInEscapeAnalysis() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/escapeAnalysis"), Pattern.compile("^(.+)\\.kt$"), null, true); + } + + @Test + @TestMetadata("recursion.kt") + public void testRecursion() { + runTest("compiler/testData/codegen/box/escapeAnalysis/recursion.kt"); + } + + @Test + @TestMetadata("stack_array.kt") + public void testStack_array() { + runTest("compiler/testData/codegen/box/escapeAnalysis/stack_array.kt"); + } + + @Test + @TestMetadata("test1.kt") + public void testTest1() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test1.kt"); + } + + @Test + @TestMetadata("test10.kt") + public void testTest10() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test10.kt"); + } + + @Test + @TestMetadata("test11.kt") + public void testTest11() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test11.kt"); + } + + @Test + @TestMetadata("test12.kt") + public void testTest12() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test12.kt"); + } + + @Test + @TestMetadata("test13.kt") + public void testTest13() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test13.kt"); + } + + @Test + @TestMetadata("test2.kt") + public void testTest2() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test2.kt"); + } + + @Test + @TestMetadata("test3.kt") + public void testTest3() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test3.kt"); + } + + @Test + @TestMetadata("test4.kt") + public void testTest4() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test4.kt"); + } + + @Test + @TestMetadata("test5.kt") + public void testTest5() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test5.kt"); + } + + @Test + @TestMetadata("test6.kt") + public void testTest6() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test6.kt"); + } + + @Test + @TestMetadata("test7.kt") + public void testTest7() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test7.kt"); + } + + @Test + @TestMetadata("test8.kt") + public void testTest8() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test8.kt"); + } + + @Test + @TestMetadata("test9.kt") + public void testTest9() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test9.kt"); + } + + @Test + @TestMetadata("zeroOutObjectOnAlloc.kt") + public void testZeroOutObjectOnAlloc() { + runTest("compiler/testData/codegen/box/escapeAnalysis/zeroOutObjectOnAlloc.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/evaluate") @TestDataPath("$PROJECT_ROOT") @@ -18529,6 +20013,58 @@ public class LLFirReversedBlackBoxCodegenBasedTestGenerated extends AbstractLLFi } } + @Nested + @TestMetadata("compiler/testData/codegen/box/exceptions") + @TestDataPath("$PROJECT_ROOT") + public class Exceptions { + @Test + public void testAllFilesPresentInExceptions() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/exceptions"), Pattern.compile("^(.+)\\.kt$"), null, true); + } + + @Test + @TestMetadata("catch1.kt") + public void testCatch1() { + runTest("compiler/testData/codegen/box/exceptions/catch1.kt"); + } + + @Test + @TestMetadata("catch2.kt") + public void testCatch2() { + runTest("compiler/testData/codegen/box/exceptions/catch2.kt"); + } + + @Test + @TestMetadata("catch7.kt") + public void testCatch7() { + runTest("compiler/testData/codegen/box/exceptions/catch7.kt"); + } + + @Test + @TestMetadata("extend0.kt") + public void testExtend0() { + runTest("compiler/testData/codegen/box/exceptions/extend0.kt"); + } + + @Test + @TestMetadata("rethrow.kt") + public void testRethrow() { + runTest("compiler/testData/codegen/box/exceptions/rethrow.kt"); + } + + @Test + @TestMetadata("throw0.kt") + public void testThrow0() { + runTest("compiler/testData/codegen/box/exceptions/throw0.kt"); + } + + @Test + @TestMetadata("throw_from_catch.kt") + public void testThrow_from_catch() { + runTest("compiler/testData/codegen/box/exceptions/throw_from_catch.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/exclExcl") @TestDataPath("$PROJECT_ROOT") @@ -20422,6 +21958,12 @@ public class LLFirReversedBlackBoxCodegenBasedTestGenerated extends AbstractLLFi runTest("compiler/testData/codegen/box/funInterface/funInterfaceWithReceiver.kt"); } + @Test + @TestMetadata("implIsNotFunction.kt") + public void testImplIsNotFunction() { + runTest("compiler/testData/codegen/box/funInterface/implIsNotFunction.kt"); + } + @Test @TestMetadata("inlinedSamWrapper.kt") public void testInlinedSamWrapper() { @@ -20470,6 +22012,18 @@ public class LLFirReversedBlackBoxCodegenBasedTestGenerated extends AbstractLLFi runTest("compiler/testData/codegen/box/funInterface/kt46908_functionSupertype.kt"); } + @Test + @TestMetadata("kt49384.kt") + public void testKt49384() { + runTest("compiler/testData/codegen/box/funInterface/kt49384.kt"); + } + + @Test + @TestMetadata("kt49384_getSame.kt") + public void testKt49384_getSame() { + runTest("compiler/testData/codegen/box/funInterface/kt49384_getSame.kt"); + } + @Test @TestMetadata("multimodule.kt") public void testMultimodule() { @@ -20488,6 +22042,12 @@ public class LLFirReversedBlackBoxCodegenBasedTestGenerated extends AbstractLLFi runTest("compiler/testData/codegen/box/funInterface/nonAbstractMethod.kt"); } + @Test + @TestMetadata("nonTrivialProjectionInSuperType.kt") + public void testNonTrivialProjectionInSuperType() { + runTest("compiler/testData/codegen/box/funInterface/nonTrivialProjectionInSuperType.kt"); + } + @Test @TestMetadata("nullableSam.kt") public void testNullableSam() { @@ -20577,6 +22137,232 @@ public class LLFirReversedBlackBoxCodegenBasedTestGenerated extends AbstractLLFi } } + @Nested + @TestMetadata("compiler/testData/codegen/box/function") + @TestDataPath("$PROJECT_ROOT") + public class Function { + @Test + public void testAllFilesPresentInFunction() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/function"), Pattern.compile("^(.+)\\.kt$"), null, true); + } + + @Test + @TestMetadata("arithmetic.kt") + public void testArithmetic() { + runTest("compiler/testData/codegen/box/function/arithmetic.kt"); + } + + @Test + @TestMetadata("boolean.kt") + public void testBoolean() { + runTest("compiler/testData/codegen/box/function/boolean.kt"); + } + + @Test + @TestMetadata("defaults.kt") + public void testDefaults() { + runTest("compiler/testData/codegen/box/function/defaults.kt"); + } + + @Test + @TestMetadata("defaults1.kt") + public void testDefaults1() { + runTest("compiler/testData/codegen/box/function/defaults1.kt"); + } + + @Test + @TestMetadata("defaults10.kt") + public void testDefaults10() { + runTest("compiler/testData/codegen/box/function/defaults10.kt"); + } + + @Test + @TestMetadata("defaults2.kt") + public void testDefaults2() { + runTest("compiler/testData/codegen/box/function/defaults2.kt"); + } + + @Test + @TestMetadata("defaults3.kt") + public void testDefaults3() { + runTest("compiler/testData/codegen/box/function/defaults3.kt"); + } + + @Test + @TestMetadata("defaults4.kt") + public void testDefaults4() { + runTest("compiler/testData/codegen/box/function/defaults4.kt"); + } + + @Test + @TestMetadata("defaults5.kt") + public void testDefaults5() { + runTest("compiler/testData/codegen/box/function/defaults5.kt"); + } + + @Test + @TestMetadata("defaults6.kt") + public void testDefaults6() { + runTest("compiler/testData/codegen/box/function/defaults6.kt"); + } + + @Test + @TestMetadata("defaults7.kt") + public void testDefaults7() { + runTest("compiler/testData/codegen/box/function/defaults7.kt"); + } + + @Test + @TestMetadata("defaults8.kt") + public void testDefaults8() { + runTest("compiler/testData/codegen/box/function/defaults8.kt"); + } + + @Test + @TestMetadata("defaults9.kt") + public void testDefaults9() { + runTest("compiler/testData/codegen/box/function/defaults9.kt"); + } + + @Test + @TestMetadata("defaultsFromFakeOverride.kt") + public void testDefaultsFromFakeOverride() { + runTest("compiler/testData/codegen/box/function/defaultsFromFakeOverride.kt"); + } + + @Test + @TestMetadata("defaultsWithInlineClasses.kt") + public void testDefaultsWithInlineClasses() { + runTest("compiler/testData/codegen/box/function/defaultsWithInlineClasses.kt"); + } + + @Test + @TestMetadata("defaultsWithVarArg1.kt") + public void testDefaultsWithVarArg1() { + runTest("compiler/testData/codegen/box/function/defaultsWithVarArg1.kt"); + } + + @Test + @TestMetadata("defaultsWithVarArg2.kt") + public void testDefaultsWithVarArg2() { + runTest("compiler/testData/codegen/box/function/defaultsWithVarArg2.kt"); + } + + @Test + @TestMetadata("eqeq.kt") + public void testEqeq() { + runTest("compiler/testData/codegen/box/function/eqeq.kt"); + } + + @Test + @TestMetadata("extension.kt") + public void testExtension() { + runTest("compiler/testData/codegen/box/function/extension.kt"); + } + + @Test + @TestMetadata("intrinsic.kt") + public void testIntrinsic() { + runTest("compiler/testData/codegen/box/function/intrinsic.kt"); + } + + @Test + @TestMetadata("localFunction.kt") + public void testLocalFunction() { + runTest("compiler/testData/codegen/box/function/localFunction.kt"); + } + + @Test + @TestMetadata("localFunction2.kt") + public void testLocalFunction2() { + runTest("compiler/testData/codegen/box/function/localFunction2.kt"); + } + + @Test + @TestMetadata("localFunction3.kt") + public void testLocalFunction3() { + runTest("compiler/testData/codegen/box/function/localFunction3.kt"); + } + + @Test + @TestMetadata("minus_eq.kt") + public void testMinus_eq() { + runTest("compiler/testData/codegen/box/function/minus_eq.kt"); + } + + @Test + @TestMetadata("named.kt") + public void testNamed() { + runTest("compiler/testData/codegen/box/function/named.kt"); + } + + @Test + @TestMetadata("nothingNReturningSafeCall.kt") + public void testNothingNReturningSafeCall() { + runTest("compiler/testData/codegen/box/function/nothingNReturningSafeCall.kt"); + } + + @Test + @TestMetadata("plus_eq.kt") + public void testPlus_eq() { + runTest("compiler/testData/codegen/box/function/plus_eq.kt"); + } + + @Test + @TestMetadata("referenceBigArity.kt") + public void testReferenceBigArity() { + runTest("compiler/testData/codegen/box/function/referenceBigArity.kt"); + } + + @Test + @TestMetadata("sum.kt") + public void testSum() { + runTest("compiler/testData/codegen/box/function/sum.kt"); + } + + @Test + @TestMetadata("sum_3const.kt") + public void testSum_3const() { + runTest("compiler/testData/codegen/box/function/sum_3const.kt"); + } + + @Test + @TestMetadata("sum_foo_bar.kt") + public void testSum_foo_bar() { + runTest("compiler/testData/codegen/box/function/sum_foo_bar.kt"); + } + + @Test + @TestMetadata("sum_func.kt") + public void testSum_func() { + runTest("compiler/testData/codegen/box/function/sum_func.kt"); + } + + @Test + @TestMetadata("sum_imm.kt") + public void testSum_imm() { + runTest("compiler/testData/codegen/box/function/sum_imm.kt"); + } + + @Test + @TestMetadata("sum_mixed.kt") + public void testSum_mixed() { + runTest("compiler/testData/codegen/box/function/sum_mixed.kt"); + } + + @Test + @TestMetadata("sum_silly.kt") + public void testSum_silly() { + runTest("compiler/testData/codegen/box/function/sum_silly.kt"); + } + + @Test + @TestMetadata("unreachableStatementAfterReturn.kt") + public void testUnreachableStatementAfterReturn() { + runTest("compiler/testData/codegen/box/function/unreachableStatementAfterReturn.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/functions") @TestDataPath("$PROJECT_ROOT") @@ -22485,6 +24271,474 @@ public class LLFirReversedBlackBoxCodegenBasedTestGenerated extends AbstractLLFi } } + @Nested + @TestMetadata("compiler/testData/codegen/box/initializers") + @TestDataPath("$PROJECT_ROOT") + public class Initializers { + @Test + public void testAllFilesPresentInInitializers() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/initializers"), Pattern.compile("^(.+)\\.kt$"), null, true); + } + + @Test + @TestMetadata("correctOrder1.kt") + public void testCorrectOrder1() { + runTest("compiler/testData/codegen/box/initializers/correctOrder1.kt"); + } + + @Test + @TestMetadata("correctOrder2.kt") + public void testCorrectOrder2() { + runTest("compiler/testData/codegen/box/initializers/correctOrder2.kt"); + } + + @Test + @TestMetadata("initializers0.kt") + public void testInitializers0() { + runTest("compiler/testData/codegen/box/initializers/initializers0.kt"); + } + + @Test + @TestMetadata("initializers1.kt") + public void testInitializers1() { + runTest("compiler/testData/codegen/box/initializers/initializers1.kt"); + } + + @Test + @TestMetadata("initializers2.kt") + public void testInitializers2() { + runTest("compiler/testData/codegen/box/initializers/initializers2.kt"); + } + + @Test + @TestMetadata("initializers3.kt") + public void testInitializers3() { + runTest("compiler/testData/codegen/box/initializers/initializers3.kt"); + } + + @Test + @TestMetadata("initializers4.kt") + public void testInitializers4() { + runTest("compiler/testData/codegen/box/initializers/initializers4.kt"); + } + + @Test + @TestMetadata("initializers5.kt") + public void testInitializers5() { + runTest("compiler/testData/codegen/box/initializers/initializers5.kt"); + } + + @Test + @TestMetadata("initializers7.kt") + public void testInitializers7() { + runTest("compiler/testData/codegen/box/initializers/initializers7.kt"); + } + + @Test + @TestMetadata("initializers8.kt") + public void testInitializers8() { + runTest("compiler/testData/codegen/box/initializers/initializers8.kt"); + } + + @Test + @TestMetadata("multipleModules1.kt") + public void testMultipleModules1() { + runTest("compiler/testData/codegen/box/initializers/multipleModules1.kt"); + } + + @Test + @TestMetadata("object.kt") + public void testObject() { + runTest("compiler/testData/codegen/box/initializers/object.kt"); + } + + @Test + @TestMetadata("sharedVarInInitBlock.kt") + public void testSharedVarInInitBlock() { + runTest("compiler/testData/codegen/box/initializers/sharedVarInInitBlock.kt"); + } + + @Test + @TestMetadata("static_arrays.kt") + public void testStatic_arrays() { + runTest("compiler/testData/codegen/box/initializers/static_arrays.kt"); + } + + @Test + @TestMetadata("static_list.kt") + public void testStatic_list() { + runTest("compiler/testData/codegen/box/initializers/static_list.kt"); + } + + @Test + @TestMetadata("static_smallIntIdentity.kt") + public void testStatic_smallIntIdentity() { + runTest("compiler/testData/codegen/box/initializers/static_smallIntIdentity.kt"); + } + + @Test + @TestMetadata("static_varargChange.kt") + public void testStatic_varargChange() { + runTest("compiler/testData/codegen/box/initializers/static_varargChange.kt"); + } + + @Test + @TestMetadata("throw1.kt") + public void testThrow1() { + runTest("compiler/testData/codegen/box/initializers/throw1.kt"); + } + + @Test + @TestMetadata("throw2.kt") + public void testThrow2() { + runTest("compiler/testData/codegen/box/initializers/throw2.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/initializers/files") + @TestDataPath("$PROJECT_ROOT") + public class Files { + @Test + public void testAllFilesPresentInFiles() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/initializers/files"), Pattern.compile("^(.+)\\.kt$"), null, true); + } + + @Test + @TestMetadata("globalInitedAfterAccessingFile.kt") + public void testGlobalInitedAfterAccessingFile() { + runTest("compiler/testData/codegen/box/initializers/files/globalInitedAfterAccessingFile.kt"); + } + + @Test + @TestMetadata("globalNotInitedAfterAccessingClassInternals.kt") + public void testGlobalNotInitedAfterAccessingClassInternals() { + runTest("compiler/testData/codegen/box/initializers/files/globalNotInitedAfterAccessingClassInternals.kt"); + } + + @Test + @TestMetadata("simple.kt") + public void testSimple() { + runTest("compiler/testData/codegen/box/initializers/files/simple.kt"); + } + + @Test + @TestMetadata("simpleMultiModule.kt") + public void testSimpleMultiModule() { + runTest("compiler/testData/codegen/box/initializers/files/simpleMultiModule.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/inline") + @TestDataPath("$PROJECT_ROOT") + public class Inline { + @Test + public void testAllFilesPresentInInline() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inline"), Pattern.compile("^(.+)\\.kt$"), null, true); + } + + @Test + @TestMetadata("changingCapturedLocal.kt") + public void testChangingCapturedLocal() { + runTest("compiler/testData/codegen/box/inline/changingCapturedLocal.kt"); + } + + @Test + @TestMetadata("classDeclarationInsideInline.kt") + public void testClassDeclarationInsideInline() { + runTest("compiler/testData/codegen/box/inline/classDeclarationInsideInline.kt"); + } + + @Test + @TestMetadata("coercionToUnit.kt") + public void testCoercionToUnit() { + runTest("compiler/testData/codegen/box/inline/coercionToUnit.kt"); + } + + @Test + @TestMetadata("correctOrderFunctionReference.kt") + public void testCorrectOrderFunctionReference() { + runTest("compiler/testData/codegen/box/inline/correctOrderFunctionReference.kt"); + } + + @Test + @TestMetadata("defaultArgs.kt") + public void testDefaultArgs() { + runTest("compiler/testData/codegen/box/inline/defaultArgs.kt"); + } + + @Test + @TestMetadata("defaultArgsMultipleModules.kt") + public void testDefaultArgsMultipleModules() { + runTest("compiler/testData/codegen/box/inline/defaultArgsMultipleModules.kt"); + } + + @Test + @TestMetadata("genericFunctionReference.kt") + public void testGenericFunctionReference() { + runTest("compiler/testData/codegen/box/inline/genericFunctionReference.kt"); + } + + @Test + @TestMetadata("getClass.kt") + public void testGetClass() { + runTest("compiler/testData/codegen/box/inline/getClass.kt"); + } + + @Test + @TestMetadata("inline0.kt") + public void testInline0() { + runTest("compiler/testData/codegen/box/inline/inline0.kt"); + } + + @Test + @TestMetadata("inline1.kt") + public void testInline1() { + runTest("compiler/testData/codegen/box/inline/inline1.kt"); + } + + @Test + @TestMetadata("inline10.kt") + public void testInline10() { + runTest("compiler/testData/codegen/box/inline/inline10.kt"); + } + + @Test + @TestMetadata("inline11.kt") + public void testInline11() { + runTest("compiler/testData/codegen/box/inline/inline11.kt"); + } + + @Test + @TestMetadata("inline12.kt") + public void testInline12() { + runTest("compiler/testData/codegen/box/inline/inline12.kt"); + } + + @Test + @TestMetadata("inline13.kt") + public void testInline13() { + runTest("compiler/testData/codegen/box/inline/inline13.kt"); + } + + @Test + @TestMetadata("inline14.kt") + public void testInline14() { + runTest("compiler/testData/codegen/box/inline/inline14.kt"); + } + + @Test + @TestMetadata("inline15.kt") + public void testInline15() { + runTest("compiler/testData/codegen/box/inline/inline15.kt"); + } + + @Test + @TestMetadata("inline16.kt") + public void testInline16() { + runTest("compiler/testData/codegen/box/inline/inline16.kt"); + } + + @Test + @TestMetadata("inline17.kt") + public void testInline17() { + runTest("compiler/testData/codegen/box/inline/inline17.kt"); + } + + @Test + @TestMetadata("inline19.kt") + public void testInline19() { + runTest("compiler/testData/codegen/box/inline/inline19.kt"); + } + + @Test + @TestMetadata("inline2.kt") + public void testInline2() { + runTest("compiler/testData/codegen/box/inline/inline2.kt"); + } + + @Test + @TestMetadata("inline20.kt") + public void testInline20() { + runTest("compiler/testData/codegen/box/inline/inline20.kt"); + } + + @Test + @TestMetadata("inline21.kt") + public void testInline21() { + runTest("compiler/testData/codegen/box/inline/inline21.kt"); + } + + @Test + @TestMetadata("inline22.kt") + public void testInline22() { + runTest("compiler/testData/codegen/box/inline/inline22.kt"); + } + + @Test + @TestMetadata("inline23.kt") + public void testInline23() { + runTest("compiler/testData/codegen/box/inline/inline23.kt"); + } + + @Test + @TestMetadata("inline24.kt") + public void testInline24() { + runTest("compiler/testData/codegen/box/inline/inline24.kt"); + } + + @Test + @TestMetadata("inline25.kt") + public void testInline25() { + runTest("compiler/testData/codegen/box/inline/inline25.kt"); + } + + @Test + @TestMetadata("inline26.kt") + public void testInline26() { + runTest("compiler/testData/codegen/box/inline/inline26.kt"); + } + + @Test + @TestMetadata("inline3.kt") + public void testInline3() { + runTest("compiler/testData/codegen/box/inline/inline3.kt"); + } + + @Test + @TestMetadata("inline4.kt") + public void testInline4() { + runTest("compiler/testData/codegen/box/inline/inline4.kt"); + } + + @Test + @TestMetadata("inline5.kt") + public void testInline5() { + runTest("compiler/testData/codegen/box/inline/inline5.kt"); + } + + @Test + @TestMetadata("inline6.kt") + public void testInline6() { + runTest("compiler/testData/codegen/box/inline/inline6.kt"); + } + + @Test + @TestMetadata("inline7.kt") + public void testInline7() { + runTest("compiler/testData/codegen/box/inline/inline7.kt"); + } + + @Test + @TestMetadata("inline8.kt") + public void testInline8() { + runTest("compiler/testData/codegen/box/inline/inline8.kt"); + } + + @Test + @TestMetadata("inline9.kt") + public void testInline9() { + runTest("compiler/testData/codegen/box/inline/inline9.kt"); + } + + @Test + @TestMetadata("inlineCtor.kt") + public void testInlineCtor() { + runTest("compiler/testData/codegen/box/inline/inlineCtor.kt"); + } + + @Test + @TestMetadata("innerInlineFunCapturesOuter.kt") + public void testInnerInlineFunCapturesOuter() { + runTest("compiler/testData/codegen/box/inline/innerInlineFunCapturesOuter.kt"); + } + + @Test + @TestMetadata("lambdaAsAny.kt") + public void testLambdaAsAny() { + runTest("compiler/testData/codegen/box/inline/lambdaAsAny.kt"); + } + + @Test + @TestMetadata("lambdaInDefaultValue.kt") + public void testLambdaInDefaultValue() { + runTest("compiler/testData/codegen/box/inline/lambdaInDefaultValue.kt"); + } + + @Test + @TestMetadata("lateinitProperty.kt") + public void testLateinitProperty() { + runTest("compiler/testData/codegen/box/inline/lateinitProperty.kt"); + } + + @Test + @TestMetadata("localFunctionInInitializerBlock.kt") + public void testLocalFunctionInInitializerBlock() { + runTest("compiler/testData/codegen/box/inline/localFunctionInInitializerBlock.kt"); + } + + @Test + @TestMetadata("localObjectReturnedFromWhen.kt") + public void testLocalObjectReturnedFromWhen() { + runTest("compiler/testData/codegen/box/inline/localObjectReturnedFromWhen.kt"); + } + + @Test + @TestMetadata("propertyAccessorInline.kt") + public void testPropertyAccessorInline() { + runTest("compiler/testData/codegen/box/inline/propertyAccessorInline.kt"); + } + + @Test + @TestMetadata("redundantCoercionsCleaner.kt") + public void testRedundantCoercionsCleaner() { + runTest("compiler/testData/codegen/box/inline/redundantCoercionsCleaner.kt"); + } + + @Test + @TestMetadata("redundantCoercionsCleanerKT48876.kt") + public void testRedundantCoercionsCleanerKT48876() { + runTest("compiler/testData/codegen/box/inline/redundantCoercionsCleanerKT48876.kt"); + } + + @Test + @TestMetadata("redundantCoercionsCleanerKT49356.kt") + public void testRedundantCoercionsCleanerKT49356() { + runTest("compiler/testData/codegen/box/inline/redundantCoercionsCleanerKT49356.kt"); + } + + @Test + @TestMetadata("returnLocalClassFromBlock.kt") + public void testReturnLocalClassFromBlock() { + runTest("compiler/testData/codegen/box/inline/returnLocalClassFromBlock.kt"); + } + + @Test + @TestMetadata("sharedVar.kt") + public void testSharedVar() { + runTest("compiler/testData/codegen/box/inline/sharedVar.kt"); + } + + @Test + @TestMetadata("statementAsLastExprInBlock.kt") + public void testStatementAsLastExprInBlock() { + runTest("compiler/testData/codegen/box/inline/statementAsLastExprInBlock.kt"); + } + + @Test + @TestMetadata("twiceInlinedObject.kt") + public void testTwiceInlinedObject() { + runTest("compiler/testData/codegen/box/inline/twiceInlinedObject.kt"); + } + + @Test + @TestMetadata("typeSubstitutionInFakeOverride.kt") + public void testTypeSubstitutionInFakeOverride() { + runTest("compiler/testData/codegen/box/inline/typeSubstitutionInFakeOverride.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/inlineArgsInPlace") @TestDataPath("$PROJECT_ROOT") @@ -22567,6 +24821,40 @@ public class LLFirReversedBlackBoxCodegenBasedTestGenerated extends AbstractLLFi } } + @Nested + @TestMetadata("compiler/testData/codegen/box/inlineClass") + @TestDataPath("$PROJECT_ROOT") + public class InlineClass { + @Test + public void testAllFilesPresentInInlineClass() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineClass"), Pattern.compile("^(.+)\\.kt$"), null, true); + } + + @Test + @TestMetadata("customEquals.kt") + public void testCustomEquals() { + runTest("compiler/testData/codegen/box/inlineClass/customEquals.kt"); + } + + @Test + @TestMetadata("defaultEquals.kt") + public void testDefaultEquals() { + runTest("compiler/testData/codegen/box/inlineClass/defaultEquals.kt"); + } + + @Test + @TestMetadata("nestedInlineClasses.kt") + public void testNestedInlineClasses() { + runTest("compiler/testData/codegen/box/inlineClass/nestedInlineClasses.kt"); + } + + @Test + @TestMetadata("secondaryConstructorWithGenerics.kt") + public void testSecondaryConstructorWithGenerics() { + runTest("compiler/testData/codegen/box/inlineClass/secondaryConstructorWithGenerics.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/inlineClasses") @TestDataPath("$PROJECT_ROOT") @@ -28209,6 +30497,88 @@ public class LLFirReversedBlackBoxCodegenBasedTestGenerated extends AbstractLLFi } } + @Nested + @TestMetadata("compiler/testData/codegen/box/innerClass") + @TestDataPath("$PROJECT_ROOT") + public class InnerClass { + @Test + public void testAllFilesPresentInInnerClass() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/innerClass"), Pattern.compile("^(.+)\\.kt$"), null, true); + } + + @Test + @TestMetadata("doubleInner.kt") + public void testDoubleInner() { + runTest("compiler/testData/codegen/box/innerClass/doubleInner.kt"); + } + + @Test + @TestMetadata("generic.kt") + public void testGeneric() { + runTest("compiler/testData/codegen/box/innerClass/generic.kt"); + } + + @Test + @TestMetadata("getOuterVal.kt") + public void testGetOuterVal() { + runTest("compiler/testData/codegen/box/innerClass/getOuterVal.kt"); + } + + @Test + @TestMetadata("inheritanceMultipleModules1.kt") + public void testInheritanceMultipleModules1() { + runTest("compiler/testData/codegen/box/innerClass/inheritanceMultipleModules1.kt"); + } + + @Test + @TestMetadata("inheritanceMultipleModules2.kt") + public void testInheritanceMultipleModules2() { + runTest("compiler/testData/codegen/box/innerClass/inheritanceMultipleModules2.kt"); + } + + @Test + @TestMetadata("inheritanceMultipleModules3.kt") + public void testInheritanceMultipleModules3() { + runTest("compiler/testData/codegen/box/innerClass/inheritanceMultipleModules3.kt"); + } + + @Test + @TestMetadata("multipleModules.kt") + public void testMultipleModules() { + runTest("compiler/testData/codegen/box/innerClass/multipleModules.kt"); + } + + @Test + @TestMetadata("noPrimaryConstructor.kt") + public void testNoPrimaryConstructor() { + runTest("compiler/testData/codegen/box/innerClass/noPrimaryConstructor.kt"); + } + + @Test + @TestMetadata("qualifiedThis.kt") + public void testQualifiedThis() { + runTest("compiler/testData/codegen/box/innerClass/qualifiedThis.kt"); + } + + @Test + @TestMetadata("secondaryConstructor.kt") + public void testSecondaryConstructor() { + runTest("compiler/testData/codegen/box/innerClass/secondaryConstructor.kt"); + } + + @Test + @TestMetadata("simple.kt") + public void testSimple() { + runTest("compiler/testData/codegen/box/innerClass/simple.kt"); + } + + @Test + @TestMetadata("superOuter.kt") + public void testSuperOuter() { + runTest("compiler/testData/codegen/box/innerClass/superOuter.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/innerNested") @TestDataPath("$PROJECT_ROOT") @@ -28609,6 +30979,40 @@ public class LLFirReversedBlackBoxCodegenBasedTestGenerated extends AbstractLLFi } } + @Nested + @TestMetadata("compiler/testData/codegen/box/interfaceCallsNCasts") + @TestDataPath("$PROJECT_ROOT") + public class InterfaceCallsNCasts { + @Test + public void testAllFilesPresentInInterfaceCallsNCasts() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/interfaceCallsNCasts"), Pattern.compile("^(.+)\\.kt$"), null, true); + } + + @Test + @TestMetadata("conservativeItable.kt") + public void testConservativeItable() { + runTest("compiler/testData/codegen/box/interfaceCallsNCasts/conservativeItable.kt"); + } + + @Test + @TestMetadata("diamond.kt") + public void testDiamond() { + runTest("compiler/testData/codegen/box/interfaceCallsNCasts/diamond.kt"); + } + + @Test + @TestMetadata("finalMethod.kt") + public void testFinalMethod() { + runTest("compiler/testData/codegen/box/interfaceCallsNCasts/finalMethod.kt"); + } + + @Test + @TestMetadata("interface0.kt") + public void testInterface0() { + runTest("compiler/testData/codegen/box/interfaceCallsNCasts/interface0.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/intrinsics") @TestDataPath("$PROJECT_ROOT") @@ -33825,6 +36229,80 @@ public class LLFirReversedBlackBoxCodegenBasedTestGenerated extends AbstractLLFi } } + @Nested + @TestMetadata("compiler/testData/codegen/box/kclass") + @TestDataPath("$PROJECT_ROOT") + public class Kclass { + @Test + public void testAllFilesPresentInKclass() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/kclass"), Pattern.compile("^(.+)\\.kt$"), null, true); + } + + @Test + @TestMetadata("kClassEnumArgument.kt") + public void testKClassEnumArgument() { + runTest("compiler/testData/codegen/box/kclass/kClassEnumArgument.kt"); + } + + @Test + @TestMetadata("kclass1.kt") + public void testKclass1() { + runTest("compiler/testData/codegen/box/kclass/kclass1.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/ktype") + @TestDataPath("$PROJECT_ROOT") + public class Ktype { + @Test + public void testAllFilesPresentInKtype() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ktype"), Pattern.compile("^(.+)\\.kt$"), null, true); + } + + @Test + @TestMetadata("ktype1_basics1.kt") + public void testKtype1_basics1() { + runTest("compiler/testData/codegen/box/ktype/ktype1_basics1.kt"); + } + + @Test + @TestMetadata("ktype1_inner.kt") + public void testKtype1_inner() { + runTest("compiler/testData/codegen/box/ktype/ktype1_inner.kt"); + } + + @Test + @TestMetadata("nonReified_class.kt") + public void testNonReified_class() { + runTest("compiler/testData/codegen/box/ktype/nonReified_class.kt"); + } + + @Test + @TestMetadata("nonReified_equality.kt") + public void testNonReified_equality() { + runTest("compiler/testData/codegen/box/ktype/nonReified_equality.kt"); + } + + @Test + @TestMetadata("nonReified_fun.kt") + public void testNonReified_fun() { + runTest("compiler/testData/codegen/box/ktype/nonReified_fun.kt"); + } + + @Test + @TestMetadata("nonReified_recursionInReified.kt") + public void testNonReified_recursionInReified() { + runTest("compiler/testData/codegen/box/ktype/nonReified_recursionInReified.kt"); + } + + @Test + @TestMetadata("nonReified_reifiedUpperBound.kt") + public void testNonReified_reifiedUpperBound() { + runTest("compiler/testData/codegen/box/ktype/nonReified_reifiedUpperBound.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/labels") @TestDataPath("$PROJECT_ROOT") @@ -33883,6 +36361,188 @@ public class LLFirReversedBlackBoxCodegenBasedTestGenerated extends AbstractLLFi } } + @Nested + @TestMetadata("compiler/testData/codegen/box/lambda") + @TestDataPath("$PROJECT_ROOT") + public class Lambda { + @Test + public void testAllFilesPresentInLambda() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/lambda"), Pattern.compile("^(.+)\\.kt$"), null, true); + } + + @Test + @TestMetadata("lambda1.kt") + public void testLambda1() { + runTest("compiler/testData/codegen/box/lambda/lambda1.kt"); + } + + @Test + @TestMetadata("lambda10.kt") + public void testLambda10() { + runTest("compiler/testData/codegen/box/lambda/lambda10.kt"); + } + + @Test + @TestMetadata("lambda11.kt") + public void testLambda11() { + runTest("compiler/testData/codegen/box/lambda/lambda11.kt"); + } + + @Test + @TestMetadata("lambda12.kt") + public void testLambda12() { + runTest("compiler/testData/codegen/box/lambda/lambda12.kt"); + } + + @Test + @TestMetadata("lambda13.kt") + public void testLambda13() { + runTest("compiler/testData/codegen/box/lambda/lambda13.kt"); + } + + @Test + @TestMetadata("lambda14.kt") + public void testLambda14() { + runTest("compiler/testData/codegen/box/lambda/lambda14.kt"); + } + + @Test + @TestMetadata("lambda2.kt") + public void testLambda2() { + runTest("compiler/testData/codegen/box/lambda/lambda2.kt"); + } + + @Test + @TestMetadata("lambda3.kt") + public void testLambda3() { + runTest("compiler/testData/codegen/box/lambda/lambda3.kt"); + } + + @Test + @TestMetadata("lambda4.kt") + public void testLambda4() { + runTest("compiler/testData/codegen/box/lambda/lambda4.kt"); + } + + @Test + @TestMetadata("lambda5.kt") + public void testLambda5() { + runTest("compiler/testData/codegen/box/lambda/lambda5.kt"); + } + + @Test + @TestMetadata("lambda6.kt") + public void testLambda6() { + runTest("compiler/testData/codegen/box/lambda/lambda6.kt"); + } + + @Test + @TestMetadata("lambda7.kt") + public void testLambda7() { + runTest("compiler/testData/codegen/box/lambda/lambda7.kt"); + } + + @Test + @TestMetadata("lambda8.kt") + public void testLambda8() { + runTest("compiler/testData/codegen/box/lambda/lambda8.kt"); + } + + @Test + @TestMetadata("lambda9.kt") + public void testLambda9() { + runTest("compiler/testData/codegen/box/lambda/lambda9.kt"); + } + + @Test + @TestMetadata("lambda_kt49360_trivial.kt") + public void testLambda_kt49360_trivial() { + runTest("compiler/testData/codegen/box/lambda/lambda_kt49360_trivial.kt"); + } + + @Test + @TestMetadata("lambda_kt49360_withFlow.kt") + public void testLambda_kt49360_withFlow() { + runTest("compiler/testData/codegen/box/lambda/lambda_kt49360_withFlow.kt"); + } + + @Test + @TestMetadata("lambda_kt49360_wrapBlock.kt") + public void testLambda_kt49360_wrapBlock() { + runTest("compiler/testData/codegen/box/lambda/lambda_kt49360_wrapBlock.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/lateinit") + @TestDataPath("$PROJECT_ROOT") + public class Lateinit { + @Test + public void testAllFilesPresentInLateinit() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/lateinit"), Pattern.compile("^(.+)\\.kt$"), null, true); + } + + @Test + @TestMetadata("globalIsInitialized.kt") + public void testGlobalIsInitialized() { + runTest("compiler/testData/codegen/box/lateinit/globalIsInitialized.kt"); + } + + @Test + @TestMetadata("inBaseClass.kt") + public void testInBaseClass() { + runTest("compiler/testData/codegen/box/lateinit/inBaseClass.kt"); + } + + @Test + @TestMetadata("initialized.kt") + public void testInitialized() { + runTest("compiler/testData/codegen/box/lateinit/initialized.kt"); + } + + @Test + @TestMetadata("innerIsInitialized.kt") + public void testInnerIsInitialized() { + runTest("compiler/testData/codegen/box/lateinit/innerIsInitialized.kt"); + } + + @Test + @TestMetadata("isInitialized.kt") + public void testIsInitialized() { + runTest("compiler/testData/codegen/box/lateinit/isInitialized.kt"); + } + + @Test + @TestMetadata("localCapturedInitialized.kt") + public void testLocalCapturedInitialized() { + runTest("compiler/testData/codegen/box/lateinit/localCapturedInitialized.kt"); + } + + @Test + @TestMetadata("localCapturedNotInitialized.kt") + public void testLocalCapturedNotInitialized() { + runTest("compiler/testData/codegen/box/lateinit/localCapturedNotInitialized.kt"); + } + + @Test + @TestMetadata("localInitialized.kt") + public void testLocalInitialized() { + runTest("compiler/testData/codegen/box/lateinit/localInitialized.kt"); + } + + @Test + @TestMetadata("localNotInitialized.kt") + public void testLocalNotInitialized() { + runTest("compiler/testData/codegen/box/lateinit/localNotInitialized.kt"); + } + + @Test + @TestMetadata("notInitialized.kt") + public void testNotInitialized() { + runTest("compiler/testData/codegen/box/lateinit/notInitialized.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/lazyCodegen") @TestDataPath("$PROJECT_ROOT") @@ -34011,6 +36671,98 @@ public class LLFirReversedBlackBoxCodegenBasedTestGenerated extends AbstractLLFi } } + @Nested + @TestMetadata("compiler/testData/codegen/box/literals") + @TestDataPath("$PROJECT_ROOT") + public class Literals { + @Test + public void testAllFilesPresentInLiterals() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/literals"), Pattern.compile("^(.+)\\.kt$"), null, true); + } + + @Test + @TestMetadata("listof1.kt") + public void testListof1() { + runTest("compiler/testData/codegen/box/literals/listof1.kt"); + } + + @Test + @TestMetadata("strdedup1.kt") + public void testStrdedup1() { + runTest("compiler/testData/codegen/box/literals/strdedup1.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/localClass") + @TestDataPath("$PROJECT_ROOT") + public class LocalClass { + @Test + public void testAllFilesPresentInLocalClass() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/localClass"), Pattern.compile("^(.+)\\.kt$"), null, true); + } + + @Test + @TestMetadata("innerTakesCapturedFromOuter.kt") + public void testInnerTakesCapturedFromOuter() { + runTest("compiler/testData/codegen/box/localClass/innerTakesCapturedFromOuter.kt"); + } + + @Test + @TestMetadata("innerWithCapture.kt") + public void testInnerWithCapture() { + runTest("compiler/testData/codegen/box/localClass/innerWithCapture.kt"); + } + + @Test + @TestMetadata("localFunctionCallFromLocalClass.kt") + public void testLocalFunctionCallFromLocalClass() { + runTest("compiler/testData/codegen/box/localClass/localFunctionCallFromLocalClass.kt"); + } + + @Test + @TestMetadata("localFunctionInLocalClass.kt") + public void testLocalFunctionInLocalClass() { + runTest("compiler/testData/codegen/box/localClass/localFunctionInLocalClass.kt"); + } + + @Test + @TestMetadata("localHierarchy.kt") + public void testLocalHierarchy() { + runTest("compiler/testData/codegen/box/localClass/localHierarchy.kt"); + } + + @Test + @TestMetadata("noPrimaryConstructor.kt") + public void testNoPrimaryConstructor() { + runTest("compiler/testData/codegen/box/localClass/noPrimaryConstructor.kt"); + } + + @Test + @TestMetadata("objectExpressionInInitializer.kt") + public void testObjectExpressionInInitializer() { + runTest("compiler/testData/codegen/box/localClass/objectExpressionInInitializer.kt"); + } + + @Test + @TestMetadata("objectExpressionInProperty.kt") + public void testObjectExpressionInProperty() { + runTest("compiler/testData/codegen/box/localClass/objectExpressionInProperty.kt"); + } + + @Test + @TestMetadata("tryCatch.kt") + public void testTryCatch() { + runTest("compiler/testData/codegen/box/localClass/tryCatch.kt"); + } + + @Test + @TestMetadata("virtualCallFromConstructor.kt") + public void testVirtualCallFromConstructor() { + runTest("compiler/testData/codegen/box/localClass/virtualCallFromConstructor.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/localClasses") @TestDataPath("$PROJECT_ROOT") @@ -34261,6 +37013,38 @@ public class LLFirReversedBlackBoxCodegenBasedTestGenerated extends AbstractLLFi } } + @Nested + @TestMetadata("compiler/testData/codegen/box/localEscapeAnalysis") + @TestDataPath("$PROJECT_ROOT") + public class LocalEscapeAnalysis { + @Test + public void testAllFilesPresentInLocalEscapeAnalysis() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/localEscapeAnalysis"), Pattern.compile("^(.+)\\.kt$"), null, true); + } + + @Test + @TestMetadata("arraysFieldWrite.kt") + public void testArraysFieldWrite() { + runTest("compiler/testData/codegen/box/localEscapeAnalysis/arraysFieldWrite.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/lower") + @TestDataPath("$PROJECT_ROOT") + public class Lower { + @Test + public void testAllFilesPresentInLower() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/lower"), Pattern.compile("^(.+)\\.kt$"), null, true); + } + + @Test + @TestMetadata("localDelegatedProperty.kt") + public void testLocalDelegatedProperty() { + runTest("compiler/testData/codegen/box/lower/localDelegatedProperty.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/mangling") @TestDataPath("$PROJECT_ROOT") @@ -34300,6 +37084,12 @@ public class LLFirReversedBlackBoxCodegenBasedTestGenerated extends AbstractLLFi runTest("compiler/testData/codegen/box/mangling/internalOverrideSuperCall.kt"); } + @Test + @TestMetadata("multipleConstructors.kt") + public void testMultipleConstructors() { + runTest("compiler/testData/codegen/box/mangling/multipleConstructors.kt"); + } + @Test @TestMetadata("noOverrideWithJava.kt") public void testNoOverrideWithJava() { @@ -36343,6 +39133,98 @@ public class LLFirReversedBlackBoxCodegenBasedTestGenerated extends AbstractLLFi } } + @Nested + @TestMetadata("compiler/testData/codegen/box/object") + @TestDataPath("$PROJECT_ROOT") + public class Object { + @Test + public void testAllFilesPresentInObject() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/object"), Pattern.compile("^(.+)\\.kt$"), null, true); + } + + @Test + @TestMetadata("constructor0.kt") + public void testConstructor0() { + runTest("compiler/testData/codegen/box/object/constructor0.kt"); + } + + @Test + @TestMetadata("fields.kt") + public void testFields() { + runTest("compiler/testData/codegen/box/object/fields.kt"); + } + + @Test + @TestMetadata("fields1.kt") + public void testFields1() { + runTest("compiler/testData/codegen/box/object/fields1.kt"); + } + + @Test + @TestMetadata("fields2.kt") + public void testFields2() { + runTest("compiler/testData/codegen/box/object/fields2.kt"); + } + + @Test + @TestMetadata("globalInitializer.kt") + public void testGlobalInitializer() { + runTest("compiler/testData/codegen/box/object/globalInitializer.kt"); + } + + @Test + @TestMetadata("init0.kt") + public void testInit0() { + runTest("compiler/testData/codegen/box/object/init0.kt"); + } + + @Test + @TestMetadata("initialization.kt") + public void testInitialization() { + runTest("compiler/testData/codegen/box/object/initialization.kt"); + } + + @Test + @TestMetadata("initialization1.kt") + public void testInitialization1() { + runTest("compiler/testData/codegen/box/object/initialization1.kt"); + } + + @Test + @TestMetadata("method_call.kt") + public void testMethod_call() { + runTest("compiler/testData/codegen/box/object/method_call.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/objectExpression") + @TestDataPath("$PROJECT_ROOT") + public class ObjectExpression { + @Test + public void testAllFilesPresentInObjectExpression() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/objectExpression"), Pattern.compile("^(.+)\\.kt$"), null, true); + } + + @Test + @TestMetadata("expr1.kt") + public void testExpr1() { + runTest("compiler/testData/codegen/box/objectExpression/expr1.kt"); + } + + @Test + @TestMetadata("expr2.kt") + public void testExpr2() { + runTest("compiler/testData/codegen/box/objectExpression/expr2.kt"); + } + + @Test + @TestMetadata("expr3.kt") + public void testExpr3() { + runTest("compiler/testData/codegen/box/objectExpression/expr3.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/objectIntrinsics") @TestDataPath("$PROJECT_ROOT") @@ -39681,6 +42563,64 @@ public class LLFirReversedBlackBoxCodegenBasedTestGenerated extends AbstractLLFi } } + @Nested + @TestMetadata("compiler/testData/codegen/box/propertyCallableReference") + @TestDataPath("$PROJECT_ROOT") + public class PropertyCallableReference { + @Test + public void testAllFilesPresentInPropertyCallableReference() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/propertyCallableReference"), Pattern.compile("^(.+)\\.kt$"), null, true); + } + + @Test + @TestMetadata("dynamicReceiver.kt") + public void testDynamicReceiver() { + runTest("compiler/testData/codegen/box/propertyCallableReference/dynamicReceiver.kt"); + } + + @Test + @TestMetadata("multipleModules.kt") + public void testMultipleModules() { + runTest("compiler/testData/codegen/box/propertyCallableReference/multipleModules.kt"); + } + + @Test + @TestMetadata("valClass.kt") + public void testValClass() { + runTest("compiler/testData/codegen/box/propertyCallableReference/valClass.kt"); + } + + @Test + @TestMetadata("valExtension.kt") + public void testValExtension() { + runTest("compiler/testData/codegen/box/propertyCallableReference/valExtension.kt"); + } + + @Test + @TestMetadata("valModule.kt") + public void testValModule() { + runTest("compiler/testData/codegen/box/propertyCallableReference/valModule.kt"); + } + + @Test + @TestMetadata("varClass.kt") + public void testVarClass() { + runTest("compiler/testData/codegen/box/propertyCallableReference/varClass.kt"); + } + + @Test + @TestMetadata("varExtension.kt") + public void testVarExtension() { + runTest("compiler/testData/codegen/box/propertyCallableReference/varExtension.kt"); + } + + @Test + @TestMetadata("varModule.kt") + public void testVarModule() { + runTest("compiler/testData/codegen/box/propertyCallableReference/varModule.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/publishedApi") @TestDataPath("$PROJECT_ROOT") @@ -51941,6 +54881,58 @@ public class LLFirReversedBlackBoxCodegenBasedTestGenerated extends AbstractLLFi } } + @Nested + @TestMetadata("compiler/testData/codegen/box/serialization") + @TestDataPath("$PROJECT_ROOT") + public class Serialization { + @Test + public void testAllFilesPresentInSerialization() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/serialization"), Pattern.compile("^(.+)\\.kt$"), null, true); + } + + @Test + @TestMetadata("deserializedMembers.kt") + public void testDeserializedMembers() { + runTest("compiler/testData/codegen/box/serialization/deserializedMembers.kt"); + } + + @Test + @TestMetadata("serializedCatch.kt") + public void testSerializedCatch() { + runTest("compiler/testData/codegen/box/serialization/serializedCatch.kt"); + } + + @Test + @TestMetadata("serializedCharConstant.kt") + public void testSerializedCharConstant() { + runTest("compiler/testData/codegen/box/serialization/serializedCharConstant.kt"); + } + + @Test + @TestMetadata("serializedDefaultArgs.kt") + public void testSerializedDefaultArgs() { + runTest("compiler/testData/codegen/box/serialization/serializedDefaultArgs.kt"); + } + + @Test + @TestMetadata("serializedDoWhile.kt") + public void testSerializedDoWhile() { + runTest("compiler/testData/codegen/box/serialization/serializedDoWhile.kt"); + } + + @Test + @TestMetadata("serializedEnumOrdinal.kt") + public void testSerializedEnumOrdinal() { + runTest("compiler/testData/codegen/box/serialization/serializedEnumOrdinal.kt"); + } + + @Test + @TestMetadata("serializedVararg.kt") + public void testSerializedVararg() { + runTest("compiler/testData/codegen/box/serialization/serializedVararg.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/size") @TestDataPath("$PROJECT_ROOT") @@ -52655,6 +55647,22 @@ public class LLFirReversedBlackBoxCodegenBasedTestGenerated extends AbstractLLFi } } + @Nested + @TestMetadata("compiler/testData/codegen/box/stringTrim") + @TestDataPath("$PROJECT_ROOT") + public class StringTrim { + @Test + public void testAllFilesPresentInStringTrim() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/stringTrim"), Pattern.compile("^(.+)\\.kt$"), null, true); + } + + @Test + @TestMetadata("stringTrim.kt") + public void testStringTrim() { + runTest("compiler/testData/codegen/box/stringTrim/stringTrim.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/strings") @TestDataPath("$PROJECT_ROOT") @@ -54201,6 +57209,142 @@ public class LLFirReversedBlackBoxCodegenBasedTestGenerated extends AbstractLLFi } } + @Nested + @TestMetadata("compiler/testData/codegen/box/try") + @TestDataPath("$PROJECT_ROOT") + public class Try { + @Test + public void testAllFilesPresentInTry() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/try"), Pattern.compile("^(.+)\\.kt$"), null, true); + } + + @Test + @TestMetadata("catch3.kt") + public void testCatch3() { + runTest("compiler/testData/codegen/box/try/catch3.kt"); + } + + @Test + @TestMetadata("catch4.kt") + public void testCatch4() { + runTest("compiler/testData/codegen/box/try/catch4.kt"); + } + + @Test + @TestMetadata("catch5.kt") + public void testCatch5() { + runTest("compiler/testData/codegen/box/try/catch5.kt"); + } + + @Test + @TestMetadata("catch6.kt") + public void testCatch6() { + runTest("compiler/testData/codegen/box/try/catch6.kt"); + } + + @Test + @TestMetadata("catch8.kt") + public void testCatch8() { + runTest("compiler/testData/codegen/box/try/catch8.kt"); + } + + @Test + @TestMetadata("finally1.kt") + public void testFinally1() { + runTest("compiler/testData/codegen/box/try/finally1.kt"); + } + + @Test + @TestMetadata("finally10.kt") + public void testFinally10() { + runTest("compiler/testData/codegen/box/try/finally10.kt"); + } + + @Test + @TestMetadata("finally11.kt") + public void testFinally11() { + runTest("compiler/testData/codegen/box/try/finally11.kt"); + } + + @Test + @TestMetadata("finally2.kt") + public void testFinally2() { + runTest("compiler/testData/codegen/box/try/finally2.kt"); + } + + @Test + @TestMetadata("finally3.kt") + public void testFinally3() { + runTest("compiler/testData/codegen/box/try/finally3.kt"); + } + + @Test + @TestMetadata("finally4.kt") + public void testFinally4() { + runTest("compiler/testData/codegen/box/try/finally4.kt"); + } + + @Test + @TestMetadata("finally5.kt") + public void testFinally5() { + runTest("compiler/testData/codegen/box/try/finally5.kt"); + } + + @Test + @TestMetadata("finally6.kt") + public void testFinally6() { + runTest("compiler/testData/codegen/box/try/finally6.kt"); + } + + @Test + @TestMetadata("finally7.kt") + public void testFinally7() { + runTest("compiler/testData/codegen/box/try/finally7.kt"); + } + + @Test + @TestMetadata("finally8.kt") + public void testFinally8() { + runTest("compiler/testData/codegen/box/try/finally8.kt"); + } + + @Test + @TestMetadata("finally9.kt") + public void testFinally9() { + runTest("compiler/testData/codegen/box/try/finally9.kt"); + } + + @Test + @TestMetadata("returnsDifferentTypes.kt") + public void testReturnsDifferentTypes() { + runTest("compiler/testData/codegen/box/try/returnsDifferentTypes.kt"); + } + + @Test + @TestMetadata("try1.kt") + public void testTry1() { + runTest("compiler/testData/codegen/box/try/try1.kt"); + } + + @Test + @TestMetadata("try2.kt") + public void testTry2() { + runTest("compiler/testData/codegen/box/try/try2.kt"); + } + + @Test + @TestMetadata("try3.kt") + public void testTry3() { + runTest("compiler/testData/codegen/box/try/try3.kt"); + } + + @Test + @TestMetadata("try4.kt") + public void testTry4() { + runTest("compiler/testData/codegen/box/try/try4.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/typeInfo") @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 75f34e7033b..c855920d15a 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 @@ -107,6 +107,12 @@ public class FirLightTreeBlackBoxCodegenTestGenerated extends AbstractFirLightTr runTest("compiler/testData/codegen/box/annotations/annotationWithVarargAsDefaultValue.kt"); } + @Test + @TestMetadata("annotations0.kt") + public void testAnnotations0() { + runTest("compiler/testData/codegen/box/annotations/annotations0.kt"); + } + @Test @TestMetadata("annotationsOnDefault.kt") public void testAnnotationsOnDefault() { @@ -936,6 +942,82 @@ public class FirLightTreeBlackBoxCodegenTestGenerated extends AbstractFirLightTr } } + @Nested + @TestMetadata("compiler/testData/codegen/box/arithmetic") + @TestDataPath("$PROJECT_ROOT") + public class Arithmetic { + @Test + public void testAllFilesPresentInArithmetic() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/arithmetic"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("basic_charConversions.kt") + public void testBasic_charConversions() { + runTest("compiler/testData/codegen/box/arithmetic/basic_charConversions.kt"); + } + + @Test + @TestMetadata("basic_charCornerCases.kt") + public void testBasic_charCornerCases() { + runTest("compiler/testData/codegen/box/arithmetic/basic_charCornerCases.kt"); + } + + @Test + @TestMetadata("basic_compareIntToFloat.kt") + public void testBasic_compareIntToFloat() { + runTest("compiler/testData/codegen/box/arithmetic/basic_compareIntToFloat.kt"); + } + + @Test + @TestMetadata("basic_doubleBasic.kt") + public void testBasic_doubleBasic() { + runTest("compiler/testData/codegen/box/arithmetic/basic_doubleBasic.kt"); + } + + @Test + @TestMetadata("basic_integralToFloat.kt") + public void testBasic_integralToFloat() { + runTest("compiler/testData/codegen/box/arithmetic/basic_integralToFloat.kt"); + } + + @Test + @TestMetadata("basic_kt37412.kt") + public void testBasic_kt37412() { + runTest("compiler/testData/codegen/box/arithmetic/basic_kt37412.kt"); + } + + @Test + @TestMetadata("basic_selfComparison.kt") + public void testBasic_selfComparison() { + runTest("compiler/testData/codegen/box/arithmetic/basic_selfComparison.kt"); + } + + @Test + @TestMetadata("basic_shifts.kt") + public void testBasic_shifts() { + runTest("compiler/testData/codegen/box/arithmetic/basic_shifts.kt"); + } + + @Test + @TestMetadata("basic_uintTests.kt") + public void testBasic_uintTests() { + runTest("compiler/testData/codegen/box/arithmetic/basic_uintTests.kt"); + } + + @Test + @TestMetadata("division.kt") + public void testDivision() { + runTest("compiler/testData/codegen/box/arithmetic/division.kt"); + } + + @Test + @TestMetadata("github1856.kt") + public void testGithub1856() { + runTest("compiler/testData/codegen/box/arithmetic/github1856.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/arrays") @TestDataPath("$PROJECT_ROOT") @@ -1788,6 +1870,302 @@ public class FirLightTreeBlackBoxCodegenTestGenerated extends AbstractFirLightTr } } + @Nested + @TestMetadata("compiler/testData/codegen/box/basics") + @TestDataPath("$PROJECT_ROOT") + public class Basics { + @Test + public void testAllFilesPresentInBasics() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/basics"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("array_to_any.kt") + public void testArray_to_any() { + runTest("compiler/testData/codegen/box/basics/array_to_any.kt"); + } + + @Test + @TestMetadata("canonical_name.kt") + public void testCanonical_name() { + runTest("compiler/testData/codegen/box/basics/canonical_name.kt"); + } + + @Test + @TestMetadata("cast_null.kt") + public void testCast_null() { + runTest("compiler/testData/codegen/box/basics/cast_null.kt"); + } + + @Test + @TestMetadata("cast_simple.kt") + public void testCast_simple() { + runTest("compiler/testData/codegen/box/basics/cast_simple.kt"); + } + + @Test + @TestMetadata("check_type.kt") + public void testCheck_type() { + runTest("compiler/testData/codegen/box/basics/check_type.kt"); + } + + @Test + @TestMetadata("companion.kt") + public void testCompanion() { + runTest("compiler/testData/codegen/box/basics/companion.kt"); + } + + @Test + @TestMetadata("concatenation.kt") + public void testConcatenation() { + runTest("compiler/testData/codegen/box/basics/concatenation.kt"); + } + + @Test + @TestMetadata("const_infinity.kt") + public void testConst_infinity() { + runTest("compiler/testData/codegen/box/basics/const_infinity.kt"); + } + + @Test + @TestMetadata("expression_as_statement.kt") + public void testExpression_as_statement() { + runTest("compiler/testData/codegen/box/basics/expression_as_statement.kt"); + } + + @Test + @TestMetadata("k42000_1.kt") + public void testK42000_1() { + runTest("compiler/testData/codegen/box/basics/k42000_1.kt"); + } + + @Test + @TestMetadata("k42000_2.kt") + public void testK42000_2() { + runTest("compiler/testData/codegen/box/basics/k42000_2.kt"); + } + + @Test + @TestMetadata("local_variable.kt") + public void testLocal_variable() { + runTest("compiler/testData/codegen/box/basics/local_variable.kt"); + } + + @Test + @TestMetadata("null_check.kt") + public void testNull_check() { + runTest("compiler/testData/codegen/box/basics/null_check.kt"); + } + + @Test + @TestMetadata("safe_cast.kt") + public void testSafe_cast() { + runTest("compiler/testData/codegen/box/basics/safe_cast.kt"); + } + + @Test + @TestMetadata("spread_operator_0.kt") + public void testSpread_operator_0() { + runTest("compiler/testData/codegen/box/basics/spread_operator_0.kt"); + } + + @Test + @TestMetadata("statements0.kt") + public void testStatements0() { + runTest("compiler/testData/codegen/box/basics/statements0.kt"); + } + + @Test + @TestMetadata("superFunCall.kt") + public void testSuperFunCall() { + runTest("compiler/testData/codegen/box/basics/superFunCall.kt"); + } + + @Test + @TestMetadata("superGetterCall.kt") + public void testSuperGetterCall() { + runTest("compiler/testData/codegen/box/basics/superGetterCall.kt"); + } + + @Test + @TestMetadata("superSetterCall.kt") + public void testSuperSetterCall() { + runTest("compiler/testData/codegen/box/basics/superSetterCall.kt"); + } + + @Test + @TestMetadata("typealias1.kt") + public void testTypealias1() { + runTest("compiler/testData/codegen/box/basics/typealias1.kt"); + } + + @Test + @TestMetadata("unchecked_cast1.kt") + public void testUnchecked_cast1() { + runTest("compiler/testData/codegen/box/basics/unchecked_cast1.kt"); + } + + @Test + @TestMetadata("unchecked_cast2.kt") + public void testUnchecked_cast2() { + runTest("compiler/testData/codegen/box/basics/unchecked_cast2.kt"); + } + + @Test + @TestMetadata("unchecked_cast3.kt") + public void testUnchecked_cast3() { + runTest("compiler/testData/codegen/box/basics/unchecked_cast3.kt"); + } + + @Test + @TestMetadata("unchecked_cast4.kt") + public void testUnchecked_cast4() { + runTest("compiler/testData/codegen/box/basics/unchecked_cast4.kt"); + } + + @Test + @TestMetadata("unit1.kt") + public void testUnit1() { + runTest("compiler/testData/codegen/box/basics/unit1.kt"); + } + + @Test + @TestMetadata("unit2.kt") + public void testUnit2() { + runTest("compiler/testData/codegen/box/basics/unit2.kt"); + } + + @Test + @TestMetadata("unit3.kt") + public void testUnit3() { + runTest("compiler/testData/codegen/box/basics/unit3.kt"); + } + + @Test + @TestMetadata("unit4.kt") + public void testUnit4() { + runTest("compiler/testData/codegen/box/basics/unit4.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/bce") + @TestDataPath("$PROJECT_ROOT") + public class Bce { + @Test + public void testAllFilesPresentInBce() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/bce"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("bceCases.kt") + public void testBceCases() { + runTest("compiler/testData/codegen/box/bce/bceCases.kt"); + } + + @Test + @TestMetadata("customGetter.kt") + public void testCustomGetter() { + runTest("compiler/testData/codegen/box/bce/customGetter.kt"); + } + + @Test + @TestMetadata("delegatedProperty.kt") + public void testDelegatedProperty() { + runTest("compiler/testData/codegen/box/bce/delegatedProperty.kt"); + } + + @Test + @TestMetadata("differentArrays.kt") + public void testDifferentArrays() { + runTest("compiler/testData/codegen/box/bce/differentArrays.kt"); + } + + @Test + @TestMetadata("differentObjects.kt") + public void testDifferentObjects() { + runTest("compiler/testData/codegen/box/bce/differentObjects.kt"); + } + + @Test + @TestMetadata("forDownToSize.kt") + public void testForDownToSize() { + runTest("compiler/testData/codegen/box/bce/forDownToSize.kt"); + } + + @Test + @TestMetadata("forDownToWithStep.kt") + public void testForDownToWithStep() { + runTest("compiler/testData/codegen/box/bce/forDownToWithStep.kt"); + } + + @Test + @TestMetadata("forEachIndexedTest.kt") + public void testForEachIndexedTest() { + runTest("compiler/testData/codegen/box/bce/forEachIndexedTest.kt"); + } + + @Test + @TestMetadata("forEachIndicies.kt") + public void testForEachIndicies() { + runTest("compiler/testData/codegen/box/bce/forEachIndicies.kt"); + } + + @Test + @TestMetadata("forIndiciesWithStep.kt") + public void testForIndiciesWithStep() { + runTest("compiler/testData/codegen/box/bce/forIndiciesWithStep.kt"); + } + + @Test + @TestMetadata("forRangeToSize.kt") + public void testForRangeToSize() { + runTest("compiler/testData/codegen/box/bce/forRangeToSize.kt"); + } + + @Test + @TestMetadata("forRangeToWithStep.kt") + public void testForRangeToWithStep() { + runTest("compiler/testData/codegen/box/bce/forRangeToWithStep.kt"); + } + + @Test + @TestMetadata("forReversed.kt") + public void testForReversed() { + runTest("compiler/testData/codegen/box/bce/forReversed.kt"); + } + + @Test + @TestMetadata("forUntilSize.kt") + public void testForUntilSize() { + runTest("compiler/testData/codegen/box/bce/forUntilSize.kt"); + } + + @Test + @TestMetadata("forUntilWithStep.kt") + public void testForUntilWithStep() { + runTest("compiler/testData/codegen/box/bce/forUntilWithStep.kt"); + } + + @Test + @TestMetadata("forWithIndex.kt") + public void testForWithIndex() { + runTest("compiler/testData/codegen/box/bce/forWithIndex.kt"); + } + + @Test + @TestMetadata("inheritance.kt") + public void testInheritance() { + runTest("compiler/testData/codegen/box/bce/inheritance.kt"); + } + + @Test + @TestMetadata("withGetter.kt") + public void testWithGetter() { + runTest("compiler/testData/codegen/box/bce/withGetter.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/binaryOp") @TestDataPath("$PROJECT_ROOT") @@ -1984,6 +2362,124 @@ public class FirLightTreeBlackBoxCodegenTestGenerated extends AbstractFirLightTr } } + @Nested + @TestMetadata("compiler/testData/codegen/box/boxing") + @TestDataPath("$PROJECT_ROOT") + public class Boxing { + @Test + public void testAllFilesPresentInBoxing() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/boxing"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("box_cache0.kt") + public void testBox_cache0() { + runTest("compiler/testData/codegen/box/boxing/box_cache0.kt"); + } + + @Test + @TestMetadata("boxing0.kt") + public void testBoxing0() { + runTest("compiler/testData/codegen/box/boxing/boxing0.kt"); + } + + @Test + @TestMetadata("boxing1.kt") + public void testBoxing1() { + runTest("compiler/testData/codegen/box/boxing/boxing1.kt"); + } + + @Test + @TestMetadata("boxing10.kt") + public void testBoxing10() { + runTest("compiler/testData/codegen/box/boxing/boxing10.kt"); + } + + @Test + @TestMetadata("boxing11.kt") + public void testBoxing11() { + runTest("compiler/testData/codegen/box/boxing/boxing11.kt"); + } + + @Test + @TestMetadata("boxing12.kt") + public void testBoxing12() { + runTest("compiler/testData/codegen/box/boxing/boxing12.kt"); + } + + @Test + @TestMetadata("boxing13.kt") + public void testBoxing13() { + runTest("compiler/testData/codegen/box/boxing/boxing13.kt"); + } + + @Test + @TestMetadata("boxing14.kt") + public void testBoxing14() { + runTest("compiler/testData/codegen/box/boxing/boxing14.kt"); + } + + @Test + @TestMetadata("boxing15.kt") + public void testBoxing15() { + runTest("compiler/testData/codegen/box/boxing/boxing15.kt"); + } + + @Test + @TestMetadata("boxing2.kt") + public void testBoxing2() { + runTest("compiler/testData/codegen/box/boxing/boxing2.kt"); + } + + @Test + @TestMetadata("boxing3.kt") + public void testBoxing3() { + runTest("compiler/testData/codegen/box/boxing/boxing3.kt"); + } + + @Test + @TestMetadata("boxing4.kt") + public void testBoxing4() { + runTest("compiler/testData/codegen/box/boxing/boxing4.kt"); + } + + @Test + @TestMetadata("boxing5.kt") + public void testBoxing5() { + runTest("compiler/testData/codegen/box/boxing/boxing5.kt"); + } + + @Test + @TestMetadata("boxing6.kt") + public void testBoxing6() { + runTest("compiler/testData/codegen/box/boxing/boxing6.kt"); + } + + @Test + @TestMetadata("boxing7.kt") + public void testBoxing7() { + runTest("compiler/testData/codegen/box/boxing/boxing7.kt"); + } + + @Test + @TestMetadata("boxing8.kt") + public void testBoxing8() { + runTest("compiler/testData/codegen/box/boxing/boxing8.kt"); + } + + @Test + @TestMetadata("boxing9.kt") + public void testBoxing9() { + runTest("compiler/testData/codegen/box/boxing/boxing9.kt"); + } + + @Test + @TestMetadata("kt53100_casts.kt") + public void testKt53100_casts() { + runTest("compiler/testData/codegen/box/boxing/kt53100_casts.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/boxingOptimization") @TestDataPath("$PROJECT_ROOT") @@ -2264,6 +2760,88 @@ public class FirLightTreeBlackBoxCodegenTestGenerated extends AbstractFirLightTr } } + @Nested + @TestMetadata("compiler/testData/codegen/box/branching") + @TestDataPath("$PROJECT_ROOT") + public class Branching { + @Test + @TestMetadata("advanced_when2.kt") + public void testAdvanced_when2() { + runTest("compiler/testData/codegen/box/branching/advanced_when2.kt"); + } + + @Test + @TestMetadata("advanced_when5.kt") + public void testAdvanced_when5() { + runTest("compiler/testData/codegen/box/branching/advanced_when5.kt"); + } + + @Test + public void testAllFilesPresentInBranching() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/branching"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("if_else.kt") + public void testIf_else() { + runTest("compiler/testData/codegen/box/branching/if_else.kt"); + } + + @Test + @TestMetadata("when2.kt") + public void testWhen2() { + runTest("compiler/testData/codegen/box/branching/when2.kt"); + } + + @Test + @TestMetadata("when4.kt") + public void testWhen4() { + runTest("compiler/testData/codegen/box/branching/when4.kt"); + } + + @Test + @TestMetadata("when5.kt") + public void testWhen5() { + runTest("compiler/testData/codegen/box/branching/when5.kt"); + } + + @Test + @TestMetadata("when6.kt") + public void testWhen6() { + runTest("compiler/testData/codegen/box/branching/when6.kt"); + } + + @Test + @TestMetadata("when7.kt") + public void testWhen7() { + runTest("compiler/testData/codegen/box/branching/when7.kt"); + } + + @Test + @TestMetadata("when8.kt") + public void testWhen8() { + runTest("compiler/testData/codegen/box/branching/when8.kt"); + } + + @Test + @TestMetadata("when9.kt") + public void testWhen9() { + runTest("compiler/testData/codegen/box/branching/when9.kt"); + } + + @Test + @TestMetadata("when_through.kt") + public void testWhen_through() { + runTest("compiler/testData/codegen/box/branching/when_through.kt"); + } + + @Test + @TestMetadata("when_with_try1.kt") + public void testWhen_with_try1() { + runTest("compiler/testData/codegen/box/branching/when_with_try1.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/bridges") @TestDataPath("$PROJECT_ROOT") @@ -2525,6 +3103,18 @@ public class FirLightTreeBlackBoxCodegenTestGenerated extends AbstractFirLightTr runTest("compiler/testData/codegen/box/bridges/methodWithDefaultParameter.kt"); } + @Test + @TestMetadata("multipleModules1.kt") + public void testMultipleModules1() { + runTest("compiler/testData/codegen/box/bridges/multipleModules1.kt"); + } + + @Test + @TestMetadata("multipleModules2.kt") + public void testMultipleModules2() { + runTest("compiler/testData/codegen/box/bridges/multipleModules2.kt"); + } + @Test @TestMetadata("nestedClassTypeParameters.kt") public void testNestedClassTypeParameters() { @@ -2591,6 +3181,12 @@ public class FirLightTreeBlackBoxCodegenTestGenerated extends AbstractFirLightTr runTest("compiler/testData/codegen/box/bridges/propertySetter.kt"); } + @Test + @TestMetadata("returnTypeSignature.kt") + public void testReturnTypeSignature() { + runTest("compiler/testData/codegen/box/bridges/returnTypeSignature.kt"); + } + @Test @TestMetadata("simple.kt") public void testSimple() { @@ -2633,6 +3229,18 @@ public class FirLightTreeBlackBoxCodegenTestGenerated extends AbstractFirLightTr runTest("compiler/testData/codegen/box/bridges/simpleUpperBound.kt"); } + @Test + @TestMetadata("special.kt") + public void testSpecial() { + runTest("compiler/testData/codegen/box/bridges/special.kt"); + } + + @Test + @TestMetadata("specialGeneric.kt") + public void testSpecialGeneric() { + runTest("compiler/testData/codegen/box/bridges/specialGeneric.kt"); + } + @Test @TestMetadata("strListContains.kt") public void testStrListContains() { @@ -2645,6 +3253,120 @@ public class FirLightTreeBlackBoxCodegenTestGenerated extends AbstractFirLightTr runTest("compiler/testData/codegen/box/bridges/strListRemove.kt"); } + @Test + @TestMetadata("test0.kt") + public void testTest0() { + runTest("compiler/testData/codegen/box/bridges/test0.kt"); + } + + @Test + @TestMetadata("test1.kt") + public void testTest1() { + runTest("compiler/testData/codegen/box/bridges/test1.kt"); + } + + @Test + @TestMetadata("test10.kt") + public void testTest10() { + runTest("compiler/testData/codegen/box/bridges/test10.kt"); + } + + @Test + @TestMetadata("test11.kt") + public void testTest11() { + runTest("compiler/testData/codegen/box/bridges/test11.kt"); + } + + @Test + @TestMetadata("test12.kt") + public void testTest12() { + runTest("compiler/testData/codegen/box/bridges/test12.kt"); + } + + @Test + @TestMetadata("test13.kt") + public void testTest13() { + runTest("compiler/testData/codegen/box/bridges/test13.kt"); + } + + @Test + @TestMetadata("test14.kt") + public void testTest14() { + runTest("compiler/testData/codegen/box/bridges/test14.kt"); + } + + @Test + @TestMetadata("test15.kt") + public void testTest15() { + runTest("compiler/testData/codegen/box/bridges/test15.kt"); + } + + @Test + @TestMetadata("test16.kt") + public void testTest16() { + runTest("compiler/testData/codegen/box/bridges/test16.kt"); + } + + @Test + @TestMetadata("test17.kt") + public void testTest17() { + runTest("compiler/testData/codegen/box/bridges/test17.kt"); + } + + @Test + @TestMetadata("test18.kt") + public void testTest18() { + runTest("compiler/testData/codegen/box/bridges/test18.kt"); + } + + @Test + @TestMetadata("test2.kt") + public void testTest2() { + runTest("compiler/testData/codegen/box/bridges/test2.kt"); + } + + @Test + @TestMetadata("test3.kt") + public void testTest3() { + runTest("compiler/testData/codegen/box/bridges/test3.kt"); + } + + @Test + @TestMetadata("test4.kt") + public void testTest4() { + runTest("compiler/testData/codegen/box/bridges/test4.kt"); + } + + @Test + @TestMetadata("test5.kt") + public void testTest5() { + runTest("compiler/testData/codegen/box/bridges/test5.kt"); + } + + @Test + @TestMetadata("test6.kt") + public void testTest6() { + runTest("compiler/testData/codegen/box/bridges/test6.kt"); + } + + @Test + @TestMetadata("test7.kt") + public void testTest7() { + runTest("compiler/testData/codegen/box/bridges/test7.kt"); + } + + @Test + @TestMetadata("test8.kt") + public void testTest8() { + runTest("compiler/testData/codegen/box/bridges/test8.kt"); + } + + @Test + @TestMetadata("test9.kt") + public void testTest9() { + runTest("compiler/testData/codegen/box/bridges/test9.kt"); + } + @Test @TestMetadata("traitImplInheritsTraitImpl.kt") public void testTraitImplInheritsTraitImpl() { @@ -6324,6 +7046,46 @@ public class FirLightTreeBlackBoxCodegenTestGenerated extends AbstractFirLightTr } } + @Nested + @TestMetadata("compiler/testData/codegen/box/classDelegation") + @TestDataPath("$PROJECT_ROOT") + public class ClassDelegation { + @Test + public void testAllFilesPresentInClassDelegation() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/classDelegation"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("generic.kt") + public void testGeneric() { + runTest("compiler/testData/codegen/box/classDelegation/generic.kt"); + } + + @Test + @TestMetadata("method.kt") + public void testMethod() { + runTest("compiler/testData/codegen/box/classDelegation/method.kt"); + } + + @Test + @TestMetadata("multipleModules.kt") + public void testMultipleModules() { + runTest("compiler/testData/codegen/box/classDelegation/multipleModules.kt"); + } + + @Test + @TestMetadata("property.kt") + public void testProperty() { + runTest("compiler/testData/codegen/box/classDelegation/property.kt"); + } + + @Test + @TestMetadata("withBridge.kt") + public void testWithBridge() { + runTest("compiler/testData/codegen/box/classDelegation/withBridge.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/classLiteral") @TestDataPath("$PROJECT_ROOT") @@ -9551,6 +10313,12 @@ public class FirLightTreeBlackBoxCodegenTestGenerated extends AbstractFirLightTr runTest("compiler/testData/codegen/box/contracts/constructorArgument.kt"); } + @Test + @TestMetadata("contractForCast.kt") + public void testContractForCast() { + runTest("compiler/testData/codegen/box/contracts/contractForCast.kt"); + } + @Test @TestMetadata("destructuredVariable.kt") public void testDestructuredVariable() { @@ -9593,6 +10361,12 @@ public class FirLightTreeBlackBoxCodegenTestGenerated extends AbstractFirLightTr runTest("compiler/testData/codegen/box/contracts/functionParameter.kt"); } + @Test + @TestMetadata("isNullString.kt") + public void testIsNullString() { + runTest("compiler/testData/codegen/box/contracts/isNullString.kt"); + } + @Test @TestMetadata("kt39374.kt") public void testKt39374() { @@ -9635,6 +10409,24 @@ public class FirLightTreeBlackBoxCodegenTestGenerated extends AbstractFirLightTr runTest("compiler/testData/codegen/box/contracts/nestedLambdaInNonInlineCallExactlyOnce.kt"); } + @Test + @TestMetadata("nonNullSmartCast.kt") + public void testNonNullSmartCast() { + runTest("compiler/testData/codegen/box/contracts/nonNullSmartCast.kt"); + } + + @Test + @TestMetadata("require.kt") + public void testRequire() { + runTest("compiler/testData/codegen/box/contracts/require.kt"); + } + + @Test + @TestMetadata("runLambdaForVal.kt") + public void testRunLambdaForVal() { + runTest("compiler/testData/codegen/box/contracts/runLambdaForVal.kt"); + } + @Test @TestMetadata("valInWhen.kt") public void testValInWhen() { @@ -11082,6 +11874,124 @@ public class FirLightTreeBlackBoxCodegenTestGenerated extends AbstractFirLightTr } } + @Nested + @TestMetadata("compiler/testData/codegen/box/controlflow") + @TestDataPath("$PROJECT_ROOT") + public class Controlflow { + @Test + public void testAllFilesPresentInControlflow() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/controlflow"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("break.kt") + public void testBreak() { + runTest("compiler/testData/codegen/box/controlflow/break.kt"); + } + + @Test + @TestMetadata("break1.kt") + public void testBreak1() { + runTest("compiler/testData/codegen/box/controlflow/break1.kt"); + } + + @Test + @TestMetadata("for_loops.kt") + public void testFor_loops() { + runTest("compiler/testData/codegen/box/controlflow/for_loops.kt"); + } + + @Test + @TestMetadata("for_loops_array_break_continue.kt") + public void testFor_loops_array_break_continue() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_array_break_continue.kt"); + } + + @Test + @TestMetadata("for_loops_array_indices.kt") + public void testFor_loops_array_indices() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_array_indices.kt"); + } + + @Test + @TestMetadata("for_loops_array_mutation.kt") + public void testFor_loops_array_mutation() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_array_mutation.kt"); + } + + @Test + @TestMetadata("for_loops_array_nested.kt") + public void testFor_loops_array_nested() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_array_nested.kt"); + } + + @Test + @TestMetadata("for_loops_array_nullable.kt") + public void testFor_loops_array_nullable() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_array_nullable.kt"); + } + + @Test + @TestMetadata("for_loops_array_side_effects.kt") + public void testFor_loops_array_side_effects() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_array_side_effects.kt"); + } + + @Test + @TestMetadata("for_loops_call_order.kt") + public void testFor_loops_call_order() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_call_order.kt"); + } + + @Test + @TestMetadata("for_loops_coroutines.kt") + public void testFor_loops_coroutines() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_coroutines.kt"); + } + + @Test + @TestMetadata("for_loops_empty_range.kt") + public void testFor_loops_empty_range() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_empty_range.kt"); + } + + @Test + @TestMetadata("for_loops_errors.kt") + public void testFor_loops_errors() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_errors.kt"); + } + + @Test + @TestMetadata("for_loops_let_with_nullable.kt") + public void testFor_loops_let_with_nullable() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_let_with_nullable.kt"); + } + + @Test + @TestMetadata("for_loops_nested.kt") + public void testFor_loops_nested() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_nested.kt"); + } + + @Test + @TestMetadata("for_loops_overflow.kt") + public void testFor_loops_overflow() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_overflow.kt"); + } + + @Test + @TestMetadata("for_loops_types.kt") + public void testFor_loops_types() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_types.kt"); + } + + @Test + @TestMetadata("unreachable1.kt") + public void testUnreachable1() { + runTest("compiler/testData/codegen/box/controlflow/unreachable1.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/coroutines") @TestDataPath("$PROJECT_ROOT") @@ -11103,6 +12013,12 @@ public class FirLightTreeBlackBoxCodegenTestGenerated extends AbstractFirLightTr KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test + @TestMetadata("anonymousObject.kt") + public void testAnonymousObject() { + runTest("compiler/testData/codegen/box/coroutines/anonymousObject.kt"); + } + @Test @TestMetadata("async.kt") public void testAsync() { @@ -11199,12 +12115,144 @@ public class FirLightTreeBlackBoxCodegenTestGenerated extends AbstractFirLightTr runTest("compiler/testData/codegen/box/coroutines/coercionToUnit.kt"); } + @Test + @TestMetadata("controlFlow_chain.kt") + public void testControlFlow_chain() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_chain.kt"); + } + + @Test + @TestMetadata("controlFlow_finally1.kt") + public void testControlFlow_finally1() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally1.kt"); + } + + @Test + @TestMetadata("controlFlow_finally2.kt") + public void testControlFlow_finally2() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally2.kt"); + } + + @Test + @TestMetadata("controlFlow_finally3.kt") + public void testControlFlow_finally3() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally3.kt"); + } + + @Test + @TestMetadata("controlFlow_finally4.kt") + public void testControlFlow_finally4() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally4.kt"); + } + + @Test + @TestMetadata("controlFlow_finally5.kt") + public void testControlFlow_finally5() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally5.kt"); + } + + @Test + @TestMetadata("controlFlow_finally6.kt") + public void testControlFlow_finally6() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally6.kt"); + } + + @Test + @TestMetadata("controlFlow_finally7.kt") + public void testControlFlow_finally7() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally7.kt"); + } + + @Test + @TestMetadata("controlFlow_if1.kt") + public void testControlFlow_if1() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_if1.kt"); + } + + @Test + @TestMetadata("controlFlow_if2.kt") + public void testControlFlow_if2() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_if2.kt"); + } + + @Test + @TestMetadata("controlFlow_inline1.kt") + public void testControlFlow_inline1() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_inline1.kt"); + } + + @Test + @TestMetadata("controlFlow_inline2.kt") + public void testControlFlow_inline2() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_inline2.kt"); + } + + @Test + @TestMetadata("controlFlow_inline3.kt") + public void testControlFlow_inline3() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_inline3.kt"); + } + + @Test + @TestMetadata("controlFlow_tryCatch1.kt") + public void testControlFlow_tryCatch1() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_tryCatch1.kt"); + } + + @Test + @TestMetadata("controlFlow_tryCatch2.kt") + public void testControlFlow_tryCatch2() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_tryCatch2.kt"); + } + + @Test + @TestMetadata("controlFlow_tryCatch3.kt") + public void testControlFlow_tryCatch3() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_tryCatch3.kt"); + } + + @Test + @TestMetadata("controlFlow_tryCatch4.kt") + public void testControlFlow_tryCatch4() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_tryCatch4.kt"); + } + + @Test + @TestMetadata("controlFlow_tryCatch5.kt") + public void testControlFlow_tryCatch5() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_tryCatch5.kt"); + } + + @Test + @TestMetadata("controlFlow_while1.kt") + public void testControlFlow_while1() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_while1.kt"); + } + + @Test + @TestMetadata("controlFlow_while2.kt") + public void testControlFlow_while2() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_while2.kt"); + } + @Test @TestMetadata("controllerAccessFromInnerLambda.kt") public void testControllerAccessFromInnerLambda() { runTest("compiler/testData/codegen/box/coroutines/controllerAccessFromInnerLambda.kt"); } + @Test + @TestMetadata("coroutineContext1.kt") + public void testCoroutineContext1() { + runTest("compiler/testData/codegen/box/coroutines/coroutineContext1.kt"); + } + + @Test + @TestMetadata("coroutineContext2.kt") + public void testCoroutineContext2() { + runTest("compiler/testData/codegen/box/coroutines/coroutineContext2.kt"); + } + @Test @TestMetadata("coroutineContextInInlinedLambda.kt") public void testCoroutineContextInInlinedLambda() { @@ -11217,6 +12265,12 @@ public class FirLightTreeBlackBoxCodegenTestGenerated extends AbstractFirLightTr runTest("compiler/testData/codegen/box/coroutines/coroutineToString.kt"); } + @Test + @TestMetadata("correctOrder1.kt") + public void testCorrectOrder1() { + runTest("compiler/testData/codegen/box/coroutines/correctOrder1.kt"); + } + @Test @TestMetadata("createCoroutineSafe.kt") public void testCreateCoroutineSafe() { @@ -11253,6 +12307,18 @@ public class FirLightTreeBlackBoxCodegenTestGenerated extends AbstractFirLightTr runTest("compiler/testData/codegen/box/coroutines/defaultParametersInSuspendWithJvmOverloads.kt"); } + @Test + @TestMetadata("degenerate1.kt") + public void testDegenerate1() { + runTest("compiler/testData/codegen/box/coroutines/degenerate1.kt"); + } + + @Test + @TestMetadata("degenerate2.kt") + public void testDegenerate2() { + runTest("compiler/testData/codegen/box/coroutines/degenerate2.kt"); + } + @Test @TestMetadata("delegatedSuspendMember.kt") public void testDelegatedSuspendMember() { @@ -11301,6 +12367,30 @@ public class FirLightTreeBlackBoxCodegenTestGenerated extends AbstractFirLightTr runTest("compiler/testData/codegen/box/coroutines/falseUnitCoercion.kt"); } + @Test + @TestMetadata("functionReference_eqeq_name.kt") + public void testFunctionReference_eqeq_name() { + runTest("compiler/testData/codegen/box/coroutines/functionReference_eqeq_name.kt"); + } + + @Test + @TestMetadata("functionReference_invokeAsFunction.kt") + public void testFunctionReference_invokeAsFunction() { + runTest("compiler/testData/codegen/box/coroutines/functionReference_invokeAsFunction.kt"); + } + + @Test + @TestMetadata("functionReference_lambdaAsSuspendLambda.kt") + public void testFunctionReference_lambdaAsSuspendLambda() { + runTest("compiler/testData/codegen/box/coroutines/functionReference_lambdaAsSuspendLambda.kt"); + } + + @Test + @TestMetadata("functionReference_simple.kt") + public void testFunctionReference_simple() { + runTest("compiler/testData/codegen/box/coroutines/functionReference_simple.kt"); + } + @Test @TestMetadata("generate.kt") public void testGenerate() { @@ -11511,6 +12601,12 @@ public class FirLightTreeBlackBoxCodegenTestGenerated extends AbstractFirLightTr runTest("compiler/testData/codegen/box/coroutines/kt38099.kt"); } + @Test + @TestMetadata("kt41394.kt") + public void testKt41394() { + runTest("compiler/testData/codegen/box/coroutines/kt41394.kt"); + } + @Test @TestMetadata("kt42028.kt") public void testKt42028() { @@ -11757,12 +12853,30 @@ public class FirLightTreeBlackBoxCodegenTestGenerated extends AbstractFirLightTr runTest("compiler/testData/codegen/box/coroutines/returnByLabel.kt"); } + @Test + @TestMetadata("returnsNothing1.kt") + public void testReturnsNothing1() { + runTest("compiler/testData/codegen/box/coroutines/returnsNothing1.kt"); + } + + @Test + @TestMetadata("returnsUnit1.kt") + public void testReturnsUnit1() { + runTest("compiler/testData/codegen/box/coroutines/returnsUnit1.kt"); + } + @Test @TestMetadata("simple.kt") public void testSimple() { runTest("compiler/testData/codegen/box/coroutines/simple.kt"); } + @Test + @TestMetadata("simple2.kt") + public void testSimple2() { + runTest("compiler/testData/codegen/box/coroutines/simple2.kt"); + } + @Test @TestMetadata("simpleException.kt") public void testSimpleException() { @@ -11811,6 +12925,12 @@ public class FirLightTreeBlackBoxCodegenTestGenerated extends AbstractFirLightTr runTest("compiler/testData/codegen/box/coroutines/suspendCallsInArguments.kt"); } + @Test + @TestMetadata("suspendConversion.kt") + public void testSuspendConversion() { + runTest("compiler/testData/codegen/box/coroutines/suspendConversion.kt"); + } + @Test @TestMetadata("suspendCoroutineFromStateMachine.kt") public void testSuspendCoroutineFromStateMachine() { @@ -12003,6 +13123,12 @@ public class FirLightTreeBlackBoxCodegenTestGenerated extends AbstractFirLightTr runTest("compiler/testData/codegen/box/coroutines/varargCallFromSuspend.kt"); } + @Test + @TestMetadata("withReceiver.kt") + public void testWithReceiver() { + runTest("compiler/testData/codegen/box/coroutines/withReceiver.kt"); + } + @Nested @TestMetadata("compiler/testData/codegen/box/coroutines/bridges") @TestDataPath("$PROJECT_ROOT") @@ -14686,6 +15812,34 @@ public class FirLightTreeBlackBoxCodegenTestGenerated extends AbstractFirLightTr } } + @Nested + @TestMetadata("compiler/testData/codegen/box/cycles") + @TestDataPath("$PROJECT_ROOT") + public class Cycles { + @Test + public void testAllFilesPresentInCycles() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cycles"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("cycle.kt") + public void testCycle() { + runTest("compiler/testData/codegen/box/cycles/cycle.kt"); + } + + @Test + @TestMetadata("cycle_do.kt") + public void testCycle_do() { + runTest("compiler/testData/codegen/box/cycles/cycle_do.kt"); + } + + @Test + @TestMetadata("cycle_for.kt") + public void testCycle_for() { + runTest("compiler/testData/codegen/box/cycles/cycle_for.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/dataClasses") @TestDataPath("$PROJECT_ROOT") @@ -15140,6 +16294,28 @@ public class FirLightTreeBlackBoxCodegenTestGenerated extends AbstractFirLightTr } } + @Nested + @TestMetadata("compiler/testData/codegen/box/dataflow") + @TestDataPath("$PROJECT_ROOT") + public class Dataflow { + @Test + public void testAllFilesPresentInDataflow() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/dataflow"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("scope1.kt") + public void testScope1() { + runTest("compiler/testData/codegen/box/dataflow/scope1.kt"); + } + + @Test + @TestMetadata("uninitialized_val.kt") + public void testUninitialized_val() { + runTest("compiler/testData/codegen/box/dataflow/uninitialized_val.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/deadCodeElimination") @TestDataPath("$PROJECT_ROOT") @@ -15801,6 +16977,12 @@ public class FirLightTreeBlackBoxCodegenTestGenerated extends AbstractFirLightTr runTest("compiler/testData/codegen/box/delegatedProperty/castSetParameter.kt"); } + @Test + @TestMetadata("correctFieldsOrder.kt") + public void testCorrectFieldsOrder() { + runTest("compiler/testData/codegen/box/delegatedProperty/correctFieldsOrder.kt"); + } + @Test @TestMetadata("delegateAsInnerClass.kt") public void testDelegateAsInnerClass() { @@ -15861,6 +17043,12 @@ public class FirLightTreeBlackBoxCodegenTestGenerated extends AbstractFirLightTr runTest("compiler/testData/codegen/box/delegatedProperty/delegateWithPrivateSet.kt"); } + @Test + @TestMetadata("delegatedOverride.kt") + public void testDelegatedOverride() { + runTest("compiler/testData/codegen/box/delegatedProperty/delegatedOverride.kt"); + } + @Test @TestMetadata("delegatedPropertyInEnum.kt") public void testDelegatedPropertyInEnum() { @@ -16005,12 +17193,42 @@ public class FirLightTreeBlackBoxCodegenTestGenerated extends AbstractFirLightTr runTest("compiler/testData/codegen/box/delegatedProperty/kt9712.kt"); } + @Test + @TestMetadata("lazy.kt") + public void testLazy() { + runTest("compiler/testData/codegen/box/delegatedProperty/lazy.kt"); + } + + @Test + @TestMetadata("local.kt") + public void testLocal() { + runTest("compiler/testData/codegen/box/delegatedProperty/local.kt"); + } + + @Test + @TestMetadata("map.kt") + public void testMap() { + runTest("compiler/testData/codegen/box/delegatedProperty/map.kt"); + } + @Test @TestMetadata("noTypeVariablesLeft.kt") public void testNoTypeVariablesLeft() { runTest("compiler/testData/codegen/box/delegatedProperty/noTypeVariablesLeft.kt"); } + @Test + @TestMetadata("observable.kt") + public void testObservable() { + runTest("compiler/testData/codegen/box/delegatedProperty/observable.kt"); + } + + @Test + @TestMetadata("packageLevel.kt") + public void testPackageLevel() { + runTest("compiler/testData/codegen/box/delegatedProperty/packageLevel.kt"); + } + @Test @TestMetadata("privateInSubClass.kt") public void testPrivateInSubClass() { @@ -16071,6 +17289,18 @@ public class FirLightTreeBlackBoxCodegenTestGenerated extends AbstractFirLightTr runTest("compiler/testData/codegen/box/delegatedProperty/setAsExtensionFunInClass.kt"); } + @Test + @TestMetadata("simpleVal.kt") + public void testSimpleVal() { + runTest("compiler/testData/codegen/box/delegatedProperty/simpleVal.kt"); + } + + @Test + @TestMetadata("simpleVar.kt") + public void testSimpleVar() { + runTest("compiler/testData/codegen/box/delegatedProperty/simpleVar.kt"); + } + @Test @TestMetadata("stackOverflowOnCallFromGetValue.kt") public void testStackOverflowOnCallFromGetValue() { @@ -17040,6 +18270,40 @@ public class FirLightTreeBlackBoxCodegenTestGenerated extends AbstractFirLightTr } } + @Nested + @TestMetadata("compiler/testData/codegen/box/devirtualization") + @TestDataPath("$PROJECT_ROOT") + public class Devirtualization { + @Test + public void testAllFilesPresentInDevirtualization() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/devirtualization"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("anonymousObject.kt") + public void testAnonymousObject() { + runTest("compiler/testData/codegen/box/devirtualization/anonymousObject.kt"); + } + + @Test + @TestMetadata("getter_looking_as_box_function.kt") + public void testGetter_looking_as_box_function() { + runTest("compiler/testData/codegen/box/devirtualization/getter_looking_as_box_function.kt"); + } + + @Test + @TestMetadata("inline_getter.kt") + public void testInline_getter() { + runTest("compiler/testData/codegen/box/devirtualization/inline_getter.kt"); + } + + @Test + @TestMetadata("lateinitInterface.kt") + public void testLateinitInterface() { + runTest("compiler/testData/codegen/box/devirtualization/lateinitInterface.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/diagnostics") @TestDataPath("$PROJECT_ROOT") @@ -17701,6 +18965,12 @@ public class FirLightTreeBlackBoxCodegenTestGenerated extends AbstractFirLightTr runTest("compiler/testData/codegen/box/enum/companionAccessingEnumValue.kt"); } + @Test + @TestMetadata("companionObject.kt") + public void testCompanionObject() { + runTest("compiler/testData/codegen/box/enum/companionObject.kt"); + } + @Test @TestMetadata("companionObjectInEnum.kt") public void testCompanionObjectInEnum() { @@ -17887,6 +19157,12 @@ public class FirLightTreeBlackBoxCodegenTestGenerated extends AbstractFirLightTr runTest("compiler/testData/codegen/box/enum/enumWithLambdaParameter.kt"); } + @Test + @TestMetadata("enum_equals.kt") + public void testEnum_equals() { + runTest("compiler/testData/codegen/box/enum/enum_equals.kt"); + } + @Test @TestMetadata("getEnumEntityByOrdinal.kt") public void testGetEnumEntityByOrdinal() { @@ -17959,6 +19235,18 @@ public class FirLightTreeBlackBoxCodegenTestGenerated extends AbstractFirLightTr runTest("compiler/testData/codegen/box/enum/innerWithExistingClassObject.kt"); } + @Test + @TestMetadata("interfaceCallNoEntryClass.kt") + public void testInterfaceCallNoEntryClass() { + runTest("compiler/testData/codegen/box/enum/interfaceCallNoEntryClass.kt"); + } + + @Test + @TestMetadata("interfaceCallWithEntryClass.kt") + public void testInterfaceCallWithEntryClass() { + runTest("compiler/testData/codegen/box/enum/interfaceCallWithEntryClass.kt"); + } + @Test @TestMetadata("javaClassWithNestedEnum.kt") public void testJavaClassWithNestedEnum() { @@ -18049,6 +19337,12 @@ public class FirLightTreeBlackBoxCodegenTestGenerated extends AbstractFirLightTr runTest("compiler/testData/codegen/box/enum/kt2350.kt"); } + @Test + @TestMetadata("kt38540.kt") + public void testKt38540() { + runTest("compiler/testData/codegen/box/enum/kt38540.kt"); + } + @Test @TestMetadata("kt38996.kt") public void testKt38996() { @@ -18145,6 +19439,18 @@ public class FirLightTreeBlackBoxCodegenTestGenerated extends AbstractFirLightTr runTest("compiler/testData/codegen/box/enum/kt9711_2.kt"); } + @Test + @TestMetadata("lambdaInDefault.kt") + public void testLambdaInDefault() { + runTest("compiler/testData/codegen/box/enum/lambdaInDefault.kt"); + } + + @Test + @TestMetadata("loop.kt") + public void testLoop() { + runTest("compiler/testData/codegen/box/enum/loop.kt"); + } + @Test @TestMetadata("manyDefaultParameters.kt") public void testManyDefaultParameters() { @@ -18157,6 +19463,12 @@ public class FirLightTreeBlackBoxCodegenTestGenerated extends AbstractFirLightTr runTest("compiler/testData/codegen/box/enum/modifierFlags.kt"); } + @Test + @TestMetadata("multipleModules.kt") + public void testMultipleModules() { + runTest("compiler/testData/codegen/box/enum/multipleModules.kt"); + } + @Test @TestMetadata("nameClashWithCompanion.kt") public void testNameClashWithCompanion() { @@ -18169,12 +19481,24 @@ public class FirLightTreeBlackBoxCodegenTestGenerated extends AbstractFirLightTr runTest("compiler/testData/codegen/box/enum/nameConflict.kt"); } + @Test + @TestMetadata("nested.kt") + public void testNested() { + runTest("compiler/testData/codegen/box/enum/nested.kt"); + } + @Test @TestMetadata("noClassForSimpleEnum.kt") public void testNoClassForSimpleEnum() { runTest("compiler/testData/codegen/box/enum/noClassForSimpleEnum.kt"); } + @Test + @TestMetadata("openMethodNoOverrides.kt") + public void testOpenMethodNoOverrides() { + runTest("compiler/testData/codegen/box/enum/openMethodNoOverrides.kt"); + } + @Test @TestMetadata("ordinal.kt") public void testOrdinal() { @@ -18205,6 +19529,12 @@ public class FirLightTreeBlackBoxCodegenTestGenerated extends AbstractFirLightTr runTest("compiler/testData/codegen/box/enum/refToThis.kt"); } + @Test + @TestMetadata("reorderedArguments.kt") + public void testReorderedArguments() { + runTest("compiler/testData/codegen/box/enum/reorderedArguments.kt"); + } + @Test @TestMetadata("simple.kt") public void testSimple() { @@ -18259,18 +19589,66 @@ public class FirLightTreeBlackBoxCodegenTestGenerated extends AbstractFirLightTr runTest("compiler/testData/codegen/box/enum/superCallInEnumLiteral.kt"); } + @Test + @TestMetadata("switchLowering.kt") + public void testSwitchLowering() { + runTest("compiler/testData/codegen/box/enum/switchLowering.kt"); + } + + @Test + @TestMetadata("test0.kt") + public void testTest0() { + runTest("compiler/testData/codegen/box/enum/test0.kt"); + } + + @Test + @TestMetadata("test1.kt") + public void testTest1() { + runTest("compiler/testData/codegen/box/enum/test1.kt"); + } + @Test @TestMetadata("toString.kt") public void testToString() { runTest("compiler/testData/codegen/box/enum/toString.kt"); } + @Test + @TestMetadata("vCallNoEntryClass.kt") + public void testVCallNoEntryClass() { + runTest("compiler/testData/codegen/box/enum/vCallNoEntryClass.kt"); + } + + @Test + @TestMetadata("vCallWithEntryClass.kt") + public void testVCallWithEntryClass() { + runTest("compiler/testData/codegen/box/enum/vCallWithEntryClass.kt"); + } + + @Test + @TestMetadata("valueOf2.kt") + public void testValueOf2() { + runTest("compiler/testData/codegen/box/enum/valueOf2.kt"); + } + @Test @TestMetadata("valueof.kt") public void testValueof() { runTest("compiler/testData/codegen/box/enum/valueof.kt"); } + @Test + @TestMetadata("values.kt") + public void testValues() { + runTest("compiler/testData/codegen/box/enum/values.kt"); + } + + @Test + @TestMetadata("varargParam.kt") + public void testVarargParam() { + runTest("compiler/testData/codegen/box/enum/varargParam.kt"); + } + @Test @TestMetadata("whenInObject.kt") public void testWhenInObject() { @@ -18346,6 +19724,112 @@ public class FirLightTreeBlackBoxCodegenTestGenerated extends AbstractFirLightTr } } + @Nested + @TestMetadata("compiler/testData/codegen/box/escapeAnalysis") + @TestDataPath("$PROJECT_ROOT") + public class EscapeAnalysis { + @Test + public void testAllFilesPresentInEscapeAnalysis() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/escapeAnalysis"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("recursion.kt") + public void testRecursion() { + runTest("compiler/testData/codegen/box/escapeAnalysis/recursion.kt"); + } + + @Test + @TestMetadata("stack_array.kt") + public void testStack_array() { + runTest("compiler/testData/codegen/box/escapeAnalysis/stack_array.kt"); + } + + @Test + @TestMetadata("test1.kt") + public void testTest1() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test1.kt"); + } + + @Test + @TestMetadata("test10.kt") + public void testTest10() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test10.kt"); + } + + @Test + @TestMetadata("test11.kt") + public void testTest11() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test11.kt"); + } + + @Test + @TestMetadata("test12.kt") + public void testTest12() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test12.kt"); + } + + @Test + @TestMetadata("test13.kt") + public void testTest13() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test13.kt"); + } + + @Test + @TestMetadata("test2.kt") + public void testTest2() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test2.kt"); + } + + @Test + @TestMetadata("test3.kt") + public void testTest3() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test3.kt"); + } + + @Test + @TestMetadata("test4.kt") + public void testTest4() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test4.kt"); + } + + @Test + @TestMetadata("test5.kt") + public void testTest5() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test5.kt"); + } + + @Test + @TestMetadata("test6.kt") + public void testTest6() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test6.kt"); + } + + @Test + @TestMetadata("test7.kt") + public void testTest7() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test7.kt"); + } + + @Test + @TestMetadata("test8.kt") + public void testTest8() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test8.kt"); + } + + @Test + @TestMetadata("test9.kt") + public void testTest9() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test9.kt"); + } + + @Test + @TestMetadata("zeroOutObjectOnAlloc.kt") + public void testZeroOutObjectOnAlloc() { + runTest("compiler/testData/codegen/box/escapeAnalysis/zeroOutObjectOnAlloc.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/evaluate") @TestDataPath("$PROJECT_ROOT") @@ -18458,6 +19942,58 @@ public class FirLightTreeBlackBoxCodegenTestGenerated extends AbstractFirLightTr } } + @Nested + @TestMetadata("compiler/testData/codegen/box/exceptions") + @TestDataPath("$PROJECT_ROOT") + public class Exceptions { + @Test + public void testAllFilesPresentInExceptions() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/exceptions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("catch1.kt") + public void testCatch1() { + runTest("compiler/testData/codegen/box/exceptions/catch1.kt"); + } + + @Test + @TestMetadata("catch2.kt") + public void testCatch2() { + runTest("compiler/testData/codegen/box/exceptions/catch2.kt"); + } + + @Test + @TestMetadata("catch7.kt") + public void testCatch7() { + runTest("compiler/testData/codegen/box/exceptions/catch7.kt"); + } + + @Test + @TestMetadata("extend0.kt") + public void testExtend0() { + runTest("compiler/testData/codegen/box/exceptions/extend0.kt"); + } + + @Test + @TestMetadata("rethrow.kt") + public void testRethrow() { + runTest("compiler/testData/codegen/box/exceptions/rethrow.kt"); + } + + @Test + @TestMetadata("throw0.kt") + public void testThrow0() { + runTest("compiler/testData/codegen/box/exceptions/throw0.kt"); + } + + @Test + @TestMetadata("throw_from_catch.kt") + public void testThrow_from_catch() { + runTest("compiler/testData/codegen/box/exceptions/throw_from_catch.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/exclExcl") @TestDataPath("$PROJECT_ROOT") @@ -20351,6 +21887,12 @@ public class FirLightTreeBlackBoxCodegenTestGenerated extends AbstractFirLightTr runTest("compiler/testData/codegen/box/funInterface/funInterfaceWithReceiver.kt"); } + @Test + @TestMetadata("implIsNotFunction.kt") + public void testImplIsNotFunction() { + runTest("compiler/testData/codegen/box/funInterface/implIsNotFunction.kt"); + } + @Test @TestMetadata("inlinedSamWrapper.kt") public void testInlinedSamWrapper() { @@ -20399,6 +21941,18 @@ public class FirLightTreeBlackBoxCodegenTestGenerated extends AbstractFirLightTr runTest("compiler/testData/codegen/box/funInterface/kt46908_functionSupertype.kt"); } + @Test + @TestMetadata("kt49384.kt") + public void testKt49384() { + runTest("compiler/testData/codegen/box/funInterface/kt49384.kt"); + } + + @Test + @TestMetadata("kt49384_getSame.kt") + public void testKt49384_getSame() { + runTest("compiler/testData/codegen/box/funInterface/kt49384_getSame.kt"); + } + @Test @TestMetadata("multimodule.kt") public void testMultimodule() { @@ -20417,6 +21971,12 @@ public class FirLightTreeBlackBoxCodegenTestGenerated extends AbstractFirLightTr runTest("compiler/testData/codegen/box/funInterface/nonAbstractMethod.kt"); } + @Test + @TestMetadata("nonTrivialProjectionInSuperType.kt") + public void testNonTrivialProjectionInSuperType() { + runTest("compiler/testData/codegen/box/funInterface/nonTrivialProjectionInSuperType.kt"); + } + @Test @TestMetadata("nullableSam.kt") public void testNullableSam() { @@ -20506,6 +22066,232 @@ public class FirLightTreeBlackBoxCodegenTestGenerated extends AbstractFirLightTr } } + @Nested + @TestMetadata("compiler/testData/codegen/box/function") + @TestDataPath("$PROJECT_ROOT") + public class Function { + @Test + public void testAllFilesPresentInFunction() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/function"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("arithmetic.kt") + public void testArithmetic() { + runTest("compiler/testData/codegen/box/function/arithmetic.kt"); + } + + @Test + @TestMetadata("boolean.kt") + public void testBoolean() { + runTest("compiler/testData/codegen/box/function/boolean.kt"); + } + + @Test + @TestMetadata("defaults.kt") + public void testDefaults() { + runTest("compiler/testData/codegen/box/function/defaults.kt"); + } + + @Test + @TestMetadata("defaults1.kt") + public void testDefaults1() { + runTest("compiler/testData/codegen/box/function/defaults1.kt"); + } + + @Test + @TestMetadata("defaults10.kt") + public void testDefaults10() { + runTest("compiler/testData/codegen/box/function/defaults10.kt"); + } + + @Test + @TestMetadata("defaults2.kt") + public void testDefaults2() { + runTest("compiler/testData/codegen/box/function/defaults2.kt"); + } + + @Test + @TestMetadata("defaults3.kt") + public void testDefaults3() { + runTest("compiler/testData/codegen/box/function/defaults3.kt"); + } + + @Test + @TestMetadata("defaults4.kt") + public void testDefaults4() { + runTest("compiler/testData/codegen/box/function/defaults4.kt"); + } + + @Test + @TestMetadata("defaults5.kt") + public void testDefaults5() { + runTest("compiler/testData/codegen/box/function/defaults5.kt"); + } + + @Test + @TestMetadata("defaults6.kt") + public void testDefaults6() { + runTest("compiler/testData/codegen/box/function/defaults6.kt"); + } + + @Test + @TestMetadata("defaults7.kt") + public void testDefaults7() { + runTest("compiler/testData/codegen/box/function/defaults7.kt"); + } + + @Test + @TestMetadata("defaults8.kt") + public void testDefaults8() { + runTest("compiler/testData/codegen/box/function/defaults8.kt"); + } + + @Test + @TestMetadata("defaults9.kt") + public void testDefaults9() { + runTest("compiler/testData/codegen/box/function/defaults9.kt"); + } + + @Test + @TestMetadata("defaultsFromFakeOverride.kt") + public void testDefaultsFromFakeOverride() { + runTest("compiler/testData/codegen/box/function/defaultsFromFakeOverride.kt"); + } + + @Test + @TestMetadata("defaultsWithInlineClasses.kt") + public void testDefaultsWithInlineClasses() { + runTest("compiler/testData/codegen/box/function/defaultsWithInlineClasses.kt"); + } + + @Test + @TestMetadata("defaultsWithVarArg1.kt") + public void testDefaultsWithVarArg1() { + runTest("compiler/testData/codegen/box/function/defaultsWithVarArg1.kt"); + } + + @Test + @TestMetadata("defaultsWithVarArg2.kt") + public void testDefaultsWithVarArg2() { + runTest("compiler/testData/codegen/box/function/defaultsWithVarArg2.kt"); + } + + @Test + @TestMetadata("eqeq.kt") + public void testEqeq() { + runTest("compiler/testData/codegen/box/function/eqeq.kt"); + } + + @Test + @TestMetadata("extension.kt") + public void testExtension() { + runTest("compiler/testData/codegen/box/function/extension.kt"); + } + + @Test + @TestMetadata("intrinsic.kt") + public void testIntrinsic() { + runTest("compiler/testData/codegen/box/function/intrinsic.kt"); + } + + @Test + @TestMetadata("localFunction.kt") + public void testLocalFunction() { + runTest("compiler/testData/codegen/box/function/localFunction.kt"); + } + + @Test + @TestMetadata("localFunction2.kt") + public void testLocalFunction2() { + runTest("compiler/testData/codegen/box/function/localFunction2.kt"); + } + + @Test + @TestMetadata("localFunction3.kt") + public void testLocalFunction3() { + runTest("compiler/testData/codegen/box/function/localFunction3.kt"); + } + + @Test + @TestMetadata("minus_eq.kt") + public void testMinus_eq() { + runTest("compiler/testData/codegen/box/function/minus_eq.kt"); + } + + @Test + @TestMetadata("named.kt") + public void testNamed() { + runTest("compiler/testData/codegen/box/function/named.kt"); + } + + @Test + @TestMetadata("nothingNReturningSafeCall.kt") + public void testNothingNReturningSafeCall() { + runTest("compiler/testData/codegen/box/function/nothingNReturningSafeCall.kt"); + } + + @Test + @TestMetadata("plus_eq.kt") + public void testPlus_eq() { + runTest("compiler/testData/codegen/box/function/plus_eq.kt"); + } + + @Test + @TestMetadata("referenceBigArity.kt") + public void testReferenceBigArity() { + runTest("compiler/testData/codegen/box/function/referenceBigArity.kt"); + } + + @Test + @TestMetadata("sum.kt") + public void testSum() { + runTest("compiler/testData/codegen/box/function/sum.kt"); + } + + @Test + @TestMetadata("sum_3const.kt") + public void testSum_3const() { + runTest("compiler/testData/codegen/box/function/sum_3const.kt"); + } + + @Test + @TestMetadata("sum_foo_bar.kt") + public void testSum_foo_bar() { + runTest("compiler/testData/codegen/box/function/sum_foo_bar.kt"); + } + + @Test + @TestMetadata("sum_func.kt") + public void testSum_func() { + runTest("compiler/testData/codegen/box/function/sum_func.kt"); + } + + @Test + @TestMetadata("sum_imm.kt") + public void testSum_imm() { + runTest("compiler/testData/codegen/box/function/sum_imm.kt"); + } + + @Test + @TestMetadata("sum_mixed.kt") + public void testSum_mixed() { + runTest("compiler/testData/codegen/box/function/sum_mixed.kt"); + } + + @Test + @TestMetadata("sum_silly.kt") + public void testSum_silly() { + runTest("compiler/testData/codegen/box/function/sum_silly.kt"); + } + + @Test + @TestMetadata("unreachableStatementAfterReturn.kt") + public void testUnreachableStatementAfterReturn() { + runTest("compiler/testData/codegen/box/function/unreachableStatementAfterReturn.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/functions") @TestDataPath("$PROJECT_ROOT") @@ -22408,6 +24194,474 @@ public class FirLightTreeBlackBoxCodegenTestGenerated extends AbstractFirLightTr } } + @Nested + @TestMetadata("compiler/testData/codegen/box/initializers") + @TestDataPath("$PROJECT_ROOT") + public class Initializers { + @Test + public void testAllFilesPresentInInitializers() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/initializers"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("correctOrder1.kt") + public void testCorrectOrder1() { + runTest("compiler/testData/codegen/box/initializers/correctOrder1.kt"); + } + + @Test + @TestMetadata("correctOrder2.kt") + public void testCorrectOrder2() { + runTest("compiler/testData/codegen/box/initializers/correctOrder2.kt"); + } + + @Test + @TestMetadata("initializers0.kt") + public void testInitializers0() { + runTest("compiler/testData/codegen/box/initializers/initializers0.kt"); + } + + @Test + @TestMetadata("initializers1.kt") + public void testInitializers1() { + runTest("compiler/testData/codegen/box/initializers/initializers1.kt"); + } + + @Test + @TestMetadata("initializers2.kt") + public void testInitializers2() { + runTest("compiler/testData/codegen/box/initializers/initializers2.kt"); + } + + @Test + @TestMetadata("initializers3.kt") + public void testInitializers3() { + runTest("compiler/testData/codegen/box/initializers/initializers3.kt"); + } + + @Test + @TestMetadata("initializers4.kt") + public void testInitializers4() { + runTest("compiler/testData/codegen/box/initializers/initializers4.kt"); + } + + @Test + @TestMetadata("initializers5.kt") + public void testInitializers5() { + runTest("compiler/testData/codegen/box/initializers/initializers5.kt"); + } + + @Test + @TestMetadata("initializers7.kt") + public void testInitializers7() { + runTest("compiler/testData/codegen/box/initializers/initializers7.kt"); + } + + @Test + @TestMetadata("initializers8.kt") + public void testInitializers8() { + runTest("compiler/testData/codegen/box/initializers/initializers8.kt"); + } + + @Test + @TestMetadata("multipleModules1.kt") + public void testMultipleModules1() { + runTest("compiler/testData/codegen/box/initializers/multipleModules1.kt"); + } + + @Test + @TestMetadata("object.kt") + public void testObject() { + runTest("compiler/testData/codegen/box/initializers/object.kt"); + } + + @Test + @TestMetadata("sharedVarInInitBlock.kt") + public void testSharedVarInInitBlock() { + runTest("compiler/testData/codegen/box/initializers/sharedVarInInitBlock.kt"); + } + + @Test + @TestMetadata("static_arrays.kt") + public void testStatic_arrays() { + runTest("compiler/testData/codegen/box/initializers/static_arrays.kt"); + } + + @Test + @TestMetadata("static_list.kt") + public void testStatic_list() { + runTest("compiler/testData/codegen/box/initializers/static_list.kt"); + } + + @Test + @TestMetadata("static_smallIntIdentity.kt") + public void testStatic_smallIntIdentity() { + runTest("compiler/testData/codegen/box/initializers/static_smallIntIdentity.kt"); + } + + @Test + @TestMetadata("static_varargChange.kt") + public void testStatic_varargChange() { + runTest("compiler/testData/codegen/box/initializers/static_varargChange.kt"); + } + + @Test + @TestMetadata("throw1.kt") + public void testThrow1() { + runTest("compiler/testData/codegen/box/initializers/throw1.kt"); + } + + @Test + @TestMetadata("throw2.kt") + public void testThrow2() { + runTest("compiler/testData/codegen/box/initializers/throw2.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/initializers/files") + @TestDataPath("$PROJECT_ROOT") + public class Files { + @Test + public void testAllFilesPresentInFiles() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/initializers/files"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("globalInitedAfterAccessingFile.kt") + public void testGlobalInitedAfterAccessingFile() { + runTest("compiler/testData/codegen/box/initializers/files/globalInitedAfterAccessingFile.kt"); + } + + @Test + @TestMetadata("globalNotInitedAfterAccessingClassInternals.kt") + public void testGlobalNotInitedAfterAccessingClassInternals() { + runTest("compiler/testData/codegen/box/initializers/files/globalNotInitedAfterAccessingClassInternals.kt"); + } + + @Test + @TestMetadata("simple.kt") + public void testSimple() { + runTest("compiler/testData/codegen/box/initializers/files/simple.kt"); + } + + @Test + @TestMetadata("simpleMultiModule.kt") + public void testSimpleMultiModule() { + runTest("compiler/testData/codegen/box/initializers/files/simpleMultiModule.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/inline") + @TestDataPath("$PROJECT_ROOT") + public class Inline { + @Test + public void testAllFilesPresentInInline() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inline"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("changingCapturedLocal.kt") + public void testChangingCapturedLocal() { + runTest("compiler/testData/codegen/box/inline/changingCapturedLocal.kt"); + } + + @Test + @TestMetadata("classDeclarationInsideInline.kt") + public void testClassDeclarationInsideInline() { + runTest("compiler/testData/codegen/box/inline/classDeclarationInsideInline.kt"); + } + + @Test + @TestMetadata("coercionToUnit.kt") + public void testCoercionToUnit() { + runTest("compiler/testData/codegen/box/inline/coercionToUnit.kt"); + } + + @Test + @TestMetadata("correctOrderFunctionReference.kt") + public void testCorrectOrderFunctionReference() { + runTest("compiler/testData/codegen/box/inline/correctOrderFunctionReference.kt"); + } + + @Test + @TestMetadata("defaultArgs.kt") + public void testDefaultArgs() { + runTest("compiler/testData/codegen/box/inline/defaultArgs.kt"); + } + + @Test + @TestMetadata("defaultArgsMultipleModules.kt") + public void testDefaultArgsMultipleModules() { + runTest("compiler/testData/codegen/box/inline/defaultArgsMultipleModules.kt"); + } + + @Test + @TestMetadata("genericFunctionReference.kt") + public void testGenericFunctionReference() { + runTest("compiler/testData/codegen/box/inline/genericFunctionReference.kt"); + } + + @Test + @TestMetadata("getClass.kt") + public void testGetClass() { + runTest("compiler/testData/codegen/box/inline/getClass.kt"); + } + + @Test + @TestMetadata("inline0.kt") + public void testInline0() { + runTest("compiler/testData/codegen/box/inline/inline0.kt"); + } + + @Test + @TestMetadata("inline1.kt") + public void testInline1() { + runTest("compiler/testData/codegen/box/inline/inline1.kt"); + } + + @Test + @TestMetadata("inline10.kt") + public void testInline10() { + runTest("compiler/testData/codegen/box/inline/inline10.kt"); + } + + @Test + @TestMetadata("inline11.kt") + public void testInline11() { + runTest("compiler/testData/codegen/box/inline/inline11.kt"); + } + + @Test + @TestMetadata("inline12.kt") + public void testInline12() { + runTest("compiler/testData/codegen/box/inline/inline12.kt"); + } + + @Test + @TestMetadata("inline13.kt") + public void testInline13() { + runTest("compiler/testData/codegen/box/inline/inline13.kt"); + } + + @Test + @TestMetadata("inline14.kt") + public void testInline14() { + runTest("compiler/testData/codegen/box/inline/inline14.kt"); + } + + @Test + @TestMetadata("inline15.kt") + public void testInline15() { + runTest("compiler/testData/codegen/box/inline/inline15.kt"); + } + + @Test + @TestMetadata("inline16.kt") + public void testInline16() { + runTest("compiler/testData/codegen/box/inline/inline16.kt"); + } + + @Test + @TestMetadata("inline17.kt") + public void testInline17() { + runTest("compiler/testData/codegen/box/inline/inline17.kt"); + } + + @Test + @TestMetadata("inline19.kt") + public void testInline19() { + runTest("compiler/testData/codegen/box/inline/inline19.kt"); + } + + @Test + @TestMetadata("inline2.kt") + public void testInline2() { + runTest("compiler/testData/codegen/box/inline/inline2.kt"); + } + + @Test + @TestMetadata("inline20.kt") + public void testInline20() { + runTest("compiler/testData/codegen/box/inline/inline20.kt"); + } + + @Test + @TestMetadata("inline21.kt") + public void testInline21() { + runTest("compiler/testData/codegen/box/inline/inline21.kt"); + } + + @Test + @TestMetadata("inline22.kt") + public void testInline22() { + runTest("compiler/testData/codegen/box/inline/inline22.kt"); + } + + @Test + @TestMetadata("inline23.kt") + public void testInline23() { + runTest("compiler/testData/codegen/box/inline/inline23.kt"); + } + + @Test + @TestMetadata("inline24.kt") + public void testInline24() { + runTest("compiler/testData/codegen/box/inline/inline24.kt"); + } + + @Test + @TestMetadata("inline25.kt") + public void testInline25() { + runTest("compiler/testData/codegen/box/inline/inline25.kt"); + } + + @Test + @TestMetadata("inline26.kt") + public void testInline26() { + runTest("compiler/testData/codegen/box/inline/inline26.kt"); + } + + @Test + @TestMetadata("inline3.kt") + public void testInline3() { + runTest("compiler/testData/codegen/box/inline/inline3.kt"); + } + + @Test + @TestMetadata("inline4.kt") + public void testInline4() { + runTest("compiler/testData/codegen/box/inline/inline4.kt"); + } + + @Test + @TestMetadata("inline5.kt") + public void testInline5() { + runTest("compiler/testData/codegen/box/inline/inline5.kt"); + } + + @Test + @TestMetadata("inline6.kt") + public void testInline6() { + runTest("compiler/testData/codegen/box/inline/inline6.kt"); + } + + @Test + @TestMetadata("inline7.kt") + public void testInline7() { + runTest("compiler/testData/codegen/box/inline/inline7.kt"); + } + + @Test + @TestMetadata("inline8.kt") + public void testInline8() { + runTest("compiler/testData/codegen/box/inline/inline8.kt"); + } + + @Test + @TestMetadata("inline9.kt") + public void testInline9() { + runTest("compiler/testData/codegen/box/inline/inline9.kt"); + } + + @Test + @TestMetadata("inlineCtor.kt") + public void testInlineCtor() { + runTest("compiler/testData/codegen/box/inline/inlineCtor.kt"); + } + + @Test + @TestMetadata("innerInlineFunCapturesOuter.kt") + public void testInnerInlineFunCapturesOuter() { + runTest("compiler/testData/codegen/box/inline/innerInlineFunCapturesOuter.kt"); + } + + @Test + @TestMetadata("lambdaAsAny.kt") + public void testLambdaAsAny() { + runTest("compiler/testData/codegen/box/inline/lambdaAsAny.kt"); + } + + @Test + @TestMetadata("lambdaInDefaultValue.kt") + public void testLambdaInDefaultValue() { + runTest("compiler/testData/codegen/box/inline/lambdaInDefaultValue.kt"); + } + + @Test + @TestMetadata("lateinitProperty.kt") + public void testLateinitProperty() { + runTest("compiler/testData/codegen/box/inline/lateinitProperty.kt"); + } + + @Test + @TestMetadata("localFunctionInInitializerBlock.kt") + public void testLocalFunctionInInitializerBlock() { + runTest("compiler/testData/codegen/box/inline/localFunctionInInitializerBlock.kt"); + } + + @Test + @TestMetadata("localObjectReturnedFromWhen.kt") + public void testLocalObjectReturnedFromWhen() { + runTest("compiler/testData/codegen/box/inline/localObjectReturnedFromWhen.kt"); + } + + @Test + @TestMetadata("propertyAccessorInline.kt") + public void testPropertyAccessorInline() { + runTest("compiler/testData/codegen/box/inline/propertyAccessorInline.kt"); + } + + @Test + @TestMetadata("redundantCoercionsCleaner.kt") + public void testRedundantCoercionsCleaner() { + runTest("compiler/testData/codegen/box/inline/redundantCoercionsCleaner.kt"); + } + + @Test + @TestMetadata("redundantCoercionsCleanerKT48876.kt") + public void testRedundantCoercionsCleanerKT48876() { + runTest("compiler/testData/codegen/box/inline/redundantCoercionsCleanerKT48876.kt"); + } + + @Test + @TestMetadata("redundantCoercionsCleanerKT49356.kt") + public void testRedundantCoercionsCleanerKT49356() { + runTest("compiler/testData/codegen/box/inline/redundantCoercionsCleanerKT49356.kt"); + } + + @Test + @TestMetadata("returnLocalClassFromBlock.kt") + public void testReturnLocalClassFromBlock() { + runTest("compiler/testData/codegen/box/inline/returnLocalClassFromBlock.kt"); + } + + @Test + @TestMetadata("sharedVar.kt") + public void testSharedVar() { + runTest("compiler/testData/codegen/box/inline/sharedVar.kt"); + } + + @Test + @TestMetadata("statementAsLastExprInBlock.kt") + public void testStatementAsLastExprInBlock() { + runTest("compiler/testData/codegen/box/inline/statementAsLastExprInBlock.kt"); + } + + @Test + @TestMetadata("twiceInlinedObject.kt") + public void testTwiceInlinedObject() { + runTest("compiler/testData/codegen/box/inline/twiceInlinedObject.kt"); + } + + @Test + @TestMetadata("typeSubstitutionInFakeOverride.kt") + public void testTypeSubstitutionInFakeOverride() { + runTest("compiler/testData/codegen/box/inline/typeSubstitutionInFakeOverride.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/inlineArgsInPlace") @TestDataPath("$PROJECT_ROOT") @@ -22490,6 +24744,40 @@ public class FirLightTreeBlackBoxCodegenTestGenerated extends AbstractFirLightTr } } + @Nested + @TestMetadata("compiler/testData/codegen/box/inlineClass") + @TestDataPath("$PROJECT_ROOT") + public class InlineClass { + @Test + public void testAllFilesPresentInInlineClass() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineClass"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("customEquals.kt") + public void testCustomEquals() { + runTest("compiler/testData/codegen/box/inlineClass/customEquals.kt"); + } + + @Test + @TestMetadata("defaultEquals.kt") + public void testDefaultEquals() { + runTest("compiler/testData/codegen/box/inlineClass/defaultEquals.kt"); + } + + @Test + @TestMetadata("nestedInlineClasses.kt") + public void testNestedInlineClasses() { + runTest("compiler/testData/codegen/box/inlineClass/nestedInlineClasses.kt"); + } + + @Test + @TestMetadata("secondaryConstructorWithGenerics.kt") + public void testSecondaryConstructorWithGenerics() { + runTest("compiler/testData/codegen/box/inlineClass/secondaryConstructorWithGenerics.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/inlineClasses") @TestDataPath("$PROJECT_ROOT") @@ -28126,6 +30414,88 @@ public class FirLightTreeBlackBoxCodegenTestGenerated extends AbstractFirLightTr } } + @Nested + @TestMetadata("compiler/testData/codegen/box/innerClass") + @TestDataPath("$PROJECT_ROOT") + public class InnerClass { + @Test + public void testAllFilesPresentInInnerClass() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/innerClass"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("doubleInner.kt") + public void testDoubleInner() { + runTest("compiler/testData/codegen/box/innerClass/doubleInner.kt"); + } + + @Test + @TestMetadata("generic.kt") + public void testGeneric() { + runTest("compiler/testData/codegen/box/innerClass/generic.kt"); + } + + @Test + @TestMetadata("getOuterVal.kt") + public void testGetOuterVal() { + runTest("compiler/testData/codegen/box/innerClass/getOuterVal.kt"); + } + + @Test + @TestMetadata("inheritanceMultipleModules1.kt") + public void testInheritanceMultipleModules1() { + runTest("compiler/testData/codegen/box/innerClass/inheritanceMultipleModules1.kt"); + } + + @Test + @TestMetadata("inheritanceMultipleModules2.kt") + public void testInheritanceMultipleModules2() { + runTest("compiler/testData/codegen/box/innerClass/inheritanceMultipleModules2.kt"); + } + + @Test + @TestMetadata("inheritanceMultipleModules3.kt") + public void testInheritanceMultipleModules3() { + runTest("compiler/testData/codegen/box/innerClass/inheritanceMultipleModules3.kt"); + } + + @Test + @TestMetadata("multipleModules.kt") + public void testMultipleModules() { + runTest("compiler/testData/codegen/box/innerClass/multipleModules.kt"); + } + + @Test + @TestMetadata("noPrimaryConstructor.kt") + public void testNoPrimaryConstructor() { + runTest("compiler/testData/codegen/box/innerClass/noPrimaryConstructor.kt"); + } + + @Test + @TestMetadata("qualifiedThis.kt") + public void testQualifiedThis() { + runTest("compiler/testData/codegen/box/innerClass/qualifiedThis.kt"); + } + + @Test + @TestMetadata("secondaryConstructor.kt") + public void testSecondaryConstructor() { + runTest("compiler/testData/codegen/box/innerClass/secondaryConstructor.kt"); + } + + @Test + @TestMetadata("simple.kt") + public void testSimple() { + runTest("compiler/testData/codegen/box/innerClass/simple.kt"); + } + + @Test + @TestMetadata("superOuter.kt") + public void testSuperOuter() { + runTest("compiler/testData/codegen/box/innerClass/superOuter.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/innerNested") @TestDataPath("$PROJECT_ROOT") @@ -28526,6 +30896,40 @@ public class FirLightTreeBlackBoxCodegenTestGenerated extends AbstractFirLightTr } } + @Nested + @TestMetadata("compiler/testData/codegen/box/interfaceCallsNCasts") + @TestDataPath("$PROJECT_ROOT") + public class InterfaceCallsNCasts { + @Test + public void testAllFilesPresentInInterfaceCallsNCasts() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/interfaceCallsNCasts"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("conservativeItable.kt") + public void testConservativeItable() { + runTest("compiler/testData/codegen/box/interfaceCallsNCasts/conservativeItable.kt"); + } + + @Test + @TestMetadata("diamond.kt") + public void testDiamond() { + runTest("compiler/testData/codegen/box/interfaceCallsNCasts/diamond.kt"); + } + + @Test + @TestMetadata("finalMethod.kt") + public void testFinalMethod() { + runTest("compiler/testData/codegen/box/interfaceCallsNCasts/finalMethod.kt"); + } + + @Test + @TestMetadata("interface0.kt") + public void testInterface0() { + runTest("compiler/testData/codegen/box/interfaceCallsNCasts/interface0.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/intrinsics") @TestDataPath("$PROJECT_ROOT") @@ -33676,6 +36080,80 @@ public class FirLightTreeBlackBoxCodegenTestGenerated extends AbstractFirLightTr } } + @Nested + @TestMetadata("compiler/testData/codegen/box/kclass") + @TestDataPath("$PROJECT_ROOT") + public class Kclass { + @Test + public void testAllFilesPresentInKclass() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/kclass"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("kClassEnumArgument.kt") + public void testKClassEnumArgument() { + runTest("compiler/testData/codegen/box/kclass/kClassEnumArgument.kt"); + } + + @Test + @TestMetadata("kclass1.kt") + public void testKclass1() { + runTest("compiler/testData/codegen/box/kclass/kclass1.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/ktype") + @TestDataPath("$PROJECT_ROOT") + public class Ktype { + @Test + public void testAllFilesPresentInKtype() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ktype"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("ktype1_basics1.kt") + public void testKtype1_basics1() { + runTest("compiler/testData/codegen/box/ktype/ktype1_basics1.kt"); + } + + @Test + @TestMetadata("ktype1_inner.kt") + public void testKtype1_inner() { + runTest("compiler/testData/codegen/box/ktype/ktype1_inner.kt"); + } + + @Test + @TestMetadata("nonReified_class.kt") + public void testNonReified_class() { + runTest("compiler/testData/codegen/box/ktype/nonReified_class.kt"); + } + + @Test + @TestMetadata("nonReified_equality.kt") + public void testNonReified_equality() { + runTest("compiler/testData/codegen/box/ktype/nonReified_equality.kt"); + } + + @Test + @TestMetadata("nonReified_fun.kt") + public void testNonReified_fun() { + runTest("compiler/testData/codegen/box/ktype/nonReified_fun.kt"); + } + + @Test + @TestMetadata("nonReified_recursionInReified.kt") + public void testNonReified_recursionInReified() { + runTest("compiler/testData/codegen/box/ktype/nonReified_recursionInReified.kt"); + } + + @Test + @TestMetadata("nonReified_reifiedUpperBound.kt") + public void testNonReified_reifiedUpperBound() { + runTest("compiler/testData/codegen/box/ktype/nonReified_reifiedUpperBound.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/labels") @TestDataPath("$PROJECT_ROOT") @@ -33734,6 +36212,188 @@ public class FirLightTreeBlackBoxCodegenTestGenerated extends AbstractFirLightTr } } + @Nested + @TestMetadata("compiler/testData/codegen/box/lambda") + @TestDataPath("$PROJECT_ROOT") + public class Lambda { + @Test + public void testAllFilesPresentInLambda() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/lambda"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("lambda1.kt") + public void testLambda1() { + runTest("compiler/testData/codegen/box/lambda/lambda1.kt"); + } + + @Test + @TestMetadata("lambda10.kt") + public void testLambda10() { + runTest("compiler/testData/codegen/box/lambda/lambda10.kt"); + } + + @Test + @TestMetadata("lambda11.kt") + public void testLambda11() { + runTest("compiler/testData/codegen/box/lambda/lambda11.kt"); + } + + @Test + @TestMetadata("lambda12.kt") + public void testLambda12() { + runTest("compiler/testData/codegen/box/lambda/lambda12.kt"); + } + + @Test + @TestMetadata("lambda13.kt") + public void testLambda13() { + runTest("compiler/testData/codegen/box/lambda/lambda13.kt"); + } + + @Test + @TestMetadata("lambda14.kt") + public void testLambda14() { + runTest("compiler/testData/codegen/box/lambda/lambda14.kt"); + } + + @Test + @TestMetadata("lambda2.kt") + public void testLambda2() { + runTest("compiler/testData/codegen/box/lambda/lambda2.kt"); + } + + @Test + @TestMetadata("lambda3.kt") + public void testLambda3() { + runTest("compiler/testData/codegen/box/lambda/lambda3.kt"); + } + + @Test + @TestMetadata("lambda4.kt") + public void testLambda4() { + runTest("compiler/testData/codegen/box/lambda/lambda4.kt"); + } + + @Test + @TestMetadata("lambda5.kt") + public void testLambda5() { + runTest("compiler/testData/codegen/box/lambda/lambda5.kt"); + } + + @Test + @TestMetadata("lambda6.kt") + public void testLambda6() { + runTest("compiler/testData/codegen/box/lambda/lambda6.kt"); + } + + @Test + @TestMetadata("lambda7.kt") + public void testLambda7() { + runTest("compiler/testData/codegen/box/lambda/lambda7.kt"); + } + + @Test + @TestMetadata("lambda8.kt") + public void testLambda8() { + runTest("compiler/testData/codegen/box/lambda/lambda8.kt"); + } + + @Test + @TestMetadata("lambda9.kt") + public void testLambda9() { + runTest("compiler/testData/codegen/box/lambda/lambda9.kt"); + } + + @Test + @TestMetadata("lambda_kt49360_trivial.kt") + public void testLambda_kt49360_trivial() { + runTest("compiler/testData/codegen/box/lambda/lambda_kt49360_trivial.kt"); + } + + @Test + @TestMetadata("lambda_kt49360_withFlow.kt") + public void testLambda_kt49360_withFlow() { + runTest("compiler/testData/codegen/box/lambda/lambda_kt49360_withFlow.kt"); + } + + @Test + @TestMetadata("lambda_kt49360_wrapBlock.kt") + public void testLambda_kt49360_wrapBlock() { + runTest("compiler/testData/codegen/box/lambda/lambda_kt49360_wrapBlock.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/lateinit") + @TestDataPath("$PROJECT_ROOT") + public class Lateinit { + @Test + public void testAllFilesPresentInLateinit() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/lateinit"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("globalIsInitialized.kt") + public void testGlobalIsInitialized() { + runTest("compiler/testData/codegen/box/lateinit/globalIsInitialized.kt"); + } + + @Test + @TestMetadata("inBaseClass.kt") + public void testInBaseClass() { + runTest("compiler/testData/codegen/box/lateinit/inBaseClass.kt"); + } + + @Test + @TestMetadata("initialized.kt") + public void testInitialized() { + runTest("compiler/testData/codegen/box/lateinit/initialized.kt"); + } + + @Test + @TestMetadata("innerIsInitialized.kt") + public void testInnerIsInitialized() { + runTest("compiler/testData/codegen/box/lateinit/innerIsInitialized.kt"); + } + + @Test + @TestMetadata("isInitialized.kt") + public void testIsInitialized() { + runTest("compiler/testData/codegen/box/lateinit/isInitialized.kt"); + } + + @Test + @TestMetadata("localCapturedInitialized.kt") + public void testLocalCapturedInitialized() { + runTest("compiler/testData/codegen/box/lateinit/localCapturedInitialized.kt"); + } + + @Test + @TestMetadata("localCapturedNotInitialized.kt") + public void testLocalCapturedNotInitialized() { + runTest("compiler/testData/codegen/box/lateinit/localCapturedNotInitialized.kt"); + } + + @Test + @TestMetadata("localInitialized.kt") + public void testLocalInitialized() { + runTest("compiler/testData/codegen/box/lateinit/localInitialized.kt"); + } + + @Test + @TestMetadata("localNotInitialized.kt") + public void testLocalNotInitialized() { + runTest("compiler/testData/codegen/box/lateinit/localNotInitialized.kt"); + } + + @Test + @TestMetadata("notInitialized.kt") + public void testNotInitialized() { + runTest("compiler/testData/codegen/box/lateinit/notInitialized.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/lazyCodegen") @TestDataPath("$PROJECT_ROOT") @@ -33862,6 +36522,98 @@ public class FirLightTreeBlackBoxCodegenTestGenerated extends AbstractFirLightTr } } + @Nested + @TestMetadata("compiler/testData/codegen/box/literals") + @TestDataPath("$PROJECT_ROOT") + public class Literals { + @Test + public void testAllFilesPresentInLiterals() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/literals"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("listof1.kt") + public void testListof1() { + runTest("compiler/testData/codegen/box/literals/listof1.kt"); + } + + @Test + @TestMetadata("strdedup1.kt") + public void testStrdedup1() { + runTest("compiler/testData/codegen/box/literals/strdedup1.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/localClass") + @TestDataPath("$PROJECT_ROOT") + public class LocalClass { + @Test + public void testAllFilesPresentInLocalClass() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/localClass"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("innerTakesCapturedFromOuter.kt") + public void testInnerTakesCapturedFromOuter() { + runTest("compiler/testData/codegen/box/localClass/innerTakesCapturedFromOuter.kt"); + } + + @Test + @TestMetadata("innerWithCapture.kt") + public void testInnerWithCapture() { + runTest("compiler/testData/codegen/box/localClass/innerWithCapture.kt"); + } + + @Test + @TestMetadata("localFunctionCallFromLocalClass.kt") + public void testLocalFunctionCallFromLocalClass() { + runTest("compiler/testData/codegen/box/localClass/localFunctionCallFromLocalClass.kt"); + } + + @Test + @TestMetadata("localFunctionInLocalClass.kt") + public void testLocalFunctionInLocalClass() { + runTest("compiler/testData/codegen/box/localClass/localFunctionInLocalClass.kt"); + } + + @Test + @TestMetadata("localHierarchy.kt") + public void testLocalHierarchy() { + runTest("compiler/testData/codegen/box/localClass/localHierarchy.kt"); + } + + @Test + @TestMetadata("noPrimaryConstructor.kt") + public void testNoPrimaryConstructor() { + runTest("compiler/testData/codegen/box/localClass/noPrimaryConstructor.kt"); + } + + @Test + @TestMetadata("objectExpressionInInitializer.kt") + public void testObjectExpressionInInitializer() { + runTest("compiler/testData/codegen/box/localClass/objectExpressionInInitializer.kt"); + } + + @Test + @TestMetadata("objectExpressionInProperty.kt") + public void testObjectExpressionInProperty() { + runTest("compiler/testData/codegen/box/localClass/objectExpressionInProperty.kt"); + } + + @Test + @TestMetadata("tryCatch.kt") + public void testTryCatch() { + runTest("compiler/testData/codegen/box/localClass/tryCatch.kt"); + } + + @Test + @TestMetadata("virtualCallFromConstructor.kt") + public void testVirtualCallFromConstructor() { + runTest("compiler/testData/codegen/box/localClass/virtualCallFromConstructor.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/localClasses") @TestDataPath("$PROJECT_ROOT") @@ -34112,6 +36864,38 @@ public class FirLightTreeBlackBoxCodegenTestGenerated extends AbstractFirLightTr } } + @Nested + @TestMetadata("compiler/testData/codegen/box/localEscapeAnalysis") + @TestDataPath("$PROJECT_ROOT") + public class LocalEscapeAnalysis { + @Test + public void testAllFilesPresentInLocalEscapeAnalysis() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/localEscapeAnalysis"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("arraysFieldWrite.kt") + public void testArraysFieldWrite() { + runTest("compiler/testData/codegen/box/localEscapeAnalysis/arraysFieldWrite.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/lower") + @TestDataPath("$PROJECT_ROOT") + public class Lower { + @Test + public void testAllFilesPresentInLower() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/lower"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("localDelegatedProperty.kt") + public void testLocalDelegatedProperty() { + runTest("compiler/testData/codegen/box/lower/localDelegatedProperty.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/mangling") @TestDataPath("$PROJECT_ROOT") @@ -34151,6 +36935,12 @@ public class FirLightTreeBlackBoxCodegenTestGenerated extends AbstractFirLightTr runTest("compiler/testData/codegen/box/mangling/internalOverrideSuperCall.kt"); } + @Test + @TestMetadata("multipleConstructors.kt") + public void testMultipleConstructors() { + runTest("compiler/testData/codegen/box/mangling/multipleConstructors.kt"); + } + @Test @TestMetadata("noOverrideWithJava.kt") public void testNoOverrideWithJava() { @@ -36182,6 +38972,98 @@ public class FirLightTreeBlackBoxCodegenTestGenerated extends AbstractFirLightTr } } + @Nested + @TestMetadata("compiler/testData/codegen/box/object") + @TestDataPath("$PROJECT_ROOT") + public class Object { + @Test + public void testAllFilesPresentInObject() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/object"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("constructor0.kt") + public void testConstructor0() { + runTest("compiler/testData/codegen/box/object/constructor0.kt"); + } + + @Test + @TestMetadata("fields.kt") + public void testFields() { + runTest("compiler/testData/codegen/box/object/fields.kt"); + } + + @Test + @TestMetadata("fields1.kt") + public void testFields1() { + runTest("compiler/testData/codegen/box/object/fields1.kt"); + } + + @Test + @TestMetadata("fields2.kt") + public void testFields2() { + runTest("compiler/testData/codegen/box/object/fields2.kt"); + } + + @Test + @TestMetadata("globalInitializer.kt") + public void testGlobalInitializer() { + runTest("compiler/testData/codegen/box/object/globalInitializer.kt"); + } + + @Test + @TestMetadata("init0.kt") + public void testInit0() { + runTest("compiler/testData/codegen/box/object/init0.kt"); + } + + @Test + @TestMetadata("initialization.kt") + public void testInitialization() { + runTest("compiler/testData/codegen/box/object/initialization.kt"); + } + + @Test + @TestMetadata("initialization1.kt") + public void testInitialization1() { + runTest("compiler/testData/codegen/box/object/initialization1.kt"); + } + + @Test + @TestMetadata("method_call.kt") + public void testMethod_call() { + runTest("compiler/testData/codegen/box/object/method_call.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/objectExpression") + @TestDataPath("$PROJECT_ROOT") + public class ObjectExpression { + @Test + public void testAllFilesPresentInObjectExpression() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/objectExpression"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("expr1.kt") + public void testExpr1() { + runTest("compiler/testData/codegen/box/objectExpression/expr1.kt"); + } + + @Test + @TestMetadata("expr2.kt") + public void testExpr2() { + runTest("compiler/testData/codegen/box/objectExpression/expr2.kt"); + } + + @Test + @TestMetadata("expr3.kt") + public void testExpr3() { + runTest("compiler/testData/codegen/box/objectExpression/expr3.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/objectIntrinsics") @TestDataPath("$PROJECT_ROOT") @@ -39478,6 +42360,64 @@ public class FirLightTreeBlackBoxCodegenTestGenerated extends AbstractFirLightTr } } + @Nested + @TestMetadata("compiler/testData/codegen/box/propertyCallableReference") + @TestDataPath("$PROJECT_ROOT") + public class PropertyCallableReference { + @Test + public void testAllFilesPresentInPropertyCallableReference() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/propertyCallableReference"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("dynamicReceiver.kt") + public void testDynamicReceiver() { + runTest("compiler/testData/codegen/box/propertyCallableReference/dynamicReceiver.kt"); + } + + @Test + @TestMetadata("multipleModules.kt") + public void testMultipleModules() { + runTest("compiler/testData/codegen/box/propertyCallableReference/multipleModules.kt"); + } + + @Test + @TestMetadata("valClass.kt") + public void testValClass() { + runTest("compiler/testData/codegen/box/propertyCallableReference/valClass.kt"); + } + + @Test + @TestMetadata("valExtension.kt") + public void testValExtension() { + runTest("compiler/testData/codegen/box/propertyCallableReference/valExtension.kt"); + } + + @Test + @TestMetadata("valModule.kt") + public void testValModule() { + runTest("compiler/testData/codegen/box/propertyCallableReference/valModule.kt"); + } + + @Test + @TestMetadata("varClass.kt") + public void testVarClass() { + runTest("compiler/testData/codegen/box/propertyCallableReference/varClass.kt"); + } + + @Test + @TestMetadata("varExtension.kt") + public void testVarExtension() { + runTest("compiler/testData/codegen/box/propertyCallableReference/varExtension.kt"); + } + + @Test + @TestMetadata("varModule.kt") + public void testVarModule() { + runTest("compiler/testData/codegen/box/propertyCallableReference/varModule.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/publishedApi") @TestDataPath("$PROJECT_ROOT") @@ -51666,6 +54606,58 @@ public class FirLightTreeBlackBoxCodegenTestGenerated extends AbstractFirLightTr } } + @Nested + @TestMetadata("compiler/testData/codegen/box/serialization") + @TestDataPath("$PROJECT_ROOT") + public class Serialization { + @Test + public void testAllFilesPresentInSerialization() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/serialization"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("deserializedMembers.kt") + public void testDeserializedMembers() { + runTest("compiler/testData/codegen/box/serialization/deserializedMembers.kt"); + } + + @Test + @TestMetadata("serializedCatch.kt") + public void testSerializedCatch() { + runTest("compiler/testData/codegen/box/serialization/serializedCatch.kt"); + } + + @Test + @TestMetadata("serializedCharConstant.kt") + public void testSerializedCharConstant() { + runTest("compiler/testData/codegen/box/serialization/serializedCharConstant.kt"); + } + + @Test + @TestMetadata("serializedDefaultArgs.kt") + public void testSerializedDefaultArgs() { + runTest("compiler/testData/codegen/box/serialization/serializedDefaultArgs.kt"); + } + + @Test + @TestMetadata("serializedDoWhile.kt") + public void testSerializedDoWhile() { + runTest("compiler/testData/codegen/box/serialization/serializedDoWhile.kt"); + } + + @Test + @TestMetadata("serializedEnumOrdinal.kt") + public void testSerializedEnumOrdinal() { + runTest("compiler/testData/codegen/box/serialization/serializedEnumOrdinal.kt"); + } + + @Test + @TestMetadata("serializedVararg.kt") + public void testSerializedVararg() { + runTest("compiler/testData/codegen/box/serialization/serializedVararg.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/size") @TestDataPath("$PROJECT_ROOT") @@ -52338,6 +55330,22 @@ public class FirLightTreeBlackBoxCodegenTestGenerated extends AbstractFirLightTr } } + @Nested + @TestMetadata("compiler/testData/codegen/box/stringTrim") + @TestDataPath("$PROJECT_ROOT") + public class StringTrim { + @Test + public void testAllFilesPresentInStringTrim() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/stringTrim"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("stringTrim.kt") + public void testStringTrim() { + runTest("compiler/testData/codegen/box/stringTrim/stringTrim.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/strings") @TestDataPath("$PROJECT_ROOT") @@ -53866,6 +56874,142 @@ public class FirLightTreeBlackBoxCodegenTestGenerated extends AbstractFirLightTr } } + @Nested + @TestMetadata("compiler/testData/codegen/box/try") + @TestDataPath("$PROJECT_ROOT") + public class Try { + @Test + public void testAllFilesPresentInTry() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/try"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("catch3.kt") + public void testCatch3() { + runTest("compiler/testData/codegen/box/try/catch3.kt"); + } + + @Test + @TestMetadata("catch4.kt") + public void testCatch4() { + runTest("compiler/testData/codegen/box/try/catch4.kt"); + } + + @Test + @TestMetadata("catch5.kt") + public void testCatch5() { + runTest("compiler/testData/codegen/box/try/catch5.kt"); + } + + @Test + @TestMetadata("catch6.kt") + public void testCatch6() { + runTest("compiler/testData/codegen/box/try/catch6.kt"); + } + + @Test + @TestMetadata("catch8.kt") + public void testCatch8() { + runTest("compiler/testData/codegen/box/try/catch8.kt"); + } + + @Test + @TestMetadata("finally1.kt") + public void testFinally1() { + runTest("compiler/testData/codegen/box/try/finally1.kt"); + } + + @Test + @TestMetadata("finally10.kt") + public void testFinally10() { + runTest("compiler/testData/codegen/box/try/finally10.kt"); + } + + @Test + @TestMetadata("finally11.kt") + public void testFinally11() { + runTest("compiler/testData/codegen/box/try/finally11.kt"); + } + + @Test + @TestMetadata("finally2.kt") + public void testFinally2() { + runTest("compiler/testData/codegen/box/try/finally2.kt"); + } + + @Test + @TestMetadata("finally3.kt") + public void testFinally3() { + runTest("compiler/testData/codegen/box/try/finally3.kt"); + } + + @Test + @TestMetadata("finally4.kt") + public void testFinally4() { + runTest("compiler/testData/codegen/box/try/finally4.kt"); + } + + @Test + @TestMetadata("finally5.kt") + public void testFinally5() { + runTest("compiler/testData/codegen/box/try/finally5.kt"); + } + + @Test + @TestMetadata("finally6.kt") + public void testFinally6() { + runTest("compiler/testData/codegen/box/try/finally6.kt"); + } + + @Test + @TestMetadata("finally7.kt") + public void testFinally7() { + runTest("compiler/testData/codegen/box/try/finally7.kt"); + } + + @Test + @TestMetadata("finally8.kt") + public void testFinally8() { + runTest("compiler/testData/codegen/box/try/finally8.kt"); + } + + @Test + @TestMetadata("finally9.kt") + public void testFinally9() { + runTest("compiler/testData/codegen/box/try/finally9.kt"); + } + + @Test + @TestMetadata("returnsDifferentTypes.kt") + public void testReturnsDifferentTypes() { + runTest("compiler/testData/codegen/box/try/returnsDifferentTypes.kt"); + } + + @Test + @TestMetadata("try1.kt") + public void testTry1() { + runTest("compiler/testData/codegen/box/try/try1.kt"); + } + + @Test + @TestMetadata("try2.kt") + public void testTry2() { + runTest("compiler/testData/codegen/box/try/try2.kt"); + } + + @Test + @TestMetadata("try3.kt") + public void testTry3() { + runTest("compiler/testData/codegen/box/try/try3.kt"); + } + + @Test + @TestMetadata("try4.kt") + public void testTry4() { + runTest("compiler/testData/codegen/box/try/try4.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/typeInfo") @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 9a99ecbe5c6..7f210c5662a 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 @@ -107,6 +107,12 @@ public class FirLightTreeBlackBoxCodegenWithIrFakeOverrideGeneratorTestGenerated runTest("compiler/testData/codegen/box/annotations/annotationWithVarargAsDefaultValue.kt"); } + @Test + @TestMetadata("annotations0.kt") + public void testAnnotations0() { + runTest("compiler/testData/codegen/box/annotations/annotations0.kt"); + } + @Test @TestMetadata("annotationsOnDefault.kt") public void testAnnotationsOnDefault() { @@ -936,6 +942,82 @@ public class FirLightTreeBlackBoxCodegenWithIrFakeOverrideGeneratorTestGenerated } } + @Nested + @TestMetadata("compiler/testData/codegen/box/arithmetic") + @TestDataPath("$PROJECT_ROOT") + public class Arithmetic { + @Test + public void testAllFilesPresentInArithmetic() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/arithmetic"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("basic_charConversions.kt") + public void testBasic_charConversions() { + runTest("compiler/testData/codegen/box/arithmetic/basic_charConversions.kt"); + } + + @Test + @TestMetadata("basic_charCornerCases.kt") + public void testBasic_charCornerCases() { + runTest("compiler/testData/codegen/box/arithmetic/basic_charCornerCases.kt"); + } + + @Test + @TestMetadata("basic_compareIntToFloat.kt") + public void testBasic_compareIntToFloat() { + runTest("compiler/testData/codegen/box/arithmetic/basic_compareIntToFloat.kt"); + } + + @Test + @TestMetadata("basic_doubleBasic.kt") + public void testBasic_doubleBasic() { + runTest("compiler/testData/codegen/box/arithmetic/basic_doubleBasic.kt"); + } + + @Test + @TestMetadata("basic_integralToFloat.kt") + public void testBasic_integralToFloat() { + runTest("compiler/testData/codegen/box/arithmetic/basic_integralToFloat.kt"); + } + + @Test + @TestMetadata("basic_kt37412.kt") + public void testBasic_kt37412() { + runTest("compiler/testData/codegen/box/arithmetic/basic_kt37412.kt"); + } + + @Test + @TestMetadata("basic_selfComparison.kt") + public void testBasic_selfComparison() { + runTest("compiler/testData/codegen/box/arithmetic/basic_selfComparison.kt"); + } + + @Test + @TestMetadata("basic_shifts.kt") + public void testBasic_shifts() { + runTest("compiler/testData/codegen/box/arithmetic/basic_shifts.kt"); + } + + @Test + @TestMetadata("basic_uintTests.kt") + public void testBasic_uintTests() { + runTest("compiler/testData/codegen/box/arithmetic/basic_uintTests.kt"); + } + + @Test + @TestMetadata("division.kt") + public void testDivision() { + runTest("compiler/testData/codegen/box/arithmetic/division.kt"); + } + + @Test + @TestMetadata("github1856.kt") + public void testGithub1856() { + runTest("compiler/testData/codegen/box/arithmetic/github1856.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/arrays") @TestDataPath("$PROJECT_ROOT") @@ -1788,6 +1870,302 @@ public class FirLightTreeBlackBoxCodegenWithIrFakeOverrideGeneratorTestGenerated } } + @Nested + @TestMetadata("compiler/testData/codegen/box/basics") + @TestDataPath("$PROJECT_ROOT") + public class Basics { + @Test + public void testAllFilesPresentInBasics() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/basics"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("array_to_any.kt") + public void testArray_to_any() { + runTest("compiler/testData/codegen/box/basics/array_to_any.kt"); + } + + @Test + @TestMetadata("canonical_name.kt") + public void testCanonical_name() { + runTest("compiler/testData/codegen/box/basics/canonical_name.kt"); + } + + @Test + @TestMetadata("cast_null.kt") + public void testCast_null() { + runTest("compiler/testData/codegen/box/basics/cast_null.kt"); + } + + @Test + @TestMetadata("cast_simple.kt") + public void testCast_simple() { + runTest("compiler/testData/codegen/box/basics/cast_simple.kt"); + } + + @Test + @TestMetadata("check_type.kt") + public void testCheck_type() { + runTest("compiler/testData/codegen/box/basics/check_type.kt"); + } + + @Test + @TestMetadata("companion.kt") + public void testCompanion() { + runTest("compiler/testData/codegen/box/basics/companion.kt"); + } + + @Test + @TestMetadata("concatenation.kt") + public void testConcatenation() { + runTest("compiler/testData/codegen/box/basics/concatenation.kt"); + } + + @Test + @TestMetadata("const_infinity.kt") + public void testConst_infinity() { + runTest("compiler/testData/codegen/box/basics/const_infinity.kt"); + } + + @Test + @TestMetadata("expression_as_statement.kt") + public void testExpression_as_statement() { + runTest("compiler/testData/codegen/box/basics/expression_as_statement.kt"); + } + + @Test + @TestMetadata("k42000_1.kt") + public void testK42000_1() { + runTest("compiler/testData/codegen/box/basics/k42000_1.kt"); + } + + @Test + @TestMetadata("k42000_2.kt") + public void testK42000_2() { + runTest("compiler/testData/codegen/box/basics/k42000_2.kt"); + } + + @Test + @TestMetadata("local_variable.kt") + public void testLocal_variable() { + runTest("compiler/testData/codegen/box/basics/local_variable.kt"); + } + + @Test + @TestMetadata("null_check.kt") + public void testNull_check() { + runTest("compiler/testData/codegen/box/basics/null_check.kt"); + } + + @Test + @TestMetadata("safe_cast.kt") + public void testSafe_cast() { + runTest("compiler/testData/codegen/box/basics/safe_cast.kt"); + } + + @Test + @TestMetadata("spread_operator_0.kt") + public void testSpread_operator_0() { + runTest("compiler/testData/codegen/box/basics/spread_operator_0.kt"); + } + + @Test + @TestMetadata("statements0.kt") + public void testStatements0() { + runTest("compiler/testData/codegen/box/basics/statements0.kt"); + } + + @Test + @TestMetadata("superFunCall.kt") + public void testSuperFunCall() { + runTest("compiler/testData/codegen/box/basics/superFunCall.kt"); + } + + @Test + @TestMetadata("superGetterCall.kt") + public void testSuperGetterCall() { + runTest("compiler/testData/codegen/box/basics/superGetterCall.kt"); + } + + @Test + @TestMetadata("superSetterCall.kt") + public void testSuperSetterCall() { + runTest("compiler/testData/codegen/box/basics/superSetterCall.kt"); + } + + @Test + @TestMetadata("typealias1.kt") + public void testTypealias1() { + runTest("compiler/testData/codegen/box/basics/typealias1.kt"); + } + + @Test + @TestMetadata("unchecked_cast1.kt") + public void testUnchecked_cast1() { + runTest("compiler/testData/codegen/box/basics/unchecked_cast1.kt"); + } + + @Test + @TestMetadata("unchecked_cast2.kt") + public void testUnchecked_cast2() { + runTest("compiler/testData/codegen/box/basics/unchecked_cast2.kt"); + } + + @Test + @TestMetadata("unchecked_cast3.kt") + public void testUnchecked_cast3() { + runTest("compiler/testData/codegen/box/basics/unchecked_cast3.kt"); + } + + @Test + @TestMetadata("unchecked_cast4.kt") + public void testUnchecked_cast4() { + runTest("compiler/testData/codegen/box/basics/unchecked_cast4.kt"); + } + + @Test + @TestMetadata("unit1.kt") + public void testUnit1() { + runTest("compiler/testData/codegen/box/basics/unit1.kt"); + } + + @Test + @TestMetadata("unit2.kt") + public void testUnit2() { + runTest("compiler/testData/codegen/box/basics/unit2.kt"); + } + + @Test + @TestMetadata("unit3.kt") + public void testUnit3() { + runTest("compiler/testData/codegen/box/basics/unit3.kt"); + } + + @Test + @TestMetadata("unit4.kt") + public void testUnit4() { + runTest("compiler/testData/codegen/box/basics/unit4.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/bce") + @TestDataPath("$PROJECT_ROOT") + public class Bce { + @Test + public void testAllFilesPresentInBce() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/bce"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("bceCases.kt") + public void testBceCases() { + runTest("compiler/testData/codegen/box/bce/bceCases.kt"); + } + + @Test + @TestMetadata("customGetter.kt") + public void testCustomGetter() { + runTest("compiler/testData/codegen/box/bce/customGetter.kt"); + } + + @Test + @TestMetadata("delegatedProperty.kt") + public void testDelegatedProperty() { + runTest("compiler/testData/codegen/box/bce/delegatedProperty.kt"); + } + + @Test + @TestMetadata("differentArrays.kt") + public void testDifferentArrays() { + runTest("compiler/testData/codegen/box/bce/differentArrays.kt"); + } + + @Test + @TestMetadata("differentObjects.kt") + public void testDifferentObjects() { + runTest("compiler/testData/codegen/box/bce/differentObjects.kt"); + } + + @Test + @TestMetadata("forDownToSize.kt") + public void testForDownToSize() { + runTest("compiler/testData/codegen/box/bce/forDownToSize.kt"); + } + + @Test + @TestMetadata("forDownToWithStep.kt") + public void testForDownToWithStep() { + runTest("compiler/testData/codegen/box/bce/forDownToWithStep.kt"); + } + + @Test + @TestMetadata("forEachIndexedTest.kt") + public void testForEachIndexedTest() { + runTest("compiler/testData/codegen/box/bce/forEachIndexedTest.kt"); + } + + @Test + @TestMetadata("forEachIndicies.kt") + public void testForEachIndicies() { + runTest("compiler/testData/codegen/box/bce/forEachIndicies.kt"); + } + + @Test + @TestMetadata("forIndiciesWithStep.kt") + public void testForIndiciesWithStep() { + runTest("compiler/testData/codegen/box/bce/forIndiciesWithStep.kt"); + } + + @Test + @TestMetadata("forRangeToSize.kt") + public void testForRangeToSize() { + runTest("compiler/testData/codegen/box/bce/forRangeToSize.kt"); + } + + @Test + @TestMetadata("forRangeToWithStep.kt") + public void testForRangeToWithStep() { + runTest("compiler/testData/codegen/box/bce/forRangeToWithStep.kt"); + } + + @Test + @TestMetadata("forReversed.kt") + public void testForReversed() { + runTest("compiler/testData/codegen/box/bce/forReversed.kt"); + } + + @Test + @TestMetadata("forUntilSize.kt") + public void testForUntilSize() { + runTest("compiler/testData/codegen/box/bce/forUntilSize.kt"); + } + + @Test + @TestMetadata("forUntilWithStep.kt") + public void testForUntilWithStep() { + runTest("compiler/testData/codegen/box/bce/forUntilWithStep.kt"); + } + + @Test + @TestMetadata("forWithIndex.kt") + public void testForWithIndex() { + runTest("compiler/testData/codegen/box/bce/forWithIndex.kt"); + } + + @Test + @TestMetadata("inheritance.kt") + public void testInheritance() { + runTest("compiler/testData/codegen/box/bce/inheritance.kt"); + } + + @Test + @TestMetadata("withGetter.kt") + public void testWithGetter() { + runTest("compiler/testData/codegen/box/bce/withGetter.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/binaryOp") @TestDataPath("$PROJECT_ROOT") @@ -1984,6 +2362,124 @@ public class FirLightTreeBlackBoxCodegenWithIrFakeOverrideGeneratorTestGenerated } } + @Nested + @TestMetadata("compiler/testData/codegen/box/boxing") + @TestDataPath("$PROJECT_ROOT") + public class Boxing { + @Test + public void testAllFilesPresentInBoxing() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/boxing"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("box_cache0.kt") + public void testBox_cache0() { + runTest("compiler/testData/codegen/box/boxing/box_cache0.kt"); + } + + @Test + @TestMetadata("boxing0.kt") + public void testBoxing0() { + runTest("compiler/testData/codegen/box/boxing/boxing0.kt"); + } + + @Test + @TestMetadata("boxing1.kt") + public void testBoxing1() { + runTest("compiler/testData/codegen/box/boxing/boxing1.kt"); + } + + @Test + @TestMetadata("boxing10.kt") + public void testBoxing10() { + runTest("compiler/testData/codegen/box/boxing/boxing10.kt"); + } + + @Test + @TestMetadata("boxing11.kt") + public void testBoxing11() { + runTest("compiler/testData/codegen/box/boxing/boxing11.kt"); + } + + @Test + @TestMetadata("boxing12.kt") + public void testBoxing12() { + runTest("compiler/testData/codegen/box/boxing/boxing12.kt"); + } + + @Test + @TestMetadata("boxing13.kt") + public void testBoxing13() { + runTest("compiler/testData/codegen/box/boxing/boxing13.kt"); + } + + @Test + @TestMetadata("boxing14.kt") + public void testBoxing14() { + runTest("compiler/testData/codegen/box/boxing/boxing14.kt"); + } + + @Test + @TestMetadata("boxing15.kt") + public void testBoxing15() { + runTest("compiler/testData/codegen/box/boxing/boxing15.kt"); + } + + @Test + @TestMetadata("boxing2.kt") + public void testBoxing2() { + runTest("compiler/testData/codegen/box/boxing/boxing2.kt"); + } + + @Test + @TestMetadata("boxing3.kt") + public void testBoxing3() { + runTest("compiler/testData/codegen/box/boxing/boxing3.kt"); + } + + @Test + @TestMetadata("boxing4.kt") + public void testBoxing4() { + runTest("compiler/testData/codegen/box/boxing/boxing4.kt"); + } + + @Test + @TestMetadata("boxing5.kt") + public void testBoxing5() { + runTest("compiler/testData/codegen/box/boxing/boxing5.kt"); + } + + @Test + @TestMetadata("boxing6.kt") + public void testBoxing6() { + runTest("compiler/testData/codegen/box/boxing/boxing6.kt"); + } + + @Test + @TestMetadata("boxing7.kt") + public void testBoxing7() { + runTest("compiler/testData/codegen/box/boxing/boxing7.kt"); + } + + @Test + @TestMetadata("boxing8.kt") + public void testBoxing8() { + runTest("compiler/testData/codegen/box/boxing/boxing8.kt"); + } + + @Test + @TestMetadata("boxing9.kt") + public void testBoxing9() { + runTest("compiler/testData/codegen/box/boxing/boxing9.kt"); + } + + @Test + @TestMetadata("kt53100_casts.kt") + public void testKt53100_casts() { + runTest("compiler/testData/codegen/box/boxing/kt53100_casts.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/boxingOptimization") @TestDataPath("$PROJECT_ROOT") @@ -2264,6 +2760,88 @@ public class FirLightTreeBlackBoxCodegenWithIrFakeOverrideGeneratorTestGenerated } } + @Nested + @TestMetadata("compiler/testData/codegen/box/branching") + @TestDataPath("$PROJECT_ROOT") + public class Branching { + @Test + @TestMetadata("advanced_when2.kt") + public void testAdvanced_when2() { + runTest("compiler/testData/codegen/box/branching/advanced_when2.kt"); + } + + @Test + @TestMetadata("advanced_when5.kt") + public void testAdvanced_when5() { + runTest("compiler/testData/codegen/box/branching/advanced_when5.kt"); + } + + @Test + public void testAllFilesPresentInBranching() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/branching"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("if_else.kt") + public void testIf_else() { + runTest("compiler/testData/codegen/box/branching/if_else.kt"); + } + + @Test + @TestMetadata("when2.kt") + public void testWhen2() { + runTest("compiler/testData/codegen/box/branching/when2.kt"); + } + + @Test + @TestMetadata("when4.kt") + public void testWhen4() { + runTest("compiler/testData/codegen/box/branching/when4.kt"); + } + + @Test + @TestMetadata("when5.kt") + public void testWhen5() { + runTest("compiler/testData/codegen/box/branching/when5.kt"); + } + + @Test + @TestMetadata("when6.kt") + public void testWhen6() { + runTest("compiler/testData/codegen/box/branching/when6.kt"); + } + + @Test + @TestMetadata("when7.kt") + public void testWhen7() { + runTest("compiler/testData/codegen/box/branching/when7.kt"); + } + + @Test + @TestMetadata("when8.kt") + public void testWhen8() { + runTest("compiler/testData/codegen/box/branching/when8.kt"); + } + + @Test + @TestMetadata("when9.kt") + public void testWhen9() { + runTest("compiler/testData/codegen/box/branching/when9.kt"); + } + + @Test + @TestMetadata("when_through.kt") + public void testWhen_through() { + runTest("compiler/testData/codegen/box/branching/when_through.kt"); + } + + @Test + @TestMetadata("when_with_try1.kt") + public void testWhen_with_try1() { + runTest("compiler/testData/codegen/box/branching/when_with_try1.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/bridges") @TestDataPath("$PROJECT_ROOT") @@ -2525,6 +3103,18 @@ public class FirLightTreeBlackBoxCodegenWithIrFakeOverrideGeneratorTestGenerated runTest("compiler/testData/codegen/box/bridges/methodWithDefaultParameter.kt"); } + @Test + @TestMetadata("multipleModules1.kt") + public void testMultipleModules1() { + runTest("compiler/testData/codegen/box/bridges/multipleModules1.kt"); + } + + @Test + @TestMetadata("multipleModules2.kt") + public void testMultipleModules2() { + runTest("compiler/testData/codegen/box/bridges/multipleModules2.kt"); + } + @Test @TestMetadata("nestedClassTypeParameters.kt") public void testNestedClassTypeParameters() { @@ -2591,6 +3181,12 @@ public class FirLightTreeBlackBoxCodegenWithIrFakeOverrideGeneratorTestGenerated runTest("compiler/testData/codegen/box/bridges/propertySetter.kt"); } + @Test + @TestMetadata("returnTypeSignature.kt") + public void testReturnTypeSignature() { + runTest("compiler/testData/codegen/box/bridges/returnTypeSignature.kt"); + } + @Test @TestMetadata("simple.kt") public void testSimple() { @@ -2633,6 +3229,18 @@ public class FirLightTreeBlackBoxCodegenWithIrFakeOverrideGeneratorTestGenerated runTest("compiler/testData/codegen/box/bridges/simpleUpperBound.kt"); } + @Test + @TestMetadata("special.kt") + public void testSpecial() { + runTest("compiler/testData/codegen/box/bridges/special.kt"); + } + + @Test + @TestMetadata("specialGeneric.kt") + public void testSpecialGeneric() { + runTest("compiler/testData/codegen/box/bridges/specialGeneric.kt"); + } + @Test @TestMetadata("strListContains.kt") public void testStrListContains() { @@ -2645,6 +3253,120 @@ public class FirLightTreeBlackBoxCodegenWithIrFakeOverrideGeneratorTestGenerated runTest("compiler/testData/codegen/box/bridges/strListRemove.kt"); } + @Test + @TestMetadata("test0.kt") + public void testTest0() { + runTest("compiler/testData/codegen/box/bridges/test0.kt"); + } + + @Test + @TestMetadata("test1.kt") + public void testTest1() { + runTest("compiler/testData/codegen/box/bridges/test1.kt"); + } + + @Test + @TestMetadata("test10.kt") + public void testTest10() { + runTest("compiler/testData/codegen/box/bridges/test10.kt"); + } + + @Test + @TestMetadata("test11.kt") + public void testTest11() { + runTest("compiler/testData/codegen/box/bridges/test11.kt"); + } + + @Test + @TestMetadata("test12.kt") + public void testTest12() { + runTest("compiler/testData/codegen/box/bridges/test12.kt"); + } + + @Test + @TestMetadata("test13.kt") + public void testTest13() { + runTest("compiler/testData/codegen/box/bridges/test13.kt"); + } + + @Test + @TestMetadata("test14.kt") + public void testTest14() { + runTest("compiler/testData/codegen/box/bridges/test14.kt"); + } + + @Test + @TestMetadata("test15.kt") + public void testTest15() { + runTest("compiler/testData/codegen/box/bridges/test15.kt"); + } + + @Test + @TestMetadata("test16.kt") + public void testTest16() { + runTest("compiler/testData/codegen/box/bridges/test16.kt"); + } + + @Test + @TestMetadata("test17.kt") + public void testTest17() { + runTest("compiler/testData/codegen/box/bridges/test17.kt"); + } + + @Test + @TestMetadata("test18.kt") + public void testTest18() { + runTest("compiler/testData/codegen/box/bridges/test18.kt"); + } + + @Test + @TestMetadata("test2.kt") + public void testTest2() { + runTest("compiler/testData/codegen/box/bridges/test2.kt"); + } + + @Test + @TestMetadata("test3.kt") + public void testTest3() { + runTest("compiler/testData/codegen/box/bridges/test3.kt"); + } + + @Test + @TestMetadata("test4.kt") + public void testTest4() { + runTest("compiler/testData/codegen/box/bridges/test4.kt"); + } + + @Test + @TestMetadata("test5.kt") + public void testTest5() { + runTest("compiler/testData/codegen/box/bridges/test5.kt"); + } + + @Test + @TestMetadata("test6.kt") + public void testTest6() { + runTest("compiler/testData/codegen/box/bridges/test6.kt"); + } + + @Test + @TestMetadata("test7.kt") + public void testTest7() { + runTest("compiler/testData/codegen/box/bridges/test7.kt"); + } + + @Test + @TestMetadata("test8.kt") + public void testTest8() { + runTest("compiler/testData/codegen/box/bridges/test8.kt"); + } + + @Test + @TestMetadata("test9.kt") + public void testTest9() { + runTest("compiler/testData/codegen/box/bridges/test9.kt"); + } + @Test @TestMetadata("traitImplInheritsTraitImpl.kt") public void testTraitImplInheritsTraitImpl() { @@ -6324,6 +7046,46 @@ public class FirLightTreeBlackBoxCodegenWithIrFakeOverrideGeneratorTestGenerated } } + @Nested + @TestMetadata("compiler/testData/codegen/box/classDelegation") + @TestDataPath("$PROJECT_ROOT") + public class ClassDelegation { + @Test + public void testAllFilesPresentInClassDelegation() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/classDelegation"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("generic.kt") + public void testGeneric() { + runTest("compiler/testData/codegen/box/classDelegation/generic.kt"); + } + + @Test + @TestMetadata("method.kt") + public void testMethod() { + runTest("compiler/testData/codegen/box/classDelegation/method.kt"); + } + + @Test + @TestMetadata("multipleModules.kt") + public void testMultipleModules() { + runTest("compiler/testData/codegen/box/classDelegation/multipleModules.kt"); + } + + @Test + @TestMetadata("property.kt") + public void testProperty() { + runTest("compiler/testData/codegen/box/classDelegation/property.kt"); + } + + @Test + @TestMetadata("withBridge.kt") + public void testWithBridge() { + runTest("compiler/testData/codegen/box/classDelegation/withBridge.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/classLiteral") @TestDataPath("$PROJECT_ROOT") @@ -9551,6 +10313,12 @@ public class FirLightTreeBlackBoxCodegenWithIrFakeOverrideGeneratorTestGenerated runTest("compiler/testData/codegen/box/contracts/constructorArgument.kt"); } + @Test + @TestMetadata("contractForCast.kt") + public void testContractForCast() { + runTest("compiler/testData/codegen/box/contracts/contractForCast.kt"); + } + @Test @TestMetadata("destructuredVariable.kt") public void testDestructuredVariable() { @@ -9593,6 +10361,12 @@ public class FirLightTreeBlackBoxCodegenWithIrFakeOverrideGeneratorTestGenerated runTest("compiler/testData/codegen/box/contracts/functionParameter.kt"); } + @Test + @TestMetadata("isNullString.kt") + public void testIsNullString() { + runTest("compiler/testData/codegen/box/contracts/isNullString.kt"); + } + @Test @TestMetadata("kt39374.kt") public void testKt39374() { @@ -9635,6 +10409,24 @@ public class FirLightTreeBlackBoxCodegenWithIrFakeOverrideGeneratorTestGenerated runTest("compiler/testData/codegen/box/contracts/nestedLambdaInNonInlineCallExactlyOnce.kt"); } + @Test + @TestMetadata("nonNullSmartCast.kt") + public void testNonNullSmartCast() { + runTest("compiler/testData/codegen/box/contracts/nonNullSmartCast.kt"); + } + + @Test + @TestMetadata("require.kt") + public void testRequire() { + runTest("compiler/testData/codegen/box/contracts/require.kt"); + } + + @Test + @TestMetadata("runLambdaForVal.kt") + public void testRunLambdaForVal() { + runTest("compiler/testData/codegen/box/contracts/runLambdaForVal.kt"); + } + @Test @TestMetadata("valInWhen.kt") public void testValInWhen() { @@ -11082,6 +11874,124 @@ public class FirLightTreeBlackBoxCodegenWithIrFakeOverrideGeneratorTestGenerated } } + @Nested + @TestMetadata("compiler/testData/codegen/box/controlflow") + @TestDataPath("$PROJECT_ROOT") + public class Controlflow { + @Test + public void testAllFilesPresentInControlflow() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/controlflow"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("break.kt") + public void testBreak() { + runTest("compiler/testData/codegen/box/controlflow/break.kt"); + } + + @Test + @TestMetadata("break1.kt") + public void testBreak1() { + runTest("compiler/testData/codegen/box/controlflow/break1.kt"); + } + + @Test + @TestMetadata("for_loops.kt") + public void testFor_loops() { + runTest("compiler/testData/codegen/box/controlflow/for_loops.kt"); + } + + @Test + @TestMetadata("for_loops_array_break_continue.kt") + public void testFor_loops_array_break_continue() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_array_break_continue.kt"); + } + + @Test + @TestMetadata("for_loops_array_indices.kt") + public void testFor_loops_array_indices() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_array_indices.kt"); + } + + @Test + @TestMetadata("for_loops_array_mutation.kt") + public void testFor_loops_array_mutation() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_array_mutation.kt"); + } + + @Test + @TestMetadata("for_loops_array_nested.kt") + public void testFor_loops_array_nested() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_array_nested.kt"); + } + + @Test + @TestMetadata("for_loops_array_nullable.kt") + public void testFor_loops_array_nullable() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_array_nullable.kt"); + } + + @Test + @TestMetadata("for_loops_array_side_effects.kt") + public void testFor_loops_array_side_effects() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_array_side_effects.kt"); + } + + @Test + @TestMetadata("for_loops_call_order.kt") + public void testFor_loops_call_order() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_call_order.kt"); + } + + @Test + @TestMetadata("for_loops_coroutines.kt") + public void testFor_loops_coroutines() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_coroutines.kt"); + } + + @Test + @TestMetadata("for_loops_empty_range.kt") + public void testFor_loops_empty_range() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_empty_range.kt"); + } + + @Test + @TestMetadata("for_loops_errors.kt") + public void testFor_loops_errors() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_errors.kt"); + } + + @Test + @TestMetadata("for_loops_let_with_nullable.kt") + public void testFor_loops_let_with_nullable() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_let_with_nullable.kt"); + } + + @Test + @TestMetadata("for_loops_nested.kt") + public void testFor_loops_nested() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_nested.kt"); + } + + @Test + @TestMetadata("for_loops_overflow.kt") + public void testFor_loops_overflow() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_overflow.kt"); + } + + @Test + @TestMetadata("for_loops_types.kt") + public void testFor_loops_types() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_types.kt"); + } + + @Test + @TestMetadata("unreachable1.kt") + public void testUnreachable1() { + runTest("compiler/testData/codegen/box/controlflow/unreachable1.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/coroutines") @TestDataPath("$PROJECT_ROOT") @@ -11103,6 +12013,12 @@ public class FirLightTreeBlackBoxCodegenWithIrFakeOverrideGeneratorTestGenerated KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test + @TestMetadata("anonymousObject.kt") + public void testAnonymousObject() { + runTest("compiler/testData/codegen/box/coroutines/anonymousObject.kt"); + } + @Test @TestMetadata("async.kt") public void testAsync() { @@ -11199,12 +12115,144 @@ public class FirLightTreeBlackBoxCodegenWithIrFakeOverrideGeneratorTestGenerated runTest("compiler/testData/codegen/box/coroutines/coercionToUnit.kt"); } + @Test + @TestMetadata("controlFlow_chain.kt") + public void testControlFlow_chain() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_chain.kt"); + } + + @Test + @TestMetadata("controlFlow_finally1.kt") + public void testControlFlow_finally1() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally1.kt"); + } + + @Test + @TestMetadata("controlFlow_finally2.kt") + public void testControlFlow_finally2() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally2.kt"); + } + + @Test + @TestMetadata("controlFlow_finally3.kt") + public void testControlFlow_finally3() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally3.kt"); + } + + @Test + @TestMetadata("controlFlow_finally4.kt") + public void testControlFlow_finally4() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally4.kt"); + } + + @Test + @TestMetadata("controlFlow_finally5.kt") + public void testControlFlow_finally5() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally5.kt"); + } + + @Test + @TestMetadata("controlFlow_finally6.kt") + public void testControlFlow_finally6() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally6.kt"); + } + + @Test + @TestMetadata("controlFlow_finally7.kt") + public void testControlFlow_finally7() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally7.kt"); + } + + @Test + @TestMetadata("controlFlow_if1.kt") + public void testControlFlow_if1() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_if1.kt"); + } + + @Test + @TestMetadata("controlFlow_if2.kt") + public void testControlFlow_if2() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_if2.kt"); + } + + @Test + @TestMetadata("controlFlow_inline1.kt") + public void testControlFlow_inline1() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_inline1.kt"); + } + + @Test + @TestMetadata("controlFlow_inline2.kt") + public void testControlFlow_inline2() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_inline2.kt"); + } + + @Test + @TestMetadata("controlFlow_inline3.kt") + public void testControlFlow_inline3() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_inline3.kt"); + } + + @Test + @TestMetadata("controlFlow_tryCatch1.kt") + public void testControlFlow_tryCatch1() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_tryCatch1.kt"); + } + + @Test + @TestMetadata("controlFlow_tryCatch2.kt") + public void testControlFlow_tryCatch2() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_tryCatch2.kt"); + } + + @Test + @TestMetadata("controlFlow_tryCatch3.kt") + public void testControlFlow_tryCatch3() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_tryCatch3.kt"); + } + + @Test + @TestMetadata("controlFlow_tryCatch4.kt") + public void testControlFlow_tryCatch4() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_tryCatch4.kt"); + } + + @Test + @TestMetadata("controlFlow_tryCatch5.kt") + public void testControlFlow_tryCatch5() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_tryCatch5.kt"); + } + + @Test + @TestMetadata("controlFlow_while1.kt") + public void testControlFlow_while1() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_while1.kt"); + } + + @Test + @TestMetadata("controlFlow_while2.kt") + public void testControlFlow_while2() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_while2.kt"); + } + @Test @TestMetadata("controllerAccessFromInnerLambda.kt") public void testControllerAccessFromInnerLambda() { runTest("compiler/testData/codegen/box/coroutines/controllerAccessFromInnerLambda.kt"); } + @Test + @TestMetadata("coroutineContext1.kt") + public void testCoroutineContext1() { + runTest("compiler/testData/codegen/box/coroutines/coroutineContext1.kt"); + } + + @Test + @TestMetadata("coroutineContext2.kt") + public void testCoroutineContext2() { + runTest("compiler/testData/codegen/box/coroutines/coroutineContext2.kt"); + } + @Test @TestMetadata("coroutineContextInInlinedLambda.kt") public void testCoroutineContextInInlinedLambda() { @@ -11217,6 +12265,12 @@ public class FirLightTreeBlackBoxCodegenWithIrFakeOverrideGeneratorTestGenerated runTest("compiler/testData/codegen/box/coroutines/coroutineToString.kt"); } + @Test + @TestMetadata("correctOrder1.kt") + public void testCorrectOrder1() { + runTest("compiler/testData/codegen/box/coroutines/correctOrder1.kt"); + } + @Test @TestMetadata("createCoroutineSafe.kt") public void testCreateCoroutineSafe() { @@ -11253,6 +12307,18 @@ public class FirLightTreeBlackBoxCodegenWithIrFakeOverrideGeneratorTestGenerated runTest("compiler/testData/codegen/box/coroutines/defaultParametersInSuspendWithJvmOverloads.kt"); } + @Test + @TestMetadata("degenerate1.kt") + public void testDegenerate1() { + runTest("compiler/testData/codegen/box/coroutines/degenerate1.kt"); + } + + @Test + @TestMetadata("degenerate2.kt") + public void testDegenerate2() { + runTest("compiler/testData/codegen/box/coroutines/degenerate2.kt"); + } + @Test @TestMetadata("delegatedSuspendMember.kt") public void testDelegatedSuspendMember() { @@ -11301,6 +12367,30 @@ public class FirLightTreeBlackBoxCodegenWithIrFakeOverrideGeneratorTestGenerated runTest("compiler/testData/codegen/box/coroutines/falseUnitCoercion.kt"); } + @Test + @TestMetadata("functionReference_eqeq_name.kt") + public void testFunctionReference_eqeq_name() { + runTest("compiler/testData/codegen/box/coroutines/functionReference_eqeq_name.kt"); + } + + @Test + @TestMetadata("functionReference_invokeAsFunction.kt") + public void testFunctionReference_invokeAsFunction() { + runTest("compiler/testData/codegen/box/coroutines/functionReference_invokeAsFunction.kt"); + } + + @Test + @TestMetadata("functionReference_lambdaAsSuspendLambda.kt") + public void testFunctionReference_lambdaAsSuspendLambda() { + runTest("compiler/testData/codegen/box/coroutines/functionReference_lambdaAsSuspendLambda.kt"); + } + + @Test + @TestMetadata("functionReference_simple.kt") + public void testFunctionReference_simple() { + runTest("compiler/testData/codegen/box/coroutines/functionReference_simple.kt"); + } + @Test @TestMetadata("generate.kt") public void testGenerate() { @@ -11511,6 +12601,12 @@ public class FirLightTreeBlackBoxCodegenWithIrFakeOverrideGeneratorTestGenerated runTest("compiler/testData/codegen/box/coroutines/kt38099.kt"); } + @Test + @TestMetadata("kt41394.kt") + public void testKt41394() { + runTest("compiler/testData/codegen/box/coroutines/kt41394.kt"); + } + @Test @TestMetadata("kt42028.kt") public void testKt42028() { @@ -11757,12 +12853,30 @@ public class FirLightTreeBlackBoxCodegenWithIrFakeOverrideGeneratorTestGenerated runTest("compiler/testData/codegen/box/coroutines/returnByLabel.kt"); } + @Test + @TestMetadata("returnsNothing1.kt") + public void testReturnsNothing1() { + runTest("compiler/testData/codegen/box/coroutines/returnsNothing1.kt"); + } + + @Test + @TestMetadata("returnsUnit1.kt") + public void testReturnsUnit1() { + runTest("compiler/testData/codegen/box/coroutines/returnsUnit1.kt"); + } + @Test @TestMetadata("simple.kt") public void testSimple() { runTest("compiler/testData/codegen/box/coroutines/simple.kt"); } + @Test + @TestMetadata("simple2.kt") + public void testSimple2() { + runTest("compiler/testData/codegen/box/coroutines/simple2.kt"); + } + @Test @TestMetadata("simpleException.kt") public void testSimpleException() { @@ -11811,6 +12925,12 @@ public class FirLightTreeBlackBoxCodegenWithIrFakeOverrideGeneratorTestGenerated runTest("compiler/testData/codegen/box/coroutines/suspendCallsInArguments.kt"); } + @Test + @TestMetadata("suspendConversion.kt") + public void testSuspendConversion() { + runTest("compiler/testData/codegen/box/coroutines/suspendConversion.kt"); + } + @Test @TestMetadata("suspendCoroutineFromStateMachine.kt") public void testSuspendCoroutineFromStateMachine() { @@ -12003,6 +13123,12 @@ public class FirLightTreeBlackBoxCodegenWithIrFakeOverrideGeneratorTestGenerated runTest("compiler/testData/codegen/box/coroutines/varargCallFromSuspend.kt"); } + @Test + @TestMetadata("withReceiver.kt") + public void testWithReceiver() { + runTest("compiler/testData/codegen/box/coroutines/withReceiver.kt"); + } + @Nested @TestMetadata("compiler/testData/codegen/box/coroutines/bridges") @TestDataPath("$PROJECT_ROOT") @@ -14686,6 +15812,34 @@ public class FirLightTreeBlackBoxCodegenWithIrFakeOverrideGeneratorTestGenerated } } + @Nested + @TestMetadata("compiler/testData/codegen/box/cycles") + @TestDataPath("$PROJECT_ROOT") + public class Cycles { + @Test + public void testAllFilesPresentInCycles() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cycles"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("cycle.kt") + public void testCycle() { + runTest("compiler/testData/codegen/box/cycles/cycle.kt"); + } + + @Test + @TestMetadata("cycle_do.kt") + public void testCycle_do() { + runTest("compiler/testData/codegen/box/cycles/cycle_do.kt"); + } + + @Test + @TestMetadata("cycle_for.kt") + public void testCycle_for() { + runTest("compiler/testData/codegen/box/cycles/cycle_for.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/dataClasses") @TestDataPath("$PROJECT_ROOT") @@ -15140,6 +16294,28 @@ public class FirLightTreeBlackBoxCodegenWithIrFakeOverrideGeneratorTestGenerated } } + @Nested + @TestMetadata("compiler/testData/codegen/box/dataflow") + @TestDataPath("$PROJECT_ROOT") + public class Dataflow { + @Test + public void testAllFilesPresentInDataflow() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/dataflow"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("scope1.kt") + public void testScope1() { + runTest("compiler/testData/codegen/box/dataflow/scope1.kt"); + } + + @Test + @TestMetadata("uninitialized_val.kt") + public void testUninitialized_val() { + runTest("compiler/testData/codegen/box/dataflow/uninitialized_val.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/deadCodeElimination") @TestDataPath("$PROJECT_ROOT") @@ -15801,6 +16977,12 @@ public class FirLightTreeBlackBoxCodegenWithIrFakeOverrideGeneratorTestGenerated runTest("compiler/testData/codegen/box/delegatedProperty/castSetParameter.kt"); } + @Test + @TestMetadata("correctFieldsOrder.kt") + public void testCorrectFieldsOrder() { + runTest("compiler/testData/codegen/box/delegatedProperty/correctFieldsOrder.kt"); + } + @Test @TestMetadata("delegateAsInnerClass.kt") public void testDelegateAsInnerClass() { @@ -15861,6 +17043,12 @@ public class FirLightTreeBlackBoxCodegenWithIrFakeOverrideGeneratorTestGenerated runTest("compiler/testData/codegen/box/delegatedProperty/delegateWithPrivateSet.kt"); } + @Test + @TestMetadata("delegatedOverride.kt") + public void testDelegatedOverride() { + runTest("compiler/testData/codegen/box/delegatedProperty/delegatedOverride.kt"); + } + @Test @TestMetadata("delegatedPropertyInEnum.kt") public void testDelegatedPropertyInEnum() { @@ -16005,12 +17193,42 @@ public class FirLightTreeBlackBoxCodegenWithIrFakeOverrideGeneratorTestGenerated runTest("compiler/testData/codegen/box/delegatedProperty/kt9712.kt"); } + @Test + @TestMetadata("lazy.kt") + public void testLazy() { + runTest("compiler/testData/codegen/box/delegatedProperty/lazy.kt"); + } + + @Test + @TestMetadata("local.kt") + public void testLocal() { + runTest("compiler/testData/codegen/box/delegatedProperty/local.kt"); + } + + @Test + @TestMetadata("map.kt") + public void testMap() { + runTest("compiler/testData/codegen/box/delegatedProperty/map.kt"); + } + @Test @TestMetadata("noTypeVariablesLeft.kt") public void testNoTypeVariablesLeft() { runTest("compiler/testData/codegen/box/delegatedProperty/noTypeVariablesLeft.kt"); } + @Test + @TestMetadata("observable.kt") + public void testObservable() { + runTest("compiler/testData/codegen/box/delegatedProperty/observable.kt"); + } + + @Test + @TestMetadata("packageLevel.kt") + public void testPackageLevel() { + runTest("compiler/testData/codegen/box/delegatedProperty/packageLevel.kt"); + } + @Test @TestMetadata("privateInSubClass.kt") public void testPrivateInSubClass() { @@ -16071,6 +17289,18 @@ public class FirLightTreeBlackBoxCodegenWithIrFakeOverrideGeneratorTestGenerated runTest("compiler/testData/codegen/box/delegatedProperty/setAsExtensionFunInClass.kt"); } + @Test + @TestMetadata("simpleVal.kt") + public void testSimpleVal() { + runTest("compiler/testData/codegen/box/delegatedProperty/simpleVal.kt"); + } + + @Test + @TestMetadata("simpleVar.kt") + public void testSimpleVar() { + runTest("compiler/testData/codegen/box/delegatedProperty/simpleVar.kt"); + } + @Test @TestMetadata("stackOverflowOnCallFromGetValue.kt") public void testStackOverflowOnCallFromGetValue() { @@ -17040,6 +18270,40 @@ public class FirLightTreeBlackBoxCodegenWithIrFakeOverrideGeneratorTestGenerated } } + @Nested + @TestMetadata("compiler/testData/codegen/box/devirtualization") + @TestDataPath("$PROJECT_ROOT") + public class Devirtualization { + @Test + public void testAllFilesPresentInDevirtualization() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/devirtualization"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("anonymousObject.kt") + public void testAnonymousObject() { + runTest("compiler/testData/codegen/box/devirtualization/anonymousObject.kt"); + } + + @Test + @TestMetadata("getter_looking_as_box_function.kt") + public void testGetter_looking_as_box_function() { + runTest("compiler/testData/codegen/box/devirtualization/getter_looking_as_box_function.kt"); + } + + @Test + @TestMetadata("inline_getter.kt") + public void testInline_getter() { + runTest("compiler/testData/codegen/box/devirtualization/inline_getter.kt"); + } + + @Test + @TestMetadata("lateinitInterface.kt") + public void testLateinitInterface() { + runTest("compiler/testData/codegen/box/devirtualization/lateinitInterface.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/diagnostics") @TestDataPath("$PROJECT_ROOT") @@ -17701,6 +18965,12 @@ public class FirLightTreeBlackBoxCodegenWithIrFakeOverrideGeneratorTestGenerated runTest("compiler/testData/codegen/box/enum/companionAccessingEnumValue.kt"); } + @Test + @TestMetadata("companionObject.kt") + public void testCompanionObject() { + runTest("compiler/testData/codegen/box/enum/companionObject.kt"); + } + @Test @TestMetadata("companionObjectInEnum.kt") public void testCompanionObjectInEnum() { @@ -17887,6 +19157,12 @@ public class FirLightTreeBlackBoxCodegenWithIrFakeOverrideGeneratorTestGenerated runTest("compiler/testData/codegen/box/enum/enumWithLambdaParameter.kt"); } + @Test + @TestMetadata("enum_equals.kt") + public void testEnum_equals() { + runTest("compiler/testData/codegen/box/enum/enum_equals.kt"); + } + @Test @TestMetadata("getEnumEntityByOrdinal.kt") public void testGetEnumEntityByOrdinal() { @@ -17959,6 +19235,18 @@ public class FirLightTreeBlackBoxCodegenWithIrFakeOverrideGeneratorTestGenerated runTest("compiler/testData/codegen/box/enum/innerWithExistingClassObject.kt"); } + @Test + @TestMetadata("interfaceCallNoEntryClass.kt") + public void testInterfaceCallNoEntryClass() { + runTest("compiler/testData/codegen/box/enum/interfaceCallNoEntryClass.kt"); + } + + @Test + @TestMetadata("interfaceCallWithEntryClass.kt") + public void testInterfaceCallWithEntryClass() { + runTest("compiler/testData/codegen/box/enum/interfaceCallWithEntryClass.kt"); + } + @Test @TestMetadata("javaClassWithNestedEnum.kt") public void testJavaClassWithNestedEnum() { @@ -18049,6 +19337,12 @@ public class FirLightTreeBlackBoxCodegenWithIrFakeOverrideGeneratorTestGenerated runTest("compiler/testData/codegen/box/enum/kt2350.kt"); } + @Test + @TestMetadata("kt38540.kt") + public void testKt38540() { + runTest("compiler/testData/codegen/box/enum/kt38540.kt"); + } + @Test @TestMetadata("kt38996.kt") public void testKt38996() { @@ -18145,6 +19439,18 @@ public class FirLightTreeBlackBoxCodegenWithIrFakeOverrideGeneratorTestGenerated runTest("compiler/testData/codegen/box/enum/kt9711_2.kt"); } + @Test + @TestMetadata("lambdaInDefault.kt") + public void testLambdaInDefault() { + runTest("compiler/testData/codegen/box/enum/lambdaInDefault.kt"); + } + + @Test + @TestMetadata("loop.kt") + public void testLoop() { + runTest("compiler/testData/codegen/box/enum/loop.kt"); + } + @Test @TestMetadata("manyDefaultParameters.kt") public void testManyDefaultParameters() { @@ -18157,6 +19463,12 @@ public class FirLightTreeBlackBoxCodegenWithIrFakeOverrideGeneratorTestGenerated runTest("compiler/testData/codegen/box/enum/modifierFlags.kt"); } + @Test + @TestMetadata("multipleModules.kt") + public void testMultipleModules() { + runTest("compiler/testData/codegen/box/enum/multipleModules.kt"); + } + @Test @TestMetadata("nameClashWithCompanion.kt") public void testNameClashWithCompanion() { @@ -18169,12 +19481,24 @@ public class FirLightTreeBlackBoxCodegenWithIrFakeOverrideGeneratorTestGenerated runTest("compiler/testData/codegen/box/enum/nameConflict.kt"); } + @Test + @TestMetadata("nested.kt") + public void testNested() { + runTest("compiler/testData/codegen/box/enum/nested.kt"); + } + @Test @TestMetadata("noClassForSimpleEnum.kt") public void testNoClassForSimpleEnum() { runTest("compiler/testData/codegen/box/enum/noClassForSimpleEnum.kt"); } + @Test + @TestMetadata("openMethodNoOverrides.kt") + public void testOpenMethodNoOverrides() { + runTest("compiler/testData/codegen/box/enum/openMethodNoOverrides.kt"); + } + @Test @TestMetadata("ordinal.kt") public void testOrdinal() { @@ -18205,6 +19529,12 @@ public class FirLightTreeBlackBoxCodegenWithIrFakeOverrideGeneratorTestGenerated runTest("compiler/testData/codegen/box/enum/refToThis.kt"); } + @Test + @TestMetadata("reorderedArguments.kt") + public void testReorderedArguments() { + runTest("compiler/testData/codegen/box/enum/reorderedArguments.kt"); + } + @Test @TestMetadata("simple.kt") public void testSimple() { @@ -18259,18 +19589,66 @@ public class FirLightTreeBlackBoxCodegenWithIrFakeOverrideGeneratorTestGenerated runTest("compiler/testData/codegen/box/enum/superCallInEnumLiteral.kt"); } + @Test + @TestMetadata("switchLowering.kt") + public void testSwitchLowering() { + runTest("compiler/testData/codegen/box/enum/switchLowering.kt"); + } + + @Test + @TestMetadata("test0.kt") + public void testTest0() { + runTest("compiler/testData/codegen/box/enum/test0.kt"); + } + + @Test + @TestMetadata("test1.kt") + public void testTest1() { + runTest("compiler/testData/codegen/box/enum/test1.kt"); + } + @Test @TestMetadata("toString.kt") public void testToString() { runTest("compiler/testData/codegen/box/enum/toString.kt"); } + @Test + @TestMetadata("vCallNoEntryClass.kt") + public void testVCallNoEntryClass() { + runTest("compiler/testData/codegen/box/enum/vCallNoEntryClass.kt"); + } + + @Test + @TestMetadata("vCallWithEntryClass.kt") + public void testVCallWithEntryClass() { + runTest("compiler/testData/codegen/box/enum/vCallWithEntryClass.kt"); + } + + @Test + @TestMetadata("valueOf2.kt") + public void testValueOf2() { + runTest("compiler/testData/codegen/box/enum/valueOf2.kt"); + } + @Test @TestMetadata("valueof.kt") public void testValueof() { runTest("compiler/testData/codegen/box/enum/valueof.kt"); } + @Test + @TestMetadata("values.kt") + public void testValues() { + runTest("compiler/testData/codegen/box/enum/values.kt"); + } + + @Test + @TestMetadata("varargParam.kt") + public void testVarargParam() { + runTest("compiler/testData/codegen/box/enum/varargParam.kt"); + } + @Test @TestMetadata("whenInObject.kt") public void testWhenInObject() { @@ -18346,6 +19724,112 @@ public class FirLightTreeBlackBoxCodegenWithIrFakeOverrideGeneratorTestGenerated } } + @Nested + @TestMetadata("compiler/testData/codegen/box/escapeAnalysis") + @TestDataPath("$PROJECT_ROOT") + public class EscapeAnalysis { + @Test + public void testAllFilesPresentInEscapeAnalysis() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/escapeAnalysis"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("recursion.kt") + public void testRecursion() { + runTest("compiler/testData/codegen/box/escapeAnalysis/recursion.kt"); + } + + @Test + @TestMetadata("stack_array.kt") + public void testStack_array() { + runTest("compiler/testData/codegen/box/escapeAnalysis/stack_array.kt"); + } + + @Test + @TestMetadata("test1.kt") + public void testTest1() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test1.kt"); + } + + @Test + @TestMetadata("test10.kt") + public void testTest10() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test10.kt"); + } + + @Test + @TestMetadata("test11.kt") + public void testTest11() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test11.kt"); + } + + @Test + @TestMetadata("test12.kt") + public void testTest12() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test12.kt"); + } + + @Test + @TestMetadata("test13.kt") + public void testTest13() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test13.kt"); + } + + @Test + @TestMetadata("test2.kt") + public void testTest2() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test2.kt"); + } + + @Test + @TestMetadata("test3.kt") + public void testTest3() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test3.kt"); + } + + @Test + @TestMetadata("test4.kt") + public void testTest4() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test4.kt"); + } + + @Test + @TestMetadata("test5.kt") + public void testTest5() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test5.kt"); + } + + @Test + @TestMetadata("test6.kt") + public void testTest6() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test6.kt"); + } + + @Test + @TestMetadata("test7.kt") + public void testTest7() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test7.kt"); + } + + @Test + @TestMetadata("test8.kt") + public void testTest8() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test8.kt"); + } + + @Test + @TestMetadata("test9.kt") + public void testTest9() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test9.kt"); + } + + @Test + @TestMetadata("zeroOutObjectOnAlloc.kt") + public void testZeroOutObjectOnAlloc() { + runTest("compiler/testData/codegen/box/escapeAnalysis/zeroOutObjectOnAlloc.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/evaluate") @TestDataPath("$PROJECT_ROOT") @@ -18458,6 +19942,58 @@ public class FirLightTreeBlackBoxCodegenWithIrFakeOverrideGeneratorTestGenerated } } + @Nested + @TestMetadata("compiler/testData/codegen/box/exceptions") + @TestDataPath("$PROJECT_ROOT") + public class Exceptions { + @Test + public void testAllFilesPresentInExceptions() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/exceptions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("catch1.kt") + public void testCatch1() { + runTest("compiler/testData/codegen/box/exceptions/catch1.kt"); + } + + @Test + @TestMetadata("catch2.kt") + public void testCatch2() { + runTest("compiler/testData/codegen/box/exceptions/catch2.kt"); + } + + @Test + @TestMetadata("catch7.kt") + public void testCatch7() { + runTest("compiler/testData/codegen/box/exceptions/catch7.kt"); + } + + @Test + @TestMetadata("extend0.kt") + public void testExtend0() { + runTest("compiler/testData/codegen/box/exceptions/extend0.kt"); + } + + @Test + @TestMetadata("rethrow.kt") + public void testRethrow() { + runTest("compiler/testData/codegen/box/exceptions/rethrow.kt"); + } + + @Test + @TestMetadata("throw0.kt") + public void testThrow0() { + runTest("compiler/testData/codegen/box/exceptions/throw0.kt"); + } + + @Test + @TestMetadata("throw_from_catch.kt") + public void testThrow_from_catch() { + runTest("compiler/testData/codegen/box/exceptions/throw_from_catch.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/exclExcl") @TestDataPath("$PROJECT_ROOT") @@ -20351,6 +21887,12 @@ public class FirLightTreeBlackBoxCodegenWithIrFakeOverrideGeneratorTestGenerated runTest("compiler/testData/codegen/box/funInterface/funInterfaceWithReceiver.kt"); } + @Test + @TestMetadata("implIsNotFunction.kt") + public void testImplIsNotFunction() { + runTest("compiler/testData/codegen/box/funInterface/implIsNotFunction.kt"); + } + @Test @TestMetadata("inlinedSamWrapper.kt") public void testInlinedSamWrapper() { @@ -20399,6 +21941,18 @@ public class FirLightTreeBlackBoxCodegenWithIrFakeOverrideGeneratorTestGenerated runTest("compiler/testData/codegen/box/funInterface/kt46908_functionSupertype.kt"); } + @Test + @TestMetadata("kt49384.kt") + public void testKt49384() { + runTest("compiler/testData/codegen/box/funInterface/kt49384.kt"); + } + + @Test + @TestMetadata("kt49384_getSame.kt") + public void testKt49384_getSame() { + runTest("compiler/testData/codegen/box/funInterface/kt49384_getSame.kt"); + } + @Test @TestMetadata("multimodule.kt") public void testMultimodule() { @@ -20417,6 +21971,12 @@ public class FirLightTreeBlackBoxCodegenWithIrFakeOverrideGeneratorTestGenerated runTest("compiler/testData/codegen/box/funInterface/nonAbstractMethod.kt"); } + @Test + @TestMetadata("nonTrivialProjectionInSuperType.kt") + public void testNonTrivialProjectionInSuperType() { + runTest("compiler/testData/codegen/box/funInterface/nonTrivialProjectionInSuperType.kt"); + } + @Test @TestMetadata("nullableSam.kt") public void testNullableSam() { @@ -20506,6 +22066,232 @@ public class FirLightTreeBlackBoxCodegenWithIrFakeOverrideGeneratorTestGenerated } } + @Nested + @TestMetadata("compiler/testData/codegen/box/function") + @TestDataPath("$PROJECT_ROOT") + public class Function { + @Test + public void testAllFilesPresentInFunction() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/function"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("arithmetic.kt") + public void testArithmetic() { + runTest("compiler/testData/codegen/box/function/arithmetic.kt"); + } + + @Test + @TestMetadata("boolean.kt") + public void testBoolean() { + runTest("compiler/testData/codegen/box/function/boolean.kt"); + } + + @Test + @TestMetadata("defaults.kt") + public void testDefaults() { + runTest("compiler/testData/codegen/box/function/defaults.kt"); + } + + @Test + @TestMetadata("defaults1.kt") + public void testDefaults1() { + runTest("compiler/testData/codegen/box/function/defaults1.kt"); + } + + @Test + @TestMetadata("defaults10.kt") + public void testDefaults10() { + runTest("compiler/testData/codegen/box/function/defaults10.kt"); + } + + @Test + @TestMetadata("defaults2.kt") + public void testDefaults2() { + runTest("compiler/testData/codegen/box/function/defaults2.kt"); + } + + @Test + @TestMetadata("defaults3.kt") + public void testDefaults3() { + runTest("compiler/testData/codegen/box/function/defaults3.kt"); + } + + @Test + @TestMetadata("defaults4.kt") + public void testDefaults4() { + runTest("compiler/testData/codegen/box/function/defaults4.kt"); + } + + @Test + @TestMetadata("defaults5.kt") + public void testDefaults5() { + runTest("compiler/testData/codegen/box/function/defaults5.kt"); + } + + @Test + @TestMetadata("defaults6.kt") + public void testDefaults6() { + runTest("compiler/testData/codegen/box/function/defaults6.kt"); + } + + @Test + @TestMetadata("defaults7.kt") + public void testDefaults7() { + runTest("compiler/testData/codegen/box/function/defaults7.kt"); + } + + @Test + @TestMetadata("defaults8.kt") + public void testDefaults8() { + runTest("compiler/testData/codegen/box/function/defaults8.kt"); + } + + @Test + @TestMetadata("defaults9.kt") + public void testDefaults9() { + runTest("compiler/testData/codegen/box/function/defaults9.kt"); + } + + @Test + @TestMetadata("defaultsFromFakeOverride.kt") + public void testDefaultsFromFakeOverride() { + runTest("compiler/testData/codegen/box/function/defaultsFromFakeOverride.kt"); + } + + @Test + @TestMetadata("defaultsWithInlineClasses.kt") + public void testDefaultsWithInlineClasses() { + runTest("compiler/testData/codegen/box/function/defaultsWithInlineClasses.kt"); + } + + @Test + @TestMetadata("defaultsWithVarArg1.kt") + public void testDefaultsWithVarArg1() { + runTest("compiler/testData/codegen/box/function/defaultsWithVarArg1.kt"); + } + + @Test + @TestMetadata("defaultsWithVarArg2.kt") + public void testDefaultsWithVarArg2() { + runTest("compiler/testData/codegen/box/function/defaultsWithVarArg2.kt"); + } + + @Test + @TestMetadata("eqeq.kt") + public void testEqeq() { + runTest("compiler/testData/codegen/box/function/eqeq.kt"); + } + + @Test + @TestMetadata("extension.kt") + public void testExtension() { + runTest("compiler/testData/codegen/box/function/extension.kt"); + } + + @Test + @TestMetadata("intrinsic.kt") + public void testIntrinsic() { + runTest("compiler/testData/codegen/box/function/intrinsic.kt"); + } + + @Test + @TestMetadata("localFunction.kt") + public void testLocalFunction() { + runTest("compiler/testData/codegen/box/function/localFunction.kt"); + } + + @Test + @TestMetadata("localFunction2.kt") + public void testLocalFunction2() { + runTest("compiler/testData/codegen/box/function/localFunction2.kt"); + } + + @Test + @TestMetadata("localFunction3.kt") + public void testLocalFunction3() { + runTest("compiler/testData/codegen/box/function/localFunction3.kt"); + } + + @Test + @TestMetadata("minus_eq.kt") + public void testMinus_eq() { + runTest("compiler/testData/codegen/box/function/minus_eq.kt"); + } + + @Test + @TestMetadata("named.kt") + public void testNamed() { + runTest("compiler/testData/codegen/box/function/named.kt"); + } + + @Test + @TestMetadata("nothingNReturningSafeCall.kt") + public void testNothingNReturningSafeCall() { + runTest("compiler/testData/codegen/box/function/nothingNReturningSafeCall.kt"); + } + + @Test + @TestMetadata("plus_eq.kt") + public void testPlus_eq() { + runTest("compiler/testData/codegen/box/function/plus_eq.kt"); + } + + @Test + @TestMetadata("referenceBigArity.kt") + public void testReferenceBigArity() { + runTest("compiler/testData/codegen/box/function/referenceBigArity.kt"); + } + + @Test + @TestMetadata("sum.kt") + public void testSum() { + runTest("compiler/testData/codegen/box/function/sum.kt"); + } + + @Test + @TestMetadata("sum_3const.kt") + public void testSum_3const() { + runTest("compiler/testData/codegen/box/function/sum_3const.kt"); + } + + @Test + @TestMetadata("sum_foo_bar.kt") + public void testSum_foo_bar() { + runTest("compiler/testData/codegen/box/function/sum_foo_bar.kt"); + } + + @Test + @TestMetadata("sum_func.kt") + public void testSum_func() { + runTest("compiler/testData/codegen/box/function/sum_func.kt"); + } + + @Test + @TestMetadata("sum_imm.kt") + public void testSum_imm() { + runTest("compiler/testData/codegen/box/function/sum_imm.kt"); + } + + @Test + @TestMetadata("sum_mixed.kt") + public void testSum_mixed() { + runTest("compiler/testData/codegen/box/function/sum_mixed.kt"); + } + + @Test + @TestMetadata("sum_silly.kt") + public void testSum_silly() { + runTest("compiler/testData/codegen/box/function/sum_silly.kt"); + } + + @Test + @TestMetadata("unreachableStatementAfterReturn.kt") + public void testUnreachableStatementAfterReturn() { + runTest("compiler/testData/codegen/box/function/unreachableStatementAfterReturn.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/functions") @TestDataPath("$PROJECT_ROOT") @@ -22408,6 +24194,474 @@ public class FirLightTreeBlackBoxCodegenWithIrFakeOverrideGeneratorTestGenerated } } + @Nested + @TestMetadata("compiler/testData/codegen/box/initializers") + @TestDataPath("$PROJECT_ROOT") + public class Initializers { + @Test + public void testAllFilesPresentInInitializers() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/initializers"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("correctOrder1.kt") + public void testCorrectOrder1() { + runTest("compiler/testData/codegen/box/initializers/correctOrder1.kt"); + } + + @Test + @TestMetadata("correctOrder2.kt") + public void testCorrectOrder2() { + runTest("compiler/testData/codegen/box/initializers/correctOrder2.kt"); + } + + @Test + @TestMetadata("initializers0.kt") + public void testInitializers0() { + runTest("compiler/testData/codegen/box/initializers/initializers0.kt"); + } + + @Test + @TestMetadata("initializers1.kt") + public void testInitializers1() { + runTest("compiler/testData/codegen/box/initializers/initializers1.kt"); + } + + @Test + @TestMetadata("initializers2.kt") + public void testInitializers2() { + runTest("compiler/testData/codegen/box/initializers/initializers2.kt"); + } + + @Test + @TestMetadata("initializers3.kt") + public void testInitializers3() { + runTest("compiler/testData/codegen/box/initializers/initializers3.kt"); + } + + @Test + @TestMetadata("initializers4.kt") + public void testInitializers4() { + runTest("compiler/testData/codegen/box/initializers/initializers4.kt"); + } + + @Test + @TestMetadata("initializers5.kt") + public void testInitializers5() { + runTest("compiler/testData/codegen/box/initializers/initializers5.kt"); + } + + @Test + @TestMetadata("initializers7.kt") + public void testInitializers7() { + runTest("compiler/testData/codegen/box/initializers/initializers7.kt"); + } + + @Test + @TestMetadata("initializers8.kt") + public void testInitializers8() { + runTest("compiler/testData/codegen/box/initializers/initializers8.kt"); + } + + @Test + @TestMetadata("multipleModules1.kt") + public void testMultipleModules1() { + runTest("compiler/testData/codegen/box/initializers/multipleModules1.kt"); + } + + @Test + @TestMetadata("object.kt") + public void testObject() { + runTest("compiler/testData/codegen/box/initializers/object.kt"); + } + + @Test + @TestMetadata("sharedVarInInitBlock.kt") + public void testSharedVarInInitBlock() { + runTest("compiler/testData/codegen/box/initializers/sharedVarInInitBlock.kt"); + } + + @Test + @TestMetadata("static_arrays.kt") + public void testStatic_arrays() { + runTest("compiler/testData/codegen/box/initializers/static_arrays.kt"); + } + + @Test + @TestMetadata("static_list.kt") + public void testStatic_list() { + runTest("compiler/testData/codegen/box/initializers/static_list.kt"); + } + + @Test + @TestMetadata("static_smallIntIdentity.kt") + public void testStatic_smallIntIdentity() { + runTest("compiler/testData/codegen/box/initializers/static_smallIntIdentity.kt"); + } + + @Test + @TestMetadata("static_varargChange.kt") + public void testStatic_varargChange() { + runTest("compiler/testData/codegen/box/initializers/static_varargChange.kt"); + } + + @Test + @TestMetadata("throw1.kt") + public void testThrow1() { + runTest("compiler/testData/codegen/box/initializers/throw1.kt"); + } + + @Test + @TestMetadata("throw2.kt") + public void testThrow2() { + runTest("compiler/testData/codegen/box/initializers/throw2.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/initializers/files") + @TestDataPath("$PROJECT_ROOT") + public class Files { + @Test + public void testAllFilesPresentInFiles() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/initializers/files"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("globalInitedAfterAccessingFile.kt") + public void testGlobalInitedAfterAccessingFile() { + runTest("compiler/testData/codegen/box/initializers/files/globalInitedAfterAccessingFile.kt"); + } + + @Test + @TestMetadata("globalNotInitedAfterAccessingClassInternals.kt") + public void testGlobalNotInitedAfterAccessingClassInternals() { + runTest("compiler/testData/codegen/box/initializers/files/globalNotInitedAfterAccessingClassInternals.kt"); + } + + @Test + @TestMetadata("simple.kt") + public void testSimple() { + runTest("compiler/testData/codegen/box/initializers/files/simple.kt"); + } + + @Test + @TestMetadata("simpleMultiModule.kt") + public void testSimpleMultiModule() { + runTest("compiler/testData/codegen/box/initializers/files/simpleMultiModule.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/inline") + @TestDataPath("$PROJECT_ROOT") + public class Inline { + @Test + public void testAllFilesPresentInInline() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inline"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("changingCapturedLocal.kt") + public void testChangingCapturedLocal() { + runTest("compiler/testData/codegen/box/inline/changingCapturedLocal.kt"); + } + + @Test + @TestMetadata("classDeclarationInsideInline.kt") + public void testClassDeclarationInsideInline() { + runTest("compiler/testData/codegen/box/inline/classDeclarationInsideInline.kt"); + } + + @Test + @TestMetadata("coercionToUnit.kt") + public void testCoercionToUnit() { + runTest("compiler/testData/codegen/box/inline/coercionToUnit.kt"); + } + + @Test + @TestMetadata("correctOrderFunctionReference.kt") + public void testCorrectOrderFunctionReference() { + runTest("compiler/testData/codegen/box/inline/correctOrderFunctionReference.kt"); + } + + @Test + @TestMetadata("defaultArgs.kt") + public void testDefaultArgs() { + runTest("compiler/testData/codegen/box/inline/defaultArgs.kt"); + } + + @Test + @TestMetadata("defaultArgsMultipleModules.kt") + public void testDefaultArgsMultipleModules() { + runTest("compiler/testData/codegen/box/inline/defaultArgsMultipleModules.kt"); + } + + @Test + @TestMetadata("genericFunctionReference.kt") + public void testGenericFunctionReference() { + runTest("compiler/testData/codegen/box/inline/genericFunctionReference.kt"); + } + + @Test + @TestMetadata("getClass.kt") + public void testGetClass() { + runTest("compiler/testData/codegen/box/inline/getClass.kt"); + } + + @Test + @TestMetadata("inline0.kt") + public void testInline0() { + runTest("compiler/testData/codegen/box/inline/inline0.kt"); + } + + @Test + @TestMetadata("inline1.kt") + public void testInline1() { + runTest("compiler/testData/codegen/box/inline/inline1.kt"); + } + + @Test + @TestMetadata("inline10.kt") + public void testInline10() { + runTest("compiler/testData/codegen/box/inline/inline10.kt"); + } + + @Test + @TestMetadata("inline11.kt") + public void testInline11() { + runTest("compiler/testData/codegen/box/inline/inline11.kt"); + } + + @Test + @TestMetadata("inline12.kt") + public void testInline12() { + runTest("compiler/testData/codegen/box/inline/inline12.kt"); + } + + @Test + @TestMetadata("inline13.kt") + public void testInline13() { + runTest("compiler/testData/codegen/box/inline/inline13.kt"); + } + + @Test + @TestMetadata("inline14.kt") + public void testInline14() { + runTest("compiler/testData/codegen/box/inline/inline14.kt"); + } + + @Test + @TestMetadata("inline15.kt") + public void testInline15() { + runTest("compiler/testData/codegen/box/inline/inline15.kt"); + } + + @Test + @TestMetadata("inline16.kt") + public void testInline16() { + runTest("compiler/testData/codegen/box/inline/inline16.kt"); + } + + @Test + @TestMetadata("inline17.kt") + public void testInline17() { + runTest("compiler/testData/codegen/box/inline/inline17.kt"); + } + + @Test + @TestMetadata("inline19.kt") + public void testInline19() { + runTest("compiler/testData/codegen/box/inline/inline19.kt"); + } + + @Test + @TestMetadata("inline2.kt") + public void testInline2() { + runTest("compiler/testData/codegen/box/inline/inline2.kt"); + } + + @Test + @TestMetadata("inline20.kt") + public void testInline20() { + runTest("compiler/testData/codegen/box/inline/inline20.kt"); + } + + @Test + @TestMetadata("inline21.kt") + public void testInline21() { + runTest("compiler/testData/codegen/box/inline/inline21.kt"); + } + + @Test + @TestMetadata("inline22.kt") + public void testInline22() { + runTest("compiler/testData/codegen/box/inline/inline22.kt"); + } + + @Test + @TestMetadata("inline23.kt") + public void testInline23() { + runTest("compiler/testData/codegen/box/inline/inline23.kt"); + } + + @Test + @TestMetadata("inline24.kt") + public void testInline24() { + runTest("compiler/testData/codegen/box/inline/inline24.kt"); + } + + @Test + @TestMetadata("inline25.kt") + public void testInline25() { + runTest("compiler/testData/codegen/box/inline/inline25.kt"); + } + + @Test + @TestMetadata("inline26.kt") + public void testInline26() { + runTest("compiler/testData/codegen/box/inline/inline26.kt"); + } + + @Test + @TestMetadata("inline3.kt") + public void testInline3() { + runTest("compiler/testData/codegen/box/inline/inline3.kt"); + } + + @Test + @TestMetadata("inline4.kt") + public void testInline4() { + runTest("compiler/testData/codegen/box/inline/inline4.kt"); + } + + @Test + @TestMetadata("inline5.kt") + public void testInline5() { + runTest("compiler/testData/codegen/box/inline/inline5.kt"); + } + + @Test + @TestMetadata("inline6.kt") + public void testInline6() { + runTest("compiler/testData/codegen/box/inline/inline6.kt"); + } + + @Test + @TestMetadata("inline7.kt") + public void testInline7() { + runTest("compiler/testData/codegen/box/inline/inline7.kt"); + } + + @Test + @TestMetadata("inline8.kt") + public void testInline8() { + runTest("compiler/testData/codegen/box/inline/inline8.kt"); + } + + @Test + @TestMetadata("inline9.kt") + public void testInline9() { + runTest("compiler/testData/codegen/box/inline/inline9.kt"); + } + + @Test + @TestMetadata("inlineCtor.kt") + public void testInlineCtor() { + runTest("compiler/testData/codegen/box/inline/inlineCtor.kt"); + } + + @Test + @TestMetadata("innerInlineFunCapturesOuter.kt") + public void testInnerInlineFunCapturesOuter() { + runTest("compiler/testData/codegen/box/inline/innerInlineFunCapturesOuter.kt"); + } + + @Test + @TestMetadata("lambdaAsAny.kt") + public void testLambdaAsAny() { + runTest("compiler/testData/codegen/box/inline/lambdaAsAny.kt"); + } + + @Test + @TestMetadata("lambdaInDefaultValue.kt") + public void testLambdaInDefaultValue() { + runTest("compiler/testData/codegen/box/inline/lambdaInDefaultValue.kt"); + } + + @Test + @TestMetadata("lateinitProperty.kt") + public void testLateinitProperty() { + runTest("compiler/testData/codegen/box/inline/lateinitProperty.kt"); + } + + @Test + @TestMetadata("localFunctionInInitializerBlock.kt") + public void testLocalFunctionInInitializerBlock() { + runTest("compiler/testData/codegen/box/inline/localFunctionInInitializerBlock.kt"); + } + + @Test + @TestMetadata("localObjectReturnedFromWhen.kt") + public void testLocalObjectReturnedFromWhen() { + runTest("compiler/testData/codegen/box/inline/localObjectReturnedFromWhen.kt"); + } + + @Test + @TestMetadata("propertyAccessorInline.kt") + public void testPropertyAccessorInline() { + runTest("compiler/testData/codegen/box/inline/propertyAccessorInline.kt"); + } + + @Test + @TestMetadata("redundantCoercionsCleaner.kt") + public void testRedundantCoercionsCleaner() { + runTest("compiler/testData/codegen/box/inline/redundantCoercionsCleaner.kt"); + } + + @Test + @TestMetadata("redundantCoercionsCleanerKT48876.kt") + public void testRedundantCoercionsCleanerKT48876() { + runTest("compiler/testData/codegen/box/inline/redundantCoercionsCleanerKT48876.kt"); + } + + @Test + @TestMetadata("redundantCoercionsCleanerKT49356.kt") + public void testRedundantCoercionsCleanerKT49356() { + runTest("compiler/testData/codegen/box/inline/redundantCoercionsCleanerKT49356.kt"); + } + + @Test + @TestMetadata("returnLocalClassFromBlock.kt") + public void testReturnLocalClassFromBlock() { + runTest("compiler/testData/codegen/box/inline/returnLocalClassFromBlock.kt"); + } + + @Test + @TestMetadata("sharedVar.kt") + public void testSharedVar() { + runTest("compiler/testData/codegen/box/inline/sharedVar.kt"); + } + + @Test + @TestMetadata("statementAsLastExprInBlock.kt") + public void testStatementAsLastExprInBlock() { + runTest("compiler/testData/codegen/box/inline/statementAsLastExprInBlock.kt"); + } + + @Test + @TestMetadata("twiceInlinedObject.kt") + public void testTwiceInlinedObject() { + runTest("compiler/testData/codegen/box/inline/twiceInlinedObject.kt"); + } + + @Test + @TestMetadata("typeSubstitutionInFakeOverride.kt") + public void testTypeSubstitutionInFakeOverride() { + runTest("compiler/testData/codegen/box/inline/typeSubstitutionInFakeOverride.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/inlineArgsInPlace") @TestDataPath("$PROJECT_ROOT") @@ -22490,6 +24744,40 @@ public class FirLightTreeBlackBoxCodegenWithIrFakeOverrideGeneratorTestGenerated } } + @Nested + @TestMetadata("compiler/testData/codegen/box/inlineClass") + @TestDataPath("$PROJECT_ROOT") + public class InlineClass { + @Test + public void testAllFilesPresentInInlineClass() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineClass"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("customEquals.kt") + public void testCustomEquals() { + runTest("compiler/testData/codegen/box/inlineClass/customEquals.kt"); + } + + @Test + @TestMetadata("defaultEquals.kt") + public void testDefaultEquals() { + runTest("compiler/testData/codegen/box/inlineClass/defaultEquals.kt"); + } + + @Test + @TestMetadata("nestedInlineClasses.kt") + public void testNestedInlineClasses() { + runTest("compiler/testData/codegen/box/inlineClass/nestedInlineClasses.kt"); + } + + @Test + @TestMetadata("secondaryConstructorWithGenerics.kt") + public void testSecondaryConstructorWithGenerics() { + runTest("compiler/testData/codegen/box/inlineClass/secondaryConstructorWithGenerics.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/inlineClasses") @TestDataPath("$PROJECT_ROOT") @@ -28126,6 +30414,88 @@ public class FirLightTreeBlackBoxCodegenWithIrFakeOverrideGeneratorTestGenerated } } + @Nested + @TestMetadata("compiler/testData/codegen/box/innerClass") + @TestDataPath("$PROJECT_ROOT") + public class InnerClass { + @Test + public void testAllFilesPresentInInnerClass() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/innerClass"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("doubleInner.kt") + public void testDoubleInner() { + runTest("compiler/testData/codegen/box/innerClass/doubleInner.kt"); + } + + @Test + @TestMetadata("generic.kt") + public void testGeneric() { + runTest("compiler/testData/codegen/box/innerClass/generic.kt"); + } + + @Test + @TestMetadata("getOuterVal.kt") + public void testGetOuterVal() { + runTest("compiler/testData/codegen/box/innerClass/getOuterVal.kt"); + } + + @Test + @TestMetadata("inheritanceMultipleModules1.kt") + public void testInheritanceMultipleModules1() { + runTest("compiler/testData/codegen/box/innerClass/inheritanceMultipleModules1.kt"); + } + + @Test + @TestMetadata("inheritanceMultipleModules2.kt") + public void testInheritanceMultipleModules2() { + runTest("compiler/testData/codegen/box/innerClass/inheritanceMultipleModules2.kt"); + } + + @Test + @TestMetadata("inheritanceMultipleModules3.kt") + public void testInheritanceMultipleModules3() { + runTest("compiler/testData/codegen/box/innerClass/inheritanceMultipleModules3.kt"); + } + + @Test + @TestMetadata("multipleModules.kt") + public void testMultipleModules() { + runTest("compiler/testData/codegen/box/innerClass/multipleModules.kt"); + } + + @Test + @TestMetadata("noPrimaryConstructor.kt") + public void testNoPrimaryConstructor() { + runTest("compiler/testData/codegen/box/innerClass/noPrimaryConstructor.kt"); + } + + @Test + @TestMetadata("qualifiedThis.kt") + public void testQualifiedThis() { + runTest("compiler/testData/codegen/box/innerClass/qualifiedThis.kt"); + } + + @Test + @TestMetadata("secondaryConstructor.kt") + public void testSecondaryConstructor() { + runTest("compiler/testData/codegen/box/innerClass/secondaryConstructor.kt"); + } + + @Test + @TestMetadata("simple.kt") + public void testSimple() { + runTest("compiler/testData/codegen/box/innerClass/simple.kt"); + } + + @Test + @TestMetadata("superOuter.kt") + public void testSuperOuter() { + runTest("compiler/testData/codegen/box/innerClass/superOuter.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/innerNested") @TestDataPath("$PROJECT_ROOT") @@ -28526,6 +30896,40 @@ public class FirLightTreeBlackBoxCodegenWithIrFakeOverrideGeneratorTestGenerated } } + @Nested + @TestMetadata("compiler/testData/codegen/box/interfaceCallsNCasts") + @TestDataPath("$PROJECT_ROOT") + public class InterfaceCallsNCasts { + @Test + public void testAllFilesPresentInInterfaceCallsNCasts() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/interfaceCallsNCasts"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("conservativeItable.kt") + public void testConservativeItable() { + runTest("compiler/testData/codegen/box/interfaceCallsNCasts/conservativeItable.kt"); + } + + @Test + @TestMetadata("diamond.kt") + public void testDiamond() { + runTest("compiler/testData/codegen/box/interfaceCallsNCasts/diamond.kt"); + } + + @Test + @TestMetadata("finalMethod.kt") + public void testFinalMethod() { + runTest("compiler/testData/codegen/box/interfaceCallsNCasts/finalMethod.kt"); + } + + @Test + @TestMetadata("interface0.kt") + public void testInterface0() { + runTest("compiler/testData/codegen/box/interfaceCallsNCasts/interface0.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/intrinsics") @TestDataPath("$PROJECT_ROOT") @@ -33676,6 +36080,80 @@ public class FirLightTreeBlackBoxCodegenWithIrFakeOverrideGeneratorTestGenerated } } + @Nested + @TestMetadata("compiler/testData/codegen/box/kclass") + @TestDataPath("$PROJECT_ROOT") + public class Kclass { + @Test + public void testAllFilesPresentInKclass() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/kclass"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("kClassEnumArgument.kt") + public void testKClassEnumArgument() { + runTest("compiler/testData/codegen/box/kclass/kClassEnumArgument.kt"); + } + + @Test + @TestMetadata("kclass1.kt") + public void testKclass1() { + runTest("compiler/testData/codegen/box/kclass/kclass1.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/ktype") + @TestDataPath("$PROJECT_ROOT") + public class Ktype { + @Test + public void testAllFilesPresentInKtype() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ktype"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("ktype1_basics1.kt") + public void testKtype1_basics1() { + runTest("compiler/testData/codegen/box/ktype/ktype1_basics1.kt"); + } + + @Test + @TestMetadata("ktype1_inner.kt") + public void testKtype1_inner() { + runTest("compiler/testData/codegen/box/ktype/ktype1_inner.kt"); + } + + @Test + @TestMetadata("nonReified_class.kt") + public void testNonReified_class() { + runTest("compiler/testData/codegen/box/ktype/nonReified_class.kt"); + } + + @Test + @TestMetadata("nonReified_equality.kt") + public void testNonReified_equality() { + runTest("compiler/testData/codegen/box/ktype/nonReified_equality.kt"); + } + + @Test + @TestMetadata("nonReified_fun.kt") + public void testNonReified_fun() { + runTest("compiler/testData/codegen/box/ktype/nonReified_fun.kt"); + } + + @Test + @TestMetadata("nonReified_recursionInReified.kt") + public void testNonReified_recursionInReified() { + runTest("compiler/testData/codegen/box/ktype/nonReified_recursionInReified.kt"); + } + + @Test + @TestMetadata("nonReified_reifiedUpperBound.kt") + public void testNonReified_reifiedUpperBound() { + runTest("compiler/testData/codegen/box/ktype/nonReified_reifiedUpperBound.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/labels") @TestDataPath("$PROJECT_ROOT") @@ -33734,6 +36212,188 @@ public class FirLightTreeBlackBoxCodegenWithIrFakeOverrideGeneratorTestGenerated } } + @Nested + @TestMetadata("compiler/testData/codegen/box/lambda") + @TestDataPath("$PROJECT_ROOT") + public class Lambda { + @Test + public void testAllFilesPresentInLambda() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/lambda"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("lambda1.kt") + public void testLambda1() { + runTest("compiler/testData/codegen/box/lambda/lambda1.kt"); + } + + @Test + @TestMetadata("lambda10.kt") + public void testLambda10() { + runTest("compiler/testData/codegen/box/lambda/lambda10.kt"); + } + + @Test + @TestMetadata("lambda11.kt") + public void testLambda11() { + runTest("compiler/testData/codegen/box/lambda/lambda11.kt"); + } + + @Test + @TestMetadata("lambda12.kt") + public void testLambda12() { + runTest("compiler/testData/codegen/box/lambda/lambda12.kt"); + } + + @Test + @TestMetadata("lambda13.kt") + public void testLambda13() { + runTest("compiler/testData/codegen/box/lambda/lambda13.kt"); + } + + @Test + @TestMetadata("lambda14.kt") + public void testLambda14() { + runTest("compiler/testData/codegen/box/lambda/lambda14.kt"); + } + + @Test + @TestMetadata("lambda2.kt") + public void testLambda2() { + runTest("compiler/testData/codegen/box/lambda/lambda2.kt"); + } + + @Test + @TestMetadata("lambda3.kt") + public void testLambda3() { + runTest("compiler/testData/codegen/box/lambda/lambda3.kt"); + } + + @Test + @TestMetadata("lambda4.kt") + public void testLambda4() { + runTest("compiler/testData/codegen/box/lambda/lambda4.kt"); + } + + @Test + @TestMetadata("lambda5.kt") + public void testLambda5() { + runTest("compiler/testData/codegen/box/lambda/lambda5.kt"); + } + + @Test + @TestMetadata("lambda6.kt") + public void testLambda6() { + runTest("compiler/testData/codegen/box/lambda/lambda6.kt"); + } + + @Test + @TestMetadata("lambda7.kt") + public void testLambda7() { + runTest("compiler/testData/codegen/box/lambda/lambda7.kt"); + } + + @Test + @TestMetadata("lambda8.kt") + public void testLambda8() { + runTest("compiler/testData/codegen/box/lambda/lambda8.kt"); + } + + @Test + @TestMetadata("lambda9.kt") + public void testLambda9() { + runTest("compiler/testData/codegen/box/lambda/lambda9.kt"); + } + + @Test + @TestMetadata("lambda_kt49360_trivial.kt") + public void testLambda_kt49360_trivial() { + runTest("compiler/testData/codegen/box/lambda/lambda_kt49360_trivial.kt"); + } + + @Test + @TestMetadata("lambda_kt49360_withFlow.kt") + public void testLambda_kt49360_withFlow() { + runTest("compiler/testData/codegen/box/lambda/lambda_kt49360_withFlow.kt"); + } + + @Test + @TestMetadata("lambda_kt49360_wrapBlock.kt") + public void testLambda_kt49360_wrapBlock() { + runTest("compiler/testData/codegen/box/lambda/lambda_kt49360_wrapBlock.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/lateinit") + @TestDataPath("$PROJECT_ROOT") + public class Lateinit { + @Test + public void testAllFilesPresentInLateinit() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/lateinit"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("globalIsInitialized.kt") + public void testGlobalIsInitialized() { + runTest("compiler/testData/codegen/box/lateinit/globalIsInitialized.kt"); + } + + @Test + @TestMetadata("inBaseClass.kt") + public void testInBaseClass() { + runTest("compiler/testData/codegen/box/lateinit/inBaseClass.kt"); + } + + @Test + @TestMetadata("initialized.kt") + public void testInitialized() { + runTest("compiler/testData/codegen/box/lateinit/initialized.kt"); + } + + @Test + @TestMetadata("innerIsInitialized.kt") + public void testInnerIsInitialized() { + runTest("compiler/testData/codegen/box/lateinit/innerIsInitialized.kt"); + } + + @Test + @TestMetadata("isInitialized.kt") + public void testIsInitialized() { + runTest("compiler/testData/codegen/box/lateinit/isInitialized.kt"); + } + + @Test + @TestMetadata("localCapturedInitialized.kt") + public void testLocalCapturedInitialized() { + runTest("compiler/testData/codegen/box/lateinit/localCapturedInitialized.kt"); + } + + @Test + @TestMetadata("localCapturedNotInitialized.kt") + public void testLocalCapturedNotInitialized() { + runTest("compiler/testData/codegen/box/lateinit/localCapturedNotInitialized.kt"); + } + + @Test + @TestMetadata("localInitialized.kt") + public void testLocalInitialized() { + runTest("compiler/testData/codegen/box/lateinit/localInitialized.kt"); + } + + @Test + @TestMetadata("localNotInitialized.kt") + public void testLocalNotInitialized() { + runTest("compiler/testData/codegen/box/lateinit/localNotInitialized.kt"); + } + + @Test + @TestMetadata("notInitialized.kt") + public void testNotInitialized() { + runTest("compiler/testData/codegen/box/lateinit/notInitialized.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/lazyCodegen") @TestDataPath("$PROJECT_ROOT") @@ -33862,6 +36522,98 @@ public class FirLightTreeBlackBoxCodegenWithIrFakeOverrideGeneratorTestGenerated } } + @Nested + @TestMetadata("compiler/testData/codegen/box/literals") + @TestDataPath("$PROJECT_ROOT") + public class Literals { + @Test + public void testAllFilesPresentInLiterals() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/literals"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("listof1.kt") + public void testListof1() { + runTest("compiler/testData/codegen/box/literals/listof1.kt"); + } + + @Test + @TestMetadata("strdedup1.kt") + public void testStrdedup1() { + runTest("compiler/testData/codegen/box/literals/strdedup1.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/localClass") + @TestDataPath("$PROJECT_ROOT") + public class LocalClass { + @Test + public void testAllFilesPresentInLocalClass() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/localClass"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("innerTakesCapturedFromOuter.kt") + public void testInnerTakesCapturedFromOuter() { + runTest("compiler/testData/codegen/box/localClass/innerTakesCapturedFromOuter.kt"); + } + + @Test + @TestMetadata("innerWithCapture.kt") + public void testInnerWithCapture() { + runTest("compiler/testData/codegen/box/localClass/innerWithCapture.kt"); + } + + @Test + @TestMetadata("localFunctionCallFromLocalClass.kt") + public void testLocalFunctionCallFromLocalClass() { + runTest("compiler/testData/codegen/box/localClass/localFunctionCallFromLocalClass.kt"); + } + + @Test + @TestMetadata("localFunctionInLocalClass.kt") + public void testLocalFunctionInLocalClass() { + runTest("compiler/testData/codegen/box/localClass/localFunctionInLocalClass.kt"); + } + + @Test + @TestMetadata("localHierarchy.kt") + public void testLocalHierarchy() { + runTest("compiler/testData/codegen/box/localClass/localHierarchy.kt"); + } + + @Test + @TestMetadata("noPrimaryConstructor.kt") + public void testNoPrimaryConstructor() { + runTest("compiler/testData/codegen/box/localClass/noPrimaryConstructor.kt"); + } + + @Test + @TestMetadata("objectExpressionInInitializer.kt") + public void testObjectExpressionInInitializer() { + runTest("compiler/testData/codegen/box/localClass/objectExpressionInInitializer.kt"); + } + + @Test + @TestMetadata("objectExpressionInProperty.kt") + public void testObjectExpressionInProperty() { + runTest("compiler/testData/codegen/box/localClass/objectExpressionInProperty.kt"); + } + + @Test + @TestMetadata("tryCatch.kt") + public void testTryCatch() { + runTest("compiler/testData/codegen/box/localClass/tryCatch.kt"); + } + + @Test + @TestMetadata("virtualCallFromConstructor.kt") + public void testVirtualCallFromConstructor() { + runTest("compiler/testData/codegen/box/localClass/virtualCallFromConstructor.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/localClasses") @TestDataPath("$PROJECT_ROOT") @@ -34112,6 +36864,38 @@ public class FirLightTreeBlackBoxCodegenWithIrFakeOverrideGeneratorTestGenerated } } + @Nested + @TestMetadata("compiler/testData/codegen/box/localEscapeAnalysis") + @TestDataPath("$PROJECT_ROOT") + public class LocalEscapeAnalysis { + @Test + public void testAllFilesPresentInLocalEscapeAnalysis() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/localEscapeAnalysis"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("arraysFieldWrite.kt") + public void testArraysFieldWrite() { + runTest("compiler/testData/codegen/box/localEscapeAnalysis/arraysFieldWrite.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/lower") + @TestDataPath("$PROJECT_ROOT") + public class Lower { + @Test + public void testAllFilesPresentInLower() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/lower"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("localDelegatedProperty.kt") + public void testLocalDelegatedProperty() { + runTest("compiler/testData/codegen/box/lower/localDelegatedProperty.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/mangling") @TestDataPath("$PROJECT_ROOT") @@ -34151,6 +36935,12 @@ public class FirLightTreeBlackBoxCodegenWithIrFakeOverrideGeneratorTestGenerated runTest("compiler/testData/codegen/box/mangling/internalOverrideSuperCall.kt"); } + @Test + @TestMetadata("multipleConstructors.kt") + public void testMultipleConstructors() { + runTest("compiler/testData/codegen/box/mangling/multipleConstructors.kt"); + } + @Test @TestMetadata("noOverrideWithJava.kt") public void testNoOverrideWithJava() { @@ -36182,6 +38972,98 @@ public class FirLightTreeBlackBoxCodegenWithIrFakeOverrideGeneratorTestGenerated } } + @Nested + @TestMetadata("compiler/testData/codegen/box/object") + @TestDataPath("$PROJECT_ROOT") + public class Object { + @Test + public void testAllFilesPresentInObject() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/object"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("constructor0.kt") + public void testConstructor0() { + runTest("compiler/testData/codegen/box/object/constructor0.kt"); + } + + @Test + @TestMetadata("fields.kt") + public void testFields() { + runTest("compiler/testData/codegen/box/object/fields.kt"); + } + + @Test + @TestMetadata("fields1.kt") + public void testFields1() { + runTest("compiler/testData/codegen/box/object/fields1.kt"); + } + + @Test + @TestMetadata("fields2.kt") + public void testFields2() { + runTest("compiler/testData/codegen/box/object/fields2.kt"); + } + + @Test + @TestMetadata("globalInitializer.kt") + public void testGlobalInitializer() { + runTest("compiler/testData/codegen/box/object/globalInitializer.kt"); + } + + @Test + @TestMetadata("init0.kt") + public void testInit0() { + runTest("compiler/testData/codegen/box/object/init0.kt"); + } + + @Test + @TestMetadata("initialization.kt") + public void testInitialization() { + runTest("compiler/testData/codegen/box/object/initialization.kt"); + } + + @Test + @TestMetadata("initialization1.kt") + public void testInitialization1() { + runTest("compiler/testData/codegen/box/object/initialization1.kt"); + } + + @Test + @TestMetadata("method_call.kt") + public void testMethod_call() { + runTest("compiler/testData/codegen/box/object/method_call.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/objectExpression") + @TestDataPath("$PROJECT_ROOT") + public class ObjectExpression { + @Test + public void testAllFilesPresentInObjectExpression() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/objectExpression"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("expr1.kt") + public void testExpr1() { + runTest("compiler/testData/codegen/box/objectExpression/expr1.kt"); + } + + @Test + @TestMetadata("expr2.kt") + public void testExpr2() { + runTest("compiler/testData/codegen/box/objectExpression/expr2.kt"); + } + + @Test + @TestMetadata("expr3.kt") + public void testExpr3() { + runTest("compiler/testData/codegen/box/objectExpression/expr3.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/objectIntrinsics") @TestDataPath("$PROJECT_ROOT") @@ -39478,6 +42360,64 @@ public class FirLightTreeBlackBoxCodegenWithIrFakeOverrideGeneratorTestGenerated } } + @Nested + @TestMetadata("compiler/testData/codegen/box/propertyCallableReference") + @TestDataPath("$PROJECT_ROOT") + public class PropertyCallableReference { + @Test + public void testAllFilesPresentInPropertyCallableReference() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/propertyCallableReference"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("dynamicReceiver.kt") + public void testDynamicReceiver() { + runTest("compiler/testData/codegen/box/propertyCallableReference/dynamicReceiver.kt"); + } + + @Test + @TestMetadata("multipleModules.kt") + public void testMultipleModules() { + runTest("compiler/testData/codegen/box/propertyCallableReference/multipleModules.kt"); + } + + @Test + @TestMetadata("valClass.kt") + public void testValClass() { + runTest("compiler/testData/codegen/box/propertyCallableReference/valClass.kt"); + } + + @Test + @TestMetadata("valExtension.kt") + public void testValExtension() { + runTest("compiler/testData/codegen/box/propertyCallableReference/valExtension.kt"); + } + + @Test + @TestMetadata("valModule.kt") + public void testValModule() { + runTest("compiler/testData/codegen/box/propertyCallableReference/valModule.kt"); + } + + @Test + @TestMetadata("varClass.kt") + public void testVarClass() { + runTest("compiler/testData/codegen/box/propertyCallableReference/varClass.kt"); + } + + @Test + @TestMetadata("varExtension.kt") + public void testVarExtension() { + runTest("compiler/testData/codegen/box/propertyCallableReference/varExtension.kt"); + } + + @Test + @TestMetadata("varModule.kt") + public void testVarModule() { + runTest("compiler/testData/codegen/box/propertyCallableReference/varModule.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/publishedApi") @TestDataPath("$PROJECT_ROOT") @@ -51666,6 +54606,58 @@ public class FirLightTreeBlackBoxCodegenWithIrFakeOverrideGeneratorTestGenerated } } + @Nested + @TestMetadata("compiler/testData/codegen/box/serialization") + @TestDataPath("$PROJECT_ROOT") + public class Serialization { + @Test + public void testAllFilesPresentInSerialization() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/serialization"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("deserializedMembers.kt") + public void testDeserializedMembers() { + runTest("compiler/testData/codegen/box/serialization/deserializedMembers.kt"); + } + + @Test + @TestMetadata("serializedCatch.kt") + public void testSerializedCatch() { + runTest("compiler/testData/codegen/box/serialization/serializedCatch.kt"); + } + + @Test + @TestMetadata("serializedCharConstant.kt") + public void testSerializedCharConstant() { + runTest("compiler/testData/codegen/box/serialization/serializedCharConstant.kt"); + } + + @Test + @TestMetadata("serializedDefaultArgs.kt") + public void testSerializedDefaultArgs() { + runTest("compiler/testData/codegen/box/serialization/serializedDefaultArgs.kt"); + } + + @Test + @TestMetadata("serializedDoWhile.kt") + public void testSerializedDoWhile() { + runTest("compiler/testData/codegen/box/serialization/serializedDoWhile.kt"); + } + + @Test + @TestMetadata("serializedEnumOrdinal.kt") + public void testSerializedEnumOrdinal() { + runTest("compiler/testData/codegen/box/serialization/serializedEnumOrdinal.kt"); + } + + @Test + @TestMetadata("serializedVararg.kt") + public void testSerializedVararg() { + runTest("compiler/testData/codegen/box/serialization/serializedVararg.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/size") @TestDataPath("$PROJECT_ROOT") @@ -52338,6 +55330,22 @@ public class FirLightTreeBlackBoxCodegenWithIrFakeOverrideGeneratorTestGenerated } } + @Nested + @TestMetadata("compiler/testData/codegen/box/stringTrim") + @TestDataPath("$PROJECT_ROOT") + public class StringTrim { + @Test + public void testAllFilesPresentInStringTrim() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/stringTrim"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("stringTrim.kt") + public void testStringTrim() { + runTest("compiler/testData/codegen/box/stringTrim/stringTrim.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/strings") @TestDataPath("$PROJECT_ROOT") @@ -53866,6 +56874,142 @@ public class FirLightTreeBlackBoxCodegenWithIrFakeOverrideGeneratorTestGenerated } } + @Nested + @TestMetadata("compiler/testData/codegen/box/try") + @TestDataPath("$PROJECT_ROOT") + public class Try { + @Test + public void testAllFilesPresentInTry() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/try"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("catch3.kt") + public void testCatch3() { + runTest("compiler/testData/codegen/box/try/catch3.kt"); + } + + @Test + @TestMetadata("catch4.kt") + public void testCatch4() { + runTest("compiler/testData/codegen/box/try/catch4.kt"); + } + + @Test + @TestMetadata("catch5.kt") + public void testCatch5() { + runTest("compiler/testData/codegen/box/try/catch5.kt"); + } + + @Test + @TestMetadata("catch6.kt") + public void testCatch6() { + runTest("compiler/testData/codegen/box/try/catch6.kt"); + } + + @Test + @TestMetadata("catch8.kt") + public void testCatch8() { + runTest("compiler/testData/codegen/box/try/catch8.kt"); + } + + @Test + @TestMetadata("finally1.kt") + public void testFinally1() { + runTest("compiler/testData/codegen/box/try/finally1.kt"); + } + + @Test + @TestMetadata("finally10.kt") + public void testFinally10() { + runTest("compiler/testData/codegen/box/try/finally10.kt"); + } + + @Test + @TestMetadata("finally11.kt") + public void testFinally11() { + runTest("compiler/testData/codegen/box/try/finally11.kt"); + } + + @Test + @TestMetadata("finally2.kt") + public void testFinally2() { + runTest("compiler/testData/codegen/box/try/finally2.kt"); + } + + @Test + @TestMetadata("finally3.kt") + public void testFinally3() { + runTest("compiler/testData/codegen/box/try/finally3.kt"); + } + + @Test + @TestMetadata("finally4.kt") + public void testFinally4() { + runTest("compiler/testData/codegen/box/try/finally4.kt"); + } + + @Test + @TestMetadata("finally5.kt") + public void testFinally5() { + runTest("compiler/testData/codegen/box/try/finally5.kt"); + } + + @Test + @TestMetadata("finally6.kt") + public void testFinally6() { + runTest("compiler/testData/codegen/box/try/finally6.kt"); + } + + @Test + @TestMetadata("finally7.kt") + public void testFinally7() { + runTest("compiler/testData/codegen/box/try/finally7.kt"); + } + + @Test + @TestMetadata("finally8.kt") + public void testFinally8() { + runTest("compiler/testData/codegen/box/try/finally8.kt"); + } + + @Test + @TestMetadata("finally9.kt") + public void testFinally9() { + runTest("compiler/testData/codegen/box/try/finally9.kt"); + } + + @Test + @TestMetadata("returnsDifferentTypes.kt") + public void testReturnsDifferentTypes() { + runTest("compiler/testData/codegen/box/try/returnsDifferentTypes.kt"); + } + + @Test + @TestMetadata("try1.kt") + public void testTry1() { + runTest("compiler/testData/codegen/box/try/try1.kt"); + } + + @Test + @TestMetadata("try2.kt") + public void testTry2() { + runTest("compiler/testData/codegen/box/try/try2.kt"); + } + + @Test + @TestMetadata("try3.kt") + public void testTry3() { + runTest("compiler/testData/codegen/box/try/try3.kt"); + } + + @Test + @TestMetadata("try4.kt") + public void testTry4() { + runTest("compiler/testData/codegen/box/try/try4.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/typeInfo") @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 731938baf18..06625a6b9c3 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 @@ -107,6 +107,12 @@ public class FirPsiBlackBoxCodegenTestGenerated extends AbstractFirPsiBlackBoxCo runTest("compiler/testData/codegen/box/annotations/annotationWithVarargAsDefaultValue.kt"); } + @Test + @TestMetadata("annotations0.kt") + public void testAnnotations0() { + runTest("compiler/testData/codegen/box/annotations/annotations0.kt"); + } + @Test @TestMetadata("annotationsOnDefault.kt") public void testAnnotationsOnDefault() { @@ -936,6 +942,82 @@ public class FirPsiBlackBoxCodegenTestGenerated extends AbstractFirPsiBlackBoxCo } } + @Nested + @TestMetadata("compiler/testData/codegen/box/arithmetic") + @TestDataPath("$PROJECT_ROOT") + public class Arithmetic { + @Test + public void testAllFilesPresentInArithmetic() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/arithmetic"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("basic_charConversions.kt") + public void testBasic_charConversions() { + runTest("compiler/testData/codegen/box/arithmetic/basic_charConversions.kt"); + } + + @Test + @TestMetadata("basic_charCornerCases.kt") + public void testBasic_charCornerCases() { + runTest("compiler/testData/codegen/box/arithmetic/basic_charCornerCases.kt"); + } + + @Test + @TestMetadata("basic_compareIntToFloat.kt") + public void testBasic_compareIntToFloat() { + runTest("compiler/testData/codegen/box/arithmetic/basic_compareIntToFloat.kt"); + } + + @Test + @TestMetadata("basic_doubleBasic.kt") + public void testBasic_doubleBasic() { + runTest("compiler/testData/codegen/box/arithmetic/basic_doubleBasic.kt"); + } + + @Test + @TestMetadata("basic_integralToFloat.kt") + public void testBasic_integralToFloat() { + runTest("compiler/testData/codegen/box/arithmetic/basic_integralToFloat.kt"); + } + + @Test + @TestMetadata("basic_kt37412.kt") + public void testBasic_kt37412() { + runTest("compiler/testData/codegen/box/arithmetic/basic_kt37412.kt"); + } + + @Test + @TestMetadata("basic_selfComparison.kt") + public void testBasic_selfComparison() { + runTest("compiler/testData/codegen/box/arithmetic/basic_selfComparison.kt"); + } + + @Test + @TestMetadata("basic_shifts.kt") + public void testBasic_shifts() { + runTest("compiler/testData/codegen/box/arithmetic/basic_shifts.kt"); + } + + @Test + @TestMetadata("basic_uintTests.kt") + public void testBasic_uintTests() { + runTest("compiler/testData/codegen/box/arithmetic/basic_uintTests.kt"); + } + + @Test + @TestMetadata("division.kt") + public void testDivision() { + runTest("compiler/testData/codegen/box/arithmetic/division.kt"); + } + + @Test + @TestMetadata("github1856.kt") + public void testGithub1856() { + runTest("compiler/testData/codegen/box/arithmetic/github1856.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/arrays") @TestDataPath("$PROJECT_ROOT") @@ -1788,6 +1870,302 @@ public class FirPsiBlackBoxCodegenTestGenerated extends AbstractFirPsiBlackBoxCo } } + @Nested + @TestMetadata("compiler/testData/codegen/box/basics") + @TestDataPath("$PROJECT_ROOT") + public class Basics { + @Test + public void testAllFilesPresentInBasics() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/basics"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("array_to_any.kt") + public void testArray_to_any() { + runTest("compiler/testData/codegen/box/basics/array_to_any.kt"); + } + + @Test + @TestMetadata("canonical_name.kt") + public void testCanonical_name() { + runTest("compiler/testData/codegen/box/basics/canonical_name.kt"); + } + + @Test + @TestMetadata("cast_null.kt") + public void testCast_null() { + runTest("compiler/testData/codegen/box/basics/cast_null.kt"); + } + + @Test + @TestMetadata("cast_simple.kt") + public void testCast_simple() { + runTest("compiler/testData/codegen/box/basics/cast_simple.kt"); + } + + @Test + @TestMetadata("check_type.kt") + public void testCheck_type() { + runTest("compiler/testData/codegen/box/basics/check_type.kt"); + } + + @Test + @TestMetadata("companion.kt") + public void testCompanion() { + runTest("compiler/testData/codegen/box/basics/companion.kt"); + } + + @Test + @TestMetadata("concatenation.kt") + public void testConcatenation() { + runTest("compiler/testData/codegen/box/basics/concatenation.kt"); + } + + @Test + @TestMetadata("const_infinity.kt") + public void testConst_infinity() { + runTest("compiler/testData/codegen/box/basics/const_infinity.kt"); + } + + @Test + @TestMetadata("expression_as_statement.kt") + public void testExpression_as_statement() { + runTest("compiler/testData/codegen/box/basics/expression_as_statement.kt"); + } + + @Test + @TestMetadata("k42000_1.kt") + public void testK42000_1() { + runTest("compiler/testData/codegen/box/basics/k42000_1.kt"); + } + + @Test + @TestMetadata("k42000_2.kt") + public void testK42000_2() { + runTest("compiler/testData/codegen/box/basics/k42000_2.kt"); + } + + @Test + @TestMetadata("local_variable.kt") + public void testLocal_variable() { + runTest("compiler/testData/codegen/box/basics/local_variable.kt"); + } + + @Test + @TestMetadata("null_check.kt") + public void testNull_check() { + runTest("compiler/testData/codegen/box/basics/null_check.kt"); + } + + @Test + @TestMetadata("safe_cast.kt") + public void testSafe_cast() { + runTest("compiler/testData/codegen/box/basics/safe_cast.kt"); + } + + @Test + @TestMetadata("spread_operator_0.kt") + public void testSpread_operator_0() { + runTest("compiler/testData/codegen/box/basics/spread_operator_0.kt"); + } + + @Test + @TestMetadata("statements0.kt") + public void testStatements0() { + runTest("compiler/testData/codegen/box/basics/statements0.kt"); + } + + @Test + @TestMetadata("superFunCall.kt") + public void testSuperFunCall() { + runTest("compiler/testData/codegen/box/basics/superFunCall.kt"); + } + + @Test + @TestMetadata("superGetterCall.kt") + public void testSuperGetterCall() { + runTest("compiler/testData/codegen/box/basics/superGetterCall.kt"); + } + + @Test + @TestMetadata("superSetterCall.kt") + public void testSuperSetterCall() { + runTest("compiler/testData/codegen/box/basics/superSetterCall.kt"); + } + + @Test + @TestMetadata("typealias1.kt") + public void testTypealias1() { + runTest("compiler/testData/codegen/box/basics/typealias1.kt"); + } + + @Test + @TestMetadata("unchecked_cast1.kt") + public void testUnchecked_cast1() { + runTest("compiler/testData/codegen/box/basics/unchecked_cast1.kt"); + } + + @Test + @TestMetadata("unchecked_cast2.kt") + public void testUnchecked_cast2() { + runTest("compiler/testData/codegen/box/basics/unchecked_cast2.kt"); + } + + @Test + @TestMetadata("unchecked_cast3.kt") + public void testUnchecked_cast3() { + runTest("compiler/testData/codegen/box/basics/unchecked_cast3.kt"); + } + + @Test + @TestMetadata("unchecked_cast4.kt") + public void testUnchecked_cast4() { + runTest("compiler/testData/codegen/box/basics/unchecked_cast4.kt"); + } + + @Test + @TestMetadata("unit1.kt") + public void testUnit1() { + runTest("compiler/testData/codegen/box/basics/unit1.kt"); + } + + @Test + @TestMetadata("unit2.kt") + public void testUnit2() { + runTest("compiler/testData/codegen/box/basics/unit2.kt"); + } + + @Test + @TestMetadata("unit3.kt") + public void testUnit3() { + runTest("compiler/testData/codegen/box/basics/unit3.kt"); + } + + @Test + @TestMetadata("unit4.kt") + public void testUnit4() { + runTest("compiler/testData/codegen/box/basics/unit4.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/bce") + @TestDataPath("$PROJECT_ROOT") + public class Bce { + @Test + public void testAllFilesPresentInBce() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/bce"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("bceCases.kt") + public void testBceCases() { + runTest("compiler/testData/codegen/box/bce/bceCases.kt"); + } + + @Test + @TestMetadata("customGetter.kt") + public void testCustomGetter() { + runTest("compiler/testData/codegen/box/bce/customGetter.kt"); + } + + @Test + @TestMetadata("delegatedProperty.kt") + public void testDelegatedProperty() { + runTest("compiler/testData/codegen/box/bce/delegatedProperty.kt"); + } + + @Test + @TestMetadata("differentArrays.kt") + public void testDifferentArrays() { + runTest("compiler/testData/codegen/box/bce/differentArrays.kt"); + } + + @Test + @TestMetadata("differentObjects.kt") + public void testDifferentObjects() { + runTest("compiler/testData/codegen/box/bce/differentObjects.kt"); + } + + @Test + @TestMetadata("forDownToSize.kt") + public void testForDownToSize() { + runTest("compiler/testData/codegen/box/bce/forDownToSize.kt"); + } + + @Test + @TestMetadata("forDownToWithStep.kt") + public void testForDownToWithStep() { + runTest("compiler/testData/codegen/box/bce/forDownToWithStep.kt"); + } + + @Test + @TestMetadata("forEachIndexedTest.kt") + public void testForEachIndexedTest() { + runTest("compiler/testData/codegen/box/bce/forEachIndexedTest.kt"); + } + + @Test + @TestMetadata("forEachIndicies.kt") + public void testForEachIndicies() { + runTest("compiler/testData/codegen/box/bce/forEachIndicies.kt"); + } + + @Test + @TestMetadata("forIndiciesWithStep.kt") + public void testForIndiciesWithStep() { + runTest("compiler/testData/codegen/box/bce/forIndiciesWithStep.kt"); + } + + @Test + @TestMetadata("forRangeToSize.kt") + public void testForRangeToSize() { + runTest("compiler/testData/codegen/box/bce/forRangeToSize.kt"); + } + + @Test + @TestMetadata("forRangeToWithStep.kt") + public void testForRangeToWithStep() { + runTest("compiler/testData/codegen/box/bce/forRangeToWithStep.kt"); + } + + @Test + @TestMetadata("forReversed.kt") + public void testForReversed() { + runTest("compiler/testData/codegen/box/bce/forReversed.kt"); + } + + @Test + @TestMetadata("forUntilSize.kt") + public void testForUntilSize() { + runTest("compiler/testData/codegen/box/bce/forUntilSize.kt"); + } + + @Test + @TestMetadata("forUntilWithStep.kt") + public void testForUntilWithStep() { + runTest("compiler/testData/codegen/box/bce/forUntilWithStep.kt"); + } + + @Test + @TestMetadata("forWithIndex.kt") + public void testForWithIndex() { + runTest("compiler/testData/codegen/box/bce/forWithIndex.kt"); + } + + @Test + @TestMetadata("inheritance.kt") + public void testInheritance() { + runTest("compiler/testData/codegen/box/bce/inheritance.kt"); + } + + @Test + @TestMetadata("withGetter.kt") + public void testWithGetter() { + runTest("compiler/testData/codegen/box/bce/withGetter.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/binaryOp") @TestDataPath("$PROJECT_ROOT") @@ -1984,6 +2362,124 @@ public class FirPsiBlackBoxCodegenTestGenerated extends AbstractFirPsiBlackBoxCo } } + @Nested + @TestMetadata("compiler/testData/codegen/box/boxing") + @TestDataPath("$PROJECT_ROOT") + public class Boxing { + @Test + public void testAllFilesPresentInBoxing() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/boxing"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("box_cache0.kt") + public void testBox_cache0() { + runTest("compiler/testData/codegen/box/boxing/box_cache0.kt"); + } + + @Test + @TestMetadata("boxing0.kt") + public void testBoxing0() { + runTest("compiler/testData/codegen/box/boxing/boxing0.kt"); + } + + @Test + @TestMetadata("boxing1.kt") + public void testBoxing1() { + runTest("compiler/testData/codegen/box/boxing/boxing1.kt"); + } + + @Test + @TestMetadata("boxing10.kt") + public void testBoxing10() { + runTest("compiler/testData/codegen/box/boxing/boxing10.kt"); + } + + @Test + @TestMetadata("boxing11.kt") + public void testBoxing11() { + runTest("compiler/testData/codegen/box/boxing/boxing11.kt"); + } + + @Test + @TestMetadata("boxing12.kt") + public void testBoxing12() { + runTest("compiler/testData/codegen/box/boxing/boxing12.kt"); + } + + @Test + @TestMetadata("boxing13.kt") + public void testBoxing13() { + runTest("compiler/testData/codegen/box/boxing/boxing13.kt"); + } + + @Test + @TestMetadata("boxing14.kt") + public void testBoxing14() { + runTest("compiler/testData/codegen/box/boxing/boxing14.kt"); + } + + @Test + @TestMetadata("boxing15.kt") + public void testBoxing15() { + runTest("compiler/testData/codegen/box/boxing/boxing15.kt"); + } + + @Test + @TestMetadata("boxing2.kt") + public void testBoxing2() { + runTest("compiler/testData/codegen/box/boxing/boxing2.kt"); + } + + @Test + @TestMetadata("boxing3.kt") + public void testBoxing3() { + runTest("compiler/testData/codegen/box/boxing/boxing3.kt"); + } + + @Test + @TestMetadata("boxing4.kt") + public void testBoxing4() { + runTest("compiler/testData/codegen/box/boxing/boxing4.kt"); + } + + @Test + @TestMetadata("boxing5.kt") + public void testBoxing5() { + runTest("compiler/testData/codegen/box/boxing/boxing5.kt"); + } + + @Test + @TestMetadata("boxing6.kt") + public void testBoxing6() { + runTest("compiler/testData/codegen/box/boxing/boxing6.kt"); + } + + @Test + @TestMetadata("boxing7.kt") + public void testBoxing7() { + runTest("compiler/testData/codegen/box/boxing/boxing7.kt"); + } + + @Test + @TestMetadata("boxing8.kt") + public void testBoxing8() { + runTest("compiler/testData/codegen/box/boxing/boxing8.kt"); + } + + @Test + @TestMetadata("boxing9.kt") + public void testBoxing9() { + runTest("compiler/testData/codegen/box/boxing/boxing9.kt"); + } + + @Test + @TestMetadata("kt53100_casts.kt") + public void testKt53100_casts() { + runTest("compiler/testData/codegen/box/boxing/kt53100_casts.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/boxingOptimization") @TestDataPath("$PROJECT_ROOT") @@ -2264,6 +2760,88 @@ public class FirPsiBlackBoxCodegenTestGenerated extends AbstractFirPsiBlackBoxCo } } + @Nested + @TestMetadata("compiler/testData/codegen/box/branching") + @TestDataPath("$PROJECT_ROOT") + public class Branching { + @Test + @TestMetadata("advanced_when2.kt") + public void testAdvanced_when2() { + runTest("compiler/testData/codegen/box/branching/advanced_when2.kt"); + } + + @Test + @TestMetadata("advanced_when5.kt") + public void testAdvanced_when5() { + runTest("compiler/testData/codegen/box/branching/advanced_when5.kt"); + } + + @Test + public void testAllFilesPresentInBranching() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/branching"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("if_else.kt") + public void testIf_else() { + runTest("compiler/testData/codegen/box/branching/if_else.kt"); + } + + @Test + @TestMetadata("when2.kt") + public void testWhen2() { + runTest("compiler/testData/codegen/box/branching/when2.kt"); + } + + @Test + @TestMetadata("when4.kt") + public void testWhen4() { + runTest("compiler/testData/codegen/box/branching/when4.kt"); + } + + @Test + @TestMetadata("when5.kt") + public void testWhen5() { + runTest("compiler/testData/codegen/box/branching/when5.kt"); + } + + @Test + @TestMetadata("when6.kt") + public void testWhen6() { + runTest("compiler/testData/codegen/box/branching/when6.kt"); + } + + @Test + @TestMetadata("when7.kt") + public void testWhen7() { + runTest("compiler/testData/codegen/box/branching/when7.kt"); + } + + @Test + @TestMetadata("when8.kt") + public void testWhen8() { + runTest("compiler/testData/codegen/box/branching/when8.kt"); + } + + @Test + @TestMetadata("when9.kt") + public void testWhen9() { + runTest("compiler/testData/codegen/box/branching/when9.kt"); + } + + @Test + @TestMetadata("when_through.kt") + public void testWhen_through() { + runTest("compiler/testData/codegen/box/branching/when_through.kt"); + } + + @Test + @TestMetadata("when_with_try1.kt") + public void testWhen_with_try1() { + runTest("compiler/testData/codegen/box/branching/when_with_try1.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/bridges") @TestDataPath("$PROJECT_ROOT") @@ -2525,6 +3103,18 @@ public class FirPsiBlackBoxCodegenTestGenerated extends AbstractFirPsiBlackBoxCo runTest("compiler/testData/codegen/box/bridges/methodWithDefaultParameter.kt"); } + @Test + @TestMetadata("multipleModules1.kt") + public void testMultipleModules1() { + runTest("compiler/testData/codegen/box/bridges/multipleModules1.kt"); + } + + @Test + @TestMetadata("multipleModules2.kt") + public void testMultipleModules2() { + runTest("compiler/testData/codegen/box/bridges/multipleModules2.kt"); + } + @Test @TestMetadata("nestedClassTypeParameters.kt") public void testNestedClassTypeParameters() { @@ -2591,6 +3181,12 @@ public class FirPsiBlackBoxCodegenTestGenerated extends AbstractFirPsiBlackBoxCo runTest("compiler/testData/codegen/box/bridges/propertySetter.kt"); } + @Test + @TestMetadata("returnTypeSignature.kt") + public void testReturnTypeSignature() { + runTest("compiler/testData/codegen/box/bridges/returnTypeSignature.kt"); + } + @Test @TestMetadata("simple.kt") public void testSimple() { @@ -2633,6 +3229,18 @@ public class FirPsiBlackBoxCodegenTestGenerated extends AbstractFirPsiBlackBoxCo runTest("compiler/testData/codegen/box/bridges/simpleUpperBound.kt"); } + @Test + @TestMetadata("special.kt") + public void testSpecial() { + runTest("compiler/testData/codegen/box/bridges/special.kt"); + } + + @Test + @TestMetadata("specialGeneric.kt") + public void testSpecialGeneric() { + runTest("compiler/testData/codegen/box/bridges/specialGeneric.kt"); + } + @Test @TestMetadata("strListContains.kt") public void testStrListContains() { @@ -2645,6 +3253,120 @@ public class FirPsiBlackBoxCodegenTestGenerated extends AbstractFirPsiBlackBoxCo runTest("compiler/testData/codegen/box/bridges/strListRemove.kt"); } + @Test + @TestMetadata("test0.kt") + public void testTest0() { + runTest("compiler/testData/codegen/box/bridges/test0.kt"); + } + + @Test + @TestMetadata("test1.kt") + public void testTest1() { + runTest("compiler/testData/codegen/box/bridges/test1.kt"); + } + + @Test + @TestMetadata("test10.kt") + public void testTest10() { + runTest("compiler/testData/codegen/box/bridges/test10.kt"); + } + + @Test + @TestMetadata("test11.kt") + public void testTest11() { + runTest("compiler/testData/codegen/box/bridges/test11.kt"); + } + + @Test + @TestMetadata("test12.kt") + public void testTest12() { + runTest("compiler/testData/codegen/box/bridges/test12.kt"); + } + + @Test + @TestMetadata("test13.kt") + public void testTest13() { + runTest("compiler/testData/codegen/box/bridges/test13.kt"); + } + + @Test + @TestMetadata("test14.kt") + public void testTest14() { + runTest("compiler/testData/codegen/box/bridges/test14.kt"); + } + + @Test + @TestMetadata("test15.kt") + public void testTest15() { + runTest("compiler/testData/codegen/box/bridges/test15.kt"); + } + + @Test + @TestMetadata("test16.kt") + public void testTest16() { + runTest("compiler/testData/codegen/box/bridges/test16.kt"); + } + + @Test + @TestMetadata("test17.kt") + public void testTest17() { + runTest("compiler/testData/codegen/box/bridges/test17.kt"); + } + + @Test + @TestMetadata("test18.kt") + public void testTest18() { + runTest("compiler/testData/codegen/box/bridges/test18.kt"); + } + + @Test + @TestMetadata("test2.kt") + public void testTest2() { + runTest("compiler/testData/codegen/box/bridges/test2.kt"); + } + + @Test + @TestMetadata("test3.kt") + public void testTest3() { + runTest("compiler/testData/codegen/box/bridges/test3.kt"); + } + + @Test + @TestMetadata("test4.kt") + public void testTest4() { + runTest("compiler/testData/codegen/box/bridges/test4.kt"); + } + + @Test + @TestMetadata("test5.kt") + public void testTest5() { + runTest("compiler/testData/codegen/box/bridges/test5.kt"); + } + + @Test + @TestMetadata("test6.kt") + public void testTest6() { + runTest("compiler/testData/codegen/box/bridges/test6.kt"); + } + + @Test + @TestMetadata("test7.kt") + public void testTest7() { + runTest("compiler/testData/codegen/box/bridges/test7.kt"); + } + + @Test + @TestMetadata("test8.kt") + public void testTest8() { + runTest("compiler/testData/codegen/box/bridges/test8.kt"); + } + + @Test + @TestMetadata("test9.kt") + public void testTest9() { + runTest("compiler/testData/codegen/box/bridges/test9.kt"); + } + @Test @TestMetadata("traitImplInheritsTraitImpl.kt") public void testTraitImplInheritsTraitImpl() { @@ -6324,6 +7046,46 @@ public class FirPsiBlackBoxCodegenTestGenerated extends AbstractFirPsiBlackBoxCo } } + @Nested + @TestMetadata("compiler/testData/codegen/box/classDelegation") + @TestDataPath("$PROJECT_ROOT") + public class ClassDelegation { + @Test + public void testAllFilesPresentInClassDelegation() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/classDelegation"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("generic.kt") + public void testGeneric() { + runTest("compiler/testData/codegen/box/classDelegation/generic.kt"); + } + + @Test + @TestMetadata("method.kt") + public void testMethod() { + runTest("compiler/testData/codegen/box/classDelegation/method.kt"); + } + + @Test + @TestMetadata("multipleModules.kt") + public void testMultipleModules() { + runTest("compiler/testData/codegen/box/classDelegation/multipleModules.kt"); + } + + @Test + @TestMetadata("property.kt") + public void testProperty() { + runTest("compiler/testData/codegen/box/classDelegation/property.kt"); + } + + @Test + @TestMetadata("withBridge.kt") + public void testWithBridge() { + runTest("compiler/testData/codegen/box/classDelegation/withBridge.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/classLiteral") @TestDataPath("$PROJECT_ROOT") @@ -9551,6 +10313,12 @@ public class FirPsiBlackBoxCodegenTestGenerated extends AbstractFirPsiBlackBoxCo runTest("compiler/testData/codegen/box/contracts/constructorArgument.kt"); } + @Test + @TestMetadata("contractForCast.kt") + public void testContractForCast() { + runTest("compiler/testData/codegen/box/contracts/contractForCast.kt"); + } + @Test @TestMetadata("destructuredVariable.kt") public void testDestructuredVariable() { @@ -9593,6 +10361,12 @@ public class FirPsiBlackBoxCodegenTestGenerated extends AbstractFirPsiBlackBoxCo runTest("compiler/testData/codegen/box/contracts/functionParameter.kt"); } + @Test + @TestMetadata("isNullString.kt") + public void testIsNullString() { + runTest("compiler/testData/codegen/box/contracts/isNullString.kt"); + } + @Test @TestMetadata("kt39374.kt") public void testKt39374() { @@ -9635,6 +10409,24 @@ public class FirPsiBlackBoxCodegenTestGenerated extends AbstractFirPsiBlackBoxCo runTest("compiler/testData/codegen/box/contracts/nestedLambdaInNonInlineCallExactlyOnce.kt"); } + @Test + @TestMetadata("nonNullSmartCast.kt") + public void testNonNullSmartCast() { + runTest("compiler/testData/codegen/box/contracts/nonNullSmartCast.kt"); + } + + @Test + @TestMetadata("require.kt") + public void testRequire() { + runTest("compiler/testData/codegen/box/contracts/require.kt"); + } + + @Test + @TestMetadata("runLambdaForVal.kt") + public void testRunLambdaForVal() { + runTest("compiler/testData/codegen/box/contracts/runLambdaForVal.kt"); + } + @Test @TestMetadata("valInWhen.kt") public void testValInWhen() { @@ -11082,6 +11874,124 @@ public class FirPsiBlackBoxCodegenTestGenerated extends AbstractFirPsiBlackBoxCo } } + @Nested + @TestMetadata("compiler/testData/codegen/box/controlflow") + @TestDataPath("$PROJECT_ROOT") + public class Controlflow { + @Test + public void testAllFilesPresentInControlflow() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/controlflow"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("break.kt") + public void testBreak() { + runTest("compiler/testData/codegen/box/controlflow/break.kt"); + } + + @Test + @TestMetadata("break1.kt") + public void testBreak1() { + runTest("compiler/testData/codegen/box/controlflow/break1.kt"); + } + + @Test + @TestMetadata("for_loops.kt") + public void testFor_loops() { + runTest("compiler/testData/codegen/box/controlflow/for_loops.kt"); + } + + @Test + @TestMetadata("for_loops_array_break_continue.kt") + public void testFor_loops_array_break_continue() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_array_break_continue.kt"); + } + + @Test + @TestMetadata("for_loops_array_indices.kt") + public void testFor_loops_array_indices() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_array_indices.kt"); + } + + @Test + @TestMetadata("for_loops_array_mutation.kt") + public void testFor_loops_array_mutation() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_array_mutation.kt"); + } + + @Test + @TestMetadata("for_loops_array_nested.kt") + public void testFor_loops_array_nested() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_array_nested.kt"); + } + + @Test + @TestMetadata("for_loops_array_nullable.kt") + public void testFor_loops_array_nullable() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_array_nullable.kt"); + } + + @Test + @TestMetadata("for_loops_array_side_effects.kt") + public void testFor_loops_array_side_effects() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_array_side_effects.kt"); + } + + @Test + @TestMetadata("for_loops_call_order.kt") + public void testFor_loops_call_order() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_call_order.kt"); + } + + @Test + @TestMetadata("for_loops_coroutines.kt") + public void testFor_loops_coroutines() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_coroutines.kt"); + } + + @Test + @TestMetadata("for_loops_empty_range.kt") + public void testFor_loops_empty_range() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_empty_range.kt"); + } + + @Test + @TestMetadata("for_loops_errors.kt") + public void testFor_loops_errors() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_errors.kt"); + } + + @Test + @TestMetadata("for_loops_let_with_nullable.kt") + public void testFor_loops_let_with_nullable() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_let_with_nullable.kt"); + } + + @Test + @TestMetadata("for_loops_nested.kt") + public void testFor_loops_nested() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_nested.kt"); + } + + @Test + @TestMetadata("for_loops_overflow.kt") + public void testFor_loops_overflow() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_overflow.kt"); + } + + @Test + @TestMetadata("for_loops_types.kt") + public void testFor_loops_types() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_types.kt"); + } + + @Test + @TestMetadata("unreachable1.kt") + public void testUnreachable1() { + runTest("compiler/testData/codegen/box/controlflow/unreachable1.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/coroutines") @TestDataPath("$PROJECT_ROOT") @@ -11103,6 +12013,12 @@ public class FirPsiBlackBoxCodegenTestGenerated extends AbstractFirPsiBlackBoxCo KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test + @TestMetadata("anonymousObject.kt") + public void testAnonymousObject() { + runTest("compiler/testData/codegen/box/coroutines/anonymousObject.kt"); + } + @Test @TestMetadata("async.kt") public void testAsync() { @@ -11199,12 +12115,144 @@ public class FirPsiBlackBoxCodegenTestGenerated extends AbstractFirPsiBlackBoxCo runTest("compiler/testData/codegen/box/coroutines/coercionToUnit.kt"); } + @Test + @TestMetadata("controlFlow_chain.kt") + public void testControlFlow_chain() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_chain.kt"); + } + + @Test + @TestMetadata("controlFlow_finally1.kt") + public void testControlFlow_finally1() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally1.kt"); + } + + @Test + @TestMetadata("controlFlow_finally2.kt") + public void testControlFlow_finally2() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally2.kt"); + } + + @Test + @TestMetadata("controlFlow_finally3.kt") + public void testControlFlow_finally3() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally3.kt"); + } + + @Test + @TestMetadata("controlFlow_finally4.kt") + public void testControlFlow_finally4() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally4.kt"); + } + + @Test + @TestMetadata("controlFlow_finally5.kt") + public void testControlFlow_finally5() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally5.kt"); + } + + @Test + @TestMetadata("controlFlow_finally6.kt") + public void testControlFlow_finally6() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally6.kt"); + } + + @Test + @TestMetadata("controlFlow_finally7.kt") + public void testControlFlow_finally7() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally7.kt"); + } + + @Test + @TestMetadata("controlFlow_if1.kt") + public void testControlFlow_if1() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_if1.kt"); + } + + @Test + @TestMetadata("controlFlow_if2.kt") + public void testControlFlow_if2() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_if2.kt"); + } + + @Test + @TestMetadata("controlFlow_inline1.kt") + public void testControlFlow_inline1() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_inline1.kt"); + } + + @Test + @TestMetadata("controlFlow_inline2.kt") + public void testControlFlow_inline2() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_inline2.kt"); + } + + @Test + @TestMetadata("controlFlow_inline3.kt") + public void testControlFlow_inline3() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_inline3.kt"); + } + + @Test + @TestMetadata("controlFlow_tryCatch1.kt") + public void testControlFlow_tryCatch1() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_tryCatch1.kt"); + } + + @Test + @TestMetadata("controlFlow_tryCatch2.kt") + public void testControlFlow_tryCatch2() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_tryCatch2.kt"); + } + + @Test + @TestMetadata("controlFlow_tryCatch3.kt") + public void testControlFlow_tryCatch3() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_tryCatch3.kt"); + } + + @Test + @TestMetadata("controlFlow_tryCatch4.kt") + public void testControlFlow_tryCatch4() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_tryCatch4.kt"); + } + + @Test + @TestMetadata("controlFlow_tryCatch5.kt") + public void testControlFlow_tryCatch5() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_tryCatch5.kt"); + } + + @Test + @TestMetadata("controlFlow_while1.kt") + public void testControlFlow_while1() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_while1.kt"); + } + + @Test + @TestMetadata("controlFlow_while2.kt") + public void testControlFlow_while2() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_while2.kt"); + } + @Test @TestMetadata("controllerAccessFromInnerLambda.kt") public void testControllerAccessFromInnerLambda() { runTest("compiler/testData/codegen/box/coroutines/controllerAccessFromInnerLambda.kt"); } + @Test + @TestMetadata("coroutineContext1.kt") + public void testCoroutineContext1() { + runTest("compiler/testData/codegen/box/coroutines/coroutineContext1.kt"); + } + + @Test + @TestMetadata("coroutineContext2.kt") + public void testCoroutineContext2() { + runTest("compiler/testData/codegen/box/coroutines/coroutineContext2.kt"); + } + @Test @TestMetadata("coroutineContextInInlinedLambda.kt") public void testCoroutineContextInInlinedLambda() { @@ -11217,6 +12265,12 @@ public class FirPsiBlackBoxCodegenTestGenerated extends AbstractFirPsiBlackBoxCo runTest("compiler/testData/codegen/box/coroutines/coroutineToString.kt"); } + @Test + @TestMetadata("correctOrder1.kt") + public void testCorrectOrder1() { + runTest("compiler/testData/codegen/box/coroutines/correctOrder1.kt"); + } + @Test @TestMetadata("createCoroutineSafe.kt") public void testCreateCoroutineSafe() { @@ -11253,6 +12307,18 @@ public class FirPsiBlackBoxCodegenTestGenerated extends AbstractFirPsiBlackBoxCo runTest("compiler/testData/codegen/box/coroutines/defaultParametersInSuspendWithJvmOverloads.kt"); } + @Test + @TestMetadata("degenerate1.kt") + public void testDegenerate1() { + runTest("compiler/testData/codegen/box/coroutines/degenerate1.kt"); + } + + @Test + @TestMetadata("degenerate2.kt") + public void testDegenerate2() { + runTest("compiler/testData/codegen/box/coroutines/degenerate2.kt"); + } + @Test @TestMetadata("delegatedSuspendMember.kt") public void testDelegatedSuspendMember() { @@ -11301,6 +12367,30 @@ public class FirPsiBlackBoxCodegenTestGenerated extends AbstractFirPsiBlackBoxCo runTest("compiler/testData/codegen/box/coroutines/falseUnitCoercion.kt"); } + @Test + @TestMetadata("functionReference_eqeq_name.kt") + public void testFunctionReference_eqeq_name() { + runTest("compiler/testData/codegen/box/coroutines/functionReference_eqeq_name.kt"); + } + + @Test + @TestMetadata("functionReference_invokeAsFunction.kt") + public void testFunctionReference_invokeAsFunction() { + runTest("compiler/testData/codegen/box/coroutines/functionReference_invokeAsFunction.kt"); + } + + @Test + @TestMetadata("functionReference_lambdaAsSuspendLambda.kt") + public void testFunctionReference_lambdaAsSuspendLambda() { + runTest("compiler/testData/codegen/box/coroutines/functionReference_lambdaAsSuspendLambda.kt"); + } + + @Test + @TestMetadata("functionReference_simple.kt") + public void testFunctionReference_simple() { + runTest("compiler/testData/codegen/box/coroutines/functionReference_simple.kt"); + } + @Test @TestMetadata("generate.kt") public void testGenerate() { @@ -11511,6 +12601,12 @@ public class FirPsiBlackBoxCodegenTestGenerated extends AbstractFirPsiBlackBoxCo runTest("compiler/testData/codegen/box/coroutines/kt38099.kt"); } + @Test + @TestMetadata("kt41394.kt") + public void testKt41394() { + runTest("compiler/testData/codegen/box/coroutines/kt41394.kt"); + } + @Test @TestMetadata("kt42028.kt") public void testKt42028() { @@ -11757,12 +12853,30 @@ public class FirPsiBlackBoxCodegenTestGenerated extends AbstractFirPsiBlackBoxCo runTest("compiler/testData/codegen/box/coroutines/returnByLabel.kt"); } + @Test + @TestMetadata("returnsNothing1.kt") + public void testReturnsNothing1() { + runTest("compiler/testData/codegen/box/coroutines/returnsNothing1.kt"); + } + + @Test + @TestMetadata("returnsUnit1.kt") + public void testReturnsUnit1() { + runTest("compiler/testData/codegen/box/coroutines/returnsUnit1.kt"); + } + @Test @TestMetadata("simple.kt") public void testSimple() { runTest("compiler/testData/codegen/box/coroutines/simple.kt"); } + @Test + @TestMetadata("simple2.kt") + public void testSimple2() { + runTest("compiler/testData/codegen/box/coroutines/simple2.kt"); + } + @Test @TestMetadata("simpleException.kt") public void testSimpleException() { @@ -11811,6 +12925,12 @@ public class FirPsiBlackBoxCodegenTestGenerated extends AbstractFirPsiBlackBoxCo runTest("compiler/testData/codegen/box/coroutines/suspendCallsInArguments.kt"); } + @Test + @TestMetadata("suspendConversion.kt") + public void testSuspendConversion() { + runTest("compiler/testData/codegen/box/coroutines/suspendConversion.kt"); + } + @Test @TestMetadata("suspendCoroutineFromStateMachine.kt") public void testSuspendCoroutineFromStateMachine() { @@ -12003,6 +13123,12 @@ public class FirPsiBlackBoxCodegenTestGenerated extends AbstractFirPsiBlackBoxCo runTest("compiler/testData/codegen/box/coroutines/varargCallFromSuspend.kt"); } + @Test + @TestMetadata("withReceiver.kt") + public void testWithReceiver() { + runTest("compiler/testData/codegen/box/coroutines/withReceiver.kt"); + } + @Nested @TestMetadata("compiler/testData/codegen/box/coroutines/bridges") @TestDataPath("$PROJECT_ROOT") @@ -14686,6 +15812,34 @@ public class FirPsiBlackBoxCodegenTestGenerated extends AbstractFirPsiBlackBoxCo } } + @Nested + @TestMetadata("compiler/testData/codegen/box/cycles") + @TestDataPath("$PROJECT_ROOT") + public class Cycles { + @Test + public void testAllFilesPresentInCycles() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cycles"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("cycle.kt") + public void testCycle() { + runTest("compiler/testData/codegen/box/cycles/cycle.kt"); + } + + @Test + @TestMetadata("cycle_do.kt") + public void testCycle_do() { + runTest("compiler/testData/codegen/box/cycles/cycle_do.kt"); + } + + @Test + @TestMetadata("cycle_for.kt") + public void testCycle_for() { + runTest("compiler/testData/codegen/box/cycles/cycle_for.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/dataClasses") @TestDataPath("$PROJECT_ROOT") @@ -15140,6 +16294,28 @@ public class FirPsiBlackBoxCodegenTestGenerated extends AbstractFirPsiBlackBoxCo } } + @Nested + @TestMetadata("compiler/testData/codegen/box/dataflow") + @TestDataPath("$PROJECT_ROOT") + public class Dataflow { + @Test + public void testAllFilesPresentInDataflow() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/dataflow"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("scope1.kt") + public void testScope1() { + runTest("compiler/testData/codegen/box/dataflow/scope1.kt"); + } + + @Test + @TestMetadata("uninitialized_val.kt") + public void testUninitialized_val() { + runTest("compiler/testData/codegen/box/dataflow/uninitialized_val.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/deadCodeElimination") @TestDataPath("$PROJECT_ROOT") @@ -15801,6 +16977,12 @@ public class FirPsiBlackBoxCodegenTestGenerated extends AbstractFirPsiBlackBoxCo runTest("compiler/testData/codegen/box/delegatedProperty/castSetParameter.kt"); } + @Test + @TestMetadata("correctFieldsOrder.kt") + public void testCorrectFieldsOrder() { + runTest("compiler/testData/codegen/box/delegatedProperty/correctFieldsOrder.kt"); + } + @Test @TestMetadata("delegateAsInnerClass.kt") public void testDelegateAsInnerClass() { @@ -15861,6 +17043,12 @@ public class FirPsiBlackBoxCodegenTestGenerated extends AbstractFirPsiBlackBoxCo runTest("compiler/testData/codegen/box/delegatedProperty/delegateWithPrivateSet.kt"); } + @Test + @TestMetadata("delegatedOverride.kt") + public void testDelegatedOverride() { + runTest("compiler/testData/codegen/box/delegatedProperty/delegatedOverride.kt"); + } + @Test @TestMetadata("delegatedPropertyInEnum.kt") public void testDelegatedPropertyInEnum() { @@ -16005,12 +17193,42 @@ public class FirPsiBlackBoxCodegenTestGenerated extends AbstractFirPsiBlackBoxCo runTest("compiler/testData/codegen/box/delegatedProperty/kt9712.kt"); } + @Test + @TestMetadata("lazy.kt") + public void testLazy() { + runTest("compiler/testData/codegen/box/delegatedProperty/lazy.kt"); + } + + @Test + @TestMetadata("local.kt") + public void testLocal() { + runTest("compiler/testData/codegen/box/delegatedProperty/local.kt"); + } + + @Test + @TestMetadata("map.kt") + public void testMap() { + runTest("compiler/testData/codegen/box/delegatedProperty/map.kt"); + } + @Test @TestMetadata("noTypeVariablesLeft.kt") public void testNoTypeVariablesLeft() { runTest("compiler/testData/codegen/box/delegatedProperty/noTypeVariablesLeft.kt"); } + @Test + @TestMetadata("observable.kt") + public void testObservable() { + runTest("compiler/testData/codegen/box/delegatedProperty/observable.kt"); + } + + @Test + @TestMetadata("packageLevel.kt") + public void testPackageLevel() { + runTest("compiler/testData/codegen/box/delegatedProperty/packageLevel.kt"); + } + @Test @TestMetadata("privateInSubClass.kt") public void testPrivateInSubClass() { @@ -16071,6 +17289,18 @@ public class FirPsiBlackBoxCodegenTestGenerated extends AbstractFirPsiBlackBoxCo runTest("compiler/testData/codegen/box/delegatedProperty/setAsExtensionFunInClass.kt"); } + @Test + @TestMetadata("simpleVal.kt") + public void testSimpleVal() { + runTest("compiler/testData/codegen/box/delegatedProperty/simpleVal.kt"); + } + + @Test + @TestMetadata("simpleVar.kt") + public void testSimpleVar() { + runTest("compiler/testData/codegen/box/delegatedProperty/simpleVar.kt"); + } + @Test @TestMetadata("stackOverflowOnCallFromGetValue.kt") public void testStackOverflowOnCallFromGetValue() { @@ -17040,6 +18270,40 @@ public class FirPsiBlackBoxCodegenTestGenerated extends AbstractFirPsiBlackBoxCo } } + @Nested + @TestMetadata("compiler/testData/codegen/box/devirtualization") + @TestDataPath("$PROJECT_ROOT") + public class Devirtualization { + @Test + public void testAllFilesPresentInDevirtualization() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/devirtualization"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("anonymousObject.kt") + public void testAnonymousObject() { + runTest("compiler/testData/codegen/box/devirtualization/anonymousObject.kt"); + } + + @Test + @TestMetadata("getter_looking_as_box_function.kt") + public void testGetter_looking_as_box_function() { + runTest("compiler/testData/codegen/box/devirtualization/getter_looking_as_box_function.kt"); + } + + @Test + @TestMetadata("inline_getter.kt") + public void testInline_getter() { + runTest("compiler/testData/codegen/box/devirtualization/inline_getter.kt"); + } + + @Test + @TestMetadata("lateinitInterface.kt") + public void testLateinitInterface() { + runTest("compiler/testData/codegen/box/devirtualization/lateinitInterface.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/diagnostics") @TestDataPath("$PROJECT_ROOT") @@ -17701,6 +18965,12 @@ public class FirPsiBlackBoxCodegenTestGenerated extends AbstractFirPsiBlackBoxCo runTest("compiler/testData/codegen/box/enum/companionAccessingEnumValue.kt"); } + @Test + @TestMetadata("companionObject.kt") + public void testCompanionObject() { + runTest("compiler/testData/codegen/box/enum/companionObject.kt"); + } + @Test @TestMetadata("companionObjectInEnum.kt") public void testCompanionObjectInEnum() { @@ -17887,6 +19157,12 @@ public class FirPsiBlackBoxCodegenTestGenerated extends AbstractFirPsiBlackBoxCo runTest("compiler/testData/codegen/box/enum/enumWithLambdaParameter.kt"); } + @Test + @TestMetadata("enum_equals.kt") + public void testEnum_equals() { + runTest("compiler/testData/codegen/box/enum/enum_equals.kt"); + } + @Test @TestMetadata("getEnumEntityByOrdinal.kt") public void testGetEnumEntityByOrdinal() { @@ -17959,6 +19235,18 @@ public class FirPsiBlackBoxCodegenTestGenerated extends AbstractFirPsiBlackBoxCo runTest("compiler/testData/codegen/box/enum/innerWithExistingClassObject.kt"); } + @Test + @TestMetadata("interfaceCallNoEntryClass.kt") + public void testInterfaceCallNoEntryClass() { + runTest("compiler/testData/codegen/box/enum/interfaceCallNoEntryClass.kt"); + } + + @Test + @TestMetadata("interfaceCallWithEntryClass.kt") + public void testInterfaceCallWithEntryClass() { + runTest("compiler/testData/codegen/box/enum/interfaceCallWithEntryClass.kt"); + } + @Test @TestMetadata("javaClassWithNestedEnum.kt") public void testJavaClassWithNestedEnum() { @@ -18049,6 +19337,12 @@ public class FirPsiBlackBoxCodegenTestGenerated extends AbstractFirPsiBlackBoxCo runTest("compiler/testData/codegen/box/enum/kt2350.kt"); } + @Test + @TestMetadata("kt38540.kt") + public void testKt38540() { + runTest("compiler/testData/codegen/box/enum/kt38540.kt"); + } + @Test @TestMetadata("kt38996.kt") public void testKt38996() { @@ -18145,6 +19439,18 @@ public class FirPsiBlackBoxCodegenTestGenerated extends AbstractFirPsiBlackBoxCo runTest("compiler/testData/codegen/box/enum/kt9711_2.kt"); } + @Test + @TestMetadata("lambdaInDefault.kt") + public void testLambdaInDefault() { + runTest("compiler/testData/codegen/box/enum/lambdaInDefault.kt"); + } + + @Test + @TestMetadata("loop.kt") + public void testLoop() { + runTest("compiler/testData/codegen/box/enum/loop.kt"); + } + @Test @TestMetadata("manyDefaultParameters.kt") public void testManyDefaultParameters() { @@ -18157,6 +19463,12 @@ public class FirPsiBlackBoxCodegenTestGenerated extends AbstractFirPsiBlackBoxCo runTest("compiler/testData/codegen/box/enum/modifierFlags.kt"); } + @Test + @TestMetadata("multipleModules.kt") + public void testMultipleModules() { + runTest("compiler/testData/codegen/box/enum/multipleModules.kt"); + } + @Test @TestMetadata("nameClashWithCompanion.kt") public void testNameClashWithCompanion() { @@ -18169,12 +19481,24 @@ public class FirPsiBlackBoxCodegenTestGenerated extends AbstractFirPsiBlackBoxCo runTest("compiler/testData/codegen/box/enum/nameConflict.kt"); } + @Test + @TestMetadata("nested.kt") + public void testNested() { + runTest("compiler/testData/codegen/box/enum/nested.kt"); + } + @Test @TestMetadata("noClassForSimpleEnum.kt") public void testNoClassForSimpleEnum() { runTest("compiler/testData/codegen/box/enum/noClassForSimpleEnum.kt"); } + @Test + @TestMetadata("openMethodNoOverrides.kt") + public void testOpenMethodNoOverrides() { + runTest("compiler/testData/codegen/box/enum/openMethodNoOverrides.kt"); + } + @Test @TestMetadata("ordinal.kt") public void testOrdinal() { @@ -18205,6 +19529,12 @@ public class FirPsiBlackBoxCodegenTestGenerated extends AbstractFirPsiBlackBoxCo runTest("compiler/testData/codegen/box/enum/refToThis.kt"); } + @Test + @TestMetadata("reorderedArguments.kt") + public void testReorderedArguments() { + runTest("compiler/testData/codegen/box/enum/reorderedArguments.kt"); + } + @Test @TestMetadata("simple.kt") public void testSimple() { @@ -18259,18 +19589,66 @@ public class FirPsiBlackBoxCodegenTestGenerated extends AbstractFirPsiBlackBoxCo runTest("compiler/testData/codegen/box/enum/superCallInEnumLiteral.kt"); } + @Test + @TestMetadata("switchLowering.kt") + public void testSwitchLowering() { + runTest("compiler/testData/codegen/box/enum/switchLowering.kt"); + } + + @Test + @TestMetadata("test0.kt") + public void testTest0() { + runTest("compiler/testData/codegen/box/enum/test0.kt"); + } + + @Test + @TestMetadata("test1.kt") + public void testTest1() { + runTest("compiler/testData/codegen/box/enum/test1.kt"); + } + @Test @TestMetadata("toString.kt") public void testToString() { runTest("compiler/testData/codegen/box/enum/toString.kt"); } + @Test + @TestMetadata("vCallNoEntryClass.kt") + public void testVCallNoEntryClass() { + runTest("compiler/testData/codegen/box/enum/vCallNoEntryClass.kt"); + } + + @Test + @TestMetadata("vCallWithEntryClass.kt") + public void testVCallWithEntryClass() { + runTest("compiler/testData/codegen/box/enum/vCallWithEntryClass.kt"); + } + + @Test + @TestMetadata("valueOf2.kt") + public void testValueOf2() { + runTest("compiler/testData/codegen/box/enum/valueOf2.kt"); + } + @Test @TestMetadata("valueof.kt") public void testValueof() { runTest("compiler/testData/codegen/box/enum/valueof.kt"); } + @Test + @TestMetadata("values.kt") + public void testValues() { + runTest("compiler/testData/codegen/box/enum/values.kt"); + } + + @Test + @TestMetadata("varargParam.kt") + public void testVarargParam() { + runTest("compiler/testData/codegen/box/enum/varargParam.kt"); + } + @Test @TestMetadata("whenInObject.kt") public void testWhenInObject() { @@ -18346,6 +19724,112 @@ public class FirPsiBlackBoxCodegenTestGenerated extends AbstractFirPsiBlackBoxCo } } + @Nested + @TestMetadata("compiler/testData/codegen/box/escapeAnalysis") + @TestDataPath("$PROJECT_ROOT") + public class EscapeAnalysis { + @Test + public void testAllFilesPresentInEscapeAnalysis() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/escapeAnalysis"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("recursion.kt") + public void testRecursion() { + runTest("compiler/testData/codegen/box/escapeAnalysis/recursion.kt"); + } + + @Test + @TestMetadata("stack_array.kt") + public void testStack_array() { + runTest("compiler/testData/codegen/box/escapeAnalysis/stack_array.kt"); + } + + @Test + @TestMetadata("test1.kt") + public void testTest1() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test1.kt"); + } + + @Test + @TestMetadata("test10.kt") + public void testTest10() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test10.kt"); + } + + @Test + @TestMetadata("test11.kt") + public void testTest11() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test11.kt"); + } + + @Test + @TestMetadata("test12.kt") + public void testTest12() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test12.kt"); + } + + @Test + @TestMetadata("test13.kt") + public void testTest13() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test13.kt"); + } + + @Test + @TestMetadata("test2.kt") + public void testTest2() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test2.kt"); + } + + @Test + @TestMetadata("test3.kt") + public void testTest3() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test3.kt"); + } + + @Test + @TestMetadata("test4.kt") + public void testTest4() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test4.kt"); + } + + @Test + @TestMetadata("test5.kt") + public void testTest5() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test5.kt"); + } + + @Test + @TestMetadata("test6.kt") + public void testTest6() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test6.kt"); + } + + @Test + @TestMetadata("test7.kt") + public void testTest7() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test7.kt"); + } + + @Test + @TestMetadata("test8.kt") + public void testTest8() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test8.kt"); + } + + @Test + @TestMetadata("test9.kt") + public void testTest9() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test9.kt"); + } + + @Test + @TestMetadata("zeroOutObjectOnAlloc.kt") + public void testZeroOutObjectOnAlloc() { + runTest("compiler/testData/codegen/box/escapeAnalysis/zeroOutObjectOnAlloc.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/evaluate") @TestDataPath("$PROJECT_ROOT") @@ -18458,6 +19942,58 @@ public class FirPsiBlackBoxCodegenTestGenerated extends AbstractFirPsiBlackBoxCo } } + @Nested + @TestMetadata("compiler/testData/codegen/box/exceptions") + @TestDataPath("$PROJECT_ROOT") + public class Exceptions { + @Test + public void testAllFilesPresentInExceptions() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/exceptions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("catch1.kt") + public void testCatch1() { + runTest("compiler/testData/codegen/box/exceptions/catch1.kt"); + } + + @Test + @TestMetadata("catch2.kt") + public void testCatch2() { + runTest("compiler/testData/codegen/box/exceptions/catch2.kt"); + } + + @Test + @TestMetadata("catch7.kt") + public void testCatch7() { + runTest("compiler/testData/codegen/box/exceptions/catch7.kt"); + } + + @Test + @TestMetadata("extend0.kt") + public void testExtend0() { + runTest("compiler/testData/codegen/box/exceptions/extend0.kt"); + } + + @Test + @TestMetadata("rethrow.kt") + public void testRethrow() { + runTest("compiler/testData/codegen/box/exceptions/rethrow.kt"); + } + + @Test + @TestMetadata("throw0.kt") + public void testThrow0() { + runTest("compiler/testData/codegen/box/exceptions/throw0.kt"); + } + + @Test + @TestMetadata("throw_from_catch.kt") + public void testThrow_from_catch() { + runTest("compiler/testData/codegen/box/exceptions/throw_from_catch.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/exclExcl") @TestDataPath("$PROJECT_ROOT") @@ -20351,6 +21887,12 @@ public class FirPsiBlackBoxCodegenTestGenerated extends AbstractFirPsiBlackBoxCo runTest("compiler/testData/codegen/box/funInterface/funInterfaceWithReceiver.kt"); } + @Test + @TestMetadata("implIsNotFunction.kt") + public void testImplIsNotFunction() { + runTest("compiler/testData/codegen/box/funInterface/implIsNotFunction.kt"); + } + @Test @TestMetadata("inlinedSamWrapper.kt") public void testInlinedSamWrapper() { @@ -20399,6 +21941,18 @@ public class FirPsiBlackBoxCodegenTestGenerated extends AbstractFirPsiBlackBoxCo runTest("compiler/testData/codegen/box/funInterface/kt46908_functionSupertype.kt"); } + @Test + @TestMetadata("kt49384.kt") + public void testKt49384() { + runTest("compiler/testData/codegen/box/funInterface/kt49384.kt"); + } + + @Test + @TestMetadata("kt49384_getSame.kt") + public void testKt49384_getSame() { + runTest("compiler/testData/codegen/box/funInterface/kt49384_getSame.kt"); + } + @Test @TestMetadata("multimodule.kt") public void testMultimodule() { @@ -20417,6 +21971,12 @@ public class FirPsiBlackBoxCodegenTestGenerated extends AbstractFirPsiBlackBoxCo runTest("compiler/testData/codegen/box/funInterface/nonAbstractMethod.kt"); } + @Test + @TestMetadata("nonTrivialProjectionInSuperType.kt") + public void testNonTrivialProjectionInSuperType() { + runTest("compiler/testData/codegen/box/funInterface/nonTrivialProjectionInSuperType.kt"); + } + @Test @TestMetadata("nullableSam.kt") public void testNullableSam() { @@ -20506,6 +22066,232 @@ public class FirPsiBlackBoxCodegenTestGenerated extends AbstractFirPsiBlackBoxCo } } + @Nested + @TestMetadata("compiler/testData/codegen/box/function") + @TestDataPath("$PROJECT_ROOT") + public class Function { + @Test + public void testAllFilesPresentInFunction() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/function"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("arithmetic.kt") + public void testArithmetic() { + runTest("compiler/testData/codegen/box/function/arithmetic.kt"); + } + + @Test + @TestMetadata("boolean.kt") + public void testBoolean() { + runTest("compiler/testData/codegen/box/function/boolean.kt"); + } + + @Test + @TestMetadata("defaults.kt") + public void testDefaults() { + runTest("compiler/testData/codegen/box/function/defaults.kt"); + } + + @Test + @TestMetadata("defaults1.kt") + public void testDefaults1() { + runTest("compiler/testData/codegen/box/function/defaults1.kt"); + } + + @Test + @TestMetadata("defaults10.kt") + public void testDefaults10() { + runTest("compiler/testData/codegen/box/function/defaults10.kt"); + } + + @Test + @TestMetadata("defaults2.kt") + public void testDefaults2() { + runTest("compiler/testData/codegen/box/function/defaults2.kt"); + } + + @Test + @TestMetadata("defaults3.kt") + public void testDefaults3() { + runTest("compiler/testData/codegen/box/function/defaults3.kt"); + } + + @Test + @TestMetadata("defaults4.kt") + public void testDefaults4() { + runTest("compiler/testData/codegen/box/function/defaults4.kt"); + } + + @Test + @TestMetadata("defaults5.kt") + public void testDefaults5() { + runTest("compiler/testData/codegen/box/function/defaults5.kt"); + } + + @Test + @TestMetadata("defaults6.kt") + public void testDefaults6() { + runTest("compiler/testData/codegen/box/function/defaults6.kt"); + } + + @Test + @TestMetadata("defaults7.kt") + public void testDefaults7() { + runTest("compiler/testData/codegen/box/function/defaults7.kt"); + } + + @Test + @TestMetadata("defaults8.kt") + public void testDefaults8() { + runTest("compiler/testData/codegen/box/function/defaults8.kt"); + } + + @Test + @TestMetadata("defaults9.kt") + public void testDefaults9() { + runTest("compiler/testData/codegen/box/function/defaults9.kt"); + } + + @Test + @TestMetadata("defaultsFromFakeOverride.kt") + public void testDefaultsFromFakeOverride() { + runTest("compiler/testData/codegen/box/function/defaultsFromFakeOverride.kt"); + } + + @Test + @TestMetadata("defaultsWithInlineClasses.kt") + public void testDefaultsWithInlineClasses() { + runTest("compiler/testData/codegen/box/function/defaultsWithInlineClasses.kt"); + } + + @Test + @TestMetadata("defaultsWithVarArg1.kt") + public void testDefaultsWithVarArg1() { + runTest("compiler/testData/codegen/box/function/defaultsWithVarArg1.kt"); + } + + @Test + @TestMetadata("defaultsWithVarArg2.kt") + public void testDefaultsWithVarArg2() { + runTest("compiler/testData/codegen/box/function/defaultsWithVarArg2.kt"); + } + + @Test + @TestMetadata("eqeq.kt") + public void testEqeq() { + runTest("compiler/testData/codegen/box/function/eqeq.kt"); + } + + @Test + @TestMetadata("extension.kt") + public void testExtension() { + runTest("compiler/testData/codegen/box/function/extension.kt"); + } + + @Test + @TestMetadata("intrinsic.kt") + public void testIntrinsic() { + runTest("compiler/testData/codegen/box/function/intrinsic.kt"); + } + + @Test + @TestMetadata("localFunction.kt") + public void testLocalFunction() { + runTest("compiler/testData/codegen/box/function/localFunction.kt"); + } + + @Test + @TestMetadata("localFunction2.kt") + public void testLocalFunction2() { + runTest("compiler/testData/codegen/box/function/localFunction2.kt"); + } + + @Test + @TestMetadata("localFunction3.kt") + public void testLocalFunction3() { + runTest("compiler/testData/codegen/box/function/localFunction3.kt"); + } + + @Test + @TestMetadata("minus_eq.kt") + public void testMinus_eq() { + runTest("compiler/testData/codegen/box/function/minus_eq.kt"); + } + + @Test + @TestMetadata("named.kt") + public void testNamed() { + runTest("compiler/testData/codegen/box/function/named.kt"); + } + + @Test + @TestMetadata("nothingNReturningSafeCall.kt") + public void testNothingNReturningSafeCall() { + runTest("compiler/testData/codegen/box/function/nothingNReturningSafeCall.kt"); + } + + @Test + @TestMetadata("plus_eq.kt") + public void testPlus_eq() { + runTest("compiler/testData/codegen/box/function/plus_eq.kt"); + } + + @Test + @TestMetadata("referenceBigArity.kt") + public void testReferenceBigArity() { + runTest("compiler/testData/codegen/box/function/referenceBigArity.kt"); + } + + @Test + @TestMetadata("sum.kt") + public void testSum() { + runTest("compiler/testData/codegen/box/function/sum.kt"); + } + + @Test + @TestMetadata("sum_3const.kt") + public void testSum_3const() { + runTest("compiler/testData/codegen/box/function/sum_3const.kt"); + } + + @Test + @TestMetadata("sum_foo_bar.kt") + public void testSum_foo_bar() { + runTest("compiler/testData/codegen/box/function/sum_foo_bar.kt"); + } + + @Test + @TestMetadata("sum_func.kt") + public void testSum_func() { + runTest("compiler/testData/codegen/box/function/sum_func.kt"); + } + + @Test + @TestMetadata("sum_imm.kt") + public void testSum_imm() { + runTest("compiler/testData/codegen/box/function/sum_imm.kt"); + } + + @Test + @TestMetadata("sum_mixed.kt") + public void testSum_mixed() { + runTest("compiler/testData/codegen/box/function/sum_mixed.kt"); + } + + @Test + @TestMetadata("sum_silly.kt") + public void testSum_silly() { + runTest("compiler/testData/codegen/box/function/sum_silly.kt"); + } + + @Test + @TestMetadata("unreachableStatementAfterReturn.kt") + public void testUnreachableStatementAfterReturn() { + runTest("compiler/testData/codegen/box/function/unreachableStatementAfterReturn.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/functions") @TestDataPath("$PROJECT_ROOT") @@ -22408,6 +24194,474 @@ public class FirPsiBlackBoxCodegenTestGenerated extends AbstractFirPsiBlackBoxCo } } + @Nested + @TestMetadata("compiler/testData/codegen/box/initializers") + @TestDataPath("$PROJECT_ROOT") + public class Initializers { + @Test + public void testAllFilesPresentInInitializers() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/initializers"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("correctOrder1.kt") + public void testCorrectOrder1() { + runTest("compiler/testData/codegen/box/initializers/correctOrder1.kt"); + } + + @Test + @TestMetadata("correctOrder2.kt") + public void testCorrectOrder2() { + runTest("compiler/testData/codegen/box/initializers/correctOrder2.kt"); + } + + @Test + @TestMetadata("initializers0.kt") + public void testInitializers0() { + runTest("compiler/testData/codegen/box/initializers/initializers0.kt"); + } + + @Test + @TestMetadata("initializers1.kt") + public void testInitializers1() { + runTest("compiler/testData/codegen/box/initializers/initializers1.kt"); + } + + @Test + @TestMetadata("initializers2.kt") + public void testInitializers2() { + runTest("compiler/testData/codegen/box/initializers/initializers2.kt"); + } + + @Test + @TestMetadata("initializers3.kt") + public void testInitializers3() { + runTest("compiler/testData/codegen/box/initializers/initializers3.kt"); + } + + @Test + @TestMetadata("initializers4.kt") + public void testInitializers4() { + runTest("compiler/testData/codegen/box/initializers/initializers4.kt"); + } + + @Test + @TestMetadata("initializers5.kt") + public void testInitializers5() { + runTest("compiler/testData/codegen/box/initializers/initializers5.kt"); + } + + @Test + @TestMetadata("initializers7.kt") + public void testInitializers7() { + runTest("compiler/testData/codegen/box/initializers/initializers7.kt"); + } + + @Test + @TestMetadata("initializers8.kt") + public void testInitializers8() { + runTest("compiler/testData/codegen/box/initializers/initializers8.kt"); + } + + @Test + @TestMetadata("multipleModules1.kt") + public void testMultipleModules1() { + runTest("compiler/testData/codegen/box/initializers/multipleModules1.kt"); + } + + @Test + @TestMetadata("object.kt") + public void testObject() { + runTest("compiler/testData/codegen/box/initializers/object.kt"); + } + + @Test + @TestMetadata("sharedVarInInitBlock.kt") + public void testSharedVarInInitBlock() { + runTest("compiler/testData/codegen/box/initializers/sharedVarInInitBlock.kt"); + } + + @Test + @TestMetadata("static_arrays.kt") + public void testStatic_arrays() { + runTest("compiler/testData/codegen/box/initializers/static_arrays.kt"); + } + + @Test + @TestMetadata("static_list.kt") + public void testStatic_list() { + runTest("compiler/testData/codegen/box/initializers/static_list.kt"); + } + + @Test + @TestMetadata("static_smallIntIdentity.kt") + public void testStatic_smallIntIdentity() { + runTest("compiler/testData/codegen/box/initializers/static_smallIntIdentity.kt"); + } + + @Test + @TestMetadata("static_varargChange.kt") + public void testStatic_varargChange() { + runTest("compiler/testData/codegen/box/initializers/static_varargChange.kt"); + } + + @Test + @TestMetadata("throw1.kt") + public void testThrow1() { + runTest("compiler/testData/codegen/box/initializers/throw1.kt"); + } + + @Test + @TestMetadata("throw2.kt") + public void testThrow2() { + runTest("compiler/testData/codegen/box/initializers/throw2.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/initializers/files") + @TestDataPath("$PROJECT_ROOT") + public class Files { + @Test + public void testAllFilesPresentInFiles() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/initializers/files"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("globalInitedAfterAccessingFile.kt") + public void testGlobalInitedAfterAccessingFile() { + runTest("compiler/testData/codegen/box/initializers/files/globalInitedAfterAccessingFile.kt"); + } + + @Test + @TestMetadata("globalNotInitedAfterAccessingClassInternals.kt") + public void testGlobalNotInitedAfterAccessingClassInternals() { + runTest("compiler/testData/codegen/box/initializers/files/globalNotInitedAfterAccessingClassInternals.kt"); + } + + @Test + @TestMetadata("simple.kt") + public void testSimple() { + runTest("compiler/testData/codegen/box/initializers/files/simple.kt"); + } + + @Test + @TestMetadata("simpleMultiModule.kt") + public void testSimpleMultiModule() { + runTest("compiler/testData/codegen/box/initializers/files/simpleMultiModule.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/inline") + @TestDataPath("$PROJECT_ROOT") + public class Inline { + @Test + public void testAllFilesPresentInInline() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inline"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("changingCapturedLocal.kt") + public void testChangingCapturedLocal() { + runTest("compiler/testData/codegen/box/inline/changingCapturedLocal.kt"); + } + + @Test + @TestMetadata("classDeclarationInsideInline.kt") + public void testClassDeclarationInsideInline() { + runTest("compiler/testData/codegen/box/inline/classDeclarationInsideInline.kt"); + } + + @Test + @TestMetadata("coercionToUnit.kt") + public void testCoercionToUnit() { + runTest("compiler/testData/codegen/box/inline/coercionToUnit.kt"); + } + + @Test + @TestMetadata("correctOrderFunctionReference.kt") + public void testCorrectOrderFunctionReference() { + runTest("compiler/testData/codegen/box/inline/correctOrderFunctionReference.kt"); + } + + @Test + @TestMetadata("defaultArgs.kt") + public void testDefaultArgs() { + runTest("compiler/testData/codegen/box/inline/defaultArgs.kt"); + } + + @Test + @TestMetadata("defaultArgsMultipleModules.kt") + public void testDefaultArgsMultipleModules() { + runTest("compiler/testData/codegen/box/inline/defaultArgsMultipleModules.kt"); + } + + @Test + @TestMetadata("genericFunctionReference.kt") + public void testGenericFunctionReference() { + runTest("compiler/testData/codegen/box/inline/genericFunctionReference.kt"); + } + + @Test + @TestMetadata("getClass.kt") + public void testGetClass() { + runTest("compiler/testData/codegen/box/inline/getClass.kt"); + } + + @Test + @TestMetadata("inline0.kt") + public void testInline0() { + runTest("compiler/testData/codegen/box/inline/inline0.kt"); + } + + @Test + @TestMetadata("inline1.kt") + public void testInline1() { + runTest("compiler/testData/codegen/box/inline/inline1.kt"); + } + + @Test + @TestMetadata("inline10.kt") + public void testInline10() { + runTest("compiler/testData/codegen/box/inline/inline10.kt"); + } + + @Test + @TestMetadata("inline11.kt") + public void testInline11() { + runTest("compiler/testData/codegen/box/inline/inline11.kt"); + } + + @Test + @TestMetadata("inline12.kt") + public void testInline12() { + runTest("compiler/testData/codegen/box/inline/inline12.kt"); + } + + @Test + @TestMetadata("inline13.kt") + public void testInline13() { + runTest("compiler/testData/codegen/box/inline/inline13.kt"); + } + + @Test + @TestMetadata("inline14.kt") + public void testInline14() { + runTest("compiler/testData/codegen/box/inline/inline14.kt"); + } + + @Test + @TestMetadata("inline15.kt") + public void testInline15() { + runTest("compiler/testData/codegen/box/inline/inline15.kt"); + } + + @Test + @TestMetadata("inline16.kt") + public void testInline16() { + runTest("compiler/testData/codegen/box/inline/inline16.kt"); + } + + @Test + @TestMetadata("inline17.kt") + public void testInline17() { + runTest("compiler/testData/codegen/box/inline/inline17.kt"); + } + + @Test + @TestMetadata("inline19.kt") + public void testInline19() { + runTest("compiler/testData/codegen/box/inline/inline19.kt"); + } + + @Test + @TestMetadata("inline2.kt") + public void testInline2() { + runTest("compiler/testData/codegen/box/inline/inline2.kt"); + } + + @Test + @TestMetadata("inline20.kt") + public void testInline20() { + runTest("compiler/testData/codegen/box/inline/inline20.kt"); + } + + @Test + @TestMetadata("inline21.kt") + public void testInline21() { + runTest("compiler/testData/codegen/box/inline/inline21.kt"); + } + + @Test + @TestMetadata("inline22.kt") + public void testInline22() { + runTest("compiler/testData/codegen/box/inline/inline22.kt"); + } + + @Test + @TestMetadata("inline23.kt") + public void testInline23() { + runTest("compiler/testData/codegen/box/inline/inline23.kt"); + } + + @Test + @TestMetadata("inline24.kt") + public void testInline24() { + runTest("compiler/testData/codegen/box/inline/inline24.kt"); + } + + @Test + @TestMetadata("inline25.kt") + public void testInline25() { + runTest("compiler/testData/codegen/box/inline/inline25.kt"); + } + + @Test + @TestMetadata("inline26.kt") + public void testInline26() { + runTest("compiler/testData/codegen/box/inline/inline26.kt"); + } + + @Test + @TestMetadata("inline3.kt") + public void testInline3() { + runTest("compiler/testData/codegen/box/inline/inline3.kt"); + } + + @Test + @TestMetadata("inline4.kt") + public void testInline4() { + runTest("compiler/testData/codegen/box/inline/inline4.kt"); + } + + @Test + @TestMetadata("inline5.kt") + public void testInline5() { + runTest("compiler/testData/codegen/box/inline/inline5.kt"); + } + + @Test + @TestMetadata("inline6.kt") + public void testInline6() { + runTest("compiler/testData/codegen/box/inline/inline6.kt"); + } + + @Test + @TestMetadata("inline7.kt") + public void testInline7() { + runTest("compiler/testData/codegen/box/inline/inline7.kt"); + } + + @Test + @TestMetadata("inline8.kt") + public void testInline8() { + runTest("compiler/testData/codegen/box/inline/inline8.kt"); + } + + @Test + @TestMetadata("inline9.kt") + public void testInline9() { + runTest("compiler/testData/codegen/box/inline/inline9.kt"); + } + + @Test + @TestMetadata("inlineCtor.kt") + public void testInlineCtor() { + runTest("compiler/testData/codegen/box/inline/inlineCtor.kt"); + } + + @Test + @TestMetadata("innerInlineFunCapturesOuter.kt") + public void testInnerInlineFunCapturesOuter() { + runTest("compiler/testData/codegen/box/inline/innerInlineFunCapturesOuter.kt"); + } + + @Test + @TestMetadata("lambdaAsAny.kt") + public void testLambdaAsAny() { + runTest("compiler/testData/codegen/box/inline/lambdaAsAny.kt"); + } + + @Test + @TestMetadata("lambdaInDefaultValue.kt") + public void testLambdaInDefaultValue() { + runTest("compiler/testData/codegen/box/inline/lambdaInDefaultValue.kt"); + } + + @Test + @TestMetadata("lateinitProperty.kt") + public void testLateinitProperty() { + runTest("compiler/testData/codegen/box/inline/lateinitProperty.kt"); + } + + @Test + @TestMetadata("localFunctionInInitializerBlock.kt") + public void testLocalFunctionInInitializerBlock() { + runTest("compiler/testData/codegen/box/inline/localFunctionInInitializerBlock.kt"); + } + + @Test + @TestMetadata("localObjectReturnedFromWhen.kt") + public void testLocalObjectReturnedFromWhen() { + runTest("compiler/testData/codegen/box/inline/localObjectReturnedFromWhen.kt"); + } + + @Test + @TestMetadata("propertyAccessorInline.kt") + public void testPropertyAccessorInline() { + runTest("compiler/testData/codegen/box/inline/propertyAccessorInline.kt"); + } + + @Test + @TestMetadata("redundantCoercionsCleaner.kt") + public void testRedundantCoercionsCleaner() { + runTest("compiler/testData/codegen/box/inline/redundantCoercionsCleaner.kt"); + } + + @Test + @TestMetadata("redundantCoercionsCleanerKT48876.kt") + public void testRedundantCoercionsCleanerKT48876() { + runTest("compiler/testData/codegen/box/inline/redundantCoercionsCleanerKT48876.kt"); + } + + @Test + @TestMetadata("redundantCoercionsCleanerKT49356.kt") + public void testRedundantCoercionsCleanerKT49356() { + runTest("compiler/testData/codegen/box/inline/redundantCoercionsCleanerKT49356.kt"); + } + + @Test + @TestMetadata("returnLocalClassFromBlock.kt") + public void testReturnLocalClassFromBlock() { + runTest("compiler/testData/codegen/box/inline/returnLocalClassFromBlock.kt"); + } + + @Test + @TestMetadata("sharedVar.kt") + public void testSharedVar() { + runTest("compiler/testData/codegen/box/inline/sharedVar.kt"); + } + + @Test + @TestMetadata("statementAsLastExprInBlock.kt") + public void testStatementAsLastExprInBlock() { + runTest("compiler/testData/codegen/box/inline/statementAsLastExprInBlock.kt"); + } + + @Test + @TestMetadata("twiceInlinedObject.kt") + public void testTwiceInlinedObject() { + runTest("compiler/testData/codegen/box/inline/twiceInlinedObject.kt"); + } + + @Test + @TestMetadata("typeSubstitutionInFakeOverride.kt") + public void testTypeSubstitutionInFakeOverride() { + runTest("compiler/testData/codegen/box/inline/typeSubstitutionInFakeOverride.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/inlineArgsInPlace") @TestDataPath("$PROJECT_ROOT") @@ -22490,6 +24744,40 @@ public class FirPsiBlackBoxCodegenTestGenerated extends AbstractFirPsiBlackBoxCo } } + @Nested + @TestMetadata("compiler/testData/codegen/box/inlineClass") + @TestDataPath("$PROJECT_ROOT") + public class InlineClass { + @Test + public void testAllFilesPresentInInlineClass() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineClass"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("customEquals.kt") + public void testCustomEquals() { + runTest("compiler/testData/codegen/box/inlineClass/customEquals.kt"); + } + + @Test + @TestMetadata("defaultEquals.kt") + public void testDefaultEquals() { + runTest("compiler/testData/codegen/box/inlineClass/defaultEquals.kt"); + } + + @Test + @TestMetadata("nestedInlineClasses.kt") + public void testNestedInlineClasses() { + runTest("compiler/testData/codegen/box/inlineClass/nestedInlineClasses.kt"); + } + + @Test + @TestMetadata("secondaryConstructorWithGenerics.kt") + public void testSecondaryConstructorWithGenerics() { + runTest("compiler/testData/codegen/box/inlineClass/secondaryConstructorWithGenerics.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/inlineClasses") @TestDataPath("$PROJECT_ROOT") @@ -28126,6 +30414,88 @@ public class FirPsiBlackBoxCodegenTestGenerated extends AbstractFirPsiBlackBoxCo } } + @Nested + @TestMetadata("compiler/testData/codegen/box/innerClass") + @TestDataPath("$PROJECT_ROOT") + public class InnerClass { + @Test + public void testAllFilesPresentInInnerClass() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/innerClass"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("doubleInner.kt") + public void testDoubleInner() { + runTest("compiler/testData/codegen/box/innerClass/doubleInner.kt"); + } + + @Test + @TestMetadata("generic.kt") + public void testGeneric() { + runTest("compiler/testData/codegen/box/innerClass/generic.kt"); + } + + @Test + @TestMetadata("getOuterVal.kt") + public void testGetOuterVal() { + runTest("compiler/testData/codegen/box/innerClass/getOuterVal.kt"); + } + + @Test + @TestMetadata("inheritanceMultipleModules1.kt") + public void testInheritanceMultipleModules1() { + runTest("compiler/testData/codegen/box/innerClass/inheritanceMultipleModules1.kt"); + } + + @Test + @TestMetadata("inheritanceMultipleModules2.kt") + public void testInheritanceMultipleModules2() { + runTest("compiler/testData/codegen/box/innerClass/inheritanceMultipleModules2.kt"); + } + + @Test + @TestMetadata("inheritanceMultipleModules3.kt") + public void testInheritanceMultipleModules3() { + runTest("compiler/testData/codegen/box/innerClass/inheritanceMultipleModules3.kt"); + } + + @Test + @TestMetadata("multipleModules.kt") + public void testMultipleModules() { + runTest("compiler/testData/codegen/box/innerClass/multipleModules.kt"); + } + + @Test + @TestMetadata("noPrimaryConstructor.kt") + public void testNoPrimaryConstructor() { + runTest("compiler/testData/codegen/box/innerClass/noPrimaryConstructor.kt"); + } + + @Test + @TestMetadata("qualifiedThis.kt") + public void testQualifiedThis() { + runTest("compiler/testData/codegen/box/innerClass/qualifiedThis.kt"); + } + + @Test + @TestMetadata("secondaryConstructor.kt") + public void testSecondaryConstructor() { + runTest("compiler/testData/codegen/box/innerClass/secondaryConstructor.kt"); + } + + @Test + @TestMetadata("simple.kt") + public void testSimple() { + runTest("compiler/testData/codegen/box/innerClass/simple.kt"); + } + + @Test + @TestMetadata("superOuter.kt") + public void testSuperOuter() { + runTest("compiler/testData/codegen/box/innerClass/superOuter.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/innerNested") @TestDataPath("$PROJECT_ROOT") @@ -28526,6 +30896,40 @@ public class FirPsiBlackBoxCodegenTestGenerated extends AbstractFirPsiBlackBoxCo } } + @Nested + @TestMetadata("compiler/testData/codegen/box/interfaceCallsNCasts") + @TestDataPath("$PROJECT_ROOT") + public class InterfaceCallsNCasts { + @Test + public void testAllFilesPresentInInterfaceCallsNCasts() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/interfaceCallsNCasts"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("conservativeItable.kt") + public void testConservativeItable() { + runTest("compiler/testData/codegen/box/interfaceCallsNCasts/conservativeItable.kt"); + } + + @Test + @TestMetadata("diamond.kt") + public void testDiamond() { + runTest("compiler/testData/codegen/box/interfaceCallsNCasts/diamond.kt"); + } + + @Test + @TestMetadata("finalMethod.kt") + public void testFinalMethod() { + runTest("compiler/testData/codegen/box/interfaceCallsNCasts/finalMethod.kt"); + } + + @Test + @TestMetadata("interface0.kt") + public void testInterface0() { + runTest("compiler/testData/codegen/box/interfaceCallsNCasts/interface0.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/intrinsics") @TestDataPath("$PROJECT_ROOT") @@ -33676,6 +36080,80 @@ public class FirPsiBlackBoxCodegenTestGenerated extends AbstractFirPsiBlackBoxCo } } + @Nested + @TestMetadata("compiler/testData/codegen/box/kclass") + @TestDataPath("$PROJECT_ROOT") + public class Kclass { + @Test + public void testAllFilesPresentInKclass() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/kclass"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("kClassEnumArgument.kt") + public void testKClassEnumArgument() { + runTest("compiler/testData/codegen/box/kclass/kClassEnumArgument.kt"); + } + + @Test + @TestMetadata("kclass1.kt") + public void testKclass1() { + runTest("compiler/testData/codegen/box/kclass/kclass1.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/ktype") + @TestDataPath("$PROJECT_ROOT") + public class Ktype { + @Test + public void testAllFilesPresentInKtype() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ktype"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("ktype1_basics1.kt") + public void testKtype1_basics1() { + runTest("compiler/testData/codegen/box/ktype/ktype1_basics1.kt"); + } + + @Test + @TestMetadata("ktype1_inner.kt") + public void testKtype1_inner() { + runTest("compiler/testData/codegen/box/ktype/ktype1_inner.kt"); + } + + @Test + @TestMetadata("nonReified_class.kt") + public void testNonReified_class() { + runTest("compiler/testData/codegen/box/ktype/nonReified_class.kt"); + } + + @Test + @TestMetadata("nonReified_equality.kt") + public void testNonReified_equality() { + runTest("compiler/testData/codegen/box/ktype/nonReified_equality.kt"); + } + + @Test + @TestMetadata("nonReified_fun.kt") + public void testNonReified_fun() { + runTest("compiler/testData/codegen/box/ktype/nonReified_fun.kt"); + } + + @Test + @TestMetadata("nonReified_recursionInReified.kt") + public void testNonReified_recursionInReified() { + runTest("compiler/testData/codegen/box/ktype/nonReified_recursionInReified.kt"); + } + + @Test + @TestMetadata("nonReified_reifiedUpperBound.kt") + public void testNonReified_reifiedUpperBound() { + runTest("compiler/testData/codegen/box/ktype/nonReified_reifiedUpperBound.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/labels") @TestDataPath("$PROJECT_ROOT") @@ -33734,6 +36212,188 @@ public class FirPsiBlackBoxCodegenTestGenerated extends AbstractFirPsiBlackBoxCo } } + @Nested + @TestMetadata("compiler/testData/codegen/box/lambda") + @TestDataPath("$PROJECT_ROOT") + public class Lambda { + @Test + public void testAllFilesPresentInLambda() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/lambda"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("lambda1.kt") + public void testLambda1() { + runTest("compiler/testData/codegen/box/lambda/lambda1.kt"); + } + + @Test + @TestMetadata("lambda10.kt") + public void testLambda10() { + runTest("compiler/testData/codegen/box/lambda/lambda10.kt"); + } + + @Test + @TestMetadata("lambda11.kt") + public void testLambda11() { + runTest("compiler/testData/codegen/box/lambda/lambda11.kt"); + } + + @Test + @TestMetadata("lambda12.kt") + public void testLambda12() { + runTest("compiler/testData/codegen/box/lambda/lambda12.kt"); + } + + @Test + @TestMetadata("lambda13.kt") + public void testLambda13() { + runTest("compiler/testData/codegen/box/lambda/lambda13.kt"); + } + + @Test + @TestMetadata("lambda14.kt") + public void testLambda14() { + runTest("compiler/testData/codegen/box/lambda/lambda14.kt"); + } + + @Test + @TestMetadata("lambda2.kt") + public void testLambda2() { + runTest("compiler/testData/codegen/box/lambda/lambda2.kt"); + } + + @Test + @TestMetadata("lambda3.kt") + public void testLambda3() { + runTest("compiler/testData/codegen/box/lambda/lambda3.kt"); + } + + @Test + @TestMetadata("lambda4.kt") + public void testLambda4() { + runTest("compiler/testData/codegen/box/lambda/lambda4.kt"); + } + + @Test + @TestMetadata("lambda5.kt") + public void testLambda5() { + runTest("compiler/testData/codegen/box/lambda/lambda5.kt"); + } + + @Test + @TestMetadata("lambda6.kt") + public void testLambda6() { + runTest("compiler/testData/codegen/box/lambda/lambda6.kt"); + } + + @Test + @TestMetadata("lambda7.kt") + public void testLambda7() { + runTest("compiler/testData/codegen/box/lambda/lambda7.kt"); + } + + @Test + @TestMetadata("lambda8.kt") + public void testLambda8() { + runTest("compiler/testData/codegen/box/lambda/lambda8.kt"); + } + + @Test + @TestMetadata("lambda9.kt") + public void testLambda9() { + runTest("compiler/testData/codegen/box/lambda/lambda9.kt"); + } + + @Test + @TestMetadata("lambda_kt49360_trivial.kt") + public void testLambda_kt49360_trivial() { + runTest("compiler/testData/codegen/box/lambda/lambda_kt49360_trivial.kt"); + } + + @Test + @TestMetadata("lambda_kt49360_withFlow.kt") + public void testLambda_kt49360_withFlow() { + runTest("compiler/testData/codegen/box/lambda/lambda_kt49360_withFlow.kt"); + } + + @Test + @TestMetadata("lambda_kt49360_wrapBlock.kt") + public void testLambda_kt49360_wrapBlock() { + runTest("compiler/testData/codegen/box/lambda/lambda_kt49360_wrapBlock.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/lateinit") + @TestDataPath("$PROJECT_ROOT") + public class Lateinit { + @Test + public void testAllFilesPresentInLateinit() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/lateinit"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("globalIsInitialized.kt") + public void testGlobalIsInitialized() { + runTest("compiler/testData/codegen/box/lateinit/globalIsInitialized.kt"); + } + + @Test + @TestMetadata("inBaseClass.kt") + public void testInBaseClass() { + runTest("compiler/testData/codegen/box/lateinit/inBaseClass.kt"); + } + + @Test + @TestMetadata("initialized.kt") + public void testInitialized() { + runTest("compiler/testData/codegen/box/lateinit/initialized.kt"); + } + + @Test + @TestMetadata("innerIsInitialized.kt") + public void testInnerIsInitialized() { + runTest("compiler/testData/codegen/box/lateinit/innerIsInitialized.kt"); + } + + @Test + @TestMetadata("isInitialized.kt") + public void testIsInitialized() { + runTest("compiler/testData/codegen/box/lateinit/isInitialized.kt"); + } + + @Test + @TestMetadata("localCapturedInitialized.kt") + public void testLocalCapturedInitialized() { + runTest("compiler/testData/codegen/box/lateinit/localCapturedInitialized.kt"); + } + + @Test + @TestMetadata("localCapturedNotInitialized.kt") + public void testLocalCapturedNotInitialized() { + runTest("compiler/testData/codegen/box/lateinit/localCapturedNotInitialized.kt"); + } + + @Test + @TestMetadata("localInitialized.kt") + public void testLocalInitialized() { + runTest("compiler/testData/codegen/box/lateinit/localInitialized.kt"); + } + + @Test + @TestMetadata("localNotInitialized.kt") + public void testLocalNotInitialized() { + runTest("compiler/testData/codegen/box/lateinit/localNotInitialized.kt"); + } + + @Test + @TestMetadata("notInitialized.kt") + public void testNotInitialized() { + runTest("compiler/testData/codegen/box/lateinit/notInitialized.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/lazyCodegen") @TestDataPath("$PROJECT_ROOT") @@ -33862,6 +36522,98 @@ public class FirPsiBlackBoxCodegenTestGenerated extends AbstractFirPsiBlackBoxCo } } + @Nested + @TestMetadata("compiler/testData/codegen/box/literals") + @TestDataPath("$PROJECT_ROOT") + public class Literals { + @Test + public void testAllFilesPresentInLiterals() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/literals"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("listof1.kt") + public void testListof1() { + runTest("compiler/testData/codegen/box/literals/listof1.kt"); + } + + @Test + @TestMetadata("strdedup1.kt") + public void testStrdedup1() { + runTest("compiler/testData/codegen/box/literals/strdedup1.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/localClass") + @TestDataPath("$PROJECT_ROOT") + public class LocalClass { + @Test + public void testAllFilesPresentInLocalClass() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/localClass"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("innerTakesCapturedFromOuter.kt") + public void testInnerTakesCapturedFromOuter() { + runTest("compiler/testData/codegen/box/localClass/innerTakesCapturedFromOuter.kt"); + } + + @Test + @TestMetadata("innerWithCapture.kt") + public void testInnerWithCapture() { + runTest("compiler/testData/codegen/box/localClass/innerWithCapture.kt"); + } + + @Test + @TestMetadata("localFunctionCallFromLocalClass.kt") + public void testLocalFunctionCallFromLocalClass() { + runTest("compiler/testData/codegen/box/localClass/localFunctionCallFromLocalClass.kt"); + } + + @Test + @TestMetadata("localFunctionInLocalClass.kt") + public void testLocalFunctionInLocalClass() { + runTest("compiler/testData/codegen/box/localClass/localFunctionInLocalClass.kt"); + } + + @Test + @TestMetadata("localHierarchy.kt") + public void testLocalHierarchy() { + runTest("compiler/testData/codegen/box/localClass/localHierarchy.kt"); + } + + @Test + @TestMetadata("noPrimaryConstructor.kt") + public void testNoPrimaryConstructor() { + runTest("compiler/testData/codegen/box/localClass/noPrimaryConstructor.kt"); + } + + @Test + @TestMetadata("objectExpressionInInitializer.kt") + public void testObjectExpressionInInitializer() { + runTest("compiler/testData/codegen/box/localClass/objectExpressionInInitializer.kt"); + } + + @Test + @TestMetadata("objectExpressionInProperty.kt") + public void testObjectExpressionInProperty() { + runTest("compiler/testData/codegen/box/localClass/objectExpressionInProperty.kt"); + } + + @Test + @TestMetadata("tryCatch.kt") + public void testTryCatch() { + runTest("compiler/testData/codegen/box/localClass/tryCatch.kt"); + } + + @Test + @TestMetadata("virtualCallFromConstructor.kt") + public void testVirtualCallFromConstructor() { + runTest("compiler/testData/codegen/box/localClass/virtualCallFromConstructor.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/localClasses") @TestDataPath("$PROJECT_ROOT") @@ -34112,6 +36864,38 @@ public class FirPsiBlackBoxCodegenTestGenerated extends AbstractFirPsiBlackBoxCo } } + @Nested + @TestMetadata("compiler/testData/codegen/box/localEscapeAnalysis") + @TestDataPath("$PROJECT_ROOT") + public class LocalEscapeAnalysis { + @Test + public void testAllFilesPresentInLocalEscapeAnalysis() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/localEscapeAnalysis"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("arraysFieldWrite.kt") + public void testArraysFieldWrite() { + runTest("compiler/testData/codegen/box/localEscapeAnalysis/arraysFieldWrite.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/lower") + @TestDataPath("$PROJECT_ROOT") + public class Lower { + @Test + public void testAllFilesPresentInLower() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/lower"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("localDelegatedProperty.kt") + public void testLocalDelegatedProperty() { + runTest("compiler/testData/codegen/box/lower/localDelegatedProperty.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/mangling") @TestDataPath("$PROJECT_ROOT") @@ -34151,6 +36935,12 @@ public class FirPsiBlackBoxCodegenTestGenerated extends AbstractFirPsiBlackBoxCo runTest("compiler/testData/codegen/box/mangling/internalOverrideSuperCall.kt"); } + @Test + @TestMetadata("multipleConstructors.kt") + public void testMultipleConstructors() { + runTest("compiler/testData/codegen/box/mangling/multipleConstructors.kt"); + } + @Test @TestMetadata("noOverrideWithJava.kt") public void testNoOverrideWithJava() { @@ -36182,6 +38972,98 @@ public class FirPsiBlackBoxCodegenTestGenerated extends AbstractFirPsiBlackBoxCo } } + @Nested + @TestMetadata("compiler/testData/codegen/box/object") + @TestDataPath("$PROJECT_ROOT") + public class Object { + @Test + public void testAllFilesPresentInObject() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/object"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("constructor0.kt") + public void testConstructor0() { + runTest("compiler/testData/codegen/box/object/constructor0.kt"); + } + + @Test + @TestMetadata("fields.kt") + public void testFields() { + runTest("compiler/testData/codegen/box/object/fields.kt"); + } + + @Test + @TestMetadata("fields1.kt") + public void testFields1() { + runTest("compiler/testData/codegen/box/object/fields1.kt"); + } + + @Test + @TestMetadata("fields2.kt") + public void testFields2() { + runTest("compiler/testData/codegen/box/object/fields2.kt"); + } + + @Test + @TestMetadata("globalInitializer.kt") + public void testGlobalInitializer() { + runTest("compiler/testData/codegen/box/object/globalInitializer.kt"); + } + + @Test + @TestMetadata("init0.kt") + public void testInit0() { + runTest("compiler/testData/codegen/box/object/init0.kt"); + } + + @Test + @TestMetadata("initialization.kt") + public void testInitialization() { + runTest("compiler/testData/codegen/box/object/initialization.kt"); + } + + @Test + @TestMetadata("initialization1.kt") + public void testInitialization1() { + runTest("compiler/testData/codegen/box/object/initialization1.kt"); + } + + @Test + @TestMetadata("method_call.kt") + public void testMethod_call() { + runTest("compiler/testData/codegen/box/object/method_call.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/objectExpression") + @TestDataPath("$PROJECT_ROOT") + public class ObjectExpression { + @Test + public void testAllFilesPresentInObjectExpression() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/objectExpression"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("expr1.kt") + public void testExpr1() { + runTest("compiler/testData/codegen/box/objectExpression/expr1.kt"); + } + + @Test + @TestMetadata("expr2.kt") + public void testExpr2() { + runTest("compiler/testData/codegen/box/objectExpression/expr2.kt"); + } + + @Test + @TestMetadata("expr3.kt") + public void testExpr3() { + runTest("compiler/testData/codegen/box/objectExpression/expr3.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/objectIntrinsics") @TestDataPath("$PROJECT_ROOT") @@ -39478,6 +42360,64 @@ public class FirPsiBlackBoxCodegenTestGenerated extends AbstractFirPsiBlackBoxCo } } + @Nested + @TestMetadata("compiler/testData/codegen/box/propertyCallableReference") + @TestDataPath("$PROJECT_ROOT") + public class PropertyCallableReference { + @Test + public void testAllFilesPresentInPropertyCallableReference() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/propertyCallableReference"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("dynamicReceiver.kt") + public void testDynamicReceiver() { + runTest("compiler/testData/codegen/box/propertyCallableReference/dynamicReceiver.kt"); + } + + @Test + @TestMetadata("multipleModules.kt") + public void testMultipleModules() { + runTest("compiler/testData/codegen/box/propertyCallableReference/multipleModules.kt"); + } + + @Test + @TestMetadata("valClass.kt") + public void testValClass() { + runTest("compiler/testData/codegen/box/propertyCallableReference/valClass.kt"); + } + + @Test + @TestMetadata("valExtension.kt") + public void testValExtension() { + runTest("compiler/testData/codegen/box/propertyCallableReference/valExtension.kt"); + } + + @Test + @TestMetadata("valModule.kt") + public void testValModule() { + runTest("compiler/testData/codegen/box/propertyCallableReference/valModule.kt"); + } + + @Test + @TestMetadata("varClass.kt") + public void testVarClass() { + runTest("compiler/testData/codegen/box/propertyCallableReference/varClass.kt"); + } + + @Test + @TestMetadata("varExtension.kt") + public void testVarExtension() { + runTest("compiler/testData/codegen/box/propertyCallableReference/varExtension.kt"); + } + + @Test + @TestMetadata("varModule.kt") + public void testVarModule() { + runTest("compiler/testData/codegen/box/propertyCallableReference/varModule.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/publishedApi") @TestDataPath("$PROJECT_ROOT") @@ -51724,6 +54664,58 @@ public class FirPsiBlackBoxCodegenTestGenerated extends AbstractFirPsiBlackBoxCo } } + @Nested + @TestMetadata("compiler/testData/codegen/box/serialization") + @TestDataPath("$PROJECT_ROOT") + public class Serialization { + @Test + public void testAllFilesPresentInSerialization() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/serialization"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("deserializedMembers.kt") + public void testDeserializedMembers() { + runTest("compiler/testData/codegen/box/serialization/deserializedMembers.kt"); + } + + @Test + @TestMetadata("serializedCatch.kt") + public void testSerializedCatch() { + runTest("compiler/testData/codegen/box/serialization/serializedCatch.kt"); + } + + @Test + @TestMetadata("serializedCharConstant.kt") + public void testSerializedCharConstant() { + runTest("compiler/testData/codegen/box/serialization/serializedCharConstant.kt"); + } + + @Test + @TestMetadata("serializedDefaultArgs.kt") + public void testSerializedDefaultArgs() { + runTest("compiler/testData/codegen/box/serialization/serializedDefaultArgs.kt"); + } + + @Test + @TestMetadata("serializedDoWhile.kt") + public void testSerializedDoWhile() { + runTest("compiler/testData/codegen/box/serialization/serializedDoWhile.kt"); + } + + @Test + @TestMetadata("serializedEnumOrdinal.kt") + public void testSerializedEnumOrdinal() { + runTest("compiler/testData/codegen/box/serialization/serializedEnumOrdinal.kt"); + } + + @Test + @TestMetadata("serializedVararg.kt") + public void testSerializedVararg() { + runTest("compiler/testData/codegen/box/serialization/serializedVararg.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/size") @TestDataPath("$PROJECT_ROOT") @@ -52396,6 +55388,22 @@ public class FirPsiBlackBoxCodegenTestGenerated extends AbstractFirPsiBlackBoxCo } } + @Nested + @TestMetadata("compiler/testData/codegen/box/stringTrim") + @TestDataPath("$PROJECT_ROOT") + public class StringTrim { + @Test + public void testAllFilesPresentInStringTrim() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/stringTrim"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("stringTrim.kt") + public void testStringTrim() { + runTest("compiler/testData/codegen/box/stringTrim/stringTrim.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/strings") @TestDataPath("$PROJECT_ROOT") @@ -53924,6 +56932,142 @@ public class FirPsiBlackBoxCodegenTestGenerated extends AbstractFirPsiBlackBoxCo } } + @Nested + @TestMetadata("compiler/testData/codegen/box/try") + @TestDataPath("$PROJECT_ROOT") + public class Try { + @Test + public void testAllFilesPresentInTry() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/try"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("catch3.kt") + public void testCatch3() { + runTest("compiler/testData/codegen/box/try/catch3.kt"); + } + + @Test + @TestMetadata("catch4.kt") + public void testCatch4() { + runTest("compiler/testData/codegen/box/try/catch4.kt"); + } + + @Test + @TestMetadata("catch5.kt") + public void testCatch5() { + runTest("compiler/testData/codegen/box/try/catch5.kt"); + } + + @Test + @TestMetadata("catch6.kt") + public void testCatch6() { + runTest("compiler/testData/codegen/box/try/catch6.kt"); + } + + @Test + @TestMetadata("catch8.kt") + public void testCatch8() { + runTest("compiler/testData/codegen/box/try/catch8.kt"); + } + + @Test + @TestMetadata("finally1.kt") + public void testFinally1() { + runTest("compiler/testData/codegen/box/try/finally1.kt"); + } + + @Test + @TestMetadata("finally10.kt") + public void testFinally10() { + runTest("compiler/testData/codegen/box/try/finally10.kt"); + } + + @Test + @TestMetadata("finally11.kt") + public void testFinally11() { + runTest("compiler/testData/codegen/box/try/finally11.kt"); + } + + @Test + @TestMetadata("finally2.kt") + public void testFinally2() { + runTest("compiler/testData/codegen/box/try/finally2.kt"); + } + + @Test + @TestMetadata("finally3.kt") + public void testFinally3() { + runTest("compiler/testData/codegen/box/try/finally3.kt"); + } + + @Test + @TestMetadata("finally4.kt") + public void testFinally4() { + runTest("compiler/testData/codegen/box/try/finally4.kt"); + } + + @Test + @TestMetadata("finally5.kt") + public void testFinally5() { + runTest("compiler/testData/codegen/box/try/finally5.kt"); + } + + @Test + @TestMetadata("finally6.kt") + public void testFinally6() { + runTest("compiler/testData/codegen/box/try/finally6.kt"); + } + + @Test + @TestMetadata("finally7.kt") + public void testFinally7() { + runTest("compiler/testData/codegen/box/try/finally7.kt"); + } + + @Test + @TestMetadata("finally8.kt") + public void testFinally8() { + runTest("compiler/testData/codegen/box/try/finally8.kt"); + } + + @Test + @TestMetadata("finally9.kt") + public void testFinally9() { + runTest("compiler/testData/codegen/box/try/finally9.kt"); + } + + @Test + @TestMetadata("returnsDifferentTypes.kt") + public void testReturnsDifferentTypes() { + runTest("compiler/testData/codegen/box/try/returnsDifferentTypes.kt"); + } + + @Test + @TestMetadata("try1.kt") + public void testTry1() { + runTest("compiler/testData/codegen/box/try/try1.kt"); + } + + @Test + @TestMetadata("try2.kt") + public void testTry2() { + runTest("compiler/testData/codegen/box/try/try2.kt"); + } + + @Test + @TestMetadata("try3.kt") + public void testTry3() { + runTest("compiler/testData/codegen/box/try/try3.kt"); + } + + @Test + @TestMetadata("try4.kt") + public void testTry4() { + runTest("compiler/testData/codegen/box/try/try4.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/typeInfo") @TestDataPath("$PROJECT_ROOT") diff --git a/native/native.tests/testData/codegen/annotations/annotations0.kt b/compiler/testData/codegen/box/annotations/annotations0.kt similarity index 83% rename from native/native.tests/testData/codegen/annotations/annotations0.kt rename to compiler/testData/codegen/box/annotations/annotations0.kt index c817a590d3c..0b9ee2f4057 100644 --- a/native/native.tests/testData/codegen/annotations/annotations0.kt +++ b/compiler/testData/codegen/box/annotations/annotations0.kt @@ -2,6 +2,9 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// KT-66094: java.lang.InstantiationError: Foo +// DONT_TARGET_EXACT_BACKEND: JVM +// WITH_STDLIB // FILE: 1.kt diff --git a/native/native.tests/testData/codegen/arithmetic/basic_charConversions.kt b/compiler/testData/codegen/box/arithmetic/basic_charConversions.kt similarity index 96% rename from native/native.tests/testData/codegen/arithmetic/basic_charConversions.kt rename to compiler/testData/codegen/box/arithmetic/basic_charConversions.kt index b99fe570827..7fae087427c 100644 --- a/native/native.tests/testData/codegen/arithmetic/basic_charConversions.kt +++ b/compiler/testData/codegen/box/arithmetic/basic_charConversions.kt @@ -1,3 +1,4 @@ +// WITH_STDLIB import kotlin.test.* fun box(): String { diff --git a/native/native.tests/testData/codegen/arithmetic/basic_charCornerCases.kt b/compiler/testData/codegen/box/arithmetic/basic_charCornerCases.kt similarity index 96% rename from native/native.tests/testData/codegen/arithmetic/basic_charCornerCases.kt rename to compiler/testData/codegen/box/arithmetic/basic_charCornerCases.kt index 9231cc5b5b1..4292c7e6705 100644 --- a/native/native.tests/testData/codegen/arithmetic/basic_charCornerCases.kt +++ b/compiler/testData/codegen/box/arithmetic/basic_charCornerCases.kt @@ -1,3 +1,4 @@ +// WITH_STDLIB import kotlin.test.* private fun charCornersMinus(): Int { diff --git a/native/native.tests/testData/codegen/arithmetic/basic_compareIntToFloat.kt b/compiler/testData/codegen/box/arithmetic/basic_compareIntToFloat.kt similarity index 90% rename from native/native.tests/testData/codegen/arithmetic/basic_compareIntToFloat.kt rename to compiler/testData/codegen/box/arithmetic/basic_compareIntToFloat.kt index 9b3e0507016..815ce86cafc 100644 --- a/native/native.tests/testData/codegen/arithmetic/basic_compareIntToFloat.kt +++ b/compiler/testData/codegen/box/arithmetic/basic_compareIntToFloat.kt @@ -1,3 +1,4 @@ +// WITH_STDLIB import kotlin.test.* fun box(): String { diff --git a/native/native.tests/testData/codegen/arithmetic/basic_doubleBasic.kt b/compiler/testData/codegen/box/arithmetic/basic_doubleBasic.kt similarity index 96% rename from native/native.tests/testData/codegen/arithmetic/basic_doubleBasic.kt rename to compiler/testData/codegen/box/arithmetic/basic_doubleBasic.kt index ea2f8ff3422..8527a1249f6 100644 --- a/native/native.tests/testData/codegen/arithmetic/basic_doubleBasic.kt +++ b/compiler/testData/codegen/box/arithmetic/basic_doubleBasic.kt @@ -1,3 +1,4 @@ +// WITH_STDLIB import kotlin.test.* fun box(): String { diff --git a/native/native.tests/testData/codegen/arithmetic/basic_integralToFloat.kt b/compiler/testData/codegen/box/arithmetic/basic_integralToFloat.kt similarity index 88% rename from native/native.tests/testData/codegen/arithmetic/basic_integralToFloat.kt rename to compiler/testData/codegen/box/arithmetic/basic_integralToFloat.kt index 685536c9a6d..b4e0e0929e0 100644 --- a/native/native.tests/testData/codegen/arithmetic/basic_integralToFloat.kt +++ b/compiler/testData/codegen/box/arithmetic/basic_integralToFloat.kt @@ -1,3 +1,6 @@ +// WITH_STDLIB +// KT-66079 +// IGNORE_BACKEND: JS_IR, JS_IR_ES6 import kotlin.test.* fun box(): String { diff --git a/native/native.tests/testData/codegen/arithmetic/basic_kt37412.kt b/compiler/testData/codegen/box/arithmetic/basic_kt37412.kt similarity index 88% rename from native/native.tests/testData/codegen/arithmetic/basic_kt37412.kt rename to compiler/testData/codegen/box/arithmetic/basic_kt37412.kt index abcbbf98415..4e86197c5c9 100644 --- a/native/native.tests/testData/codegen/arithmetic/basic_kt37412.kt +++ b/compiler/testData/codegen/box/arithmetic/basic_kt37412.kt @@ -1,3 +1,4 @@ +// WITH_STDLIB import kotlin.test.* fun box(): String { diff --git a/native/native.tests/testData/codegen/arithmetic/basic_selfComparison.kt b/compiler/testData/codegen/box/arithmetic/basic_selfComparison.kt similarity index 94% rename from native/native.tests/testData/codegen/arithmetic/basic_selfComparison.kt rename to compiler/testData/codegen/box/arithmetic/basic_selfComparison.kt index db91f9f7e63..1b25b4ee2a6 100644 --- a/native/native.tests/testData/codegen/arithmetic/basic_selfComparison.kt +++ b/compiler/testData/codegen/box/arithmetic/basic_selfComparison.kt @@ -1,3 +1,4 @@ +// WITH_STDLIB import kotlin.test.* // Check that compiler doesn't optimize it to `true` diff --git a/native/native.tests/testData/codegen/arithmetic/basic_shifts.kt b/compiler/testData/codegen/box/arithmetic/basic_shifts.kt similarity index 93% rename from native/native.tests/testData/codegen/arithmetic/basic_shifts.kt rename to compiler/testData/codegen/box/arithmetic/basic_shifts.kt index 90900e4e655..607b29d6b1f 100644 --- a/native/native.tests/testData/codegen/arithmetic/basic_shifts.kt +++ b/compiler/testData/codegen/box/arithmetic/basic_shifts.kt @@ -1,3 +1,4 @@ +// WITH_STDLIB import kotlin.test.* fun box(): String { diff --git a/native/native.tests/testData/codegen/arithmetic/basic_uintTests.kt b/compiler/testData/codegen/box/arithmetic/basic_uintTests.kt similarity index 88% rename from native/native.tests/testData/codegen/arithmetic/basic_uintTests.kt rename to compiler/testData/codegen/box/arithmetic/basic_uintTests.kt index 16188823ada..da302aa6fea 100644 --- a/native/native.tests/testData/codegen/arithmetic/basic_uintTests.kt +++ b/compiler/testData/codegen/box/arithmetic/basic_uintTests.kt @@ -1,3 +1,4 @@ +// WITH_STDLIB import kotlin.test.* fun box(): String { diff --git a/native/native.tests/testData/codegen/arithmetic/division.kt b/compiler/testData/codegen/box/arithmetic/division.kt similarity index 75% rename from native/native.tests/testData/codegen/arithmetic/division.kt rename to compiler/testData/codegen/box/arithmetic/division.kt index 06da86421ce..52836a183ab 100644 --- a/native/native.tests/testData/codegen/arithmetic/division.kt +++ b/compiler/testData/codegen/box/arithmetic/division.kt @@ -1,3 +1,8 @@ +// WITH_STDLIB +// KT-66080 +// IGNORE_BACKEND: JS_IR, JS_IR_ES6 +// KT-66081 +// IGNORE_BACKEND: WASM import kotlin.test.* fun box(): String { diff --git a/native/native.tests/testData/codegen/arithmetic/github1856.kt b/compiler/testData/codegen/box/arithmetic/github1856.kt similarity index 98% rename from native/native.tests/testData/codegen/arithmetic/github1856.kt rename to compiler/testData/codegen/box/arithmetic/github1856.kt index 750903a7562..a3015ef3d01 100644 --- a/native/native.tests/testData/codegen/arithmetic/github1856.kt +++ b/compiler/testData/codegen/box/arithmetic/github1856.kt @@ -1,3 +1,4 @@ +// WITH_STDLIB import kotlin.test.* object RGBA { diff --git a/native/native.tests/testData/codegen/basics/array_to_any.kt b/compiler/testData/codegen/box/basics/array_to_any.kt similarity index 95% rename from native/native.tests/testData/codegen/basics/array_to_any.kt rename to compiler/testData/codegen/box/basics/array_to_any.kt index eca6e053545..534d9baba85 100644 --- a/native/native.tests/testData/codegen/basics/array_to_any.kt +++ b/compiler/testData/codegen/box/basics/array_to_any.kt @@ -2,7 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ - +// WITH_STDLIB import kotlin.test.* fun box(): String { diff --git a/compiler/testData/codegen/box/basics/canonical_name.jvm_abi.txt b/compiler/testData/codegen/box/basics/canonical_name.jvm_abi.txt new file mode 100644 index 00000000000..98ae5f93226 --- /dev/null +++ b/compiler/testData/codegen/box/basics/canonical_name.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS Canonical_nameKt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/basics/canonical_name.kt b/compiler/testData/codegen/box/basics/canonical_name.kt similarity index 95% rename from native/native.tests/testData/codegen/basics/canonical_name.kt rename to compiler/testData/codegen/box/basics/canonical_name.kt index a38f96cb683..54a911fe593 100644 --- a/native/native.tests/testData/codegen/basics/canonical_name.kt +++ b/compiler/testData/codegen/box/basics/canonical_name.kt @@ -2,7 +2,8 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ - +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB import kotlin.test.* val sb = StringBuilder() diff --git a/native/native.tests/testData/codegen/basics/cast_null.kt b/compiler/testData/codegen/box/basics/cast_null.kt similarity index 98% rename from native/native.tests/testData/codegen/basics/cast_null.kt rename to compiler/testData/codegen/box/basics/cast_null.kt index 903ee5c4694..464e39e079d 100644 --- a/native/native.tests/testData/codegen/basics/cast_null.kt +++ b/compiler/testData/codegen/box/basics/cast_null.kt @@ -2,7 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ - +// WITH_STDLIB import kotlin.test.* fun box(): String { diff --git a/native/native.tests/testData/codegen/basics/cast_simple.kt b/compiler/testData/codegen/box/basics/cast_simple.kt similarity index 96% rename from native/native.tests/testData/codegen/basics/cast_simple.kt rename to compiler/testData/codegen/box/basics/cast_simple.kt index fd05a964318..bc7f04dd5c8 100644 --- a/native/native.tests/testData/codegen/basics/cast_simple.kt +++ b/compiler/testData/codegen/box/basics/cast_simple.kt @@ -2,7 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ - +// WITH_STDLIB import kotlin.test.* open class A() {} diff --git a/native/native.tests/testData/codegen/basics/check_type.kt b/compiler/testData/codegen/box/basics/check_type.kt similarity index 98% rename from native/native.tests/testData/codegen/basics/check_type.kt rename to compiler/testData/codegen/box/basics/check_type.kt index 54a4ece7918..b6d3884efab 100644 --- a/native/native.tests/testData/codegen/basics/check_type.kt +++ b/compiler/testData/codegen/box/basics/check_type.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* interface I diff --git a/native/native.tests/testData/codegen/basics/companion.kt b/compiler/testData/codegen/box/basics/companion.kt similarity index 100% rename from native/native.tests/testData/codegen/basics/companion.kt rename to compiler/testData/codegen/box/basics/companion.kt diff --git a/native/native.tests/testData/codegen/basics/concatenation.kt b/compiler/testData/codegen/box/basics/concatenation.kt similarity index 96% rename from native/native.tests/testData/codegen/basics/concatenation.kt rename to compiler/testData/codegen/box/basics/concatenation.kt index 24cb1cef080..4e00f5117a4 100644 --- a/native/native.tests/testData/codegen/basics/concatenation.kt +++ b/compiler/testData/codegen/box/basics/concatenation.kt @@ -2,7 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ - +// WITH_STDLIB import kotlin.test.* fun box(): String { diff --git a/native/native.tests/testData/codegen/basics/const_infinity.kt b/compiler/testData/codegen/box/basics/const_infinity.kt similarity index 97% rename from native/native.tests/testData/codegen/basics/const_infinity.kt rename to compiler/testData/codegen/box/basics/const_infinity.kt index b35ec807310..1d0da4fd0bf 100644 --- a/native/native.tests/testData/codegen/basics/const_infinity.kt +++ b/compiler/testData/codegen/box/basics/const_infinity.kt @@ -2,7 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ - +// WITH_STDLIB import kotlin.test.* //Original issue here https://youtrack.jetbrains.com/issue/KT-37212 diff --git a/native/native.tests/testData/codegen/basics/expression_as_statement.kt b/compiler/testData/codegen/box/basics/expression_as_statement.kt similarity index 95% rename from native/native.tests/testData/codegen/basics/expression_as_statement.kt rename to compiler/testData/codegen/box/basics/expression_as_statement.kt index 3fe3449e4da..8535033d337 100644 --- a/native/native.tests/testData/codegen/basics/expression_as_statement.kt +++ b/compiler/testData/codegen/box/basics/expression_as_statement.kt @@ -2,7 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ - +// WITH_STDLIB import kotlin.test.* fun foo() { diff --git a/native/native.tests/testData/codegen/basics/k42000_1.kt b/compiler/testData/codegen/box/basics/k42000_1.kt similarity index 98% rename from native/native.tests/testData/codegen/basics/k42000_1.kt rename to compiler/testData/codegen/box/basics/k42000_1.kt index 868001682c6..2783c0816f5 100644 --- a/native/native.tests/testData/codegen/basics/k42000_1.kt +++ b/compiler/testData/codegen/box/basics/k42000_1.kt @@ -1,3 +1,4 @@ +// WITH_STDLIB import kotlin.test.* fun box(): String { diff --git a/native/native.tests/testData/codegen/basics/k42000_2.kt b/compiler/testData/codegen/box/basics/k42000_2.kt similarity index 93% rename from native/native.tests/testData/codegen/basics/k42000_2.kt rename to compiler/testData/codegen/box/basics/k42000_2.kt index 4b30759d9d5..45fe4fb3955 100644 --- a/native/native.tests/testData/codegen/basics/k42000_2.kt +++ b/compiler/testData/codegen/box/basics/k42000_2.kt @@ -1,3 +1,4 @@ +// WITH_STDLIB import kotlin.test.* // https://youtrack.jetbrains.com/issue/KT-42000 diff --git a/native/native.tests/testData/codegen/basics/local_variable.kt b/compiler/testData/codegen/box/basics/local_variable.kt similarity index 95% rename from native/native.tests/testData/codegen/basics/local_variable.kt rename to compiler/testData/codegen/box/basics/local_variable.kt index 0ec7b3e170b..65dc1db7bf1 100644 --- a/native/native.tests/testData/codegen/basics/local_variable.kt +++ b/compiler/testData/codegen/box/basics/local_variable.kt @@ -2,7 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ - +// WITH_STDLIB import kotlin.test.* fun local_variable(a: Int) : Int { diff --git a/native/native.tests/testData/codegen/basics/null_check.kt b/compiler/testData/codegen/box/basics/null_check.kt similarity index 98% rename from native/native.tests/testData/codegen/basics/null_check.kt rename to compiler/testData/codegen/box/basics/null_check.kt index 8919729041e..45ffe87df05 100644 --- a/native/native.tests/testData/codegen/basics/null_check.kt +++ b/compiler/testData/codegen/box/basics/null_check.kt @@ -2,7 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ - +// WITH_STDLIB import kotlin.test.* //--- Test "eqeq" -------------------------------------------------------------// diff --git a/native/native.tests/testData/codegen/basics/safe_cast.kt b/compiler/testData/codegen/box/basics/safe_cast.kt similarity index 97% rename from native/native.tests/testData/codegen/basics/safe_cast.kt rename to compiler/testData/codegen/box/basics/safe_cast.kt index c53f7e739b3..b220483b01f 100644 --- a/native/native.tests/testData/codegen/basics/safe_cast.kt +++ b/compiler/testData/codegen/box/basics/safe_cast.kt @@ -2,7 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ - +// WITH_STDLIB import kotlin.test.* open class A diff --git a/native/native.tests/testData/codegen/basics/spread_operator_0.kt b/compiler/testData/codegen/box/basics/spread_operator_0.kt similarity index 97% rename from native/native.tests/testData/codegen/basics/spread_operator_0.kt rename to compiler/testData/codegen/box/basics/spread_operator_0.kt index dffaba2e9cc..719c50dec67 100644 --- a/native/native.tests/testData/codegen/basics/spread_operator_0.kt +++ b/compiler/testData/codegen/box/basics/spread_operator_0.kt @@ -2,7 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ - +// WITH_STDLIB import kotlin.test.* fun box(): String { diff --git a/compiler/testData/codegen/box/basics/statements0.jvm_abi.txt b/compiler/testData/codegen/box/basics/statements0.jvm_abi.txt new file mode 100644 index 00000000000..5f6acf122e1 --- /dev/null +++ b/compiler/testData/codegen/box/basics/statements0.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS Statements0Kt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/basics/statements0.kt b/compiler/testData/codegen/box/basics/statements0.kt similarity index 93% rename from native/native.tests/testData/codegen/basics/statements0.kt rename to compiler/testData/codegen/box/basics/statements0.kt index c07aab4b37e..5d0785deda6 100644 --- a/native/native.tests/testData/codegen/basics/statements0.kt +++ b/compiler/testData/codegen/box/basics/statements0.kt @@ -2,7 +2,8 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ - +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB import kotlin.test.* val sb = StringBuilder() diff --git a/native/native.tests/testData/codegen/basics/superFunCall.kt b/compiler/testData/codegen/box/basics/superFunCall.kt similarity index 97% rename from native/native.tests/testData/codegen/basics/superFunCall.kt rename to compiler/testData/codegen/box/basics/superFunCall.kt index 896062609c8..f55258ea1e6 100644 --- a/native/native.tests/testData/codegen/basics/superFunCall.kt +++ b/compiler/testData/codegen/box/basics/superFunCall.kt @@ -2,7 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ - +// WITH_STDLIB import kotlin.test.* open class C { diff --git a/native/native.tests/testData/codegen/basics/superGetterCall.kt b/compiler/testData/codegen/box/basics/superGetterCall.kt similarity index 97% rename from native/native.tests/testData/codegen/basics/superGetterCall.kt rename to compiler/testData/codegen/box/basics/superGetterCall.kt index 5fb5b5ed19e..156a28090db 100644 --- a/native/native.tests/testData/codegen/basics/superGetterCall.kt +++ b/compiler/testData/codegen/box/basics/superGetterCall.kt @@ -2,7 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ - +// WITH_STDLIB import kotlin.test.* open class C { diff --git a/native/native.tests/testData/codegen/basics/superSetterCall.kt b/compiler/testData/codegen/box/basics/superSetterCall.kt similarity index 98% rename from native/native.tests/testData/codegen/basics/superSetterCall.kt rename to compiler/testData/codegen/box/basics/superSetterCall.kt index f061df2b4b8..b2da05bed42 100644 --- a/native/native.tests/testData/codegen/basics/superSetterCall.kt +++ b/compiler/testData/codegen/box/basics/superSetterCall.kt @@ -2,7 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ - +// WITH_STDLIB import kotlin.test.* open class C { diff --git a/native/native.tests/testData/codegen/basics/typealias1.kt b/compiler/testData/codegen/box/basics/typealias1.kt similarity index 95% rename from native/native.tests/testData/codegen/basics/typealias1.kt rename to compiler/testData/codegen/box/basics/typealias1.kt index 910e8da450a..c24274d6ea5 100644 --- a/native/native.tests/testData/codegen/basics/typealias1.kt +++ b/compiler/testData/codegen/box/basics/typealias1.kt @@ -2,7 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ - +// WITH_STDLIB import kotlin.test.* fun box(): String { diff --git a/compiler/testData/codegen/box/basics/unchecked_cast1.jvm_abi.txt b/compiler/testData/codegen/box/basics/unchecked_cast1.jvm_abi.txt new file mode 100644 index 00000000000..9eb00d4f182 --- /dev/null +++ b/compiler/testData/codegen/box/basics/unchecked_cast1.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS Unchecked_cast1Kt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/basics/unchecked_cast1.kt b/compiler/testData/codegen/box/basics/unchecked_cast1.kt similarity index 91% rename from native/native.tests/testData/codegen/basics/unchecked_cast1.kt rename to compiler/testData/codegen/box/basics/unchecked_cast1.kt index 55db5e689c3..36571cfbbf8 100644 --- a/native/native.tests/testData/codegen/basics/unchecked_cast1.kt +++ b/compiler/testData/codegen/box/basics/unchecked_cast1.kt @@ -2,7 +2,8 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ - +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB import kotlin.test.* val sb = StringBuilder() diff --git a/native/native.tests/testData/codegen/basics/unchecked_cast2.kt b/compiler/testData/codegen/box/basics/unchecked_cast2.kt similarity index 77% rename from native/native.tests/testData/codegen/basics/unchecked_cast2.kt rename to compiler/testData/codegen/box/basics/unchecked_cast2.kt index dec6da39448..45087c52d0a 100644 --- a/native/native.tests/testData/codegen/basics/unchecked_cast2.kt +++ b/compiler/testData/codegen/box/basics/unchecked_cast2.kt @@ -2,8 +2,13 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// KT-66086 // IGNORE_BACKEND: NATIVE - +// KT-66084 +// IGNORE_BACKEND: JS_IR, JS_IR_ES6 +// KT-66085 +// IGNORE_BACKEND: WASM +// WITH_STDLIB import kotlin.test.* fun box(): String { diff --git a/native/native.tests/testData/codegen/basics/unchecked_cast3.kt b/compiler/testData/codegen/box/basics/unchecked_cast3.kt similarity index 98% rename from native/native.tests/testData/codegen/basics/unchecked_cast3.kt rename to compiler/testData/codegen/box/basics/unchecked_cast3.kt index b7b088c9a60..edc31f2c91c 100644 --- a/native/native.tests/testData/codegen/basics/unchecked_cast3.kt +++ b/compiler/testData/codegen/box/basics/unchecked_cast3.kt @@ -2,7 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ - +// WITH_STDLIB import kotlin.test.* fun box(): String { diff --git a/native/native.tests/testData/codegen/basics/unchecked_cast4.kt b/compiler/testData/codegen/box/basics/unchecked_cast4.kt similarity index 97% rename from native/native.tests/testData/codegen/basics/unchecked_cast4.kt rename to compiler/testData/codegen/box/basics/unchecked_cast4.kt index be791c6a7c4..c79ffa87d19 100644 --- a/native/native.tests/testData/codegen/basics/unchecked_cast4.kt +++ b/compiler/testData/codegen/box/basics/unchecked_cast4.kt @@ -2,7 +2,7 @@ * Copyright 2010-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ - +// WITH_STDLIB import kotlin.test.* fun box(): String { diff --git a/native/native.tests/testData/codegen/basics/unit1.kt b/compiler/testData/codegen/box/basics/unit1.kt similarity index 79% rename from native/native.tests/testData/codegen/basics/unit1.kt rename to compiler/testData/codegen/box/basics/unit1.kt index 983c04d87ce..80b50e14256 100644 --- a/native/native.tests/testData/codegen/basics/unit1.kt +++ b/compiler/testData/codegen/box/basics/unit1.kt @@ -2,9 +2,10 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +fun myPrintln(a: Any): Unit {} fun box(): String { - val unit = println("First") + val unit = myPrintln("First") if (unit.toString() != "kotlin.Unit") return "FAIL 1: $unit" return "OK" -} \ No newline at end of file +} diff --git a/native/native.tests/testData/codegen/basics/unit2.kt b/compiler/testData/codegen/box/basics/unit2.kt similarity index 100% rename from native/native.tests/testData/codegen/basics/unit2.kt rename to compiler/testData/codegen/box/basics/unit2.kt diff --git a/native/native.tests/testData/codegen/basics/unit3.kt b/compiler/testData/codegen/box/basics/unit3.kt similarity index 100% rename from native/native.tests/testData/codegen/basics/unit3.kt rename to compiler/testData/codegen/box/basics/unit3.kt diff --git a/native/native.tests/testData/codegen/basics/unit4.kt b/compiler/testData/codegen/box/basics/unit4.kt similarity index 100% rename from native/native.tests/testData/codegen/basics/unit4.kt rename to compiler/testData/codegen/box/basics/unit4.kt diff --git a/native/native.tests/testData/codegen/bce/bceCases.kt b/compiler/testData/codegen/box/bce/bceCases.kt similarity index 99% rename from native/native.tests/testData/codegen/bce/bceCases.kt rename to compiler/testData/codegen/box/bce/bceCases.kt index 8811a6c5d39..5a029c86489 100644 --- a/native/native.tests/testData/codegen/bce/bceCases.kt +++ b/compiler/testData/codegen/box/bce/bceCases.kt @@ -2,6 +2,7 @@ * Copyright 2010-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* fun foo(a: Int, b : Int): Int = a + b * 2 diff --git a/native/native.tests/testData/codegen/bce/customGetter.kt b/compiler/testData/codegen/box/bce/customGetter.kt similarity index 73% rename from native/native.tests/testData/codegen/bce/customGetter.kt rename to compiler/testData/codegen/box/bce/customGetter.kt index 651639976fc..a12f8a81c43 100644 --- a/native/native.tests/testData/codegen/bce/customGetter.kt +++ b/compiler/testData/codegen/box/bce/customGetter.kt @@ -2,6 +2,9 @@ * Copyright 2010-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// KT-66100: AssertionError: Expected an exception of class IndexOutOfBoundsException to be thrown, but was completed successfully. +// IGNORE_BACKEND: JS_IR, JS_IR_ES6 +// WITH_STDLIB import kotlin.test.* var needSmallArray = true diff --git a/native/native.tests/testData/codegen/bce/delegatedProperty.kt b/compiler/testData/codegen/box/bce/delegatedProperty.kt similarity index 80% rename from native/native.tests/testData/codegen/bce/delegatedProperty.kt rename to compiler/testData/codegen/box/bce/delegatedProperty.kt index 7b5a101557a..a2ee7a0b89a 100644 --- a/native/native.tests/testData/codegen/bce/delegatedProperty.kt +++ b/compiler/testData/codegen/box/bce/delegatedProperty.kt @@ -2,6 +2,10 @@ * Copyright 2010-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// KT-66100: AssertionError: Expected an exception of class IndexOutOfBoundsException to be thrown, but was completed successfully. +// IGNORE_BACKEND: JS_IR, JS_IR_ES6 +// WITH_STDLIB +// WITH_REFLECT import kotlin.test.* import kotlin.reflect.KProperty diff --git a/native/native.tests/testData/codegen/bce/differentArrays.kt b/compiler/testData/codegen/box/bce/differentArrays.kt similarity index 76% rename from native/native.tests/testData/codegen/bce/differentArrays.kt rename to compiler/testData/codegen/box/bce/differentArrays.kt index 774116b9866..549bdd36ed6 100644 --- a/native/native.tests/testData/codegen/bce/differentArrays.kt +++ b/compiler/testData/codegen/box/bce/differentArrays.kt @@ -2,6 +2,9 @@ * Copyright 2010-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// KT-66100: AssertionError: Expected an exception of class IndexOutOfBoundsException to be thrown, but was completed successfully. +// IGNORE_BACKEND: JS_IR, JS_IR_ES6 +// WITH_STDLIB import kotlin.test.* class Foo(size: Int) { diff --git a/native/native.tests/testData/codegen/bce/differentObjects.kt b/compiler/testData/codegen/box/bce/differentObjects.kt similarity index 78% rename from native/native.tests/testData/codegen/bce/differentObjects.kt rename to compiler/testData/codegen/box/bce/differentObjects.kt index 687662c3c29..cad0bae1ce1 100644 --- a/native/native.tests/testData/codegen/bce/differentObjects.kt +++ b/compiler/testData/codegen/box/bce/differentObjects.kt @@ -2,6 +2,9 @@ * Copyright 2010-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// KT-66100: AssertionError: Expected an exception of class IndexOutOfBoundsException to be thrown, but was completed successfully. +// IGNORE_BACKEND: JS_IR, JS_IR_ES6 +// WITH_STDLIB import kotlin.test.* class First(initArray: Array) { diff --git a/native/native.tests/testData/codegen/bce/forDownToSize.kt b/compiler/testData/codegen/box/bce/forDownToSize.kt similarity index 87% rename from native/native.tests/testData/codegen/bce/forDownToSize.kt rename to compiler/testData/codegen/box/bce/forDownToSize.kt index 207807c63e4..7e602b69775 100644 --- a/native/native.tests/testData/codegen/bce/forDownToSize.kt +++ b/compiler/testData/codegen/box/bce/forDownToSize.kt @@ -2,6 +2,9 @@ * Copyright 2010-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// KT-66100: AssertionError: Expected an exception of class IndexOutOfBoundsException to be thrown, but was completed successfully. +// IGNORE_BACKEND: JS_IR, JS_IR_ES6 +// WITH_STDLIB import kotlin.test.* fun box(): String { diff --git a/native/native.tests/testData/codegen/bce/forDownToWithStep.kt b/compiler/testData/codegen/box/bce/forDownToWithStep.kt similarity index 86% rename from native/native.tests/testData/codegen/bce/forDownToWithStep.kt rename to compiler/testData/codegen/box/bce/forDownToWithStep.kt index 91f61925e30..faab8ec8c48 100644 --- a/native/native.tests/testData/codegen/bce/forDownToWithStep.kt +++ b/compiler/testData/codegen/box/bce/forDownToWithStep.kt @@ -2,6 +2,9 @@ * Copyright 2010-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// KT-66100: AssertionError: Expected an exception of class IndexOutOfBoundsException to be thrown, but was completed successfully. +// IGNORE_BACKEND: JS_IR, JS_IR_ES6 +// WITH_STDLIB import kotlin.test.* fun box(): String { diff --git a/native/native.tests/testData/codegen/bce/forEachIndexedTest.kt b/compiler/testData/codegen/box/bce/forEachIndexedTest.kt similarity index 67% rename from native/native.tests/testData/codegen/bce/forEachIndexedTest.kt rename to compiler/testData/codegen/box/bce/forEachIndexedTest.kt index 11185ce4a96..91f75536635 100644 --- a/native/native.tests/testData/codegen/bce/forEachIndexedTest.kt +++ b/compiler/testData/codegen/box/bce/forEachIndexedTest.kt @@ -2,6 +2,9 @@ * Copyright 2010-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// KT-66100: AssertionError: Expected an exception of class IndexOutOfBoundsException to be thrown, but was completed successfully. +// IGNORE_BACKEND: JS_IR, JS_IR_ES6 +// WITH_STDLIB import kotlin.test.* fun box(): String { diff --git a/native/native.tests/testData/codegen/bce/forEachIndicies.kt b/compiler/testData/codegen/box/bce/forEachIndicies.kt similarity index 78% rename from native/native.tests/testData/codegen/bce/forEachIndicies.kt rename to compiler/testData/codegen/box/bce/forEachIndicies.kt index f9563b2ba70..5b4d6e70a5f 100644 --- a/native/native.tests/testData/codegen/bce/forEachIndicies.kt +++ b/compiler/testData/codegen/box/bce/forEachIndicies.kt @@ -2,6 +2,9 @@ * Copyright 2010-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// KT-66100: AssertionError: Expected an exception of class IndexOutOfBoundsException to be thrown, but was completed successfully. +// IGNORE_BACKEND: JS_IR, JS_IR_ES6 +// WITH_STDLIB import kotlin.test.* fun box(): String { diff --git a/native/native.tests/testData/codegen/bce/forIndiciesWithStep.kt b/compiler/testData/codegen/box/bce/forIndiciesWithStep.kt similarity index 79% rename from native/native.tests/testData/codegen/bce/forIndiciesWithStep.kt rename to compiler/testData/codegen/box/bce/forIndiciesWithStep.kt index ee2238e5577..2887de2c169 100644 --- a/native/native.tests/testData/codegen/bce/forIndiciesWithStep.kt +++ b/compiler/testData/codegen/box/bce/forIndiciesWithStep.kt @@ -2,6 +2,9 @@ * Copyright 2010-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// KT-66100: AssertionError: Expected an exception of class IndexOutOfBoundsException to be thrown, but was completed successfully. +// IGNORE_BACKEND: JS_IR, JS_IR_ES6 +// WITH_STDLIB import kotlin.test.* fun box(): String { diff --git a/native/native.tests/testData/codegen/bce/forRangeToSize.kt b/compiler/testData/codegen/box/bce/forRangeToSize.kt similarity index 87% rename from native/native.tests/testData/codegen/bce/forRangeToSize.kt rename to compiler/testData/codegen/box/bce/forRangeToSize.kt index 93fcad3a215..03965a85b25 100644 --- a/native/native.tests/testData/codegen/bce/forRangeToSize.kt +++ b/compiler/testData/codegen/box/bce/forRangeToSize.kt @@ -2,6 +2,9 @@ * Copyright 2010-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// KT-66100: AssertionError: Expected an exception of class IndexOutOfBoundsException to be thrown, but was completed successfully. +// IGNORE_BACKEND: JS_IR, JS_IR_ES6 +// WITH_STDLIB import kotlin.test.* fun box(): String { diff --git a/native/native.tests/testData/codegen/bce/forRangeToWithStep.kt b/compiler/testData/codegen/box/bce/forRangeToWithStep.kt similarity index 86% rename from native/native.tests/testData/codegen/bce/forRangeToWithStep.kt rename to compiler/testData/codegen/box/bce/forRangeToWithStep.kt index 1ac2f43a26c..2ea716e68cb 100644 --- a/native/native.tests/testData/codegen/bce/forRangeToWithStep.kt +++ b/compiler/testData/codegen/box/bce/forRangeToWithStep.kt @@ -2,6 +2,9 @@ * Copyright 2010-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// KT-66100: AssertionError: Expected an exception of class IndexOutOfBoundsException to be thrown, but was completed successfully. +// IGNORE_BACKEND: JS_IR, JS_IR_ES6 +// WITH_STDLIB import kotlin.test.* fun box(): String { diff --git a/native/native.tests/testData/codegen/bce/forReversed.kt b/compiler/testData/codegen/box/bce/forReversed.kt similarity index 82% rename from native/native.tests/testData/codegen/bce/forReversed.kt rename to compiler/testData/codegen/box/bce/forReversed.kt index 42def08c47f..0b66b408e8f 100644 --- a/native/native.tests/testData/codegen/bce/forReversed.kt +++ b/compiler/testData/codegen/box/bce/forReversed.kt @@ -2,6 +2,9 @@ * Copyright 2010-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// KT-66100: AssertionError: Expected an exception of class IndexOutOfBoundsException to be thrown, but was completed successfully. +// IGNORE_BACKEND: JS_IR, JS_IR_ES6 +// WITH_STDLIB import kotlin.test.* fun box(): String { diff --git a/native/native.tests/testData/codegen/bce/forUntilSize.kt b/compiler/testData/codegen/box/bce/forUntilSize.kt similarity index 82% rename from native/native.tests/testData/codegen/bce/forUntilSize.kt rename to compiler/testData/codegen/box/bce/forUntilSize.kt index 67117172332..f49f952c3c4 100644 --- a/native/native.tests/testData/codegen/bce/forUntilSize.kt +++ b/compiler/testData/codegen/box/bce/forUntilSize.kt @@ -2,6 +2,9 @@ * Copyright 2010-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// KT-66100: AssertionError: Expected an exception of class IndexOutOfBoundsException to be thrown, but was completed successfully. +// IGNORE_BACKEND: JS_IR, JS_IR_ES6 +// WITH_STDLIB import kotlin.test.* fun box(): String { diff --git a/native/native.tests/testData/codegen/bce/forUntilWithStep.kt b/compiler/testData/codegen/box/bce/forUntilWithStep.kt similarity index 85% rename from native/native.tests/testData/codegen/bce/forUntilWithStep.kt rename to compiler/testData/codegen/box/bce/forUntilWithStep.kt index 6ce83dfb8f6..892f36d02b5 100644 --- a/native/native.tests/testData/codegen/bce/forUntilWithStep.kt +++ b/compiler/testData/codegen/box/bce/forUntilWithStep.kt @@ -2,6 +2,9 @@ * Copyright 2010-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// KT-66100: AssertionError: Expected an exception of class IndexOutOfBoundsException to be thrown, but was completed successfully. +// IGNORE_BACKEND: JS_IR, JS_IR_ES6 +// WITH_STDLIB import kotlin.test.* fun box(): String { diff --git a/native/native.tests/testData/codegen/bce/forWithIndex.kt b/compiler/testData/codegen/box/bce/forWithIndex.kt similarity index 85% rename from native/native.tests/testData/codegen/bce/forWithIndex.kt rename to compiler/testData/codegen/box/bce/forWithIndex.kt index f62d122a9e2..76a35b4dcfc 100644 --- a/native/native.tests/testData/codegen/bce/forWithIndex.kt +++ b/compiler/testData/codegen/box/bce/forWithIndex.kt @@ -2,6 +2,9 @@ * Copyright 2010-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// KT-66100: AssertionError: Expected an exception of class IndexOutOfBoundsException to be thrown, but was completed successfully. +// IGNORE_BACKEND: JS_IR, JS_IR_ES6 +// WITH_STDLIB import kotlin.test.* fun box(): String { diff --git a/native/native.tests/testData/codegen/bce/inheritance.kt b/compiler/testData/codegen/box/bce/inheritance.kt similarity index 88% rename from native/native.tests/testData/codegen/bce/inheritance.kt rename to compiler/testData/codegen/box/bce/inheritance.kt index b068f970397..89949e6ed54 100644 --- a/native/native.tests/testData/codegen/bce/inheritance.kt +++ b/compiler/testData/codegen/box/bce/inheritance.kt @@ -2,6 +2,10 @@ * Copyright 2010-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// KT-66100: AssertionError: Expected an exception of class IndexOutOfBoundsException to be thrown, but was completed successfully. +// IGNORE_BACKEND: JS_IR, JS_IR_ES6 +// WITH_STDLIB +// WITH_REFLECT import kotlin.reflect.KProperty import kotlin.test.* diff --git a/native/native.tests/testData/codegen/bce/withGetter.kt b/compiler/testData/codegen/box/bce/withGetter.kt similarity index 78% rename from native/native.tests/testData/codegen/bce/withGetter.kt rename to compiler/testData/codegen/box/bce/withGetter.kt index e84be0e72fe..17c4a34ffc9 100644 --- a/native/native.tests/testData/codegen/bce/withGetter.kt +++ b/compiler/testData/codegen/box/bce/withGetter.kt @@ -2,6 +2,9 @@ * Copyright 2010-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// KT-66100: AssertionError: Expected an exception of class IndexOutOfBoundsException to be thrown, but was completed successfully. +// IGNORE_BACKEND: JS_IR, JS_IR_ES6 +// WITH_STDLIB import kotlin.test.* var needSmallArray = true diff --git a/native/native.tests/testData/codegen/boxing/box_cache0.kt b/compiler/testData/codegen/box/boxing/box_cache0.kt similarity index 98% rename from native/native.tests/testData/codegen/boxing/box_cache0.kt rename to compiler/testData/codegen/box/boxing/box_cache0.kt index d03d93ae0bd..e9dce44f5eb 100644 --- a/native/native.tests/testData/codegen/boxing/box_cache0.kt +++ b/compiler/testData/codegen/box/boxing/box_cache0.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/boxing/boxing0.kt b/compiler/testData/codegen/box/boxing/boxing0.kt similarity index 96% rename from native/native.tests/testData/codegen/boxing/boxing0.kt rename to compiler/testData/codegen/box/boxing/boxing0.kt index 5c045ca10a1..11e74d33708 100644 --- a/native/native.tests/testData/codegen/boxing/boxing0.kt +++ b/compiler/testData/codegen/box/boxing/boxing0.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/compiler/testData/codegen/box/boxing/boxing1.jvm_abi.txt b/compiler/testData/codegen/box/boxing/boxing1.jvm_abi.txt new file mode 100644 index 00000000000..36e4002b895 --- /dev/null +++ b/compiler/testData/codegen/box/boxing/boxing1.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS Boxing1Kt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/boxing/boxing1.kt b/compiler/testData/codegen/box/boxing/boxing1.kt similarity index 93% rename from native/native.tests/testData/codegen/boxing/boxing1.kt rename to compiler/testData/codegen/box/boxing/boxing1.kt index 4e0fdde912d..baaa077eaab 100644 --- a/native/native.tests/testData/codegen/boxing/boxing1.kt +++ b/compiler/testData/codegen/box/boxing/boxing1.kt @@ -2,6 +2,8 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/boxing/boxing10.kt b/compiler/testData/codegen/box/boxing/boxing10.kt similarity index 95% rename from native/native.tests/testData/codegen/boxing/boxing10.kt rename to compiler/testData/codegen/box/boxing/boxing10.kt index bdb260fc0f9..ceca091b07e 100644 --- a/native/native.tests/testData/codegen/boxing/boxing10.kt +++ b/compiler/testData/codegen/box/boxing/boxing10.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/compiler/testData/codegen/box/boxing/boxing11.jvm_abi.txt b/compiler/testData/codegen/box/boxing/boxing11.jvm_abi.txt new file mode 100644 index 00000000000..aab92cef013 --- /dev/null +++ b/compiler/testData/codegen/box/boxing/boxing11.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS Boxing11Kt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/boxing/boxing11.kt b/compiler/testData/codegen/box/boxing/boxing11.kt similarity index 90% rename from native/native.tests/testData/codegen/boxing/boxing11.kt rename to compiler/testData/codegen/box/boxing/boxing11.kt index b2e8a14d96c..7157d4e96a2 100644 --- a/native/native.tests/testData/codegen/boxing/boxing11.kt +++ b/compiler/testData/codegen/box/boxing/boxing11.kt @@ -2,6 +2,8 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB import kotlin.test.* diff --git a/compiler/testData/codegen/box/boxing/boxing12.jvm_abi.txt b/compiler/testData/codegen/box/boxing/boxing12.jvm_abi.txt new file mode 100644 index 00000000000..34fdaa9c5d9 --- /dev/null +++ b/compiler/testData/codegen/box/boxing/boxing12.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS Boxing12Kt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/boxing/boxing12.kt b/compiler/testData/codegen/box/boxing/boxing12.kt similarity index 89% rename from native/native.tests/testData/codegen/boxing/boxing12.kt rename to compiler/testData/codegen/box/boxing/boxing12.kt index 2ba5f7c4d73..288756a868a 100644 --- a/native/native.tests/testData/codegen/boxing/boxing12.kt +++ b/compiler/testData/codegen/box/boxing/boxing12.kt @@ -2,6 +2,8 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB import kotlin.test.* diff --git a/compiler/testData/codegen/box/boxing/boxing13.jvm_abi.txt b/compiler/testData/codegen/box/boxing/boxing13.jvm_abi.txt new file mode 100644 index 00000000000..23f289af96a --- /dev/null +++ b/compiler/testData/codegen/box/boxing/boxing13.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS Boxing13Kt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/boxing/boxing13.kt b/compiler/testData/codegen/box/boxing/boxing13.kt similarity index 93% rename from native/native.tests/testData/codegen/boxing/boxing13.kt rename to compiler/testData/codegen/box/boxing/boxing13.kt index 24760720565..ed36a33e730 100644 --- a/native/native.tests/testData/codegen/boxing/boxing13.kt +++ b/compiler/testData/codegen/box/boxing/boxing13.kt @@ -2,6 +2,8 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB import kotlin.test.* diff --git a/compiler/testData/codegen/box/boxing/boxing14.jvm_abi.txt b/compiler/testData/codegen/box/boxing/boxing14.jvm_abi.txt new file mode 100644 index 00000000000..2731812ecdd --- /dev/null +++ b/compiler/testData/codegen/box/boxing/boxing14.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS Boxing14Kt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/boxing/boxing14.kt b/compiler/testData/codegen/box/boxing/boxing14.kt similarity index 89% rename from native/native.tests/testData/codegen/boxing/boxing14.kt rename to compiler/testData/codegen/box/boxing/boxing14.kt index faf8093f87b..9568279162b 100644 --- a/native/native.tests/testData/codegen/boxing/boxing14.kt +++ b/compiler/testData/codegen/box/boxing/boxing14.kt @@ -2,6 +2,8 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/boxing/boxing15.kt b/compiler/testData/codegen/box/boxing/boxing15.kt similarity index 96% rename from native/native.tests/testData/codegen/boxing/boxing15.kt rename to compiler/testData/codegen/box/boxing/boxing15.kt index fb036c2fbbe..95bd8095e98 100644 --- a/native/native.tests/testData/codegen/boxing/boxing15.kt +++ b/compiler/testData/codegen/box/boxing/boxing15.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/compiler/testData/codegen/box/boxing/boxing2.jvm_abi.txt b/compiler/testData/codegen/box/boxing/boxing2.jvm_abi.txt new file mode 100644 index 00000000000..c8542108b47 --- /dev/null +++ b/compiler/testData/codegen/box/boxing/boxing2.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS Boxing2Kt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/boxing/boxing2.kt b/compiler/testData/codegen/box/boxing/boxing2.kt similarity index 95% rename from native/native.tests/testData/codegen/boxing/boxing2.kt rename to compiler/testData/codegen/box/boxing/boxing2.kt index 10fbbb02e7d..5b192ef0309 100644 --- a/native/native.tests/testData/codegen/boxing/boxing2.kt +++ b/compiler/testData/codegen/box/boxing/boxing2.kt @@ -2,6 +2,8 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB import kotlin.test.* diff --git a/compiler/testData/codegen/box/boxing/boxing3.jvm_abi.txt b/compiler/testData/codegen/box/boxing/boxing3.jvm_abi.txt new file mode 100644 index 00000000000..b20c737602c --- /dev/null +++ b/compiler/testData/codegen/box/boxing/boxing3.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS Boxing3Kt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/boxing/boxing3.kt b/compiler/testData/codegen/box/boxing/boxing3.kt similarity index 90% rename from native/native.tests/testData/codegen/boxing/boxing3.kt rename to compiler/testData/codegen/box/boxing/boxing3.kt index 14dc6bcd0d2..00c8d8e3301 100644 --- a/native/native.tests/testData/codegen/boxing/boxing3.kt +++ b/compiler/testData/codegen/box/boxing/boxing3.kt @@ -2,6 +2,8 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB import kotlin.test.* diff --git a/compiler/testData/codegen/box/boxing/boxing4.jvm_abi.txt b/compiler/testData/codegen/box/boxing/boxing4.jvm_abi.txt new file mode 100644 index 00000000000..f3d97ed581c --- /dev/null +++ b/compiler/testData/codegen/box/boxing/boxing4.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS Boxing4Kt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/boxing/boxing4.kt b/compiler/testData/codegen/box/boxing/boxing4.kt similarity index 90% rename from native/native.tests/testData/codegen/boxing/boxing4.kt rename to compiler/testData/codegen/box/boxing/boxing4.kt index 81c8ccffc88..a5651dadf40 100644 --- a/native/native.tests/testData/codegen/boxing/boxing4.kt +++ b/compiler/testData/codegen/box/boxing/boxing4.kt @@ -2,6 +2,8 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB import kotlin.test.* diff --git a/compiler/testData/codegen/box/boxing/boxing5.jvm_abi.txt b/compiler/testData/codegen/box/boxing/boxing5.jvm_abi.txt new file mode 100644 index 00000000000..7237285e442 --- /dev/null +++ b/compiler/testData/codegen/box/boxing/boxing5.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS Boxing5Kt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/boxing/boxing5.kt b/compiler/testData/codegen/box/boxing/boxing5.kt similarity index 91% rename from native/native.tests/testData/codegen/boxing/boxing5.kt rename to compiler/testData/codegen/box/boxing/boxing5.kt index c3876ee5930..e9b10ef5115 100644 --- a/native/native.tests/testData/codegen/boxing/boxing5.kt +++ b/compiler/testData/codegen/box/boxing/boxing5.kt @@ -2,6 +2,8 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB import kotlin.test.* diff --git a/compiler/testData/codegen/box/boxing/boxing6.jvm_abi.txt b/compiler/testData/codegen/box/boxing/boxing6.jvm_abi.txt new file mode 100644 index 00000000000..8871f531d52 --- /dev/null +++ b/compiler/testData/codegen/box/boxing/boxing6.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS Boxing6Kt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/boxing/boxing6.kt b/compiler/testData/codegen/box/boxing/boxing6.kt similarity index 91% rename from native/native.tests/testData/codegen/boxing/boxing6.kt rename to compiler/testData/codegen/box/boxing/boxing6.kt index 021ede3d4e6..a8a73762f61 100644 --- a/native/native.tests/testData/codegen/boxing/boxing6.kt +++ b/compiler/testData/codegen/box/boxing/boxing6.kt @@ -2,6 +2,8 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB import kotlin.test.* diff --git a/compiler/testData/codegen/box/boxing/boxing7.jvm_abi.txt b/compiler/testData/codegen/box/boxing/boxing7.jvm_abi.txt new file mode 100644 index 00000000000..51906b6f1ca --- /dev/null +++ b/compiler/testData/codegen/box/boxing/boxing7.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS Boxing7Kt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/boxing/boxing7.kt b/compiler/testData/codegen/box/boxing/boxing7.kt similarity index 92% rename from native/native.tests/testData/codegen/boxing/boxing7.kt rename to compiler/testData/codegen/box/boxing/boxing7.kt index 5d5feb19b48..8fc0fab2e85 100644 --- a/native/native.tests/testData/codegen/boxing/boxing7.kt +++ b/compiler/testData/codegen/box/boxing/boxing7.kt @@ -2,6 +2,8 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB import kotlin.test.* diff --git a/compiler/testData/codegen/box/boxing/boxing8.jvm_abi.txt b/compiler/testData/codegen/box/boxing/boxing8.jvm_abi.txt new file mode 100644 index 00000000000..9613c20b844 --- /dev/null +++ b/compiler/testData/codegen/box/boxing/boxing8.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS Boxing8Kt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/boxing/boxing8.kt b/compiler/testData/codegen/box/boxing/boxing8.kt similarity index 93% rename from native/native.tests/testData/codegen/boxing/boxing8.kt rename to compiler/testData/codegen/box/boxing/boxing8.kt index fb39a784142..82be405d32b 100644 --- a/native/native.tests/testData/codegen/boxing/boxing8.kt +++ b/compiler/testData/codegen/box/boxing/boxing8.kt @@ -2,6 +2,8 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB import kotlin.test.* diff --git a/compiler/testData/codegen/box/boxing/boxing9.jvm_abi.txt b/compiler/testData/codegen/box/boxing/boxing9.jvm_abi.txt new file mode 100644 index 00000000000..e194206d25e --- /dev/null +++ b/compiler/testData/codegen/box/boxing/boxing9.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS Boxing9Kt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/boxing/boxing9.kt b/compiler/testData/codegen/box/boxing/boxing9.kt similarity index 92% rename from native/native.tests/testData/codegen/boxing/boxing9.kt rename to compiler/testData/codegen/box/boxing/boxing9.kt index 429c67f2138..610898841f0 100644 --- a/native/native.tests/testData/codegen/boxing/boxing9.kt +++ b/compiler/testData/codegen/box/boxing/boxing9.kt @@ -2,6 +2,8 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/boxing/kt53100_casts.kt b/compiler/testData/codegen/box/boxing/kt53100_casts.kt similarity index 67% rename from native/native.tests/testData/codegen/boxing/kt53100_casts.kt rename to compiler/testData/codegen/box/boxing/kt53100_casts.kt index ce82aa9547d..87cb41c451e 100644 --- a/native/native.tests/testData/codegen/boxing/kt53100_casts.kt +++ b/compiler/testData/codegen/box/boxing/kt53100_casts.kt @@ -2,6 +2,11 @@ * Copyright 2010-2022 JetBrains s.r.o. and Kotlin Programming Language contributors. * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. */ +// KT-54635: expected:<[OK]> but was:<[FAIL 1: 0]> +// IGNORE_BACKEND: JS_IR, JS_IR_ES6 +// KT-66099: CompileError: WebAssembly.Module(): Compiling function #3415:"box" failed: Invalid types for ref.cast null: local.get of type f64 has to be in the same reference type hierarchy as (ref 686) @+237036 +// IGNORE_BACKEND: WASM +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/branching/advanced_when2.kt b/compiler/testData/codegen/box/branching/advanced_when2.kt similarity index 96% rename from native/native.tests/testData/codegen/branching/advanced_when2.kt rename to compiler/testData/codegen/box/branching/advanced_when2.kt index c04aa7fb2f2..5f1d82decb2 100644 --- a/native/native.tests/testData/codegen/branching/advanced_when2.kt +++ b/compiler/testData/codegen/box/branching/advanced_when2.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/branching/advanced_when5.kt b/compiler/testData/codegen/box/branching/advanced_when5.kt similarity index 97% rename from native/native.tests/testData/codegen/branching/advanced_when5.kt rename to compiler/testData/codegen/box/branching/advanced_when5.kt index e4f181d0308..be4aa1e7a06 100644 --- a/native/native.tests/testData/codegen/branching/advanced_when5.kt +++ b/compiler/testData/codegen/box/branching/advanced_when5.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/branching/if_else.kt b/compiler/testData/codegen/box/branching/if_else.kt similarity index 95% rename from native/native.tests/testData/codegen/branching/if_else.kt rename to compiler/testData/codegen/box/branching/if_else.kt index 6b4a37735d6..527156830f2 100644 --- a/native/native.tests/testData/codegen/branching/if_else.kt +++ b/compiler/testData/codegen/box/branching/if_else.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/branching/when2.kt b/compiler/testData/codegen/box/branching/when2.kt similarity index 95% rename from native/native.tests/testData/codegen/branching/when2.kt rename to compiler/testData/codegen/box/branching/when2.kt index 19290fd2f14..f3d516fbd41 100644 --- a/native/native.tests/testData/codegen/branching/when2.kt +++ b/compiler/testData/codegen/box/branching/when2.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/branching/when4.kt b/compiler/testData/codegen/box/branching/when4.kt similarity index 96% rename from native/native.tests/testData/codegen/branching/when4.kt rename to compiler/testData/codegen/box/branching/when4.kt index 940809bddfa..d2540d6239c 100644 --- a/native/native.tests/testData/codegen/branching/when4.kt +++ b/compiler/testData/codegen/box/branching/when4.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/branching/when5.kt b/compiler/testData/codegen/box/branching/when5.kt similarity index 96% rename from native/native.tests/testData/codegen/branching/when5.kt rename to compiler/testData/codegen/box/branching/when5.kt index fd638cdcd66..8105eb9f9ba 100644 --- a/native/native.tests/testData/codegen/branching/when5.kt +++ b/compiler/testData/codegen/box/branching/when5.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/branching/when6.kt b/compiler/testData/codegen/box/branching/when6.kt similarity index 94% rename from native/native.tests/testData/codegen/branching/when6.kt rename to compiler/testData/codegen/box/branching/when6.kt index c8043e65fe2..20f36f57932 100644 --- a/native/native.tests/testData/codegen/branching/when6.kt +++ b/compiler/testData/codegen/box/branching/when6.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/branching/when7.kt b/compiler/testData/codegen/box/branching/when7.kt similarity index 95% rename from native/native.tests/testData/codegen/branching/when7.kt rename to compiler/testData/codegen/box/branching/when7.kt index cbdc517b855..e4cab7bda53 100644 --- a/native/native.tests/testData/codegen/branching/when7.kt +++ b/compiler/testData/codegen/box/branching/when7.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/branching/when8.kt b/compiler/testData/codegen/box/branching/when8.kt similarity index 94% rename from native/native.tests/testData/codegen/branching/when8.kt rename to compiler/testData/codegen/box/branching/when8.kt index 13d153b4c21..37f1932fa37 100644 --- a/native/native.tests/testData/codegen/branching/when8.kt +++ b/compiler/testData/codegen/box/branching/when8.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/branching/when9.kt b/compiler/testData/codegen/box/branching/when9.kt similarity index 94% rename from native/native.tests/testData/codegen/branching/when9.kt rename to compiler/testData/codegen/box/branching/when9.kt index 466e274ba79..49da9dffde0 100644 --- a/native/native.tests/testData/codegen/branching/when9.kt +++ b/compiler/testData/codegen/box/branching/when9.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/branching/when_through.kt b/compiler/testData/codegen/box/branching/when_through.kt similarity index 96% rename from native/native.tests/testData/codegen/branching/when_through.kt rename to compiler/testData/codegen/box/branching/when_through.kt index 6148d74cec4..ac58bce96c7 100644 --- a/native/native.tests/testData/codegen/branching/when_through.kt +++ b/compiler/testData/codegen/box/branching/when_through.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/branching/when_with_try1.kt b/compiler/testData/codegen/box/branching/when_with_try1.kt similarity index 97% rename from native/native.tests/testData/codegen/branching/when_with_try1.kt rename to compiler/testData/codegen/box/branching/when_with_try1.kt index 76551bb0eea..72ee00a5933 100644 --- a/native/native.tests/testData/codegen/branching/when_with_try1.kt +++ b/compiler/testData/codegen/box/branching/when_with_try1.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/bridges/multipleModules1.kt b/compiler/testData/codegen/box/bridges/multipleModules1.kt similarity index 96% rename from native/native.tests/testData/codegen/bridges/multipleModules1.kt rename to compiler/testData/codegen/box/bridges/multipleModules1.kt index f8bb928774e..8b58884ad2e 100644 --- a/native/native.tests/testData/codegen/bridges/multipleModules1.kt +++ b/compiler/testData/codegen/box/bridges/multipleModules1.kt @@ -1,3 +1,4 @@ +// WITH_STDLIB // MODULE: lib // FILE: lib.kt diff --git a/native/native.tests/testData/codegen/bridges/multipleModules2.kt b/compiler/testData/codegen/box/bridges/multipleModules2.kt similarity index 96% rename from native/native.tests/testData/codegen/bridges/multipleModules2.kt rename to compiler/testData/codegen/box/bridges/multipleModules2.kt index 70aca35effe..6008753a04e 100644 --- a/native/native.tests/testData/codegen/bridges/multipleModules2.kt +++ b/compiler/testData/codegen/box/bridges/multipleModules2.kt @@ -1,3 +1,4 @@ +// WITH_STDLIB // MODULE: lib // FILE: lib.kt diff --git a/native/native.tests/testData/codegen/bridges/returnTypeSignature.kt b/compiler/testData/codegen/box/bridges/returnTypeSignature.kt similarity index 70% rename from native/native.tests/testData/codegen/bridges/returnTypeSignature.kt rename to compiler/testData/codegen/box/bridges/returnTypeSignature.kt index 96a5d40b6b6..7dec37809bb 100644 --- a/native/native.tests/testData/codegen/bridges/returnTypeSignature.kt +++ b/compiler/testData/codegen/box/bridges/returnTypeSignature.kt @@ -2,6 +2,10 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// KT-66097: java.lang.IllegalStateException: JS_FAKE_NAME_CLASH: JavaScript name parse_trkh7z$ is generated for different inherited members: fun parse(source: A): C and fun parse(source: B): Collection (32,17) in /returnTypeSignature.kt +// IGNORE_BACKEND_K1: JS_IR, JS_IR_ES6, WASM + +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/bridges/special.kt b/compiler/testData/codegen/box/bridges/special.kt similarity index 99% rename from native/native.tests/testData/codegen/bridges/special.kt rename to compiler/testData/codegen/box/bridges/special.kt index 4db8a0b9848..c81f741934d 100644 --- a/native/native.tests/testData/codegen/bridges/special.kt +++ b/compiler/testData/codegen/box/bridges/special.kt @@ -2,7 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ - +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/bridges/specialGeneric.kt b/compiler/testData/codegen/box/bridges/specialGeneric.kt similarity index 98% rename from native/native.tests/testData/codegen/bridges/specialGeneric.kt rename to compiler/testData/codegen/box/bridges/specialGeneric.kt index 18df558ab7a..1c0c6abbb1a 100644 --- a/native/native.tests/testData/codegen/bridges/specialGeneric.kt +++ b/compiler/testData/codegen/box/bridges/specialGeneric.kt @@ -2,6 +2,7 @@ * Copyright 2010-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/bridges/test0.kt b/compiler/testData/codegen/box/bridges/test0.kt similarity index 97% rename from native/native.tests/testData/codegen/bridges/test0.kt rename to compiler/testData/codegen/box/bridges/test0.kt index e6ec2d2226e..4a180a24f24 100644 --- a/native/native.tests/testData/codegen/bridges/test0.kt +++ b/compiler/testData/codegen/box/bridges/test0.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/bridges/test1.kt b/compiler/testData/codegen/box/bridges/test1.kt similarity index 97% rename from native/native.tests/testData/codegen/bridges/test1.kt rename to compiler/testData/codegen/box/bridges/test1.kt index 94dd70c9243..6f5f5da855b 100644 --- a/native/native.tests/testData/codegen/bridges/test1.kt +++ b/compiler/testData/codegen/box/bridges/test1.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/compiler/testData/codegen/box/bridges/test10.jvm_abi.txt b/compiler/testData/codegen/box/bridges/test10.jvm_abi.txt new file mode 100644 index 00000000000..1e8e618bb72 --- /dev/null +++ b/compiler/testData/codegen/box/bridges/test10.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS Test10Kt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/bridges/test10.kt b/compiler/testData/codegen/box/bridges/test10.kt similarity index 93% rename from native/native.tests/testData/codegen/bridges/test10.kt rename to compiler/testData/codegen/box/bridges/test10.kt index ca8f64e9f81..db8d1751c4c 100644 --- a/native/native.tests/testData/codegen/bridges/test10.kt +++ b/compiler/testData/codegen/box/bridges/test10.kt @@ -2,6 +2,8 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB import kotlin.test.* diff --git a/compiler/testData/codegen/box/bridges/test11.jvm_abi.txt b/compiler/testData/codegen/box/bridges/test11.jvm_abi.txt new file mode 100644 index 00000000000..06b25399c1a --- /dev/null +++ b/compiler/testData/codegen/box/bridges/test11.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS Test11Kt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/bridges/test11.kt b/compiler/testData/codegen/box/bridges/test11.kt similarity index 92% rename from native/native.tests/testData/codegen/bridges/test11.kt rename to compiler/testData/codegen/box/bridges/test11.kt index 78964ca383b..ec975506a34 100644 --- a/native/native.tests/testData/codegen/bridges/test11.kt +++ b/compiler/testData/codegen/box/bridges/test11.kt @@ -2,6 +2,8 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB import kotlin.test.* diff --git a/compiler/testData/codegen/box/bridges/test12.jvm_abi.txt b/compiler/testData/codegen/box/bridges/test12.jvm_abi.txt new file mode 100644 index 00000000000..393e2a3f901 --- /dev/null +++ b/compiler/testData/codegen/box/bridges/test12.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS Test12Kt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/bridges/test12.kt b/compiler/testData/codegen/box/bridges/test12.kt similarity index 92% rename from native/native.tests/testData/codegen/bridges/test12.kt rename to compiler/testData/codegen/box/bridges/test12.kt index 467bd85e6cd..38a597696a5 100644 --- a/native/native.tests/testData/codegen/bridges/test12.kt +++ b/compiler/testData/codegen/box/bridges/test12.kt @@ -2,6 +2,8 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB import kotlin.test.* diff --git a/compiler/testData/codegen/box/bridges/test13.jvm_abi.txt b/compiler/testData/codegen/box/bridges/test13.jvm_abi.txt new file mode 100644 index 00000000000..4747e81b9ba --- /dev/null +++ b/compiler/testData/codegen/box/bridges/test13.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS Test13Kt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/bridges/test13.kt b/compiler/testData/codegen/box/bridges/test13.kt similarity index 92% rename from native/native.tests/testData/codegen/bridges/test13.kt rename to compiler/testData/codegen/box/bridges/test13.kt index a0a15928425..8c41b6cd0a8 100644 --- a/native/native.tests/testData/codegen/bridges/test13.kt +++ b/compiler/testData/codegen/box/bridges/test13.kt @@ -2,6 +2,8 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB import kotlin.test.* diff --git a/compiler/testData/codegen/box/bridges/test14.jvm_abi.txt b/compiler/testData/codegen/box/bridges/test14.jvm_abi.txt new file mode 100644 index 00000000000..e5e26d08d28 --- /dev/null +++ b/compiler/testData/codegen/box/bridges/test14.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS Test14Kt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/bridges/test14.kt b/compiler/testData/codegen/box/bridges/test14.kt similarity index 96% rename from native/native.tests/testData/codegen/bridges/test14.kt rename to compiler/testData/codegen/box/bridges/test14.kt index a6316cf95b1..b788275cdb0 100644 --- a/native/native.tests/testData/codegen/bridges/test14.kt +++ b/compiler/testData/codegen/box/bridges/test14.kt @@ -2,6 +2,8 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/bridges/test15.kt b/compiler/testData/codegen/box/bridges/test15.kt similarity index 97% rename from native/native.tests/testData/codegen/bridges/test15.kt rename to compiler/testData/codegen/box/bridges/test15.kt index 98f9f60fe0c..5d2b3928c64 100644 --- a/native/native.tests/testData/codegen/bridges/test15.kt +++ b/compiler/testData/codegen/box/bridges/test15.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/bridges/test16.kt b/compiler/testData/codegen/box/bridges/test16.kt similarity index 97% rename from native/native.tests/testData/codegen/bridges/test16.kt rename to compiler/testData/codegen/box/bridges/test16.kt index ae06a51e026..48e9ad4206a 100644 --- a/native/native.tests/testData/codegen/bridges/test16.kt +++ b/compiler/testData/codegen/box/bridges/test16.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/bridges/test17.kt b/compiler/testData/codegen/box/bridges/test17.kt similarity index 98% rename from native/native.tests/testData/codegen/bridges/test17.kt rename to compiler/testData/codegen/box/bridges/test17.kt index cadfc509edc..09658999912 100644 --- a/native/native.tests/testData/codegen/bridges/test17.kt +++ b/compiler/testData/codegen/box/bridges/test17.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/bridges/test18.kt b/compiler/testData/codegen/box/bridges/test18.kt similarity index 96% rename from native/native.tests/testData/codegen/bridges/test18.kt rename to compiler/testData/codegen/box/bridges/test18.kt index 12a642d6fb1..24a1dca2ca2 100644 --- a/native/native.tests/testData/codegen/bridges/test18.kt +++ b/compiler/testData/codegen/box/bridges/test18.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/bridges/test2.kt b/compiler/testData/codegen/box/bridges/test2.kt similarity index 97% rename from native/native.tests/testData/codegen/bridges/test2.kt rename to compiler/testData/codegen/box/bridges/test2.kt index 90a6fde7b68..daaeb63bb0c 100644 --- a/native/native.tests/testData/codegen/bridges/test2.kt +++ b/compiler/testData/codegen/box/bridges/test2.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/bridges/test3.kt b/compiler/testData/codegen/box/bridges/test3.kt similarity index 97% rename from native/native.tests/testData/codegen/bridges/test3.kt rename to compiler/testData/codegen/box/bridges/test3.kt index a887dd03800..de2e3bcccaa 100644 --- a/native/native.tests/testData/codegen/bridges/test3.kt +++ b/compiler/testData/codegen/box/bridges/test3.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/bridges/test4.kt b/compiler/testData/codegen/box/bridges/test4.kt similarity index 97% rename from native/native.tests/testData/codegen/bridges/test4.kt rename to compiler/testData/codegen/box/bridges/test4.kt index 7ae9c618dff..b9e6159c29a 100644 --- a/native/native.tests/testData/codegen/bridges/test4.kt +++ b/compiler/testData/codegen/box/bridges/test4.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/bridges/test5.kt b/compiler/testData/codegen/box/bridges/test5.kt similarity index 97% rename from native/native.tests/testData/codegen/bridges/test5.kt rename to compiler/testData/codegen/box/bridges/test5.kt index 89eab74cc21..adfea7ab3e3 100644 --- a/native/native.tests/testData/codegen/bridges/test5.kt +++ b/compiler/testData/codegen/box/bridges/test5.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/bridges/test6.kt b/compiler/testData/codegen/box/bridges/test6.kt similarity index 98% rename from native/native.tests/testData/codegen/bridges/test6.kt rename to compiler/testData/codegen/box/bridges/test6.kt index c74a1d0fed0..555f9de070a 100644 --- a/native/native.tests/testData/codegen/bridges/test6.kt +++ b/compiler/testData/codegen/box/bridges/test6.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/bridges/test7.kt b/compiler/testData/codegen/box/bridges/test7.kt similarity index 97% rename from native/native.tests/testData/codegen/bridges/test7.kt rename to compiler/testData/codegen/box/bridges/test7.kt index e2a88125d5f..b38456438d2 100644 --- a/native/native.tests/testData/codegen/bridges/test7.kt +++ b/compiler/testData/codegen/box/bridges/test7.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/bridges/test8.kt b/compiler/testData/codegen/box/bridges/test8.kt similarity index 97% rename from native/native.tests/testData/codegen/bridges/test8.kt rename to compiler/testData/codegen/box/bridges/test8.kt index 7fa7b70ed17..3ad79796cc0 100644 --- a/native/native.tests/testData/codegen/bridges/test8.kt +++ b/compiler/testData/codegen/box/bridges/test8.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/bridges/test9.kt b/compiler/testData/codegen/box/bridges/test9.kt similarity index 97% rename from native/native.tests/testData/codegen/bridges/test9.kt rename to compiler/testData/codegen/box/bridges/test9.kt index 63028d8ddcc..cebfbaba320 100644 --- a/native/native.tests/testData/codegen/bridges/test9.kt +++ b/compiler/testData/codegen/box/bridges/test9.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/classDelegation/generic.kt b/compiler/testData/codegen/box/classDelegation/generic.kt similarity index 97% rename from native/native.tests/testData/codegen/classDelegation/generic.kt rename to compiler/testData/codegen/box/classDelegation/generic.kt index a79c39d6a1c..7e41d849698 100644 --- a/native/native.tests/testData/codegen/classDelegation/generic.kt +++ b/compiler/testData/codegen/box/classDelegation/generic.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/classDelegation/method.kt b/compiler/testData/codegen/box/classDelegation/method.kt similarity index 97% rename from native/native.tests/testData/codegen/classDelegation/method.kt rename to compiler/testData/codegen/box/classDelegation/method.kt index 07a0fcb6ceb..85ba8620256 100644 --- a/native/native.tests/testData/codegen/classDelegation/method.kt +++ b/compiler/testData/codegen/box/classDelegation/method.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/classDelegation/multipleModules.kt b/compiler/testData/codegen/box/classDelegation/multipleModules.kt similarity index 97% rename from native/native.tests/testData/codegen/classDelegation/multipleModules.kt rename to compiler/testData/codegen/box/classDelegation/multipleModules.kt index d35a7bfee56..26462b1bc68 100644 --- a/native/native.tests/testData/codegen/classDelegation/multipleModules.kt +++ b/compiler/testData/codegen/box/classDelegation/multipleModules.kt @@ -1,3 +1,4 @@ +// WITH_STDLIB // MODULE: lib // FILE: lib.kt diff --git a/compiler/testData/codegen/box/classDelegation/property.jvm_abi.txt b/compiler/testData/codegen/box/classDelegation/property.jvm_abi.txt new file mode 100644 index 00000000000..c64acf3e90d --- /dev/null +++ b/compiler/testData/codegen/box/classDelegation/property.jvm_abi.txt @@ -0,0 +1,11 @@ +MODULE main + CLASS Q.class + CLASS METADATA + K1 + getX()I + K2 + --- + K1 + --- + K2 + x diff --git a/native/native.tests/testData/codegen/classDelegation/property.kt b/compiler/testData/codegen/box/classDelegation/property.kt similarity index 90% rename from native/native.tests/testData/codegen/classDelegation/property.kt rename to compiler/testData/codegen/box/classDelegation/property.kt index f01f87d09ef..40d1974e12c 100644 --- a/native/native.tests/testData/codegen/classDelegation/property.kt +++ b/compiler/testData/codegen/box/classDelegation/property.kt @@ -2,6 +2,8 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63828 +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/classDelegation/withBridge.kt b/compiler/testData/codegen/box/classDelegation/withBridge.kt similarity index 97% rename from native/native.tests/testData/codegen/classDelegation/withBridge.kt rename to compiler/testData/codegen/box/classDelegation/withBridge.kt index 045d52d4795..219a4cddf9a 100644 --- a/native/native.tests/testData/codegen/classDelegation/withBridge.kt +++ b/compiler/testData/codegen/box/classDelegation/withBridge.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/contracts/contractForCast.kt b/compiler/testData/codegen/box/contracts/contractForCast.kt similarity index 95% rename from native/native.tests/testData/codegen/contracts/contractForCast.kt rename to compiler/testData/codegen/box/contracts/contractForCast.kt index 8fdffd43965..72c40f0de57 100644 --- a/native/native.tests/testData/codegen/contracts/contractForCast.kt +++ b/compiler/testData/codegen/box/contracts/contractForCast.kt @@ -1,3 +1,4 @@ +// WITH_STDLIB import kotlin.test.* import kotlin.contracts.* diff --git a/native/native.tests/testData/codegen/contracts/isNullString.kt b/compiler/testData/codegen/box/contracts/isNullString.kt similarity index 94% rename from native/native.tests/testData/codegen/contracts/isNullString.kt rename to compiler/testData/codegen/box/contracts/isNullString.kt index c5d3a3ba25d..e463f0658ab 100644 --- a/native/native.tests/testData/codegen/contracts/isNullString.kt +++ b/compiler/testData/codegen/box/contracts/isNullString.kt @@ -1,3 +1,4 @@ +// WITH_STDLIB import kotlin.test.* fun box(): String { diff --git a/native/native.tests/testData/codegen/contracts/nonNullSmartCast.kt b/compiler/testData/codegen/box/contracts/nonNullSmartCast.kt similarity index 89% rename from native/native.tests/testData/codegen/contracts/nonNullSmartCast.kt rename to compiler/testData/codegen/box/contracts/nonNullSmartCast.kt index 7ca84559f32..42fdd292aa8 100644 --- a/native/native.tests/testData/codegen/contracts/nonNullSmartCast.kt +++ b/compiler/testData/codegen/box/contracts/nonNullSmartCast.kt @@ -1,3 +1,4 @@ +// WITH_STDLIB import kotlin.test.* fun box(): String { diff --git a/native/native.tests/testData/codegen/contracts/require.kt b/compiler/testData/codegen/box/contracts/require.kt similarity index 95% rename from native/native.tests/testData/codegen/contracts/require.kt rename to compiler/testData/codegen/box/contracts/require.kt index 2cc3176a5f0..28b8643a6ba 100644 --- a/native/native.tests/testData/codegen/contracts/require.kt +++ b/compiler/testData/codegen/box/contracts/require.kt @@ -1,3 +1,4 @@ +// WITH_STDLIB import kotlin.test.* import kotlin.contracts.* diff --git a/native/native.tests/testData/codegen/contracts/runLambdaForVal.kt b/compiler/testData/codegen/box/contracts/runLambdaForVal.kt similarity index 89% rename from native/native.tests/testData/codegen/contracts/runLambdaForVal.kt rename to compiler/testData/codegen/box/contracts/runLambdaForVal.kt index 30887398a46..6421e6de826 100644 --- a/native/native.tests/testData/codegen/contracts/runLambdaForVal.kt +++ b/compiler/testData/codegen/box/contracts/runLambdaForVal.kt @@ -1,3 +1,4 @@ +// WITH_STDLIB import kotlin.test.* fun box(): String { diff --git a/compiler/testData/codegen/box/controlflow/break.jvm_abi.txt b/compiler/testData/codegen/box/controlflow/break.jvm_abi.txt new file mode 100644 index 00000000000..3fc76d12e23 --- /dev/null +++ b/compiler/testData/codegen/box/controlflow/break.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS BreakKt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/controlflow/break.kt b/compiler/testData/codegen/box/controlflow/break.kt similarity index 96% rename from native/native.tests/testData/codegen/controlflow/break.kt rename to compiler/testData/codegen/box/controlflow/break.kt index 0631ed2c5b0..ffea5c3ffac 100644 --- a/native/native.tests/testData/codegen/controlflow/break.kt +++ b/compiler/testData/codegen/box/controlflow/break.kt @@ -2,6 +2,8 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB import kotlin.test.* diff --git a/compiler/testData/codegen/box/controlflow/break1.jvm_abi.txt b/compiler/testData/codegen/box/controlflow/break1.jvm_abi.txt new file mode 100644 index 00000000000..5882e667d56 --- /dev/null +++ b/compiler/testData/codegen/box/controlflow/break1.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS Break1Kt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/controlflow/break1.kt b/compiler/testData/codegen/box/controlflow/break1.kt similarity index 89% rename from native/native.tests/testData/codegen/controlflow/break1.kt rename to compiler/testData/codegen/box/controlflow/break1.kt index c7db461746d..c4e54c54141 100644 --- a/native/native.tests/testData/codegen/controlflow/break1.kt +++ b/compiler/testData/codegen/box/controlflow/break1.kt @@ -2,6 +2,8 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB import kotlin.test.* diff --git a/compiler/testData/codegen/box/controlflow/for_loops.jvm_abi.txt b/compiler/testData/codegen/box/controlflow/for_loops.jvm_abi.txt new file mode 100644 index 00000000000..f3c8a529ac7 --- /dev/null +++ b/compiler/testData/codegen/box/controlflow/for_loops.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS For_loopsKt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/controlflow/for_loops.kt b/compiler/testData/codegen/box/controlflow/for_loops.kt similarity index 97% rename from native/native.tests/testData/codegen/controlflow/for_loops.kt rename to compiler/testData/codegen/box/controlflow/for_loops.kt index 55e45f9f392..e8fa780cbb8 100644 --- a/native/native.tests/testData/codegen/controlflow/for_loops.kt +++ b/compiler/testData/codegen/box/controlflow/for_loops.kt @@ -2,6 +2,8 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB import kotlin.test.* diff --git a/compiler/testData/codegen/box/controlflow/for_loops_array_break_continue.jvm_abi.txt b/compiler/testData/codegen/box/controlflow/for_loops_array_break_continue.jvm_abi.txt new file mode 100644 index 00000000000..f67b2366e4d --- /dev/null +++ b/compiler/testData/codegen/box/controlflow/for_loops_array_break_continue.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS For_loops_array_break_continueKt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/controlflow/for_loops_array_break_continue.kt b/compiler/testData/codegen/box/controlflow/for_loops_array_break_continue.kt similarity index 90% rename from native/native.tests/testData/codegen/controlflow/for_loops_array_break_continue.kt rename to compiler/testData/codegen/box/controlflow/for_loops_array_break_continue.kt index 5ce552fc237..161584afa98 100644 --- a/native/native.tests/testData/codegen/controlflow/for_loops_array_break_continue.kt +++ b/compiler/testData/codegen/box/controlflow/for_loops_array_break_continue.kt @@ -1,3 +1,5 @@ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB import kotlin.test.* val sb = StringBuilder() diff --git a/compiler/testData/codegen/box/controlflow/for_loops_array_indices.jvm_abi.txt b/compiler/testData/codegen/box/controlflow/for_loops_array_indices.jvm_abi.txt new file mode 100644 index 00000000000..c18919669ca --- /dev/null +++ b/compiler/testData/codegen/box/controlflow/for_loops_array_indices.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS For_loops_array_indicesKt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/controlflow/for_loops_array_indices.kt b/compiler/testData/codegen/box/controlflow/for_loops_array_indices.kt similarity index 89% rename from native/native.tests/testData/codegen/controlflow/for_loops_array_indices.kt rename to compiler/testData/codegen/box/controlflow/for_loops_array_indices.kt index 646129cdc10..ae1bc762c38 100644 --- a/native/native.tests/testData/codegen/controlflow/for_loops_array_indices.kt +++ b/compiler/testData/codegen/box/controlflow/for_loops_array_indices.kt @@ -1,3 +1,5 @@ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB import kotlin.test.* val sb = StringBuilder() diff --git a/compiler/testData/codegen/box/controlflow/for_loops_array_mutation.jvm_abi.txt b/compiler/testData/codegen/box/controlflow/for_loops_array_mutation.jvm_abi.txt new file mode 100644 index 00000000000..42b737b30eb --- /dev/null +++ b/compiler/testData/codegen/box/controlflow/for_loops_array_mutation.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS For_loops_array_mutationKt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/controlflow/for_loops_array_mutation.kt b/compiler/testData/codegen/box/controlflow/for_loops_array_mutation.kt similarity index 85% rename from native/native.tests/testData/codegen/controlflow/for_loops_array_mutation.kt rename to compiler/testData/codegen/box/controlflow/for_loops_array_mutation.kt index fdfe513b781..2604a8151b7 100644 --- a/native/native.tests/testData/codegen/controlflow/for_loops_array_mutation.kt +++ b/compiler/testData/codegen/box/controlflow/for_loops_array_mutation.kt @@ -1,3 +1,5 @@ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB import kotlin.test.* val sb = StringBuilder() diff --git a/compiler/testData/codegen/box/controlflow/for_loops_array_nested.jvm_abi.txt b/compiler/testData/codegen/box/controlflow/for_loops_array_nested.jvm_abi.txt new file mode 100644 index 00000000000..2190b8091ed --- /dev/null +++ b/compiler/testData/codegen/box/controlflow/for_loops_array_nested.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS For_loops_array_nestedKt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/controlflow/for_loops_array_nested.kt b/compiler/testData/codegen/box/controlflow/for_loops_array_nested.kt similarity index 93% rename from native/native.tests/testData/codegen/controlflow/for_loops_array_nested.kt rename to compiler/testData/codegen/box/controlflow/for_loops_array_nested.kt index c4b435a8a3f..8c6b7dc2503 100644 --- a/native/native.tests/testData/codegen/controlflow/for_loops_array_nested.kt +++ b/compiler/testData/codegen/box/controlflow/for_loops_array_nested.kt @@ -1,3 +1,5 @@ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB import kotlin.test.* val sb = StringBuilder() diff --git a/compiler/testData/codegen/box/controlflow/for_loops_array_nullable.jvm_abi.txt b/compiler/testData/codegen/box/controlflow/for_loops_array_nullable.jvm_abi.txt new file mode 100644 index 00000000000..da3591cc671 --- /dev/null +++ b/compiler/testData/codegen/box/controlflow/for_loops_array_nullable.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS For_loops_array_nullableKt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/controlflow/for_loops_array_nullable.kt b/compiler/testData/codegen/box/controlflow/for_loops_array_nullable.kt similarity index 87% rename from native/native.tests/testData/codegen/controlflow/for_loops_array_nullable.kt rename to compiler/testData/codegen/box/controlflow/for_loops_array_nullable.kt index 1c4e9cdf825..26cbb7e7c7b 100644 --- a/native/native.tests/testData/codegen/controlflow/for_loops_array_nullable.kt +++ b/compiler/testData/codegen/box/controlflow/for_loops_array_nullable.kt @@ -1,3 +1,5 @@ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB import kotlin.test.* val sb = StringBuilder() diff --git a/compiler/testData/codegen/box/controlflow/for_loops_array_side_effects.jvm_abi.txt b/compiler/testData/codegen/box/controlflow/for_loops_array_side_effects.jvm_abi.txt new file mode 100644 index 00000000000..f610d4b8c52 --- /dev/null +++ b/compiler/testData/codegen/box/controlflow/for_loops_array_side_effects.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS For_loops_array_side_effectsKt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/controlflow/for_loops_array_side_effects.kt b/compiler/testData/codegen/box/controlflow/for_loops_array_side_effects.kt similarity index 92% rename from native/native.tests/testData/codegen/controlflow/for_loops_array_side_effects.kt rename to compiler/testData/codegen/box/controlflow/for_loops_array_side_effects.kt index 339dace4049..2f6e334526a 100644 --- a/native/native.tests/testData/codegen/controlflow/for_loops_array_side_effects.kt +++ b/compiler/testData/codegen/box/controlflow/for_loops_array_side_effects.kt @@ -1,3 +1,5 @@ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB import kotlin.test.* val sb = StringBuilder() diff --git a/compiler/testData/codegen/box/controlflow/for_loops_call_order.jvm_abi.txt b/compiler/testData/codegen/box/controlflow/for_loops_call_order.jvm_abi.txt new file mode 100644 index 00000000000..70b7ba504d6 --- /dev/null +++ b/compiler/testData/codegen/box/controlflow/for_loops_call_order.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS For_loops_call_orderKt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/controlflow/for_loops_call_order.kt b/compiler/testData/codegen/box/controlflow/for_loops_call_order.kt similarity index 93% rename from native/native.tests/testData/codegen/controlflow/for_loops_call_order.kt rename to compiler/testData/codegen/box/controlflow/for_loops_call_order.kt index 5ed80609b0e..048db97eb08 100644 --- a/native/native.tests/testData/codegen/controlflow/for_loops_call_order.kt +++ b/compiler/testData/codegen/box/controlflow/for_loops_call_order.kt @@ -2,6 +2,8 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB import kotlin.test.* diff --git a/compiler/testData/codegen/box/controlflow/for_loops_coroutines.jvm_abi.txt b/compiler/testData/codegen/box/controlflow/for_loops_coroutines.jvm_abi.txt new file mode 100644 index 00000000000..f7e63eab766 --- /dev/null +++ b/compiler/testData/codegen/box/controlflow/for_loops_coroutines.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS For_loops_coroutinesKt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/controlflow/for_loops_coroutines.kt b/compiler/testData/codegen/box/controlflow/for_loops_coroutines.kt similarity index 93% rename from native/native.tests/testData/codegen/controlflow/for_loops_coroutines.kt rename to compiler/testData/codegen/box/controlflow/for_loops_coroutines.kt index 234f489d404..978b04ae1e1 100644 --- a/native/native.tests/testData/codegen/controlflow/for_loops_coroutines.kt +++ b/compiler/testData/codegen/box/controlflow/for_loops_coroutines.kt @@ -2,6 +2,8 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/controlflow/for_loops_empty_range.kt b/compiler/testData/codegen/box/controlflow/for_loops_empty_range.kt similarity index 98% rename from native/native.tests/testData/codegen/controlflow/for_loops_empty_range.kt rename to compiler/testData/codegen/box/controlflow/for_loops_empty_range.kt index fa408030cbd..52a6c100917 100644 --- a/native/native.tests/testData/codegen/controlflow/for_loops_empty_range.kt +++ b/compiler/testData/codegen/box/controlflow/for_loops_empty_range.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/controlflow/for_loops_errors.kt b/compiler/testData/codegen/box/controlflow/for_loops_errors.kt similarity index 99% rename from native/native.tests/testData/codegen/controlflow/for_loops_errors.kt rename to compiler/testData/codegen/box/controlflow/for_loops_errors.kt index 593deebd9fe..eb0a65d01f5 100644 --- a/native/native.tests/testData/codegen/controlflow/for_loops_errors.kt +++ b/compiler/testData/codegen/box/controlflow/for_loops_errors.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/compiler/testData/codegen/box/controlflow/for_loops_let_with_nullable.jvm_abi.txt b/compiler/testData/codegen/box/controlflow/for_loops_let_with_nullable.jvm_abi.txt new file mode 100644 index 00000000000..0b969914ab9 --- /dev/null +++ b/compiler/testData/codegen/box/controlflow/for_loops_let_with_nullable.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS For_loops_let_with_nullableKt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/controlflow/for_loops_let_with_nullable.kt b/compiler/testData/codegen/box/controlflow/for_loops_let_with_nullable.kt similarity index 98% rename from native/native.tests/testData/codegen/controlflow/for_loops_let_with_nullable.kt rename to compiler/testData/codegen/box/controlflow/for_loops_let_with_nullable.kt index fa2a8d277b4..f5230acba5a 100644 --- a/native/native.tests/testData/codegen/controlflow/for_loops_let_with_nullable.kt +++ b/compiler/testData/codegen/box/controlflow/for_loops_let_with_nullable.kt @@ -2,6 +2,8 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB import kotlin.test.* diff --git a/compiler/testData/codegen/box/controlflow/for_loops_nested.jvm_abi.txt b/compiler/testData/codegen/box/controlflow/for_loops_nested.jvm_abi.txt new file mode 100644 index 00000000000..2b1b4cf7937 --- /dev/null +++ b/compiler/testData/codegen/box/controlflow/for_loops_nested.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS For_loops_nestedKt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/controlflow/for_loops_nested.kt b/compiler/testData/codegen/box/controlflow/for_loops_nested.kt similarity index 97% rename from native/native.tests/testData/codegen/controlflow/for_loops_nested.kt rename to compiler/testData/codegen/box/controlflow/for_loops_nested.kt index 6f59e576ce6..d2cda194f8f 100644 --- a/native/native.tests/testData/codegen/controlflow/for_loops_nested.kt +++ b/compiler/testData/codegen/box/controlflow/for_loops_nested.kt @@ -2,6 +2,8 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB import kotlin.test.* diff --git a/compiler/testData/codegen/box/controlflow/for_loops_overflow.jvm_abi.txt b/compiler/testData/codegen/box/controlflow/for_loops_overflow.jvm_abi.txt new file mode 100644 index 00000000000..5e44ff77016 --- /dev/null +++ b/compiler/testData/codegen/box/controlflow/for_loops_overflow.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS For_loops_overflowKt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/controlflow/for_loops_overflow.kt b/compiler/testData/codegen/box/controlflow/for_loops_overflow.kt similarity index 97% rename from native/native.tests/testData/codegen/controlflow/for_loops_overflow.kt rename to compiler/testData/codegen/box/controlflow/for_loops_overflow.kt index bf3fa2c8347..b1923a6dc2f 100644 --- a/native/native.tests/testData/codegen/controlflow/for_loops_overflow.kt +++ b/compiler/testData/codegen/box/controlflow/for_loops_overflow.kt @@ -2,6 +2,8 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB import kotlin.test.* diff --git a/compiler/testData/codegen/box/controlflow/for_loops_types.jvm_abi.txt b/compiler/testData/codegen/box/controlflow/for_loops_types.jvm_abi.txt new file mode 100644 index 00000000000..b387e1e8104 --- /dev/null +++ b/compiler/testData/codegen/box/controlflow/for_loops_types.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS For_loops_typesKt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/controlflow/for_loops_types.kt b/compiler/testData/codegen/box/controlflow/for_loops_types.kt similarity index 99% rename from native/native.tests/testData/codegen/controlflow/for_loops_types.kt rename to compiler/testData/codegen/box/controlflow/for_loops_types.kt index c8fbd432ebc..ee401a38729 100644 --- a/native/native.tests/testData/codegen/controlflow/for_loops_types.kt +++ b/compiler/testData/codegen/box/controlflow/for_loops_types.kt @@ -2,6 +2,8 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB import kotlin.test.* diff --git a/compiler/testData/codegen/box/controlflow/unreachable1.jvm_abi.txt b/compiler/testData/codegen/box/controlflow/unreachable1.jvm_abi.txt new file mode 100644 index 00000000000..3ed9129740d --- /dev/null +++ b/compiler/testData/codegen/box/controlflow/unreachable1.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS Unreachable1Kt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/controlflow/unreachable1.kt b/compiler/testData/codegen/box/controlflow/unreachable1.kt similarity index 88% rename from native/native.tests/testData/codegen/controlflow/unreachable1.kt rename to compiler/testData/codegen/box/controlflow/unreachable1.kt index feed37d4c95..8aa3e11e683 100644 --- a/native/native.tests/testData/codegen/controlflow/unreachable1.kt +++ b/compiler/testData/codegen/box/controlflow/unreachable1.kt @@ -2,6 +2,8 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/coroutines/anonymousObject.kt b/compiler/testData/codegen/box/coroutines/anonymousObject.kt similarity index 97% rename from native/native.tests/testData/codegen/coroutines/anonymousObject.kt rename to compiler/testData/codegen/box/coroutines/anonymousObject.kt index c8998ea9014..85aacf36cdc 100644 --- a/native/native.tests/testData/codegen/coroutines/anonymousObject.kt +++ b/compiler/testData/codegen/box/coroutines/anonymousObject.kt @@ -2,6 +2,8 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB +// WITH_COROUTINES import kotlin.test.* diff --git a/native/native.tests/testData/codegen/coroutines/controlFlow_chain.kt b/compiler/testData/codegen/box/coroutines/controlFlow_chain.kt similarity index 96% rename from native/native.tests/testData/codegen/coroutines/controlFlow_chain.kt rename to compiler/testData/codegen/box/coroutines/controlFlow_chain.kt index 4bd90b61c2c..e296e1142a5 100644 --- a/native/native.tests/testData/codegen/coroutines/controlFlow_chain.kt +++ b/compiler/testData/codegen/box/coroutines/controlFlow_chain.kt @@ -2,6 +2,8 @@ * Copyright 2010-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB +// WITH_COROUTINES import kotlin.test.* diff --git a/compiler/testData/codegen/box/coroutines/controlFlow_finally1.jvm_abi.txt b/compiler/testData/codegen/box/coroutines/controlFlow_finally1.jvm_abi.txt new file mode 100644 index 00000000000..5cd605bd147 --- /dev/null +++ b/compiler/testData/codegen/box/coroutines/controlFlow_finally1.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS ControlFlow_finally1Kt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/coroutines/controlFlow_finally1.kt b/compiler/testData/codegen/box/coroutines/controlFlow_finally1.kt similarity index 94% rename from native/native.tests/testData/codegen/coroutines/controlFlow_finally1.kt rename to compiler/testData/codegen/box/coroutines/controlFlow_finally1.kt index ffded84c4be..8a3883bb063 100644 --- a/native/native.tests/testData/codegen/coroutines/controlFlow_finally1.kt +++ b/compiler/testData/codegen/box/coroutines/controlFlow_finally1.kt @@ -2,6 +2,9 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB +// WITH_COROUTINES import kotlin.test.* diff --git a/compiler/testData/codegen/box/coroutines/controlFlow_finally2.jvm_abi.txt b/compiler/testData/codegen/box/coroutines/controlFlow_finally2.jvm_abi.txt new file mode 100644 index 00000000000..46de7109a31 --- /dev/null +++ b/compiler/testData/codegen/box/coroutines/controlFlow_finally2.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS ControlFlow_finally2Kt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/coroutines/controlFlow_finally2.kt b/compiler/testData/codegen/box/coroutines/controlFlow_finally2.kt similarity index 95% rename from native/native.tests/testData/codegen/coroutines/controlFlow_finally2.kt rename to compiler/testData/codegen/box/coroutines/controlFlow_finally2.kt index d60c5e93403..9816c22326e 100644 --- a/native/native.tests/testData/codegen/coroutines/controlFlow_finally2.kt +++ b/compiler/testData/codegen/box/coroutines/controlFlow_finally2.kt @@ -2,6 +2,9 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB +// WITH_COROUTINES import kotlin.test.* diff --git a/compiler/testData/codegen/box/coroutines/controlFlow_finally3.jvm_abi.txt b/compiler/testData/codegen/box/coroutines/controlFlow_finally3.jvm_abi.txt new file mode 100644 index 00000000000..b21eca28ae4 --- /dev/null +++ b/compiler/testData/codegen/box/coroutines/controlFlow_finally3.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS ControlFlow_finally3Kt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/coroutines/controlFlow_finally3.kt b/compiler/testData/codegen/box/coroutines/controlFlow_finally3.kt similarity index 94% rename from native/native.tests/testData/codegen/coroutines/controlFlow_finally3.kt rename to compiler/testData/codegen/box/coroutines/controlFlow_finally3.kt index e408f296843..873852b7e25 100644 --- a/native/native.tests/testData/codegen/coroutines/controlFlow_finally3.kt +++ b/compiler/testData/codegen/box/coroutines/controlFlow_finally3.kt @@ -2,6 +2,9 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB +// WITH_COROUTINES import kotlin.test.* diff --git a/compiler/testData/codegen/box/coroutines/controlFlow_finally4.jvm_abi.txt b/compiler/testData/codegen/box/coroutines/controlFlow_finally4.jvm_abi.txt new file mode 100644 index 00000000000..b21c6a7693a --- /dev/null +++ b/compiler/testData/codegen/box/coroutines/controlFlow_finally4.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS ControlFlow_finally4Kt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/coroutines/controlFlow_finally4.kt b/compiler/testData/codegen/box/coroutines/controlFlow_finally4.kt similarity index 95% rename from native/native.tests/testData/codegen/coroutines/controlFlow_finally4.kt rename to compiler/testData/codegen/box/coroutines/controlFlow_finally4.kt index 90b5aeda5cc..a56cf777e28 100644 --- a/native/native.tests/testData/codegen/coroutines/controlFlow_finally4.kt +++ b/compiler/testData/codegen/box/coroutines/controlFlow_finally4.kt @@ -2,6 +2,9 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB +// WITH_COROUTINES import kotlin.test.* diff --git a/compiler/testData/codegen/box/coroutines/controlFlow_finally5.jvm_abi.txt b/compiler/testData/codegen/box/coroutines/controlFlow_finally5.jvm_abi.txt new file mode 100644 index 00000000000..6b00de9988f --- /dev/null +++ b/compiler/testData/codegen/box/coroutines/controlFlow_finally5.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS ControlFlow_finally5Kt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/coroutines/controlFlow_finally5.kt b/compiler/testData/codegen/box/coroutines/controlFlow_finally5.kt similarity index 95% rename from native/native.tests/testData/codegen/coroutines/controlFlow_finally5.kt rename to compiler/testData/codegen/box/coroutines/controlFlow_finally5.kt index 3f039b978af..a347bce13c0 100644 --- a/native/native.tests/testData/codegen/coroutines/controlFlow_finally5.kt +++ b/compiler/testData/codegen/box/coroutines/controlFlow_finally5.kt @@ -2,6 +2,9 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB +// WITH_COROUTINES import kotlin.test.* diff --git a/compiler/testData/codegen/box/coroutines/controlFlow_finally6.jvm_abi.txt b/compiler/testData/codegen/box/coroutines/controlFlow_finally6.jvm_abi.txt new file mode 100644 index 00000000000..6aced5a7a2f --- /dev/null +++ b/compiler/testData/codegen/box/coroutines/controlFlow_finally6.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS ControlFlow_finally6Kt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/coroutines/controlFlow_finally6.kt b/compiler/testData/codegen/box/coroutines/controlFlow_finally6.kt similarity index 95% rename from native/native.tests/testData/codegen/coroutines/controlFlow_finally6.kt rename to compiler/testData/codegen/box/coroutines/controlFlow_finally6.kt index 092429ccaed..302b2575bed 100644 --- a/native/native.tests/testData/codegen/coroutines/controlFlow_finally6.kt +++ b/compiler/testData/codegen/box/coroutines/controlFlow_finally6.kt @@ -2,6 +2,9 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB +// WITH_COROUTINES import kotlin.test.* diff --git a/compiler/testData/codegen/box/coroutines/controlFlow_finally7.jvm_abi.txt b/compiler/testData/codegen/box/coroutines/controlFlow_finally7.jvm_abi.txt new file mode 100644 index 00000000000..c282e79c85a --- /dev/null +++ b/compiler/testData/codegen/box/coroutines/controlFlow_finally7.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS ControlFlow_finally7Kt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/coroutines/controlFlow_finally7.kt b/compiler/testData/codegen/box/coroutines/controlFlow_finally7.kt similarity index 96% rename from native/native.tests/testData/codegen/coroutines/controlFlow_finally7.kt rename to compiler/testData/codegen/box/coroutines/controlFlow_finally7.kt index 3010d7cec46..e0edff529f5 100644 --- a/native/native.tests/testData/codegen/coroutines/controlFlow_finally7.kt +++ b/compiler/testData/codegen/box/coroutines/controlFlow_finally7.kt @@ -2,6 +2,9 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB +// WITH_COROUTINES import kotlin.test.* diff --git a/compiler/testData/codegen/box/coroutines/controlFlow_if1.jvm_abi.txt b/compiler/testData/codegen/box/coroutines/controlFlow_if1.jvm_abi.txt new file mode 100644 index 00000000000..ac5710e4d2d --- /dev/null +++ b/compiler/testData/codegen/box/coroutines/controlFlow_if1.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS ControlFlow_if1Kt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/coroutines/controlFlow_if1.kt b/compiler/testData/codegen/box/coroutines/controlFlow_if1.kt similarity index 94% rename from native/native.tests/testData/codegen/coroutines/controlFlow_if1.kt rename to compiler/testData/codegen/box/coroutines/controlFlow_if1.kt index ab374a03a15..2efa2347a4c 100644 --- a/native/native.tests/testData/codegen/coroutines/controlFlow_if1.kt +++ b/compiler/testData/codegen/box/coroutines/controlFlow_if1.kt @@ -2,6 +2,9 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB +// WITH_COROUTINES import kotlin.test.* diff --git a/compiler/testData/codegen/box/coroutines/controlFlow_if2.jvm_abi.txt b/compiler/testData/codegen/box/coroutines/controlFlow_if2.jvm_abi.txt new file mode 100644 index 00000000000..a7d62bef6a3 --- /dev/null +++ b/compiler/testData/codegen/box/coroutines/controlFlow_if2.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS ControlFlow_if2Kt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/coroutines/controlFlow_if2.kt b/compiler/testData/codegen/box/coroutines/controlFlow_if2.kt similarity index 94% rename from native/native.tests/testData/codegen/coroutines/controlFlow_if2.kt rename to compiler/testData/codegen/box/coroutines/controlFlow_if2.kt index 89f57e9a2b2..e4cb4098f11 100644 --- a/native/native.tests/testData/codegen/coroutines/controlFlow_if2.kt +++ b/compiler/testData/codegen/box/coroutines/controlFlow_if2.kt @@ -2,6 +2,9 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB +// WITH_COROUTINES import kotlin.test.* diff --git a/compiler/testData/codegen/box/coroutines/controlFlow_inline1.jvm_abi.txt b/compiler/testData/codegen/box/coroutines/controlFlow_inline1.jvm_abi.txt new file mode 100644 index 00000000000..250ca14467a --- /dev/null +++ b/compiler/testData/codegen/box/coroutines/controlFlow_inline1.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS ControlFlow_inline1Kt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/coroutines/controlFlow_inline1.kt b/compiler/testData/codegen/box/coroutines/controlFlow_inline1.kt similarity index 93% rename from native/native.tests/testData/codegen/coroutines/controlFlow_inline1.kt rename to compiler/testData/codegen/box/coroutines/controlFlow_inline1.kt index 18ab2794a80..4306103fe79 100644 --- a/native/native.tests/testData/codegen/coroutines/controlFlow_inline1.kt +++ b/compiler/testData/codegen/box/coroutines/controlFlow_inline1.kt @@ -2,6 +2,9 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB +// WITH_COROUTINES import kotlin.test.* diff --git a/compiler/testData/codegen/box/coroutines/controlFlow_inline2.jvm_abi.txt b/compiler/testData/codegen/box/coroutines/controlFlow_inline2.jvm_abi.txt new file mode 100644 index 00000000000..f7202304e8e --- /dev/null +++ b/compiler/testData/codegen/box/coroutines/controlFlow_inline2.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS ControlFlow_inline2Kt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/coroutines/controlFlow_inline2.kt b/compiler/testData/codegen/box/coroutines/controlFlow_inline2.kt similarity index 93% rename from native/native.tests/testData/codegen/coroutines/controlFlow_inline2.kt rename to compiler/testData/codegen/box/coroutines/controlFlow_inline2.kt index f543f43e982..73385b46447 100644 --- a/native/native.tests/testData/codegen/coroutines/controlFlow_inline2.kt +++ b/compiler/testData/codegen/box/coroutines/controlFlow_inline2.kt @@ -2,6 +2,9 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB +// WITH_COROUTINES import kotlin.test.* diff --git a/compiler/testData/codegen/box/coroutines/controlFlow_inline3.jvm_abi.txt b/compiler/testData/codegen/box/coroutines/controlFlow_inline3.jvm_abi.txt new file mode 100644 index 00000000000..72074038f80 --- /dev/null +++ b/compiler/testData/codegen/box/coroutines/controlFlow_inline3.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS ControlFlow_inline3Kt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/coroutines/controlFlow_inline3.kt b/compiler/testData/codegen/box/coroutines/controlFlow_inline3.kt similarity index 94% rename from native/native.tests/testData/codegen/coroutines/controlFlow_inline3.kt rename to compiler/testData/codegen/box/coroutines/controlFlow_inline3.kt index 86cc684ebd2..58a4477b40a 100644 --- a/native/native.tests/testData/codegen/coroutines/controlFlow_inline3.kt +++ b/compiler/testData/codegen/box/coroutines/controlFlow_inline3.kt @@ -2,6 +2,9 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB +// WITH_COROUTINES import kotlin.test.* diff --git a/compiler/testData/codegen/box/coroutines/controlFlow_tryCatch1.jvm_abi.txt b/compiler/testData/codegen/box/coroutines/controlFlow_tryCatch1.jvm_abi.txt new file mode 100644 index 00000000000..53b2c609566 --- /dev/null +++ b/compiler/testData/codegen/box/coroutines/controlFlow_tryCatch1.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS ControlFlow_tryCatch1Kt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/coroutines/controlFlow_tryCatch1.kt b/compiler/testData/codegen/box/coroutines/controlFlow_tryCatch1.kt similarity index 94% rename from native/native.tests/testData/codegen/coroutines/controlFlow_tryCatch1.kt rename to compiler/testData/codegen/box/coroutines/controlFlow_tryCatch1.kt index 2b921f24f1c..9e84cc07bb8 100644 --- a/native/native.tests/testData/codegen/coroutines/controlFlow_tryCatch1.kt +++ b/compiler/testData/codegen/box/coroutines/controlFlow_tryCatch1.kt @@ -2,6 +2,9 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB +// WITH_COROUTINES import kotlin.test.* diff --git a/compiler/testData/codegen/box/coroutines/controlFlow_tryCatch2.jvm_abi.txt b/compiler/testData/codegen/box/coroutines/controlFlow_tryCatch2.jvm_abi.txt new file mode 100644 index 00000000000..ff99cb5af76 --- /dev/null +++ b/compiler/testData/codegen/box/coroutines/controlFlow_tryCatch2.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS ControlFlow_tryCatch2Kt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/coroutines/controlFlow_tryCatch2.kt b/compiler/testData/codegen/box/coroutines/controlFlow_tryCatch2.kt similarity index 94% rename from native/native.tests/testData/codegen/coroutines/controlFlow_tryCatch2.kt rename to compiler/testData/codegen/box/coroutines/controlFlow_tryCatch2.kt index baa5d95dddb..c009450370b 100644 --- a/native/native.tests/testData/codegen/coroutines/controlFlow_tryCatch2.kt +++ b/compiler/testData/codegen/box/coroutines/controlFlow_tryCatch2.kt @@ -2,6 +2,9 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB +// WITH_COROUTINES import kotlin.test.* diff --git a/compiler/testData/codegen/box/coroutines/controlFlow_tryCatch3.jvm_abi.txt b/compiler/testData/codegen/box/coroutines/controlFlow_tryCatch3.jvm_abi.txt new file mode 100644 index 00000000000..73ccd3e3ccf --- /dev/null +++ b/compiler/testData/codegen/box/coroutines/controlFlow_tryCatch3.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS ControlFlow_tryCatch3Kt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/coroutines/controlFlow_tryCatch3.kt b/compiler/testData/codegen/box/coroutines/controlFlow_tryCatch3.kt similarity index 95% rename from native/native.tests/testData/codegen/coroutines/controlFlow_tryCatch3.kt rename to compiler/testData/codegen/box/coroutines/controlFlow_tryCatch3.kt index 4f8afa6c2d0..e63e87fee3c 100644 --- a/native/native.tests/testData/codegen/coroutines/controlFlow_tryCatch3.kt +++ b/compiler/testData/codegen/box/coroutines/controlFlow_tryCatch3.kt @@ -2,6 +2,9 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB +// WITH_COROUTINES import kotlin.test.* diff --git a/compiler/testData/codegen/box/coroutines/controlFlow_tryCatch4.jvm_abi.txt b/compiler/testData/codegen/box/coroutines/controlFlow_tryCatch4.jvm_abi.txt new file mode 100644 index 00000000000..7ab1fd363fd --- /dev/null +++ b/compiler/testData/codegen/box/coroutines/controlFlow_tryCatch4.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS ControlFlow_tryCatch4Kt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/coroutines/controlFlow_tryCatch4.kt b/compiler/testData/codegen/box/coroutines/controlFlow_tryCatch4.kt similarity index 95% rename from native/native.tests/testData/codegen/coroutines/controlFlow_tryCatch4.kt rename to compiler/testData/codegen/box/coroutines/controlFlow_tryCatch4.kt index 3142b5ccf82..8846a01f0bc 100644 --- a/native/native.tests/testData/codegen/coroutines/controlFlow_tryCatch4.kt +++ b/compiler/testData/codegen/box/coroutines/controlFlow_tryCatch4.kt @@ -2,6 +2,9 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB +// WITH_COROUTINES import kotlin.test.* diff --git a/compiler/testData/codegen/box/coroutines/controlFlow_tryCatch5.jvm_abi.txt b/compiler/testData/codegen/box/coroutines/controlFlow_tryCatch5.jvm_abi.txt new file mode 100644 index 00000000000..f035a2925d4 --- /dev/null +++ b/compiler/testData/codegen/box/coroutines/controlFlow_tryCatch5.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS ControlFlow_tryCatch5Kt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/coroutines/controlFlow_tryCatch5.kt b/compiler/testData/codegen/box/coroutines/controlFlow_tryCatch5.kt similarity index 95% rename from native/native.tests/testData/codegen/coroutines/controlFlow_tryCatch5.kt rename to compiler/testData/codegen/box/coroutines/controlFlow_tryCatch5.kt index 61aec89a295..ed04bd476a8 100644 --- a/native/native.tests/testData/codegen/coroutines/controlFlow_tryCatch5.kt +++ b/compiler/testData/codegen/box/coroutines/controlFlow_tryCatch5.kt @@ -2,6 +2,9 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB +// WITH_COROUTINES import kotlin.test.* diff --git a/compiler/testData/codegen/box/coroutines/controlFlow_while1.jvm_abi.txt b/compiler/testData/codegen/box/coroutines/controlFlow_while1.jvm_abi.txt new file mode 100644 index 00000000000..5b6fca0f16b --- /dev/null +++ b/compiler/testData/codegen/box/coroutines/controlFlow_while1.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS ControlFlow_while1Kt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/coroutines/controlFlow_while1.kt b/compiler/testData/codegen/box/coroutines/controlFlow_while1.kt similarity index 95% rename from native/native.tests/testData/codegen/coroutines/controlFlow_while1.kt rename to compiler/testData/codegen/box/coroutines/controlFlow_while1.kt index 51124427665..6cf723d63ac 100644 --- a/native/native.tests/testData/codegen/coroutines/controlFlow_while1.kt +++ b/compiler/testData/codegen/box/coroutines/controlFlow_while1.kt @@ -2,6 +2,9 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB +// WITH_COROUTINES import kotlin.test.* diff --git a/compiler/testData/codegen/box/coroutines/controlFlow_while2.jvm_abi.txt b/compiler/testData/codegen/box/coroutines/controlFlow_while2.jvm_abi.txt new file mode 100644 index 00000000000..4b4bc155c97 --- /dev/null +++ b/compiler/testData/codegen/box/coroutines/controlFlow_while2.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS ControlFlow_while2Kt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/coroutines/controlFlow_while2.kt b/compiler/testData/codegen/box/coroutines/controlFlow_while2.kt similarity index 95% rename from native/native.tests/testData/codegen/coroutines/controlFlow_while2.kt rename to compiler/testData/codegen/box/coroutines/controlFlow_while2.kt index 507bca0f1ff..431977ee208 100644 --- a/native/native.tests/testData/codegen/coroutines/controlFlow_while2.kt +++ b/compiler/testData/codegen/box/coroutines/controlFlow_while2.kt @@ -2,6 +2,9 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB +// WITH_COROUTINES import kotlin.test.* diff --git a/compiler/testData/codegen/box/coroutines/coroutineContext1.jvm_abi.txt b/compiler/testData/codegen/box/coroutines/coroutineContext1.jvm_abi.txt new file mode 100644 index 00000000000..cc2cb306d5c --- /dev/null +++ b/compiler/testData/codegen/box/coroutines/coroutineContext1.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS CoroutineContext1Kt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/coroutines/coroutineContext1.kt b/compiler/testData/codegen/box/coroutines/coroutineContext1.kt similarity index 91% rename from native/native.tests/testData/codegen/coroutines/coroutineContext1.kt rename to compiler/testData/codegen/box/coroutines/coroutineContext1.kt index fec69e0999d..d702b449939 100644 --- a/native/native.tests/testData/codegen/coroutines/coroutineContext1.kt +++ b/compiler/testData/codegen/box/coroutines/coroutineContext1.kt @@ -2,6 +2,9 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB +// WITH_COROUTINES import kotlin.test.* diff --git a/compiler/testData/codegen/box/coroutines/coroutineContext2.jvm_abi.txt b/compiler/testData/codegen/box/coroutines/coroutineContext2.jvm_abi.txt new file mode 100644 index 00000000000..bd88c4f2557 --- /dev/null +++ b/compiler/testData/codegen/box/coroutines/coroutineContext2.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS CoroutineContext2Kt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/coroutines/coroutineContext2.kt b/compiler/testData/codegen/box/coroutines/coroutineContext2.kt similarity index 92% rename from native/native.tests/testData/codegen/coroutines/coroutineContext2.kt rename to compiler/testData/codegen/box/coroutines/coroutineContext2.kt index 0a3f1520930..3b57451c351 100644 --- a/native/native.tests/testData/codegen/coroutines/coroutineContext2.kt +++ b/compiler/testData/codegen/box/coroutines/coroutineContext2.kt @@ -2,6 +2,9 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB +// WITH_COROUTINES import kotlin.test.* diff --git a/compiler/testData/codegen/box/coroutines/correctOrder1.jvm_abi.txt b/compiler/testData/codegen/box/coroutines/correctOrder1.jvm_abi.txt new file mode 100644 index 00000000000..0ac79f0b5fe --- /dev/null +++ b/compiler/testData/codegen/box/coroutines/correctOrder1.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS CorrectOrder1Kt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/coroutines/correctOrder1.kt b/compiler/testData/codegen/box/coroutines/correctOrder1.kt similarity index 94% rename from native/native.tests/testData/codegen/coroutines/correctOrder1.kt rename to compiler/testData/codegen/box/coroutines/correctOrder1.kt index 635a60649de..40944f68d37 100644 --- a/native/native.tests/testData/codegen/coroutines/correctOrder1.kt +++ b/compiler/testData/codegen/box/coroutines/correctOrder1.kt @@ -2,6 +2,9 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB +// WITH_COROUTINES import kotlin.test.* diff --git a/compiler/testData/codegen/box/coroutines/degenerate1.jvm_abi.txt b/compiler/testData/codegen/box/coroutines/degenerate1.jvm_abi.txt new file mode 100644 index 00000000000..a2d7aa2b9fc --- /dev/null +++ b/compiler/testData/codegen/box/coroutines/degenerate1.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS Degenerate1Kt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/coroutines/degenerate1.kt b/compiler/testData/codegen/box/coroutines/degenerate1.kt similarity index 92% rename from native/native.tests/testData/codegen/coroutines/degenerate1.kt rename to compiler/testData/codegen/box/coroutines/degenerate1.kt index dd4d3470bd0..294e6cb7265 100644 --- a/native/native.tests/testData/codegen/coroutines/degenerate1.kt +++ b/compiler/testData/codegen/box/coroutines/degenerate1.kt @@ -2,6 +2,9 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB +// WITH_COROUTINES import kotlin.test.* diff --git a/compiler/testData/codegen/box/coroutines/degenerate2.jvm_abi.txt b/compiler/testData/codegen/box/coroutines/degenerate2.jvm_abi.txt new file mode 100644 index 00000000000..5963aa9fa5f --- /dev/null +++ b/compiler/testData/codegen/box/coroutines/degenerate2.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS Degenerate2Kt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/coroutines/degenerate2.kt b/compiler/testData/codegen/box/coroutines/degenerate2.kt similarity index 93% rename from native/native.tests/testData/codegen/coroutines/degenerate2.kt rename to compiler/testData/codegen/box/coroutines/degenerate2.kt index 019388e3dcf..8593fabaede 100644 --- a/native/native.tests/testData/codegen/coroutines/degenerate2.kt +++ b/compiler/testData/codegen/box/coroutines/degenerate2.kt @@ -2,6 +2,9 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB +// WITH_COROUTINES import kotlin.test.* diff --git a/compiler/testData/codegen/box/coroutines/functionReference_eqeq_name.jvm_abi.txt b/compiler/testData/codegen/box/coroutines/functionReference_eqeq_name.jvm_abi.txt new file mode 100644 index 00000000000..356c65b3ab1 --- /dev/null +++ b/compiler/testData/codegen/box/coroutines/functionReference_eqeq_name.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS FunctionReference_eqeq_nameKt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/coroutines/functionReference_eqeq_name.kt b/compiler/testData/codegen/box/coroutines/functionReference_eqeq_name.kt similarity index 62% rename from native/native.tests/testData/codegen/coroutines/functionReference_eqeq_name.kt rename to compiler/testData/codegen/box/coroutines/functionReference_eqeq_name.kt index 23bc6cfc7ca..6b6f0c5bc58 100644 --- a/native/native.tests/testData/codegen/coroutines/functionReference_eqeq_name.kt +++ b/compiler/testData/codegen/box/coroutines/functionReference_eqeq_name.kt @@ -2,6 +2,11 @@ * Copyright 2010-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// KT-52704 +// IGNORE_BACKEND: JS_IR, JS_IR_ES6, WASM +// WITH_STDLIB +// WITH_COROUTINES import kotlin.test.* @@ -24,11 +29,11 @@ fun box(): String { assertEquals("foo", ref1.name) assertEquals("bar", ref2.name) assertEquals("bar", ref6.name) - assertFalse(ref1 == ref2) - assertTrue(ref1 == ref3) - assertFalse(ref2 == ref4) - assertTrue(ref2 == ref5) - assertFalse(ref6 == ref2) + assertFalse(ref1 == ref2, "ref1 == ref2") + assertTrue(ref1 == ref3, "ref1 == ref3") + assertFalse(ref2 == ref4, "ref2 == ref4") + assertTrue(ref2 == ref5, "ref2 == ref5") + assertFalse(ref6 == ref2, "ref6 == ref2") return "OK" } diff --git a/native/native.tests/testData/codegen/coroutines/functionReference_invokeAsFunction.kt b/compiler/testData/codegen/box/coroutines/functionReference_invokeAsFunction.kt similarity index 76% rename from native/native.tests/testData/codegen/coroutines/functionReference_invokeAsFunction.kt rename to compiler/testData/codegen/box/coroutines/functionReference_invokeAsFunction.kt index 9fddb06a084..06205936188 100644 --- a/native/native.tests/testData/codegen/coroutines/functionReference_invokeAsFunction.kt +++ b/compiler/testData/codegen/box/coroutines/functionReference_invokeAsFunction.kt @@ -2,14 +2,16 @@ * Copyright 2010-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// KT-66098: ClassCastException +// IGNORE_BACKEND: WASM +// WITH_STDLIB +// WITH_COROUTINES import kotlin.test.* import kotlin.coroutines.* import kotlin.coroutines.intrinsics.* -val sb = StringBuilder() - open class EmptyContinuation(override val context: CoroutineContext = EmptyCoroutineContext) : Continuation { companion object : EmptyContinuation() override fun resumeWith(result: Result) { result.getOrThrow() } @@ -23,12 +25,6 @@ suspend fun foo(x: Int) = x fun box(): String { val ref = Foo(42)::bar - - sb.appendLine((ref as Function2, Any?>)(117, EmptyContinuation)) - - assertEquals(""" - 159 - - """.trimIndent(), sb.toString()) + assertEquals(159, (ref as Function2, Any?>)(117, EmptyContinuation)) return "OK" } diff --git a/native/native.tests/testData/codegen/coroutines/functionReference_lambdaAsSuspendLambda.kt b/compiler/testData/codegen/box/coroutines/functionReference_lambdaAsSuspendLambda.kt similarity index 77% rename from native/native.tests/testData/codegen/coroutines/functionReference_lambdaAsSuspendLambda.kt rename to compiler/testData/codegen/box/coroutines/functionReference_lambdaAsSuspendLambda.kt index dfa59474333..aaa1eebc653 100644 --- a/native/native.tests/testData/codegen/coroutines/functionReference_lambdaAsSuspendLambda.kt +++ b/compiler/testData/codegen/box/coroutines/functionReference_lambdaAsSuspendLambda.kt @@ -2,6 +2,10 @@ * Copyright 2010-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// KT-66093: ClassCastException +// IGNORE_BACKEND: JS_IR, JS_IR_ES6, WASM +// WITH_STDLIB +// WITH_COROUTINES import kotlin.test.* diff --git a/native/native.tests/testData/codegen/coroutines/functionReference_simple.kt b/compiler/testData/codegen/box/coroutines/functionReference_simple.kt similarity index 96% rename from native/native.tests/testData/codegen/coroutines/functionReference_simple.kt rename to compiler/testData/codegen/box/coroutines/functionReference_simple.kt index 6e5e5056667..587bc1d5673 100644 --- a/native/native.tests/testData/codegen/coroutines/functionReference_simple.kt +++ b/compiler/testData/codegen/box/coroutines/functionReference_simple.kt @@ -2,6 +2,8 @@ * Copyright 2010-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB +// WITH_COROUTINES import kotlin.test.* diff --git a/native/native.tests/testData/codegen/coroutines/kt41394.kt b/compiler/testData/codegen/box/coroutines/kt41394.kt similarity index 96% rename from native/native.tests/testData/codegen/coroutines/kt41394.kt rename to compiler/testData/codegen/box/coroutines/kt41394.kt index a79916aaa19..df613dd27be 100644 --- a/native/native.tests/testData/codegen/coroutines/kt41394.kt +++ b/compiler/testData/codegen/box/coroutines/kt41394.kt @@ -2,6 +2,8 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB +// WITH_COROUTINES import kotlin.test.* diff --git a/native/native.tests/testData/codegen/coroutines/returnsNothing1.kt b/compiler/testData/codegen/box/coroutines/returnsNothing1.kt similarity index 96% rename from native/native.tests/testData/codegen/coroutines/returnsNothing1.kt rename to compiler/testData/codegen/box/coroutines/returnsNothing1.kt index 02808d890c3..8adc5108679 100644 --- a/native/native.tests/testData/codegen/coroutines/returnsNothing1.kt +++ b/compiler/testData/codegen/box/coroutines/returnsNothing1.kt @@ -2,6 +2,8 @@ * Copyright 2010-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB +// WITH_COROUTINES import kotlin.test.* diff --git a/compiler/testData/codegen/box/coroutines/returnsUnit1.jvm_abi.txt b/compiler/testData/codegen/box/coroutines/returnsUnit1.jvm_abi.txt new file mode 100644 index 00000000000..dd8be63259e --- /dev/null +++ b/compiler/testData/codegen/box/coroutines/returnsUnit1.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS ReturnsUnit1Kt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/coroutines/returnsUnit1.kt b/compiler/testData/codegen/box/coroutines/returnsUnit1.kt similarity index 94% rename from native/native.tests/testData/codegen/coroutines/returnsUnit1.kt rename to compiler/testData/codegen/box/coroutines/returnsUnit1.kt index 001798fbb33..f887b4a7be3 100644 --- a/native/native.tests/testData/codegen/coroutines/returnsUnit1.kt +++ b/compiler/testData/codegen/box/coroutines/returnsUnit1.kt @@ -2,6 +2,9 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB +// WITH_COROUTINES import kotlin.test.* diff --git a/native/native.tests/testData/codegen/coroutines/simple.kt b/compiler/testData/codegen/box/coroutines/simple2.kt similarity index 96% rename from native/native.tests/testData/codegen/coroutines/simple.kt rename to compiler/testData/codegen/box/coroutines/simple2.kt index 4c66284db9b..e467fd3f29e 100644 --- a/native/native.tests/testData/codegen/coroutines/simple.kt +++ b/compiler/testData/codegen/box/coroutines/simple2.kt @@ -2,6 +2,8 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB +// WITH_COROUTINES import kotlin.test.* diff --git a/native/native.tests/testData/codegen/coroutines/suspendConversion.kt b/compiler/testData/codegen/box/coroutines/suspendConversion.kt similarity index 78% rename from native/native.tests/testData/codegen/coroutines/suspendConversion.kt rename to compiler/testData/codegen/box/coroutines/suspendConversion.kt index 9415b04c116..8d03656db3c 100644 --- a/native/native.tests/testData/codegen/coroutines/suspendConversion.kt +++ b/compiler/testData/codegen/box/coroutines/suspendConversion.kt @@ -2,6 +2,10 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// KT-66095: java.lang.ClassCastException: SuspendConversionKt$box$f$1 cannot be cast to kotlin.jvm.functions.Function1 +// DONT_TARGET_EXACT_BACKEND: JVM +// WITH_STDLIB +// WITH_COROUTINES import kotlin.test.* diff --git a/native/native.tests/testData/codegen/coroutines/withReceiver.kt b/compiler/testData/codegen/box/coroutines/withReceiver.kt similarity index 96% rename from native/native.tests/testData/codegen/coroutines/withReceiver.kt rename to compiler/testData/codegen/box/coroutines/withReceiver.kt index 963980dd515..e3023f434f6 100644 --- a/native/native.tests/testData/codegen/coroutines/withReceiver.kt +++ b/compiler/testData/codegen/box/coroutines/withReceiver.kt @@ -2,6 +2,8 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB +// WITH_COROUTINES import kotlin.test.* diff --git a/native/native.tests/testData/codegen/cycles/cycle.kt b/compiler/testData/codegen/box/cycles/cycle.kt similarity index 96% rename from native/native.tests/testData/codegen/cycles/cycle.kt rename to compiler/testData/codegen/box/cycles/cycle.kt index 15ebc599f31..32433877b8c 100644 --- a/native/native.tests/testData/codegen/cycles/cycle.kt +++ b/compiler/testData/codegen/box/cycles/cycle.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/cycles/cycle_do.kt b/compiler/testData/codegen/box/cycles/cycle_do.kt similarity index 96% rename from native/native.tests/testData/codegen/cycles/cycle_do.kt rename to compiler/testData/codegen/box/cycles/cycle_do.kt index 0dd4ca08f80..03b930aaf60 100644 --- a/native/native.tests/testData/codegen/cycles/cycle_do.kt +++ b/compiler/testData/codegen/box/cycles/cycle_do.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/cycles/cycle_for.kt b/compiler/testData/codegen/box/cycles/cycle_for.kt similarity index 96% rename from native/native.tests/testData/codegen/cycles/cycle_for.kt rename to compiler/testData/codegen/box/cycles/cycle_for.kt index 07b2b8675e6..0ad693175f8 100644 --- a/native/native.tests/testData/codegen/cycles/cycle_for.kt +++ b/compiler/testData/codegen/box/cycles/cycle_for.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/dataflow/scope1.kt b/compiler/testData/codegen/box/dataflow/scope1.kt similarity index 95% rename from native/native.tests/testData/codegen/dataflow/scope1.kt rename to compiler/testData/codegen/box/dataflow/scope1.kt index fa7f81dba49..0cf2f2924bb 100644 --- a/native/native.tests/testData/codegen/dataflow/scope1.kt +++ b/compiler/testData/codegen/box/dataflow/scope1.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/dataflow/uninitialized_val.kt b/compiler/testData/codegen/box/dataflow/uninitialized_val.kt similarity index 96% rename from native/native.tests/testData/codegen/dataflow/uninitialized_val.kt rename to compiler/testData/codegen/box/dataflow/uninitialized_val.kt index 24722d6b951..61f3873d3cf 100644 --- a/native/native.tests/testData/codegen/dataflow/uninitialized_val.kt +++ b/compiler/testData/codegen/box/dataflow/uninitialized_val.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/delegatedProperty/correctFieldsOrder.kt b/compiler/testData/codegen/box/delegatedProperty/correctFieldsOrder.kt similarity index 96% rename from native/native.tests/testData/codegen/delegatedProperty/correctFieldsOrder.kt rename to compiler/testData/codegen/box/delegatedProperty/correctFieldsOrder.kt index 784de4e54f5..acadd36112e 100644 --- a/native/native.tests/testData/codegen/delegatedProperty/correctFieldsOrder.kt +++ b/compiler/testData/codegen/box/delegatedProperty/correctFieldsOrder.kt @@ -1,3 +1,4 @@ +// WITH_STDLIB // MODULE: lib // FILE: lib.kt diff --git a/compiler/testData/codegen/box/delegatedProperty/delegatedOverride.jvm_abi.txt b/compiler/testData/codegen/box/delegatedProperty/delegatedOverride.jvm_abi.txt new file mode 100644 index 00000000000..adaa1e4265c --- /dev/null +++ b/compiler/testData/codegen/box/delegatedProperty/delegatedOverride.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE lib + CLASS a/LibKt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/delegatedProperty/delegatedOverride.kt b/compiler/testData/codegen/box/delegatedProperty/delegatedOverride.kt similarity index 94% rename from native/native.tests/testData/codegen/delegatedProperty/delegatedOverride.kt rename to compiler/testData/codegen/box/delegatedProperty/delegatedOverride.kt index 1c4a8d3efc8..b9c96e2e2b0 100644 --- a/native/native.tests/testData/codegen/delegatedProperty/delegatedOverride.kt +++ b/compiler/testData/codegen/box/delegatedProperty/delegatedOverride.kt @@ -1,3 +1,5 @@ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB // MODULE: lib // FILE: lib.kt diff --git a/compiler/testData/codegen/box/delegatedProperty/lazy.jvm_abi.txt b/compiler/testData/codegen/box/delegatedProperty/lazy.jvm_abi.txt new file mode 100644 index 00000000000..bc20243424a --- /dev/null +++ b/compiler/testData/codegen/box/delegatedProperty/lazy.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS LazyKt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/delegatedProperty/lazy.kt b/compiler/testData/codegen/box/delegatedProperty/lazy.kt similarity index 91% rename from native/native.tests/testData/codegen/delegatedProperty/lazy.kt rename to compiler/testData/codegen/box/delegatedProperty/lazy.kt index 8c4b278e6c4..017fc3984fa 100644 --- a/native/native.tests/testData/codegen/delegatedProperty/lazy.kt +++ b/compiler/testData/codegen/box/delegatedProperty/lazy.kt @@ -2,6 +2,8 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB import kotlin.test.* diff --git a/compiler/testData/codegen/box/delegatedProperty/local.jvm_abi.txt b/compiler/testData/codegen/box/delegatedProperty/local.jvm_abi.txt new file mode 100644 index 00000000000..65595401276 --- /dev/null +++ b/compiler/testData/codegen/box/delegatedProperty/local.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS LocalKt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/delegatedProperty/local.kt b/compiler/testData/codegen/box/delegatedProperty/local.kt similarity index 92% rename from native/native.tests/testData/codegen/delegatedProperty/local.kt rename to compiler/testData/codegen/box/delegatedProperty/local.kt index 2beeaeb11de..05cd68bcfdf 100644 --- a/native/native.tests/testData/codegen/delegatedProperty/local.kt +++ b/compiler/testData/codegen/box/delegatedProperty/local.kt @@ -2,6 +2,8 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB import kotlin.test.* import kotlin.reflect.KProperty diff --git a/native/native.tests/testData/codegen/delegatedProperty/map.kt b/compiler/testData/codegen/box/delegatedProperty/map.kt similarity index 96% rename from native/native.tests/testData/codegen/delegatedProperty/map.kt rename to compiler/testData/codegen/box/delegatedProperty/map.kt index a0c2e008a74..744e56faa45 100644 --- a/native/native.tests/testData/codegen/delegatedProperty/map.kt +++ b/compiler/testData/codegen/box/delegatedProperty/map.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/compiler/testData/codegen/box/delegatedProperty/observable.jvm_abi.txt b/compiler/testData/codegen/box/delegatedProperty/observable.jvm_abi.txt new file mode 100644 index 00000000000..45c68d7c4e3 --- /dev/null +++ b/compiler/testData/codegen/box/delegatedProperty/observable.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS ObservableKt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/delegatedProperty/observable.kt b/compiler/testData/codegen/box/delegatedProperty/observable.kt similarity index 92% rename from native/native.tests/testData/codegen/delegatedProperty/observable.kt rename to compiler/testData/codegen/box/delegatedProperty/observable.kt index 96e8683ce7e..23f85e125c2 100644 --- a/native/native.tests/testData/codegen/delegatedProperty/observable.kt +++ b/compiler/testData/codegen/box/delegatedProperty/observable.kt @@ -2,6 +2,8 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB import kotlin.test.* diff --git a/compiler/testData/codegen/box/delegatedProperty/packageLevel.jvm_abi.txt b/compiler/testData/codegen/box/delegatedProperty/packageLevel.jvm_abi.txt new file mode 100644 index 00000000000..cd79073af49 --- /dev/null +++ b/compiler/testData/codegen/box/delegatedProperty/packageLevel.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS PackageLevelKt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/delegatedProperty/packageLevel.kt b/compiler/testData/codegen/box/delegatedProperty/packageLevel.kt similarity index 91% rename from native/native.tests/testData/codegen/delegatedProperty/packageLevel.kt rename to compiler/testData/codegen/box/delegatedProperty/packageLevel.kt index 14fef11310b..5eacad7758d 100644 --- a/native/native.tests/testData/codegen/delegatedProperty/packageLevel.kt +++ b/compiler/testData/codegen/box/delegatedProperty/packageLevel.kt @@ -2,6 +2,8 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB import kotlin.test.* diff --git a/compiler/testData/codegen/box/delegatedProperty/simpleVal.jvm_abi.txt b/compiler/testData/codegen/box/delegatedProperty/simpleVal.jvm_abi.txt new file mode 100644 index 00000000000..1e69a9734aa --- /dev/null +++ b/compiler/testData/codegen/box/delegatedProperty/simpleVal.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS SimpleValKt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/delegatedProperty/simpleVal.kt b/compiler/testData/codegen/box/delegatedProperty/simpleVal.kt similarity index 92% rename from native/native.tests/testData/codegen/delegatedProperty/simpleVal.kt rename to compiler/testData/codegen/box/delegatedProperty/simpleVal.kt index 5a33b091636..f0f402b8326 100644 --- a/native/native.tests/testData/codegen/delegatedProperty/simpleVal.kt +++ b/compiler/testData/codegen/box/delegatedProperty/simpleVal.kt @@ -2,6 +2,8 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB import kotlin.test.* diff --git a/compiler/testData/codegen/box/delegatedProperty/simpleVar.jvm_abi.txt b/compiler/testData/codegen/box/delegatedProperty/simpleVar.jvm_abi.txt new file mode 100644 index 00000000000..a13fe49af97 --- /dev/null +++ b/compiler/testData/codegen/box/delegatedProperty/simpleVar.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS SimpleVarKt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/delegatedProperty/simpleVar.kt b/compiler/testData/codegen/box/delegatedProperty/simpleVar.kt similarity index 94% rename from native/native.tests/testData/codegen/delegatedProperty/simpleVar.kt rename to compiler/testData/codegen/box/delegatedProperty/simpleVar.kt index 9191bf74f43..d32de8f6eee 100644 --- a/native/native.tests/testData/codegen/delegatedProperty/simpleVar.kt +++ b/compiler/testData/codegen/box/delegatedProperty/simpleVar.kt @@ -2,6 +2,8 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB import kotlin.test.* diff --git a/compiler/testData/codegen/box/devirtualization/anonymousObject.jvm_abi.txt b/compiler/testData/codegen/box/devirtualization/anonymousObject.jvm_abi.txt new file mode 100644 index 00000000000..7aacd83ffad --- /dev/null +++ b/compiler/testData/codegen/box/devirtualization/anonymousObject.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS AnonymousObjectKt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/devirtualization/anonymousObject.kt b/compiler/testData/codegen/box/devirtualization/anonymousObject.kt similarity index 91% rename from native/native.tests/testData/codegen/devirtualization/anonymousObject.kt rename to compiler/testData/codegen/box/devirtualization/anonymousObject.kt index 7ca2ca23331..afb7485ef6c 100644 --- a/native/native.tests/testData/codegen/devirtualization/anonymousObject.kt +++ b/compiler/testData/codegen/box/devirtualization/anonymousObject.kt @@ -2,6 +2,8 @@ * Copyright 2010-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/devirtualization/getter_looking_as_box_function.kt b/compiler/testData/codegen/box/devirtualization/getter_looking_as_box_function.kt similarity index 100% rename from native/native.tests/testData/codegen/devirtualization/getter_looking_as_box_function.kt rename to compiler/testData/codegen/box/devirtualization/getter_looking_as_box_function.kt diff --git a/native/native.tests/testData/codegen/devirtualization/inline_getter.kt b/compiler/testData/codegen/box/devirtualization/inline_getter.kt similarity index 96% rename from native/native.tests/testData/codegen/devirtualization/inline_getter.kt rename to compiler/testData/codegen/box/devirtualization/inline_getter.kt index e96bd17dfda..6563835ca25 100644 --- a/native/native.tests/testData/codegen/devirtualization/inline_getter.kt +++ b/compiler/testData/codegen/box/devirtualization/inline_getter.kt @@ -1,3 +1,4 @@ +// WITH_STDLIB import kotlin.test.* interface Base { val id: Int } diff --git a/native/native.tests/testData/codegen/devirtualization/lateinitInterface.kt b/compiler/testData/codegen/box/devirtualization/lateinitInterface.kt similarity index 95% rename from native/native.tests/testData/codegen/devirtualization/lateinitInterface.kt rename to compiler/testData/codegen/box/devirtualization/lateinitInterface.kt index f9d97fd15ed..2d6e98da66e 100644 --- a/native/native.tests/testData/codegen/devirtualization/lateinitInterface.kt +++ b/compiler/testData/codegen/box/devirtualization/lateinitInterface.kt @@ -1,3 +1,4 @@ +// WITH_STDLIB import kotlin.test.* interface I { fun foo(): Int diff --git a/native/native.tests/testData/codegen/enum/companionObject.kt b/compiler/testData/codegen/box/enum/companionObject.kt similarity index 98% rename from native/native.tests/testData/codegen/enum/companionObject.kt rename to compiler/testData/codegen/box/enum/companionObject.kt index bf6ac0236bd..765d9fa0b17 100644 --- a/native/native.tests/testData/codegen/enum/companionObject.kt +++ b/compiler/testData/codegen/box/enum/companionObject.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/enum/enum_equals.kt b/compiler/testData/codegen/box/enum/enum_equals.kt similarity index 97% rename from native/native.tests/testData/codegen/enum/enum_equals.kt rename to compiler/testData/codegen/box/enum/enum_equals.kt index a8d57f12349..7bc82f5ea3a 100644 --- a/native/native.tests/testData/codegen/enum/enum_equals.kt +++ b/compiler/testData/codegen/box/enum/enum_equals.kt @@ -3,6 +3,7 @@ * that can be found in the LICENSE file. */ // !LANGUAGE: -ProhibitComparisonOfIncompatibleEnums +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/enum/interfaceCallNoEntryClass.kt b/compiler/testData/codegen/box/enum/interfaceCallNoEntryClass.kt similarity index 97% rename from native/native.tests/testData/codegen/enum/interfaceCallNoEntryClass.kt rename to compiler/testData/codegen/box/enum/interfaceCallNoEntryClass.kt index 09bd1de3639..c7cdac07172 100644 --- a/native/native.tests/testData/codegen/enum/interfaceCallNoEntryClass.kt +++ b/compiler/testData/codegen/box/enum/interfaceCallNoEntryClass.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/enum/interfaceCallWithEntryClass.kt b/compiler/testData/codegen/box/enum/interfaceCallWithEntryClass.kt similarity index 97% rename from native/native.tests/testData/codegen/enum/interfaceCallWithEntryClass.kt rename to compiler/testData/codegen/box/enum/interfaceCallWithEntryClass.kt index 30e8b2d2629..43b30ffc735 100644 --- a/native/native.tests/testData/codegen/enum/interfaceCallWithEntryClass.kt +++ b/compiler/testData/codegen/box/enum/interfaceCallWithEntryClass.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/enum/kt38540.kt b/compiler/testData/codegen/box/enum/kt38540.kt similarity index 99% rename from native/native.tests/testData/codegen/enum/kt38540.kt rename to compiler/testData/codegen/box/enum/kt38540.kt index bba7163e5c6..7cebc54ca56 100644 --- a/native/native.tests/testData/codegen/enum/kt38540.kt +++ b/compiler/testData/codegen/box/enum/kt38540.kt @@ -2,6 +2,7 @@ * Copyright 2010-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/enum/lambdaInDefault.kt b/compiler/testData/codegen/box/enum/lambdaInDefault.kt similarity index 95% rename from native/native.tests/testData/codegen/enum/lambdaInDefault.kt rename to compiler/testData/codegen/box/enum/lambdaInDefault.kt index eba56668eb3..31b4c566ca2 100644 --- a/native/native.tests/testData/codegen/enum/lambdaInDefault.kt +++ b/compiler/testData/codegen/box/enum/lambdaInDefault.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/compiler/testData/codegen/box/enum/loop.jvm_abi.txt b/compiler/testData/codegen/box/enum/loop.jvm_abi.txt new file mode 100644 index 00000000000..cb7acd95f92 --- /dev/null +++ b/compiler/testData/codegen/box/enum/loop.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS LoopKt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/enum/loop.kt b/compiler/testData/codegen/box/enum/loop.kt similarity index 90% rename from native/native.tests/testData/codegen/enum/loop.kt rename to compiler/testData/codegen/box/enum/loop.kt index 634a8c0ba38..2d52b4bc4ad 100644 --- a/native/native.tests/testData/codegen/enum/loop.kt +++ b/compiler/testData/codegen/box/enum/loop.kt @@ -2,6 +2,8 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/enum/multipleModules.kt b/compiler/testData/codegen/box/enum/multipleModules.kt similarity index 95% rename from native/native.tests/testData/codegen/enum/multipleModules.kt rename to compiler/testData/codegen/box/enum/multipleModules.kt index 88f2a921eda..a09ef3e12e2 100644 --- a/native/native.tests/testData/codegen/enum/multipleModules.kt +++ b/compiler/testData/codegen/box/enum/multipleModules.kt @@ -1,3 +1,4 @@ +// WITH_STDLIB // MODULE: lib // FILE: lib.kt diff --git a/native/native.tests/testData/codegen/enum/nested.kt b/compiler/testData/codegen/box/enum/nested.kt similarity index 95% rename from native/native.tests/testData/codegen/enum/nested.kt rename to compiler/testData/codegen/box/enum/nested.kt index 08a7640af23..d4d06bbe810 100644 --- a/native/native.tests/testData/codegen/enum/nested.kt +++ b/compiler/testData/codegen/box/enum/nested.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/enum/openMethodNoOverrides.kt b/compiler/testData/codegen/box/enum/openMethodNoOverrides.kt similarity index 100% rename from native/native.tests/testData/codegen/enum/openMethodNoOverrides.kt rename to compiler/testData/codegen/box/enum/openMethodNoOverrides.kt diff --git a/native/native.tests/testData/codegen/enum/reorderedArguments.kt b/compiler/testData/codegen/box/enum/reorderedArguments.kt similarity index 99% rename from native/native.tests/testData/codegen/enum/reorderedArguments.kt rename to compiler/testData/codegen/box/enum/reorderedArguments.kt index 993df522757..4c40d3b8a5f 100644 --- a/native/native.tests/testData/codegen/enum/reorderedArguments.kt +++ b/compiler/testData/codegen/box/enum/reorderedArguments.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/compiler/testData/codegen/box/enum/switchLowering.jvm_abi.txt b/compiler/testData/codegen/box/enum/switchLowering.jvm_abi.txt new file mode 100644 index 00000000000..81e366eff44 --- /dev/null +++ b/compiler/testData/codegen/box/enum/switchLowering.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS SwitchLoweringKt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/enum/switchLowering.kt b/compiler/testData/codegen/box/enum/switchLowering.kt similarity index 97% rename from native/native.tests/testData/codegen/enum/switchLowering.kt rename to compiler/testData/codegen/box/enum/switchLowering.kt index fba4b0924ef..b1eb95ec256 100644 --- a/native/native.tests/testData/codegen/enum/switchLowering.kt +++ b/compiler/testData/codegen/box/enum/switchLowering.kt @@ -2,7 +2,9 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 // !LANGUAGE:-ProhibitComparisonOfIncompatibleEnums +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/enum/test0.kt b/compiler/testData/codegen/box/enum/test0.kt similarity index 95% rename from native/native.tests/testData/codegen/enum/test0.kt rename to compiler/testData/codegen/box/enum/test0.kt index e29979ae53a..8318c0a548e 100644 --- a/native/native.tests/testData/codegen/enum/test0.kt +++ b/compiler/testData/codegen/box/enum/test0.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/enum/test1.kt b/compiler/testData/codegen/box/enum/test1.kt similarity index 95% rename from native/native.tests/testData/codegen/enum/test1.kt rename to compiler/testData/codegen/box/enum/test1.kt index b500d4a31f1..753645cf14f 100644 --- a/native/native.tests/testData/codegen/enum/test1.kt +++ b/compiler/testData/codegen/box/enum/test1.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/enum/vCallNoEntryClass.kt b/compiler/testData/codegen/box/enum/vCallNoEntryClass.kt similarity index 96% rename from native/native.tests/testData/codegen/enum/vCallNoEntryClass.kt rename to compiler/testData/codegen/box/enum/vCallNoEntryClass.kt index ccdd2ca2808..bf12a0aa962 100644 --- a/native/native.tests/testData/codegen/enum/vCallNoEntryClass.kt +++ b/compiler/testData/codegen/box/enum/vCallNoEntryClass.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/enum/vCallWithEntryClass.kt b/compiler/testData/codegen/box/enum/vCallWithEntryClass.kt similarity index 96% rename from native/native.tests/testData/codegen/enum/vCallWithEntryClass.kt rename to compiler/testData/codegen/box/enum/vCallWithEntryClass.kt index e8acf1a7741..eb7c9f0204e 100644 --- a/native/native.tests/testData/codegen/enum/vCallWithEntryClass.kt +++ b/compiler/testData/codegen/box/enum/vCallWithEntryClass.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/enum/valueOf.kt b/compiler/testData/codegen/box/enum/valueOf2.kt similarity index 97% rename from native/native.tests/testData/codegen/enum/valueOf.kt rename to compiler/testData/codegen/box/enum/valueOf2.kt index 278120546ee..ac253105e5f 100644 --- a/native/native.tests/testData/codegen/enum/valueOf.kt +++ b/compiler/testData/codegen/box/enum/valueOf2.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/enum/values.kt b/compiler/testData/codegen/box/enum/values.kt similarity index 97% rename from native/native.tests/testData/codegen/enum/values.kt rename to compiler/testData/codegen/box/enum/values.kt index cdac2fa5d4a..8025c1469e1 100644 --- a/native/native.tests/testData/codegen/enum/values.kt +++ b/compiler/testData/codegen/box/enum/values.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/enum/varargParam.kt b/compiler/testData/codegen/box/enum/varargParam.kt similarity index 95% rename from native/native.tests/testData/codegen/enum/varargParam.kt rename to compiler/testData/codegen/box/enum/varargParam.kt index 07633de87c1..b1f9d4e5721 100644 --- a/native/native.tests/testData/codegen/enum/varargParam.kt +++ b/compiler/testData/codegen/box/enum/varargParam.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/escapeAnalysis/recursion.kt b/compiler/testData/codegen/box/escapeAnalysis/recursion.kt similarity index 96% rename from native/native.tests/testData/codegen/escapeAnalysis/recursion.kt rename to compiler/testData/codegen/box/escapeAnalysis/recursion.kt index 09498d03db3..7c5282ce066 100644 --- a/native/native.tests/testData/codegen/escapeAnalysis/recursion.kt +++ b/compiler/testData/codegen/box/escapeAnalysis/recursion.kt @@ -2,6 +2,7 @@ * Copyright 2010-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/escapeAnalysis/stack_array.kt b/compiler/testData/codegen/box/escapeAnalysis/stack_array.kt similarity index 96% rename from native/native.tests/testData/codegen/escapeAnalysis/stack_array.kt rename to compiler/testData/codegen/box/escapeAnalysis/stack_array.kt index 61fa1428ad9..2216315ac30 100644 --- a/native/native.tests/testData/codegen/escapeAnalysis/stack_array.kt +++ b/compiler/testData/codegen/box/escapeAnalysis/stack_array.kt @@ -2,6 +2,7 @@ * Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors. * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/escapeAnalysis/test1.kt b/compiler/testData/codegen/box/escapeAnalysis/test1.kt similarity index 100% rename from native/native.tests/testData/codegen/escapeAnalysis/test1.kt rename to compiler/testData/codegen/box/escapeAnalysis/test1.kt diff --git a/native/native.tests/testData/codegen/escapeAnalysis/test10.kt b/compiler/testData/codegen/box/escapeAnalysis/test10.kt similarity index 97% rename from native/native.tests/testData/codegen/escapeAnalysis/test10.kt rename to compiler/testData/codegen/box/escapeAnalysis/test10.kt index b3fa2d19caf..21fa13d6919 100644 --- a/native/native.tests/testData/codegen/escapeAnalysis/test10.kt +++ b/compiler/testData/codegen/box/escapeAnalysis/test10.kt @@ -3,6 +3,7 @@ * that can be found in the LICENSE file. */ // TODO: check mentioned debug output of escape analyser +// WITH_STDLIB import kotlin.test.* class G(val x: Int) diff --git a/native/native.tests/testData/codegen/escapeAnalysis/test11.kt b/compiler/testData/codegen/box/escapeAnalysis/test11.kt similarity index 97% rename from native/native.tests/testData/codegen/escapeAnalysis/test11.kt rename to compiler/testData/codegen/box/escapeAnalysis/test11.kt index 0db101cef78..b65e37b6433 100644 --- a/native/native.tests/testData/codegen/escapeAnalysis/test11.kt +++ b/compiler/testData/codegen/box/escapeAnalysis/test11.kt @@ -3,6 +3,7 @@ * that can be found in the LICENSE file. */ // TODO: check mentioned debug output of escape analyser +// WITH_STDLIB import kotlin.test.* class F(val x: Int) diff --git a/native/native.tests/testData/codegen/escapeAnalysis/test12.kt b/compiler/testData/codegen/box/escapeAnalysis/test12.kt similarity index 100% rename from native/native.tests/testData/codegen/escapeAnalysis/test12.kt rename to compiler/testData/codegen/box/escapeAnalysis/test12.kt diff --git a/native/native.tests/testData/codegen/escapeAnalysis/test13.kt b/compiler/testData/codegen/box/escapeAnalysis/test13.kt similarity index 96% rename from native/native.tests/testData/codegen/escapeAnalysis/test13.kt rename to compiler/testData/codegen/box/escapeAnalysis/test13.kt index 718e2fcd2b5..228afca4886 100644 --- a/native/native.tests/testData/codegen/escapeAnalysis/test13.kt +++ b/compiler/testData/codegen/box/escapeAnalysis/test13.kt @@ -2,6 +2,7 @@ * Copyright 2010-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* class A { diff --git a/native/native.tests/testData/codegen/escapeAnalysis/test2.kt b/compiler/testData/codegen/box/escapeAnalysis/test2.kt similarity index 100% rename from native/native.tests/testData/codegen/escapeAnalysis/test2.kt rename to compiler/testData/codegen/box/escapeAnalysis/test2.kt diff --git a/native/native.tests/testData/codegen/escapeAnalysis/test3.kt b/compiler/testData/codegen/box/escapeAnalysis/test3.kt similarity index 100% rename from native/native.tests/testData/codegen/escapeAnalysis/test3.kt rename to compiler/testData/codegen/box/escapeAnalysis/test3.kt diff --git a/native/native.tests/testData/codegen/escapeAnalysis/test4.kt b/compiler/testData/codegen/box/escapeAnalysis/test4.kt similarity index 100% rename from native/native.tests/testData/codegen/escapeAnalysis/test4.kt rename to compiler/testData/codegen/box/escapeAnalysis/test4.kt diff --git a/native/native.tests/testData/codegen/escapeAnalysis/test5.kt b/compiler/testData/codegen/box/escapeAnalysis/test5.kt similarity index 100% rename from native/native.tests/testData/codegen/escapeAnalysis/test5.kt rename to compiler/testData/codegen/box/escapeAnalysis/test5.kt diff --git a/native/native.tests/testData/codegen/escapeAnalysis/test6.kt b/compiler/testData/codegen/box/escapeAnalysis/test6.kt similarity index 100% rename from native/native.tests/testData/codegen/escapeAnalysis/test6.kt rename to compiler/testData/codegen/box/escapeAnalysis/test6.kt diff --git a/native/native.tests/testData/codegen/escapeAnalysis/test7.kt b/compiler/testData/codegen/box/escapeAnalysis/test7.kt similarity index 100% rename from native/native.tests/testData/codegen/escapeAnalysis/test7.kt rename to compiler/testData/codegen/box/escapeAnalysis/test7.kt diff --git a/native/native.tests/testData/codegen/escapeAnalysis/test8.kt b/compiler/testData/codegen/box/escapeAnalysis/test8.kt similarity index 100% rename from native/native.tests/testData/codegen/escapeAnalysis/test8.kt rename to compiler/testData/codegen/box/escapeAnalysis/test8.kt diff --git a/native/native.tests/testData/codegen/escapeAnalysis/test9.kt b/compiler/testData/codegen/box/escapeAnalysis/test9.kt similarity index 98% rename from native/native.tests/testData/codegen/escapeAnalysis/test9.kt rename to compiler/testData/codegen/box/escapeAnalysis/test9.kt index b40665017e9..ef9744f91d0 100644 --- a/native/native.tests/testData/codegen/escapeAnalysis/test9.kt +++ b/compiler/testData/codegen/box/escapeAnalysis/test9.kt @@ -3,6 +3,7 @@ * that can be found in the LICENSE file. */ // TODO: check mentioned debug output of escape analyser +// WITH_STDLIB import kotlin.test.* class H(val x: Int) diff --git a/native/native.tests/testData/codegen/escapeAnalysis/zeroOutObjectOnAlloc.kt b/compiler/testData/codegen/box/escapeAnalysis/zeroOutObjectOnAlloc.kt similarity index 96% rename from native/native.tests/testData/codegen/escapeAnalysis/zeroOutObjectOnAlloc.kt rename to compiler/testData/codegen/box/escapeAnalysis/zeroOutObjectOnAlloc.kt index f2f2b317a55..bda2a63b198 100644 --- a/native/native.tests/testData/codegen/escapeAnalysis/zeroOutObjectOnAlloc.kt +++ b/compiler/testData/codegen/box/escapeAnalysis/zeroOutObjectOnAlloc.kt @@ -2,6 +2,7 @@ * Copyright 2010-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/compiler/testData/codegen/box/exceptions/catch1.jvm_abi.txt b/compiler/testData/codegen/box/exceptions/catch1.jvm_abi.txt new file mode 100644 index 00000000000..7c6c5ac23bb --- /dev/null +++ b/compiler/testData/codegen/box/exceptions/catch1.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS Catch1Kt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/exceptions/catch1.kt b/compiler/testData/codegen/box/exceptions/catch1.kt similarity index 93% rename from native/native.tests/testData/codegen/exceptions/catch1.kt rename to compiler/testData/codegen/box/exceptions/catch1.kt index f9c53b3ff2d..ab66f2a9658 100644 --- a/native/native.tests/testData/codegen/exceptions/catch1.kt +++ b/compiler/testData/codegen/box/exceptions/catch1.kt @@ -2,6 +2,8 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB import kotlin.test.* diff --git a/compiler/testData/codegen/box/exceptions/catch2.jvm_abi.txt b/compiler/testData/codegen/box/exceptions/catch2.jvm_abi.txt new file mode 100644 index 00000000000..00e502c8545 --- /dev/null +++ b/compiler/testData/codegen/box/exceptions/catch2.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS Catch2Kt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/exceptions/catch2.kt b/compiler/testData/codegen/box/exceptions/catch2.kt similarity index 94% rename from native/native.tests/testData/codegen/exceptions/catch2.kt rename to compiler/testData/codegen/box/exceptions/catch2.kt index 0801519febf..848edf49213 100644 --- a/native/native.tests/testData/codegen/exceptions/catch2.kt +++ b/compiler/testData/codegen/box/exceptions/catch2.kt @@ -2,6 +2,8 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB import kotlin.test.* diff --git a/compiler/testData/codegen/box/exceptions/catch7.jvm_abi.txt b/compiler/testData/codegen/box/exceptions/catch7.jvm_abi.txt new file mode 100644 index 00000000000..98f882a4c90 --- /dev/null +++ b/compiler/testData/codegen/box/exceptions/catch7.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS Catch7Kt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/exceptions/catch7.kt b/compiler/testData/codegen/box/exceptions/catch7.kt similarity index 90% rename from native/native.tests/testData/codegen/exceptions/catch7.kt rename to compiler/testData/codegen/box/exceptions/catch7.kt index a97d50ffd98..d3528e7f37d 100644 --- a/native/native.tests/testData/codegen/exceptions/catch7.kt +++ b/compiler/testData/codegen/box/exceptions/catch7.kt @@ -2,6 +2,8 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/exceptions/extend0.kt b/compiler/testData/codegen/box/exceptions/extend0.kt similarity index 95% rename from native/native.tests/testData/codegen/exceptions/extend0.kt rename to compiler/testData/codegen/box/exceptions/extend0.kt index 29583b7a18a..dcc46b3524d 100644 --- a/native/native.tests/testData/codegen/exceptions/extend0.kt +++ b/compiler/testData/codegen/box/exceptions/extend0.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/exceptions/rethrow.kt b/compiler/testData/codegen/box/exceptions/rethrow.kt similarity index 96% rename from native/native.tests/testData/codegen/exceptions/rethrow.kt rename to compiler/testData/codegen/box/exceptions/rethrow.kt index 8acff5b6a07..b90e6840d5b 100644 --- a/native/native.tests/testData/codegen/exceptions/rethrow.kt +++ b/compiler/testData/codegen/box/exceptions/rethrow.kt @@ -2,6 +2,7 @@ * Copyright 2010-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/exceptions/throw0.kt b/compiler/testData/codegen/box/exceptions/throw0.kt similarity index 96% rename from native/native.tests/testData/codegen/exceptions/throw0.kt rename to compiler/testData/codegen/box/exceptions/throw0.kt index d179f88e30a..961291f5dcf 100644 --- a/native/native.tests/testData/codegen/exceptions/throw0.kt +++ b/compiler/testData/codegen/box/exceptions/throw0.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/exceptions/throw_from_catch.kt b/compiler/testData/codegen/box/exceptions/throw_from_catch.kt similarity index 96% rename from native/native.tests/testData/codegen/exceptions/throw_from_catch.kt rename to compiler/testData/codegen/box/exceptions/throw_from_catch.kt index 668d61c1ce7..988b20e8225 100644 --- a/native/native.tests/testData/codegen/exceptions/throw_from_catch.kt +++ b/compiler/testData/codegen/box/exceptions/throw_from_catch.kt @@ -2,6 +2,7 @@ * Copyright 2010-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/funInterface/implIsNotFunction.kt b/compiler/testData/codegen/box/funInterface/implIsNotFunction.kt similarity index 95% rename from native/native.tests/testData/codegen/funInterface/implIsNotFunction.kt rename to compiler/testData/codegen/box/funInterface/implIsNotFunction.kt index b24bc2ec983..c30a11504bd 100644 --- a/native/native.tests/testData/codegen/funInterface/implIsNotFunction.kt +++ b/compiler/testData/codegen/box/funInterface/implIsNotFunction.kt @@ -2,6 +2,7 @@ * Copyright 2010-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/funInterface/kt49384.kt b/compiler/testData/codegen/box/funInterface/kt49384.kt similarity index 96% rename from native/native.tests/testData/codegen/funInterface/kt49384.kt rename to compiler/testData/codegen/box/funInterface/kt49384.kt index 2b9600fca98..da66b1f888f 100644 --- a/native/native.tests/testData/codegen/funInterface/kt49384.kt +++ b/compiler/testData/codegen/box/funInterface/kt49384.kt @@ -2,6 +2,7 @@ * Copyright 2010-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/funInterface/kt49384_getSame.kt b/compiler/testData/codegen/box/funInterface/kt49384_getSame.kt similarity index 96% rename from native/native.tests/testData/codegen/funInterface/kt49384_getSame.kt rename to compiler/testData/codegen/box/funInterface/kt49384_getSame.kt index d4c42588100..586f76be332 100644 --- a/native/native.tests/testData/codegen/funInterface/kt49384_getSame.kt +++ b/compiler/testData/codegen/box/funInterface/kt49384_getSame.kt @@ -2,6 +2,7 @@ * Copyright 2010-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/funInterface/nonTrivialProjectionInSuperType.kt b/compiler/testData/codegen/box/funInterface/nonTrivialProjectionInSuperType.kt similarity index 96% rename from native/native.tests/testData/codegen/funInterface/nonTrivialProjectionInSuperType.kt rename to compiler/testData/codegen/box/funInterface/nonTrivialProjectionInSuperType.kt index 03e19d3883c..15e6a78df92 100644 --- a/native/native.tests/testData/codegen/funInterface/nonTrivialProjectionInSuperType.kt +++ b/compiler/testData/codegen/box/funInterface/nonTrivialProjectionInSuperType.kt @@ -2,6 +2,7 @@ * Copyright 2010-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/function/arithmetic.kt b/compiler/testData/codegen/box/function/arithmetic.kt similarity index 100% rename from native/native.tests/testData/codegen/function/arithmetic.kt rename to compiler/testData/codegen/box/function/arithmetic.kt diff --git a/native/native.tests/testData/codegen/function/boolean.kt b/compiler/testData/codegen/box/function/boolean.kt similarity index 100% rename from native/native.tests/testData/codegen/function/boolean.kt rename to compiler/testData/codegen/box/function/boolean.kt diff --git a/native/native.tests/testData/codegen/function/defaults.kt b/compiler/testData/codegen/box/function/defaults.kt similarity index 99% rename from native/native.tests/testData/codegen/function/defaults.kt rename to compiler/testData/codegen/box/function/defaults.kt index 04317a5eb9d..4895a5b6184 100644 --- a/native/native.tests/testData/codegen/function/defaults.kt +++ b/compiler/testData/codegen/box/function/defaults.kt @@ -6,6 +6,7 @@ /** * Created by minamoto on 12/26/16. */ +// WITH_STDLIB open class A(val a:Int) { override fun equals(other: Any?): Boolean { diff --git a/native/native.tests/testData/codegen/function/defaults1.kt b/compiler/testData/codegen/box/function/defaults1.kt similarity index 96% rename from native/native.tests/testData/codegen/function/defaults1.kt rename to compiler/testData/codegen/box/function/defaults1.kt index 1e353168f4b..191c2f1cb96 100644 --- a/native/native.tests/testData/codegen/function/defaults1.kt +++ b/compiler/testData/codegen/box/function/defaults1.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/function/defaults10.kt b/compiler/testData/codegen/box/function/defaults10.kt similarity index 95% rename from native/native.tests/testData/codegen/function/defaults10.kt rename to compiler/testData/codegen/box/function/defaults10.kt index ba89ba77fa6..01e1e13a170 100644 --- a/native/native.tests/testData/codegen/function/defaults10.kt +++ b/compiler/testData/codegen/box/function/defaults10.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/function/defaults2.kt b/compiler/testData/codegen/box/function/defaults2.kt similarity index 96% rename from native/native.tests/testData/codegen/function/defaults2.kt rename to compiler/testData/codegen/box/function/defaults2.kt index 4962d701e1f..88fd2a3b0e1 100644 --- a/native/native.tests/testData/codegen/function/defaults2.kt +++ b/compiler/testData/codegen/box/function/defaults2.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/function/defaults3.kt b/compiler/testData/codegen/box/function/defaults3.kt similarity index 100% rename from native/native.tests/testData/codegen/function/defaults3.kt rename to compiler/testData/codegen/box/function/defaults3.kt diff --git a/compiler/testData/codegen/box/function/defaults4.jvm_abi.txt b/compiler/testData/codegen/box/function/defaults4.jvm_abi.txt new file mode 100644 index 00000000000..ef22944a230 --- /dev/null +++ b/compiler/testData/codegen/box/function/defaults4.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS Defaults4Kt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/function/defaults4.kt b/compiler/testData/codegen/box/function/defaults4.kt similarity index 90% rename from native/native.tests/testData/codegen/function/defaults4.kt rename to compiler/testData/codegen/box/function/defaults4.kt index a41e9b45d7b..c49ecf6dd92 100644 --- a/native/native.tests/testData/codegen/function/defaults4.kt +++ b/compiler/testData/codegen/box/function/defaults4.kt @@ -2,6 +2,8 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB import kotlin.test.* diff --git a/compiler/testData/codegen/box/function/defaults5.jvm_abi.txt b/compiler/testData/codegen/box/function/defaults5.jvm_abi.txt new file mode 100644 index 00000000000..1868c1a8838 --- /dev/null +++ b/compiler/testData/codegen/box/function/defaults5.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS Defaults5Kt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/function/defaults5.kt b/compiler/testData/codegen/box/function/defaults5.kt similarity index 90% rename from native/native.tests/testData/codegen/function/defaults5.kt rename to compiler/testData/codegen/box/function/defaults5.kt index d1801220f62..9a346ffe259 100644 --- a/native/native.tests/testData/codegen/function/defaults5.kt +++ b/compiler/testData/codegen/box/function/defaults5.kt @@ -2,6 +2,8 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/function/defaults6.kt b/compiler/testData/codegen/box/function/defaults6.kt similarity index 95% rename from native/native.tests/testData/codegen/function/defaults6.kt rename to compiler/testData/codegen/box/function/defaults6.kt index 66b10eaa563..e68f9cca14b 100644 --- a/native/native.tests/testData/codegen/function/defaults6.kt +++ b/compiler/testData/codegen/box/function/defaults6.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/compiler/testData/codegen/box/function/defaults7.jvm_abi.txt b/compiler/testData/codegen/box/function/defaults7.jvm_abi.txt new file mode 100644 index 00000000000..ec0f2853ed2 --- /dev/null +++ b/compiler/testData/codegen/box/function/defaults7.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS Defaults7Kt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/function/defaults7.kt b/compiler/testData/codegen/box/function/defaults7.kt similarity index 94% rename from native/native.tests/testData/codegen/function/defaults7.kt rename to compiler/testData/codegen/box/function/defaults7.kt index 670aea1d360..bbd6634551d 100644 --- a/native/native.tests/testData/codegen/function/defaults7.kt +++ b/compiler/testData/codegen/box/function/defaults7.kt @@ -2,6 +2,8 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/function/defaults8.kt b/compiler/testData/codegen/box/function/defaults8.kt similarity index 95% rename from native/native.tests/testData/codegen/function/defaults8.kt rename to compiler/testData/codegen/box/function/defaults8.kt index a6fba1b57f5..f3826994354 100644 --- a/native/native.tests/testData/codegen/function/defaults8.kt +++ b/compiler/testData/codegen/box/function/defaults8.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/function/defaults9.kt b/compiler/testData/codegen/box/function/defaults9.kt similarity index 95% rename from native/native.tests/testData/codegen/function/defaults9.kt rename to compiler/testData/codegen/box/function/defaults9.kt index 9f3909bfcb0..076ee872e33 100644 --- a/native/native.tests/testData/codegen/function/defaults9.kt +++ b/compiler/testData/codegen/box/function/defaults9.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/function/defaultsFromFakeOverride.kt b/compiler/testData/codegen/box/function/defaultsFromFakeOverride.kt similarity index 96% rename from native/native.tests/testData/codegen/function/defaultsFromFakeOverride.kt rename to compiler/testData/codegen/box/function/defaultsFromFakeOverride.kt index 0bada866ba3..a7d989f01bb 100644 --- a/native/native.tests/testData/codegen/function/defaultsFromFakeOverride.kt +++ b/compiler/testData/codegen/box/function/defaultsFromFakeOverride.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/function/defaultsWithInlineClasses.kt b/compiler/testData/codegen/box/function/defaultsWithInlineClasses.kt similarity index 95% rename from native/native.tests/testData/codegen/function/defaultsWithInlineClasses.kt rename to compiler/testData/codegen/box/function/defaultsWithInlineClasses.kt index 4db56e01602..635317def4b 100644 --- a/native/native.tests/testData/codegen/function/defaultsWithInlineClasses.kt +++ b/compiler/testData/codegen/box/function/defaultsWithInlineClasses.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/compiler/testData/codegen/box/function/defaultsWithVarArg1.jvm_abi.txt b/compiler/testData/codegen/box/function/defaultsWithVarArg1.jvm_abi.txt new file mode 100644 index 00000000000..361d1a940d1 --- /dev/null +++ b/compiler/testData/codegen/box/function/defaultsWithVarArg1.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS DefaultsWithVarArg1Kt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/function/defaultsWithVarArg1.kt b/compiler/testData/codegen/box/function/defaultsWithVarArg1.kt similarity index 93% rename from native/native.tests/testData/codegen/function/defaultsWithVarArg1.kt rename to compiler/testData/codegen/box/function/defaultsWithVarArg1.kt index 954bd824917..cd34d951024 100644 --- a/native/native.tests/testData/codegen/function/defaultsWithVarArg1.kt +++ b/compiler/testData/codegen/box/function/defaultsWithVarArg1.kt @@ -2,6 +2,8 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB import kotlin.test.* diff --git a/compiler/testData/codegen/box/function/defaultsWithVarArg2.jvm_abi.txt b/compiler/testData/codegen/box/function/defaultsWithVarArg2.jvm_abi.txt new file mode 100644 index 00000000000..41eaeaea317 --- /dev/null +++ b/compiler/testData/codegen/box/function/defaultsWithVarArg2.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS DefaultsWithVarArg2Kt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/function/defaultsWithVarArg2.kt b/compiler/testData/codegen/box/function/defaultsWithVarArg2.kt similarity index 90% rename from native/native.tests/testData/codegen/function/defaultsWithVarArg2.kt rename to compiler/testData/codegen/box/function/defaultsWithVarArg2.kt index a44f0398358..bbf71a9e285 100644 --- a/native/native.tests/testData/codegen/function/defaultsWithVarArg2.kt +++ b/compiler/testData/codegen/box/function/defaultsWithVarArg2.kt @@ -2,6 +2,8 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/function/eqeq.kt b/compiler/testData/codegen/box/function/eqeq.kt similarity index 92% rename from native/native.tests/testData/codegen/function/eqeq.kt rename to compiler/testData/codegen/box/function/eqeq.kt index 14e9dde8c5b..da9a1de5852 100644 --- a/native/native.tests/testData/codegen/function/eqeq.kt +++ b/compiler/testData/codegen/box/function/eqeq.kt @@ -2,6 +2,9 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// KT-66104: Internal error in file lowering: java.util.NoSuchElementException: Sequence contains no element matching the predicate. +// IGNORE_BACKEND: WASM +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/function/extension.kt b/compiler/testData/codegen/box/function/extension.kt similarity index 95% rename from native/native.tests/testData/codegen/function/extension.kt rename to compiler/testData/codegen/box/function/extension.kt index 38fc547660b..2993f267016 100644 --- a/native/native.tests/testData/codegen/function/extension.kt +++ b/compiler/testData/codegen/box/function/extension.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/function/intrinsic.kt b/compiler/testData/codegen/box/function/intrinsic.kt similarity index 97% rename from native/native.tests/testData/codegen/function/intrinsic.kt rename to compiler/testData/codegen/box/function/intrinsic.kt index ca89cdef067..5661cc3a333 100644 --- a/native/native.tests/testData/codegen/function/intrinsic.kt +++ b/compiler/testData/codegen/box/function/intrinsic.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/compiler/testData/codegen/box/function/localFunction.jvm_abi.txt b/compiler/testData/codegen/box/function/localFunction.jvm_abi.txt new file mode 100644 index 00000000000..e323b5c5c1a --- /dev/null +++ b/compiler/testData/codegen/box/function/localFunction.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS LocalFunctionKt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/function/localFunction.kt b/compiler/testData/codegen/box/function/localFunction.kt similarity index 92% rename from native/native.tests/testData/codegen/function/localFunction.kt rename to compiler/testData/codegen/box/function/localFunction.kt index ebe34abe418..6c7aadd8dd1 100644 --- a/native/native.tests/testData/codegen/function/localFunction.kt +++ b/compiler/testData/codegen/box/function/localFunction.kt @@ -2,6 +2,8 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/function/localFunction2.kt b/compiler/testData/codegen/box/function/localFunction2.kt similarity index 96% rename from native/native.tests/testData/codegen/function/localFunction2.kt rename to compiler/testData/codegen/box/function/localFunction2.kt index 83673d53a4c..8a4dc9200e8 100644 --- a/native/native.tests/testData/codegen/function/localFunction2.kt +++ b/compiler/testData/codegen/box/function/localFunction2.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/function/localFunction3.kt b/compiler/testData/codegen/box/function/localFunction3.kt similarity index 96% rename from native/native.tests/testData/codegen/function/localFunction3.kt rename to compiler/testData/codegen/box/function/localFunction3.kt index db02d02f5bb..a0744686fa7 100644 --- a/native/native.tests/testData/codegen/function/localFunction3.kt +++ b/compiler/testData/codegen/box/function/localFunction3.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/function/minus_eq.kt b/compiler/testData/codegen/box/function/minus_eq.kt similarity index 95% rename from native/native.tests/testData/codegen/function/minus_eq.kt rename to compiler/testData/codegen/box/function/minus_eq.kt index 1dbb75bbc0d..05d0e7cae71 100644 --- a/native/native.tests/testData/codegen/function/minus_eq.kt +++ b/compiler/testData/codegen/box/function/minus_eq.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/function/named.kt b/compiler/testData/codegen/box/function/named.kt similarity index 94% rename from native/native.tests/testData/codegen/function/named.kt rename to compiler/testData/codegen/box/function/named.kt index af495531eb0..a489893237e 100644 --- a/native/native.tests/testData/codegen/function/named.kt +++ b/compiler/testData/codegen/box/function/named.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/function/nothingNReturningSafeCall.kt b/compiler/testData/codegen/box/function/nothingNReturningSafeCall.kt similarity index 92% rename from native/native.tests/testData/codegen/function/nothingNReturningSafeCall.kt rename to compiler/testData/codegen/box/function/nothingNReturningSafeCall.kt index 484559d4ccd..05f87136c2d 100644 --- a/native/native.tests/testData/codegen/function/nothingNReturningSafeCall.kt +++ b/compiler/testData/codegen/box/function/nothingNReturningSafeCall.kt @@ -2,6 +2,7 @@ * Copyright 2010-2021 JetBrains s.r.o. and Kotlin Programming Language contributors. * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. */ +// WITH_STDLIB import kotlin.test.* @@ -26,7 +27,7 @@ fun testLambda1() { fun testLambda2() { val block: (Any?) -> Nothing? = { - println() // more than one statement inside of the body + print("") // more than one statement inside of the body it?.nothing() } block(null) diff --git a/native/native.tests/testData/codegen/function/plus_eq.kt b/compiler/testData/codegen/box/function/plus_eq.kt similarity index 95% rename from native/native.tests/testData/codegen/function/plus_eq.kt rename to compiler/testData/codegen/box/function/plus_eq.kt index 2a2d4ec38fe..b33601255c1 100644 --- a/native/native.tests/testData/codegen/function/plus_eq.kt +++ b/compiler/testData/codegen/box/function/plus_eq.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/function/referenceBigArity.kt b/compiler/testData/codegen/box/function/referenceBigArity.kt similarity index 98% rename from native/native.tests/testData/codegen/function/referenceBigArity.kt rename to compiler/testData/codegen/box/function/referenceBigArity.kt index 3cdbbc98956..ca8ee6aec17 100644 --- a/native/native.tests/testData/codegen/function/referenceBigArity.kt +++ b/compiler/testData/codegen/box/function/referenceBigArity.kt @@ -2,6 +2,7 @@ * Copyright 2010-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/function/sum.kt b/compiler/testData/codegen/box/function/sum.kt similarity index 98% rename from native/native.tests/testData/codegen/function/sum.kt rename to compiler/testData/codegen/box/function/sum.kt index c34e87ad572..0a09e0ea0a7 100644 --- a/native/native.tests/testData/codegen/function/sum.kt +++ b/compiler/testData/codegen/box/function/sum.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/function/sum_3const.kt b/compiler/testData/codegen/box/function/sum_3const.kt similarity index 95% rename from native/native.tests/testData/codegen/function/sum_3const.kt rename to compiler/testData/codegen/box/function/sum_3const.kt index f72e64a1ac2..ae186456bdb 100644 --- a/native/native.tests/testData/codegen/function/sum_3const.kt +++ b/compiler/testData/codegen/box/function/sum_3const.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/function/sum_foo_bar.kt b/compiler/testData/codegen/box/function/sum_foo_bar.kt similarity index 95% rename from native/native.tests/testData/codegen/function/sum_foo_bar.kt rename to compiler/testData/codegen/box/function/sum_foo_bar.kt index cc9813a4aed..b84710ec014 100644 --- a/native/native.tests/testData/codegen/function/sum_foo_bar.kt +++ b/compiler/testData/codegen/box/function/sum_foo_bar.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/function/sum_func.kt b/compiler/testData/codegen/box/function/sum_func.kt similarity index 95% rename from native/native.tests/testData/codegen/function/sum_func.kt rename to compiler/testData/codegen/box/function/sum_func.kt index 31eb15fcb8a..3d0e6ba1662 100644 --- a/native/native.tests/testData/codegen/function/sum_func.kt +++ b/compiler/testData/codegen/box/function/sum_func.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/function/sum_imm.kt b/compiler/testData/codegen/box/function/sum_imm.kt similarity index 94% rename from native/native.tests/testData/codegen/function/sum_imm.kt rename to compiler/testData/codegen/box/function/sum_imm.kt index 2970e5f36e9..2c67b537626 100644 --- a/native/native.tests/testData/codegen/function/sum_imm.kt +++ b/compiler/testData/codegen/box/function/sum_imm.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/function/sum_mixed.kt b/compiler/testData/codegen/box/function/sum_mixed.kt similarity index 94% rename from native/native.tests/testData/codegen/function/sum_mixed.kt rename to compiler/testData/codegen/box/function/sum_mixed.kt index bd3620e9359..dda60508be0 100644 --- a/native/native.tests/testData/codegen/function/sum_mixed.kt +++ b/compiler/testData/codegen/box/function/sum_mixed.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/function/sum_silly.kt b/compiler/testData/codegen/box/function/sum_silly.kt similarity index 95% rename from native/native.tests/testData/codegen/function/sum_silly.kt rename to compiler/testData/codegen/box/function/sum_silly.kt index 920971834cb..68b6e08f059 100644 --- a/native/native.tests/testData/codegen/function/sum_silly.kt +++ b/compiler/testData/codegen/box/function/sum_silly.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/function/unreachableStatementAfterReturn.kt b/compiler/testData/codegen/box/function/unreachableStatementAfterReturn.kt similarity index 97% rename from native/native.tests/testData/codegen/function/unreachableStatementAfterReturn.kt rename to compiler/testData/codegen/box/function/unreachableStatementAfterReturn.kt index a998fd598a9..c12231655c5 100644 --- a/native/native.tests/testData/codegen/function/unreachableStatementAfterReturn.kt +++ b/compiler/testData/codegen/box/function/unreachableStatementAfterReturn.kt @@ -2,6 +2,8 @@ * Copyright 2010-2021 JetBrains s.r.o. and Kotlin Programming Language contributors. * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. */ +// WITH_STDLIB +// WITH_COROUTINES import kotlin.coroutines.* import kotlin.test.* diff --git a/native/native.tests/testData/codegen/initializers/correctOrder1.kt b/compiler/testData/codegen/box/initializers/correctOrder1.kt similarity index 95% rename from native/native.tests/testData/codegen/initializers/correctOrder1.kt rename to compiler/testData/codegen/box/initializers/correctOrder1.kt index 981bb20f75b..a6e18a69f3b 100644 --- a/native/native.tests/testData/codegen/initializers/correctOrder1.kt +++ b/compiler/testData/codegen/box/initializers/correctOrder1.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/initializers/correctOrder2.kt b/compiler/testData/codegen/box/initializers/correctOrder2.kt similarity index 95% rename from native/native.tests/testData/codegen/initializers/correctOrder2.kt rename to compiler/testData/codegen/box/initializers/correctOrder2.kt index c100c7b6b39..2270befbc69 100644 --- a/native/native.tests/testData/codegen/initializers/correctOrder2.kt +++ b/compiler/testData/codegen/box/initializers/correctOrder2.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/initializers/files/globalInitedAfterAccessingFile.kt b/compiler/testData/codegen/box/initializers/files/globalInitedAfterAccessingFile.kt similarity index 96% rename from native/native.tests/testData/codegen/initializers/files/globalInitedAfterAccessingFile.kt rename to compiler/testData/codegen/box/initializers/files/globalInitedAfterAccessingFile.kt index bc936676816..ef3a3e545db 100644 --- a/native/native.tests/testData/codegen/initializers/files/globalInitedAfterAccessingFile.kt +++ b/compiler/testData/codegen/box/initializers/files/globalInitedAfterAccessingFile.kt @@ -2,6 +2,7 @@ * Copyright 2010-2021 JetBrains s.r.o. and Kotlin Programming Language contributors. * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. */ +// WITH_STDLIB // FILE: lib.kt var z = false diff --git a/native/native.tests/testData/codegen/initializers/files/globalNotInitedAfterAccessingClassInternals.kt b/compiler/testData/codegen/box/initializers/files/globalNotInitedAfterAccessingClassInternals.kt similarity index 97% rename from native/native.tests/testData/codegen/initializers/files/globalNotInitedAfterAccessingClassInternals.kt rename to compiler/testData/codegen/box/initializers/files/globalNotInitedAfterAccessingClassInternals.kt index 878ff1d1e9a..fb4bce89a05 100644 --- a/native/native.tests/testData/codegen/initializers/files/globalNotInitedAfterAccessingClassInternals.kt +++ b/compiler/testData/codegen/box/initializers/files/globalNotInitedAfterAccessingClassInternals.kt @@ -2,6 +2,7 @@ * Copyright 2010-2021 JetBrains s.r.o. and Kotlin Programming Language contributors. * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. */ +// WITH_STDLIB // FILE: lib.kt var z = false diff --git a/native/native.tests/testData/codegen/initializers/files/simple.kt b/compiler/testData/codegen/box/initializers/files/simple.kt similarity index 96% rename from native/native.tests/testData/codegen/initializers/files/simple.kt rename to compiler/testData/codegen/box/initializers/files/simple.kt index e99c7780c81..22d2cd8afc8 100644 --- a/native/native.tests/testData/codegen/initializers/files/simple.kt +++ b/compiler/testData/codegen/box/initializers/files/simple.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB // FILE: lib.kt class X(val s: String) diff --git a/native/native.tests/testData/codegen/initializers/files/simpleMultiModule.kt b/compiler/testData/codegen/box/initializers/files/simpleMultiModule.kt similarity index 96% rename from native/native.tests/testData/codegen/initializers/files/simpleMultiModule.kt rename to compiler/testData/codegen/box/initializers/files/simpleMultiModule.kt index 5d17e1f775e..870cb1fb3be 100644 --- a/native/native.tests/testData/codegen/initializers/files/simpleMultiModule.kt +++ b/compiler/testData/codegen/box/initializers/files/simpleMultiModule.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB // MODULE: lib // FILE: lib.kt diff --git a/compiler/testData/codegen/box/initializers/initializers0.jvm_abi.txt b/compiler/testData/codegen/box/initializers/initializers0.jvm_abi.txt new file mode 100644 index 00000000000..35c31a0b9f5 --- /dev/null +++ b/compiler/testData/codegen/box/initializers/initializers0.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS Initializers0Kt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/initializers/initializers0.kt b/compiler/testData/codegen/box/initializers/initializers0.kt similarity index 96% rename from native/native.tests/testData/codegen/initializers/initializers0.kt rename to compiler/testData/codegen/box/initializers/initializers0.kt index f01c0ffaa96..7c11218be0d 100644 --- a/native/native.tests/testData/codegen/initializers/initializers0.kt +++ b/compiler/testData/codegen/box/initializers/initializers0.kt @@ -2,6 +2,8 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB import kotlin.test.* diff --git a/compiler/testData/codegen/box/initializers/initializers1.jvm_abi.txt b/compiler/testData/codegen/box/initializers/initializers1.jvm_abi.txt new file mode 100644 index 00000000000..2dca692ee03 --- /dev/null +++ b/compiler/testData/codegen/box/initializers/initializers1.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS Initializers1Kt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/initializers/initializers1.kt b/compiler/testData/codegen/box/initializers/initializers1.kt similarity index 76% rename from native/native.tests/testData/codegen/initializers/initializers1.kt rename to compiler/testData/codegen/box/initializers/initializers1.kt index 7ce581b00a8..bd5582872ac 100644 --- a/native/native.tests/testData/codegen/initializers/initializers1.kt +++ b/compiler/testData/codegen/box/initializers/initializers1.kt @@ -2,6 +2,10 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// KT-66103: companion object is not initialized +// IGNORE_BACKEND: WASM +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB import kotlin.test.* val sb = StringBuilder() diff --git a/compiler/testData/codegen/box/initializers/initializers2.jvm_abi.txt b/compiler/testData/codegen/box/initializers/initializers2.jvm_abi.txt new file mode 100644 index 00000000000..33c07c354fe --- /dev/null +++ b/compiler/testData/codegen/box/initializers/initializers2.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS Initializers2Kt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/initializers/initializers2.kt b/compiler/testData/codegen/box/initializers/initializers2.kt similarity index 94% rename from native/native.tests/testData/codegen/initializers/initializers2.kt rename to compiler/testData/codegen/box/initializers/initializers2.kt index 84ae042171f..a9e418aa4d6 100644 --- a/native/native.tests/testData/codegen/initializers/initializers2.kt +++ b/compiler/testData/codegen/box/initializers/initializers2.kt @@ -2,6 +2,8 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/initializers/initializers3.kt b/compiler/testData/codegen/box/initializers/initializers3.kt similarity index 94% rename from native/native.tests/testData/codegen/initializers/initializers3.kt rename to compiler/testData/codegen/box/initializers/initializers3.kt index 314e8f20f4a..c75ecd50b9c 100644 --- a/native/native.tests/testData/codegen/initializers/initializers3.kt +++ b/compiler/testData/codegen/box/initializers/initializers3.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* class Foo(val bar: Int) diff --git a/native/native.tests/testData/codegen/initializers/initializers4.kt b/compiler/testData/codegen/box/initializers/initializers4.kt similarity index 96% rename from native/native.tests/testData/codegen/initializers/initializers4.kt rename to compiler/testData/codegen/box/initializers/initializers4.kt index 59c5ee10712..b775d01a2bf 100644 --- a/native/native.tests/testData/codegen/initializers/initializers4.kt +++ b/compiler/testData/codegen/box/initializers/initializers4.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* const val INT_MAX_POWER_OF_TWO: Int = Int.MAX_VALUE / 2 + 1 diff --git a/native/native.tests/testData/codegen/initializers/initializers5.kt b/compiler/testData/codegen/box/initializers/initializers5.kt similarity index 94% rename from native/native.tests/testData/codegen/initializers/initializers5.kt rename to compiler/testData/codegen/box/initializers/initializers5.kt index 919d78a3c54..f88eee774b9 100644 --- a/native/native.tests/testData/codegen/initializers/initializers5.kt +++ b/compiler/testData/codegen/box/initializers/initializers5.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* object A { diff --git a/native/native.tests/testData/codegen/initializers/initializers7.kt b/compiler/testData/codegen/box/initializers/initializers7.kt similarity index 59% rename from native/native.tests/testData/codegen/initializers/initializers7.kt rename to compiler/testData/codegen/box/initializers/initializers7.kt index 57ac9b99ed3..30da1838e16 100644 --- a/native/native.tests/testData/codegen/initializers/initializers7.kt +++ b/compiler/testData/codegen/box/initializers/initializers7.kt @@ -2,6 +2,9 @@ * Copyright 2010-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// KT-66087 +// IGNORE_BACKEND: JS_IR, JS_IR_ES6 +// WITH_STDLIB import kotlin.test.* object A { @@ -14,8 +17,8 @@ object A { // Check that A is initialized dynamically. fun assertAUninitialized() { - assertEquals(0, A.a1) - assertEquals(0, A.a2) + assertEquals(0, A.a1, "0 != A.a1") + assertEquals(0, A.a2, "0 != A.a2") } object B { @@ -28,8 +31,8 @@ object B { // Check that B is initialized dynamically. fun assertBUninitialized() { - assertEquals(0, B.b1) - assertEquals(0, B.b2) + assertEquals(0, B.b1, "0 != B.b1") + assertEquals(0, B.b2, "0 != B.b2") } object C { @@ -44,16 +47,16 @@ object C { // Check that C is initialized dynamically. fun assertCUninitialized() { - assertEquals(0, C.c1) - assertEquals(0, C.c2) - assertEquals(0, C.c3) - assertEquals(0, C.c4) + assertEquals(0, C.c1, "0 != C.c1") + assertEquals(0, C.c2, "0 != C.c2") + assertEquals(0, C.c3, "0 != C.c3") + assertEquals(0, C.c4, "0 != C.c4") } fun box(): String { - assertEquals(A.a1, C.c2) - assertEquals(A.a2, C.c3) - assertEquals(C.c1, C.c4) + assertEquals(A.a1, C.c2, "A.a1 != C.c2") + assertEquals(A.a2, C.c3, "A.a2 != C.c3") + assertEquals(C.c1, C.c4, "C.c1 != C.c4") return "OK" } diff --git a/native/native.tests/testData/codegen/initializers/initializers8.kt b/compiler/testData/codegen/box/initializers/initializers8.kt similarity index 94% rename from native/native.tests/testData/codegen/initializers/initializers8.kt rename to compiler/testData/codegen/box/initializers/initializers8.kt index d3206081873..75670d74352 100644 --- a/native/native.tests/testData/codegen/initializers/initializers8.kt +++ b/compiler/testData/codegen/box/initializers/initializers8.kt @@ -2,6 +2,7 @@ * Copyright 2010-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* var globalString = "OK" diff --git a/native/native.tests/testData/codegen/initializers/multipleModules1.kt b/compiler/testData/codegen/box/initializers/multipleModules1.kt similarity index 93% rename from native/native.tests/testData/codegen/initializers/multipleModules1.kt rename to compiler/testData/codegen/box/initializers/multipleModules1.kt index 5afd291bde4..7f4fd85cccb 100644 --- a/native/native.tests/testData/codegen/initializers/multipleModules1.kt +++ b/compiler/testData/codegen/box/initializers/multipleModules1.kt @@ -1,3 +1,4 @@ +// WITH_STDLIB // MODULE: lib // FILE: lib.kt diff --git a/native/native.tests/testData/codegen/initializers/object.kt b/compiler/testData/codegen/box/initializers/object.kt similarity index 97% rename from native/native.tests/testData/codegen/initializers/object.kt rename to compiler/testData/codegen/box/initializers/object.kt index d56283f3508..95604aa68c4 100644 --- a/native/native.tests/testData/codegen/initializers/object.kt +++ b/compiler/testData/codegen/box/initializers/object.kt @@ -2,6 +2,7 @@ * Copyright 2010-2021 JetBrains s.r.o. and Kotlin Programming Language contributors. * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. */ +// WITH_STDLIB // FILE: lib.kt var z = false diff --git a/native/native.tests/testData/codegen/initializers/sharedVarInInitBlock.kt b/compiler/testData/codegen/box/initializers/sharedVarInInitBlock.kt similarity index 100% rename from native/native.tests/testData/codegen/initializers/sharedVarInInitBlock.kt rename to compiler/testData/codegen/box/initializers/sharedVarInInitBlock.kt diff --git a/native/native.tests/testData/codegen/initializers/static_arrays.kt b/compiler/testData/codegen/box/initializers/static_arrays.kt similarity index 99% rename from native/native.tests/testData/codegen/initializers/static_arrays.kt rename to compiler/testData/codegen/box/initializers/static_arrays.kt index 86d549b8d2a..4d1845d5405 100644 --- a/native/native.tests/testData/codegen/initializers/static_arrays.kt +++ b/compiler/testData/codegen/box/initializers/static_arrays.kt @@ -2,6 +2,7 @@ * Copyright 2010-2021 JetBrains s.r.o. and Kotlin Programming Language contributors. * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/initializers/static_list.kt b/compiler/testData/codegen/box/initializers/static_list.kt similarity index 98% rename from native/native.tests/testData/codegen/initializers/static_list.kt rename to compiler/testData/codegen/box/initializers/static_list.kt index 60529af9d23..f675b092af8 100644 --- a/native/native.tests/testData/codegen/initializers/static_list.kt +++ b/compiler/testData/codegen/box/initializers/static_list.kt @@ -2,6 +2,7 @@ * Copyright 2010-2021 JetBrains s.r.o. and Kotlin Programming Language contributors. * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/initializers/static_smallIntIdentity.kt b/compiler/testData/codegen/box/initializers/static_smallIntIdentity.kt similarity index 55% rename from native/native.tests/testData/codegen/initializers/static_smallIntIdentity.kt rename to compiler/testData/codegen/box/initializers/static_smallIntIdentity.kt index f2bc77b1206..10d322bb042 100644 --- a/native/native.tests/testData/codegen/initializers/static_smallIntIdentity.kt +++ b/compiler/testData/codegen/box/initializers/static_smallIntIdentity.kt @@ -2,6 +2,11 @@ * Copyright 2010-2021 JetBrains s.r.o. and Kotlin Programming Language contributors. * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. */ +// KT-66088 +// IGNORE_BACKEND: JS_IR, JS_IR_ES6 +// KT-66089 +// IGNORE_BACKEND: WASM +// WITH_STDLIB import kotlin.test.* @@ -9,32 +14,32 @@ fun box(): String { val xBool = true val xBoolStatic : Any = false val xBoolDyanmic : Any = !xBool - assertSame(xBoolStatic, xBoolDyanmic) + assertSame(xBoolStatic, xBoolDyanmic, "xBoolStatic($xBoolStatic) != xBoolDyanmic($xBoolDyanmic)") val xByte = 1.toByte() val xByteStatic : Any = 2.toByte() val xByteDyanmic : Any = (xByte + xByte).toByte() - assertSame(xByteStatic, xByteDyanmic) + assertSame(xByteStatic, xByteDyanmic, "xByteStatic($xByteStatic) != xByteDyanmic($xByteDyanmic)") val xShort = 1.toShort() val xShortStatic : Any = 2.toShort() val xShortDyanmic : Any = (xShort + xShort).toShort() - assertSame(xShortStatic, xShortDyanmic) + assertSame(xShortStatic, xShortDyanmic, "xShortStatic($xShortStatic) != xShortDyanmic($xShortDyanmic)") val xInt = 1.toInt() val xIntStatic : Any = 2.toInt() val xIntDyanmic : Any = xInt + xInt - assertSame(xIntStatic, xIntDyanmic) + assertSame(xIntStatic, xIntDyanmic, "xIntStatic($xIntStatic) != xIntDyanmic($xIntDyanmic)") val xChar = 1.toChar() val xCharStatic : Any = 2.toChar() val xCharDyanmic : Any = (xChar.code + xChar.code).toChar() - assertSame(xCharStatic, xCharDyanmic) + assertSame(xCharStatic, xCharDyanmic, "xCharStatic(${(xCharStatic as Char).code}) != xCharDyanmic(${(xCharDyanmic as Char).code})") val xLong = 1.toLong() val xLongStatic = 2.toLong() val xLongDyanmic = xLong + xLong - assertSame(xLongStatic, xLongDyanmic) + assertSame(xLongStatic, xLongDyanmic, "xLongStatic($xLongStatic) != xLongDyanmic($xLongDyanmic)") return "OK" } \ No newline at end of file diff --git a/native/native.tests/testData/codegen/initializers/static_varargChange.kt b/compiler/testData/codegen/box/initializers/static_varargChange.kt similarity index 93% rename from native/native.tests/testData/codegen/initializers/static_varargChange.kt rename to compiler/testData/codegen/box/initializers/static_varargChange.kt index 08bf3931e09..3259aba87c4 100644 --- a/native/native.tests/testData/codegen/initializers/static_varargChange.kt +++ b/compiler/testData/codegen/box/initializers/static_varargChange.kt @@ -2,6 +2,9 @@ * Copyright 2010-2021 JetBrains s.r.o. and Kotlin Programming Language contributors. * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. */ +// KT-66090 +// IGNORE_BACKEND: JS_IR, JS_IR_ES6 +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/initializers/throw1.kt b/compiler/testData/codegen/box/initializers/throw1.kt similarity index 97% rename from native/native.tests/testData/codegen/initializers/throw1.kt rename to compiler/testData/codegen/box/initializers/throw1.kt index 0a19fbdd63c..fe9be3e3fb0 100644 --- a/native/native.tests/testData/codegen/initializers/throw1.kt +++ b/compiler/testData/codegen/box/initializers/throw1.kt @@ -2,6 +2,7 @@ * Copyright 2010-2021 JetBrains s.r.o. and Kotlin Programming Language contributors. * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. */ +// WITH_STDLIB // FILE: lib.kt val x = computeX() diff --git a/compiler/testData/codegen/box/initializers/throw2.jvm_abi.txt b/compiler/testData/codegen/box/initializers/throw2.jvm_abi.txt new file mode 100644 index 00000000000..fc896bd6b7f --- /dev/null +++ b/compiler/testData/codegen/box/initializers/throw2.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS MainKt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/initializers/throw2.kt b/compiler/testData/codegen/box/initializers/throw2.kt similarity index 93% rename from native/native.tests/testData/codegen/initializers/throw2.kt rename to compiler/testData/codegen/box/initializers/throw2.kt index fa22f68b5e3..e7df40ff2e7 100644 --- a/native/native.tests/testData/codegen/initializers/throw2.kt +++ b/compiler/testData/codegen/box/initializers/throw2.kt @@ -2,6 +2,8 @@ * Copyright 2010-2021 JetBrains s.r.o. and Kotlin Programming Language contributors. * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB // FILE: lib.kt val y = computeY() diff --git a/native/native.tests/testData/codegen/inline/changingCapturedLocal.kt b/compiler/testData/codegen/box/inline/changingCapturedLocal.kt similarity index 96% rename from native/native.tests/testData/codegen/inline/changingCapturedLocal.kt rename to compiler/testData/codegen/box/inline/changingCapturedLocal.kt index 2cb7cab0a91..6962b9c20ea 100644 --- a/native/native.tests/testData/codegen/inline/changingCapturedLocal.kt +++ b/compiler/testData/codegen/box/inline/changingCapturedLocal.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/inline/classDeclarationInsideInline.kt b/compiler/testData/codegen/box/inline/classDeclarationInsideInline.kt similarity index 77% rename from native/native.tests/testData/codegen/inline/classDeclarationInsideInline.kt rename to compiler/testData/codegen/box/inline/classDeclarationInsideInline.kt index eb2dbc35eb5..0e06b040630 100644 --- a/native/native.tests/testData/codegen/inline/classDeclarationInsideInline.kt +++ b/compiler/testData/codegen/box/inline/classDeclarationInsideInline.kt @@ -2,6 +2,10 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// KT-54635: Kotlin/JS cannot distinguish between Int and Double at runtime +// AssertionError: Expected , actual +// IGNORE_BACKEND: JS_IR, JS_IR_ES6 +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/inline/coercionToUnit.kt b/compiler/testData/codegen/box/inline/coercionToUnit.kt similarity index 96% rename from native/native.tests/testData/codegen/inline/coercionToUnit.kt rename to compiler/testData/codegen/box/inline/coercionToUnit.kt index 937b4b94427..83c1f154167 100644 --- a/native/native.tests/testData/codegen/inline/coercionToUnit.kt +++ b/compiler/testData/codegen/box/inline/coercionToUnit.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/inline/correctOrderFunctionReference.kt b/compiler/testData/codegen/box/inline/correctOrderFunctionReference.kt similarity index 98% rename from native/native.tests/testData/codegen/inline/correctOrderFunctionReference.kt rename to compiler/testData/codegen/box/inline/correctOrderFunctionReference.kt index 53fa656ee03..31debe0c50a 100644 --- a/native/native.tests/testData/codegen/inline/correctOrderFunctionReference.kt +++ b/compiler/testData/codegen/box/inline/correctOrderFunctionReference.kt @@ -2,6 +2,7 @@ * Copyright 2010-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/compiler/testData/codegen/box/inline/defaultArgs.jvm_abi.txt b/compiler/testData/codegen/box/inline/defaultArgs.jvm_abi.txt new file mode 100644 index 00000000000..791d26f7081 --- /dev/null +++ b/compiler/testData/codegen/box/inline/defaultArgs.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS DefaultArgsKt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/inline/defaultArgs.kt b/compiler/testData/codegen/box/inline/defaultArgs.kt similarity index 89% rename from native/native.tests/testData/codegen/inline/defaultArgs.kt rename to compiler/testData/codegen/box/inline/defaultArgs.kt index 2395010ab43..748a69e0bc7 100644 --- a/native/native.tests/testData/codegen/inline/defaultArgs.kt +++ b/compiler/testData/codegen/box/inline/defaultArgs.kt @@ -2,6 +2,8 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/inline/defaultArgsMultipleModules.kt b/compiler/testData/codegen/box/inline/defaultArgsMultipleModules.kt similarity index 94% rename from native/native.tests/testData/codegen/inline/defaultArgsMultipleModules.kt rename to compiler/testData/codegen/box/inline/defaultArgsMultipleModules.kt index a84b390a2a3..2fa364b9c05 100644 --- a/native/native.tests/testData/codegen/inline/defaultArgsMultipleModules.kt +++ b/compiler/testData/codegen/box/inline/defaultArgsMultipleModules.kt @@ -1,3 +1,4 @@ +// WITH_STDLIB // MODULE: lib // FILE: lib.kt diff --git a/native/native.tests/testData/codegen/inline/genericFunctionReference.kt b/compiler/testData/codegen/box/inline/genericFunctionReference.kt similarity index 96% rename from native/native.tests/testData/codegen/inline/genericFunctionReference.kt rename to compiler/testData/codegen/box/inline/genericFunctionReference.kt index 239484c3bf4..5336b5cf941 100644 --- a/native/native.tests/testData/codegen/inline/genericFunctionReference.kt +++ b/compiler/testData/codegen/box/inline/genericFunctionReference.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/inline/getClass.kt b/compiler/testData/codegen/box/inline/getClass.kt similarity index 96% rename from native/native.tests/testData/codegen/inline/getClass.kt rename to compiler/testData/codegen/box/inline/getClass.kt index cddf4b48f53..7745fdc1530 100644 --- a/native/native.tests/testData/codegen/inline/getClass.kt +++ b/compiler/testData/codegen/box/inline/getClass.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/inline/inline0.kt b/compiler/testData/codegen/box/inline/inline0.kt similarity index 96% rename from native/native.tests/testData/codegen/inline/inline0.kt rename to compiler/testData/codegen/box/inline/inline0.kt index 356224e8364..2f200edca39 100644 --- a/native/native.tests/testData/codegen/inline/inline0.kt +++ b/compiler/testData/codegen/box/inline/inline0.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/inline/inline1.kt b/compiler/testData/codegen/box/inline/inline1.kt similarity index 96% rename from native/native.tests/testData/codegen/inline/inline1.kt rename to compiler/testData/codegen/box/inline/inline1.kt index 3106cdc8cdd..979fd69a324 100644 --- a/native/native.tests/testData/codegen/inline/inline1.kt +++ b/compiler/testData/codegen/box/inline/inline1.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/inline/inline10.kt b/compiler/testData/codegen/box/inline/inline10.kt similarity index 96% rename from native/native.tests/testData/codegen/inline/inline10.kt rename to compiler/testData/codegen/box/inline/inline10.kt index c9ad8376889..a700079c969 100644 --- a/native/native.tests/testData/codegen/inline/inline10.kt +++ b/compiler/testData/codegen/box/inline/inline10.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/inline/inline11.kt b/compiler/testData/codegen/box/inline/inline11.kt similarity index 69% rename from native/native.tests/testData/codegen/inline/inline11.kt rename to compiler/testData/codegen/box/inline/inline11.kt index 60c5f9284e6..aed0f254990 100644 --- a/native/native.tests/testData/codegen/inline/inline11.kt +++ b/compiler/testData/codegen/box/inline/inline11.kt @@ -2,6 +2,10 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// KT-54635: Kotlin/JS cannot distinguish between Int and Double at runtime +// AssertionError: Expected value to be false. +// IGNORE_BACKEND: JS_IR, JS_IR_ES6 +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/inline/inline12.kt b/compiler/testData/codegen/box/inline/inline12.kt similarity index 96% rename from native/native.tests/testData/codegen/inline/inline12.kt rename to compiler/testData/codegen/box/inline/inline12.kt index 948c8799a1b..d0ec9da8dd8 100644 --- a/native/native.tests/testData/codegen/inline/inline12.kt +++ b/compiler/testData/codegen/box/inline/inline12.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/inline/inline13.kt b/compiler/testData/codegen/box/inline/inline13.kt similarity index 96% rename from native/native.tests/testData/codegen/inline/inline13.kt rename to compiler/testData/codegen/box/inline/inline13.kt index a7493aff5b8..ea414c09d23 100644 --- a/native/native.tests/testData/codegen/inline/inline13.kt +++ b/compiler/testData/codegen/box/inline/inline13.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/inline/inline14.kt b/compiler/testData/codegen/box/inline/inline14.kt similarity index 97% rename from native/native.tests/testData/codegen/inline/inline14.kt rename to compiler/testData/codegen/box/inline/inline14.kt index 75d15351509..3441d9aa18a 100644 --- a/native/native.tests/testData/codegen/inline/inline14.kt +++ b/compiler/testData/codegen/box/inline/inline14.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/inline/inline15.kt b/compiler/testData/codegen/box/inline/inline15.kt similarity index 97% rename from native/native.tests/testData/codegen/inline/inline15.kt rename to compiler/testData/codegen/box/inline/inline15.kt index 4bf4ce77b5f..955f20e682b 100644 --- a/native/native.tests/testData/codegen/inline/inline15.kt +++ b/compiler/testData/codegen/box/inline/inline15.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/inline/inline16.kt b/compiler/testData/codegen/box/inline/inline16.kt similarity index 97% rename from native/native.tests/testData/codegen/inline/inline16.kt rename to compiler/testData/codegen/box/inline/inline16.kt index 910ca498404..5326f526a75 100644 --- a/native/native.tests/testData/codegen/inline/inline16.kt +++ b/compiler/testData/codegen/box/inline/inline16.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/inline/inline17.kt b/compiler/testData/codegen/box/inline/inline17.kt similarity index 96% rename from native/native.tests/testData/codegen/inline/inline17.kt rename to compiler/testData/codegen/box/inline/inline17.kt index ff214cfe191..cab84453e24 100644 --- a/native/native.tests/testData/codegen/inline/inline17.kt +++ b/compiler/testData/codegen/box/inline/inline17.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/inline/inline19.kt b/compiler/testData/codegen/box/inline/inline19.kt similarity index 96% rename from native/native.tests/testData/codegen/inline/inline19.kt rename to compiler/testData/codegen/box/inline/inline19.kt index a1aee654762..8b7a09d4542 100644 --- a/native/native.tests/testData/codegen/inline/inline19.kt +++ b/compiler/testData/codegen/box/inline/inline19.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/compiler/testData/codegen/box/inline/inline2.jvm_abi.txt b/compiler/testData/codegen/box/inline/inline2.jvm_abi.txt new file mode 100644 index 00000000000..43fd4730ef0 --- /dev/null +++ b/compiler/testData/codegen/box/inline/inline2.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS Inline2Kt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/inline/inline2.kt b/compiler/testData/codegen/box/inline/inline2.kt similarity index 90% rename from native/native.tests/testData/codegen/inline/inline2.kt rename to compiler/testData/codegen/box/inline/inline2.kt index b584caeca4e..06ca3c3b77b 100644 --- a/native/native.tests/testData/codegen/inline/inline2.kt +++ b/compiler/testData/codegen/box/inline/inline2.kt @@ -2,6 +2,8 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/inline/inline20.kt b/compiler/testData/codegen/box/inline/inline20.kt similarity index 96% rename from native/native.tests/testData/codegen/inline/inline20.kt rename to compiler/testData/codegen/box/inline/inline20.kt index c1c74eb7a71..c9a870a8c93 100644 --- a/native/native.tests/testData/codegen/inline/inline20.kt +++ b/compiler/testData/codegen/box/inline/inline20.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/compiler/testData/codegen/box/inline/inline21.jvm_abi.txt b/compiler/testData/codegen/box/inline/inline21.jvm_abi.txt new file mode 100644 index 00000000000..8ce320539f2 --- /dev/null +++ b/compiler/testData/codegen/box/inline/inline21.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS Inline21Kt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/inline/inline21.kt b/compiler/testData/codegen/box/inline/inline21.kt similarity index 93% rename from native/native.tests/testData/codegen/inline/inline21.kt rename to compiler/testData/codegen/box/inline/inline21.kt index a8556e28a43..a038bf8d040 100644 --- a/native/native.tests/testData/codegen/inline/inline21.kt +++ b/compiler/testData/codegen/box/inline/inline21.kt @@ -2,6 +2,8 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/inline/inline22.kt b/compiler/testData/codegen/box/inline/inline22.kt similarity index 96% rename from native/native.tests/testData/codegen/inline/inline22.kt rename to compiler/testData/codegen/box/inline/inline22.kt index a9c4bfd2187..9256b71027e 100644 --- a/native/native.tests/testData/codegen/inline/inline22.kt +++ b/compiler/testData/codegen/box/inline/inline22.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/inline/inline23.kt b/compiler/testData/codegen/box/inline/inline23.kt similarity index 95% rename from native/native.tests/testData/codegen/inline/inline23.kt rename to compiler/testData/codegen/box/inline/inline23.kt index 25b9b897123..c6413a5dd78 100644 --- a/native/native.tests/testData/codegen/inline/inline23.kt +++ b/compiler/testData/codegen/box/inline/inline23.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/compiler/testData/codegen/box/inline/inline24.jvm_abi.txt b/compiler/testData/codegen/box/inline/inline24.jvm_abi.txt new file mode 100644 index 00000000000..4401e3d0c81 --- /dev/null +++ b/compiler/testData/codegen/box/inline/inline24.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS Inline24Kt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/inline/inline24.kt b/compiler/testData/codegen/box/inline/inline24.kt similarity index 91% rename from native/native.tests/testData/codegen/inline/inline24.kt rename to compiler/testData/codegen/box/inline/inline24.kt index 10fc034bc3a..9a699d479cf 100644 --- a/native/native.tests/testData/codegen/inline/inline24.kt +++ b/compiler/testData/codegen/box/inline/inline24.kt @@ -2,6 +2,8 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/inline/inline25.kt b/compiler/testData/codegen/box/inline/inline25.kt similarity index 97% rename from native/native.tests/testData/codegen/inline/inline25.kt rename to compiler/testData/codegen/box/inline/inline25.kt index e27ad283c85..632744a738b 100644 --- a/native/native.tests/testData/codegen/inline/inline25.kt +++ b/compiler/testData/codegen/box/inline/inline25.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/inline/inline26.kt b/compiler/testData/codegen/box/inline/inline26.kt similarity index 96% rename from native/native.tests/testData/codegen/inline/inline26.kt rename to compiler/testData/codegen/box/inline/inline26.kt index 6963b6ad2e4..175454d27b4 100644 --- a/native/native.tests/testData/codegen/inline/inline26.kt +++ b/compiler/testData/codegen/box/inline/inline26.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/inline/inline3.kt b/compiler/testData/codegen/box/inline/inline3.kt similarity index 96% rename from native/native.tests/testData/codegen/inline/inline3.kt rename to compiler/testData/codegen/box/inline/inline3.kt index f9e6b82c85b..46b45c805cc 100644 --- a/native/native.tests/testData/codegen/inline/inline3.kt +++ b/compiler/testData/codegen/box/inline/inline3.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/inline/inline4.kt b/compiler/testData/codegen/box/inline/inline4.kt similarity index 96% rename from native/native.tests/testData/codegen/inline/inline4.kt rename to compiler/testData/codegen/box/inline/inline4.kt index 52d5b18585f..2b7cefc95ff 100644 --- a/native/native.tests/testData/codegen/inline/inline4.kt +++ b/compiler/testData/codegen/box/inline/inline4.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/inline/inline5.kt b/compiler/testData/codegen/box/inline/inline5.kt similarity index 96% rename from native/native.tests/testData/codegen/inline/inline5.kt rename to compiler/testData/codegen/box/inline/inline5.kt index 918f2a9b167..0a21415b1bc 100644 --- a/native/native.tests/testData/codegen/inline/inline5.kt +++ b/compiler/testData/codegen/box/inline/inline5.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/compiler/testData/codegen/box/inline/inline6.jvm_abi.txt b/compiler/testData/codegen/box/inline/inline6.jvm_abi.txt new file mode 100644 index 00000000000..7b522a8716a --- /dev/null +++ b/compiler/testData/codegen/box/inline/inline6.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS Inline6Kt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/inline/inline6.kt b/compiler/testData/codegen/box/inline/inline6.kt similarity index 92% rename from native/native.tests/testData/codegen/inline/inline6.kt rename to compiler/testData/codegen/box/inline/inline6.kt index 0bdd4f1a6a3..d6ef02d17df 100644 --- a/native/native.tests/testData/codegen/inline/inline6.kt +++ b/compiler/testData/codegen/box/inline/inline6.kt @@ -2,6 +2,8 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB import kotlin.test.* diff --git a/compiler/testData/codegen/box/inline/inline7.jvm_abi.txt b/compiler/testData/codegen/box/inline/inline7.jvm_abi.txt new file mode 100644 index 00000000000..39ad160afa4 --- /dev/null +++ b/compiler/testData/codegen/box/inline/inline7.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS Inline7Kt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/inline/inline7.kt b/compiler/testData/codegen/box/inline/inline7.kt similarity index 91% rename from native/native.tests/testData/codegen/inline/inline7.kt rename to compiler/testData/codegen/box/inline/inline7.kt index d76abc960d8..ad9e014e67f 100644 --- a/native/native.tests/testData/codegen/inline/inline7.kt +++ b/compiler/testData/codegen/box/inline/inline7.kt @@ -2,6 +2,8 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/inline/inline8.kt b/compiler/testData/codegen/box/inline/inline8.kt similarity index 96% rename from native/native.tests/testData/codegen/inline/inline8.kt rename to compiler/testData/codegen/box/inline/inline8.kt index e81980a5be7..709799e093f 100644 --- a/native/native.tests/testData/codegen/inline/inline8.kt +++ b/compiler/testData/codegen/box/inline/inline8.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/compiler/testData/codegen/box/inline/inline9.jvm_abi.txt b/compiler/testData/codegen/box/inline/inline9.jvm_abi.txt new file mode 100644 index 00000000000..55d32a23e7d --- /dev/null +++ b/compiler/testData/codegen/box/inline/inline9.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS Inline9Kt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/inline/inline9.kt b/compiler/testData/codegen/box/inline/inline9.kt similarity index 92% rename from native/native.tests/testData/codegen/inline/inline9.kt rename to compiler/testData/codegen/box/inline/inline9.kt index ce584aed05d..ed8df305406 100644 --- a/native/native.tests/testData/codegen/inline/inline9.kt +++ b/compiler/testData/codegen/box/inline/inline9.kt @@ -2,6 +2,8 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/inline/inlineCtor.kt b/compiler/testData/codegen/box/inline/inlineCtor.kt similarity index 95% rename from native/native.tests/testData/codegen/inline/inlineCtor.kt rename to compiler/testData/codegen/box/inline/inlineCtor.kt index b1434f4773c..b8e393cc5b8 100644 --- a/native/native.tests/testData/codegen/inline/inlineCtor.kt +++ b/compiler/testData/codegen/box/inline/inlineCtor.kt @@ -1,3 +1,4 @@ +// WITH_STDLIB // MODULE: lib // FILE: lib.kt diff --git a/native/native.tests/testData/codegen/inline/innerInlineFunCapturesOuter.kt b/compiler/testData/codegen/box/inline/innerInlineFunCapturesOuter.kt similarity index 62% rename from native/native.tests/testData/codegen/inline/innerInlineFunCapturesOuter.kt rename to compiler/testData/codegen/box/inline/innerInlineFunCapturesOuter.kt index 20f85a6c294..25934da4c60 100644 --- a/native/native.tests/testData/codegen/inline/innerInlineFunCapturesOuter.kt +++ b/compiler/testData/codegen/box/inline/innerInlineFunCapturesOuter.kt @@ -1,3 +1,6 @@ +// KT-66096: java.lang.IllegalAccessError: tried to access field a.E$Inner.this$0 from class MainKt +// DONT_TARGET_EXACT_BACKEND: JVM +// WITH_STDLIB // MODULE: lib // FILE: lib.kt diff --git a/compiler/testData/codegen/box/inline/lambdaAsAny.jvm_abi.txt b/compiler/testData/codegen/box/inline/lambdaAsAny.jvm_abi.txt new file mode 100644 index 00000000000..e29aea23795 --- /dev/null +++ b/compiler/testData/codegen/box/inline/lambdaAsAny.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS LambdaAsAnyKt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/inline/lambdaAsAny.kt b/compiler/testData/codegen/box/inline/lambdaAsAny.kt similarity index 87% rename from native/native.tests/testData/codegen/inline/lambdaAsAny.kt rename to compiler/testData/codegen/box/inline/lambdaAsAny.kt index ff70eec1d7c..49840b6abc2 100644 --- a/native/native.tests/testData/codegen/inline/lambdaAsAny.kt +++ b/compiler/testData/codegen/box/inline/lambdaAsAny.kt @@ -2,6 +2,8 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/inline/lambdaInDefaultValue.kt b/compiler/testData/codegen/box/inline/lambdaInDefaultValue.kt similarity index 95% rename from native/native.tests/testData/codegen/inline/lambdaInDefaultValue.kt rename to compiler/testData/codegen/box/inline/lambdaInDefaultValue.kt index 6cebbd9027f..8049b6bbe12 100644 --- a/native/native.tests/testData/codegen/inline/lambdaInDefaultValue.kt +++ b/compiler/testData/codegen/box/inline/lambdaInDefaultValue.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/inline/lateinitProperty.kt b/compiler/testData/codegen/box/inline/lateinitProperty.kt similarity index 98% rename from native/native.tests/testData/codegen/inline/lateinitProperty.kt rename to compiler/testData/codegen/box/inline/lateinitProperty.kt index 02be1822e86..6c036297ae2 100644 --- a/native/native.tests/testData/codegen/inline/lateinitProperty.kt +++ b/compiler/testData/codegen/box/inline/lateinitProperty.kt @@ -1,3 +1,4 @@ +// WITH_STDLIB // KT-64511: lateinit is not lowered with caches // DISABLE_NATIVE: cacheMode=STATIC_EVERYWHERE // DISABLE_NATIVE: cacheMode=STATIC_PER_FILE_EVERYWHERE diff --git a/compiler/testData/codegen/box/inline/localFunctionInInitializerBlock.jvm_abi.txt b/compiler/testData/codegen/box/inline/localFunctionInInitializerBlock.jvm_abi.txt new file mode 100644 index 00000000000..e3a8fdffb69 --- /dev/null +++ b/compiler/testData/codegen/box/inline/localFunctionInInitializerBlock.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS LocalFunctionInInitializerBlockKt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/inline/localFunctionInInitializerBlock.kt b/compiler/testData/codegen/box/inline/localFunctionInInitializerBlock.kt similarity index 88% rename from native/native.tests/testData/codegen/inline/localFunctionInInitializerBlock.kt rename to compiler/testData/codegen/box/inline/localFunctionInInitializerBlock.kt index 0990b27fca7..081172ae00c 100644 --- a/native/native.tests/testData/codegen/inline/localFunctionInInitializerBlock.kt +++ b/compiler/testData/codegen/box/inline/localFunctionInInitializerBlock.kt @@ -2,6 +2,8 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/inline/localObjectReturnedFromWhen.kt b/compiler/testData/codegen/box/inline/localObjectReturnedFromWhen.kt similarity index 74% rename from native/native.tests/testData/codegen/inline/localObjectReturnedFromWhen.kt rename to compiler/testData/codegen/box/inline/localObjectReturnedFromWhen.kt index 874896242f8..baa39f845cc 100644 --- a/native/native.tests/testData/codegen/inline/localObjectReturnedFromWhen.kt +++ b/compiler/testData/codegen/box/inline/localObjectReturnedFromWhen.kt @@ -2,6 +2,9 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// Implementing a function interface is prohibited in JavaScript +// IGNORE_BACKEND: JS_IR, JS_IR_ES6 +// WITH_STDLIB import kotlin.test.* diff --git a/compiler/testData/codegen/box/inline/propertyAccessorInline.jvm_abi.txt b/compiler/testData/codegen/box/inline/propertyAccessorInline.jvm_abi.txt new file mode 100644 index 00000000000..a533f249eb8 --- /dev/null +++ b/compiler/testData/codegen/box/inline/propertyAccessorInline.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS PropertyAccessorInlineKt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/inline/propertyAccessorInline.kt b/compiler/testData/codegen/box/inline/propertyAccessorInline.kt similarity index 90% rename from native/native.tests/testData/codegen/inline/propertyAccessorInline.kt rename to compiler/testData/codegen/box/inline/propertyAccessorInline.kt index a9ef3205f78..0155b3c8853 100644 --- a/native/native.tests/testData/codegen/inline/propertyAccessorInline.kt +++ b/compiler/testData/codegen/box/inline/propertyAccessorInline.kt @@ -2,6 +2,8 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/inline/redundantCoercionsCleaner.kt b/compiler/testData/codegen/box/inline/redundantCoercionsCleaner.kt similarity index 94% rename from native/native.tests/testData/codegen/inline/redundantCoercionsCleaner.kt rename to compiler/testData/codegen/box/inline/redundantCoercionsCleaner.kt index c49c1f39d81..833e9150b3f 100644 --- a/native/native.tests/testData/codegen/inline/redundantCoercionsCleaner.kt +++ b/compiler/testData/codegen/box/inline/redundantCoercionsCleaner.kt @@ -1,3 +1,4 @@ +// WITH_STDLIB import kotlin.test.* inline fun runAndThrow(action: () -> Unit): Nothing { diff --git a/native/native.tests/testData/codegen/inline/redundantCoercionsCleanerKT48876.kt b/compiler/testData/codegen/box/inline/redundantCoercionsCleanerKT48876.kt similarity index 95% rename from native/native.tests/testData/codegen/inline/redundantCoercionsCleanerKT48876.kt rename to compiler/testData/codegen/box/inline/redundantCoercionsCleanerKT48876.kt index 7f717cf4217..a85abbdd2fa 100644 --- a/native/native.tests/testData/codegen/inline/redundantCoercionsCleanerKT48876.kt +++ b/compiler/testData/codegen/box/inline/redundantCoercionsCleanerKT48876.kt @@ -1,3 +1,4 @@ +// WITH_STDLIB import kotlin.test.* // The test below is inspired by https://youtrack.jetbrains.com/issue/KT-48876. diff --git a/native/native.tests/testData/codegen/inline/redundantCoercionsCleanerKT49356.kt b/compiler/testData/codegen/box/inline/redundantCoercionsCleanerKT49356.kt similarity index 94% rename from native/native.tests/testData/codegen/inline/redundantCoercionsCleanerKT49356.kt rename to compiler/testData/codegen/box/inline/redundantCoercionsCleanerKT49356.kt index 94cd654a7f2..800ff76f261 100644 --- a/native/native.tests/testData/codegen/inline/redundantCoercionsCleanerKT49356.kt +++ b/compiler/testData/codegen/box/inline/redundantCoercionsCleanerKT49356.kt @@ -1,3 +1,4 @@ +// WITH_STDLIB import kotlin.test.* // Test for https://youtrack.jetbrains.com/issue/KT-49356. diff --git a/compiler/testData/codegen/box/inline/returnLocalClassFromBlock.jvm_abi.txt b/compiler/testData/codegen/box/inline/returnLocalClassFromBlock.jvm_abi.txt new file mode 100644 index 00000000000..da87d6e2d1d --- /dev/null +++ b/compiler/testData/codegen/box/inline/returnLocalClassFromBlock.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS ReturnLocalClassFromBlockKt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/inline/returnLocalClassFromBlock.kt b/compiler/testData/codegen/box/inline/returnLocalClassFromBlock.kt similarity index 89% rename from native/native.tests/testData/codegen/inline/returnLocalClassFromBlock.kt rename to compiler/testData/codegen/box/inline/returnLocalClassFromBlock.kt index ce7c2518670..c93bdc383e0 100644 --- a/native/native.tests/testData/codegen/inline/returnLocalClassFromBlock.kt +++ b/compiler/testData/codegen/box/inline/returnLocalClassFromBlock.kt @@ -2,6 +2,8 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/inline/sharedVar.kt b/compiler/testData/codegen/box/inline/sharedVar.kt similarity index 97% rename from native/native.tests/testData/codegen/inline/sharedVar.kt rename to compiler/testData/codegen/box/inline/sharedVar.kt index c847541c39f..2cb820d2d3c 100644 --- a/native/native.tests/testData/codegen/inline/sharedVar.kt +++ b/compiler/testData/codegen/box/inline/sharedVar.kt @@ -1,3 +1,4 @@ +// WITH_STDLIB // MODULE: lib // FILE: lib.kt diff --git a/native/native.tests/testData/codegen/inline/statementAsLastExprInBlock.kt b/compiler/testData/codegen/box/inline/statementAsLastExprInBlock.kt similarity index 96% rename from native/native.tests/testData/codegen/inline/statementAsLastExprInBlock.kt rename to compiler/testData/codegen/box/inline/statementAsLastExprInBlock.kt index 6a60073130a..cdd089db646 100644 --- a/native/native.tests/testData/codegen/inline/statementAsLastExprInBlock.kt +++ b/compiler/testData/codegen/box/inline/statementAsLastExprInBlock.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/compiler/testData/codegen/box/inline/twiceInlinedObject.jvm_abi.txt b/compiler/testData/codegen/box/inline/twiceInlinedObject.jvm_abi.txt new file mode 100644 index 00000000000..aca0603fd62 --- /dev/null +++ b/compiler/testData/codegen/box/inline/twiceInlinedObject.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS TwiceInlinedObjectKt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/inline/twiceInlinedObject.kt b/compiler/testData/codegen/box/inline/twiceInlinedObject.kt similarity index 91% rename from native/native.tests/testData/codegen/inline/twiceInlinedObject.kt rename to compiler/testData/codegen/box/inline/twiceInlinedObject.kt index 4d9c2c153d9..c6d3057cd43 100644 --- a/native/native.tests/testData/codegen/inline/twiceInlinedObject.kt +++ b/compiler/testData/codegen/box/inline/twiceInlinedObject.kt @@ -2,6 +2,8 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/inline/typeSubstitutionInFakeOverride.kt b/compiler/testData/codegen/box/inline/typeSubstitutionInFakeOverride.kt similarity index 96% rename from native/native.tests/testData/codegen/inline/typeSubstitutionInFakeOverride.kt rename to compiler/testData/codegen/box/inline/typeSubstitutionInFakeOverride.kt index 54deb1c941f..a7f416fd6e2 100644 --- a/native/native.tests/testData/codegen/inline/typeSubstitutionInFakeOverride.kt +++ b/compiler/testData/codegen/box/inline/typeSubstitutionInFakeOverride.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/inlineClass/customEquals.kt b/compiler/testData/codegen/box/inlineClass/customEquals.kt similarity index 89% rename from native/native.tests/testData/codegen/inlineClass/customEquals.kt rename to compiler/testData/codegen/box/inlineClass/customEquals.kt index 032d5f2849c..5c44ad10a82 100644 --- a/native/native.tests/testData/codegen/inlineClass/customEquals.kt +++ b/compiler/testData/codegen/box/inlineClass/customEquals.kt @@ -2,6 +2,8 @@ * Copyright 2010-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// DONT_TARGET_EXACT_BACKEND: JVM +// WITH_STDLIB @file:Suppress("RESERVED_MEMBER_INSIDE_VALUE_CLASS") import kotlin.test.* diff --git a/native/native.tests/testData/codegen/inlineClass/defaultEquals.kt b/compiler/testData/codegen/box/inlineClass/defaultEquals.kt similarity index 97% rename from native/native.tests/testData/codegen/inlineClass/defaultEquals.kt rename to compiler/testData/codegen/box/inlineClass/defaultEquals.kt index bbdee7e7903..0e9fad7f178 100644 --- a/native/native.tests/testData/codegen/inlineClass/defaultEquals.kt +++ b/compiler/testData/codegen/box/inlineClass/defaultEquals.kt @@ -2,6 +2,7 @@ * Copyright 2010-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/inlineClass/nestedInlineClasses.kt b/compiler/testData/codegen/box/inlineClass/nestedInlineClasses.kt similarity index 96% rename from native/native.tests/testData/codegen/inlineClass/nestedInlineClasses.kt rename to compiler/testData/codegen/box/inlineClass/nestedInlineClasses.kt index f9bfa07a42a..c0d234d72fb 100644 --- a/native/native.tests/testData/codegen/inlineClass/nestedInlineClasses.kt +++ b/compiler/testData/codegen/box/inlineClass/nestedInlineClasses.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/inlineClass/secondaryConstructorWithGenerics.kt b/compiler/testData/codegen/box/inlineClass/secondaryConstructorWithGenerics.kt similarity index 96% rename from native/native.tests/testData/codegen/inlineClass/secondaryConstructorWithGenerics.kt rename to compiler/testData/codegen/box/inlineClass/secondaryConstructorWithGenerics.kt index ae840128069..8ec03066aeb 100644 --- a/native/native.tests/testData/codegen/inlineClass/secondaryConstructorWithGenerics.kt +++ b/compiler/testData/codegen/box/inlineClass/secondaryConstructorWithGenerics.kt @@ -2,6 +2,7 @@ * Copyright 2010-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/innerClass/doubleInner.kt b/compiler/testData/codegen/box/innerClass/doubleInner.kt similarity index 97% rename from native/native.tests/testData/codegen/innerClass/doubleInner.kt rename to compiler/testData/codegen/box/innerClass/doubleInner.kt index 3b7e904f052..bce1fab1677 100644 --- a/native/native.tests/testData/codegen/innerClass/doubleInner.kt +++ b/compiler/testData/codegen/box/innerClass/doubleInner.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/innerClass/generic.kt b/compiler/testData/codegen/box/innerClass/generic.kt similarity index 96% rename from native/native.tests/testData/codegen/innerClass/generic.kt rename to compiler/testData/codegen/box/innerClass/generic.kt index 3f2e49784b8..dc36a66dad8 100644 --- a/native/native.tests/testData/codegen/innerClass/generic.kt +++ b/compiler/testData/codegen/box/innerClass/generic.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/innerClass/getOuterVal.kt b/compiler/testData/codegen/box/innerClass/getOuterVal.kt similarity index 95% rename from native/native.tests/testData/codegen/innerClass/getOuterVal.kt rename to compiler/testData/codegen/box/innerClass/getOuterVal.kt index b419213f730..4355ac44c8b 100644 --- a/native/native.tests/testData/codegen/innerClass/getOuterVal.kt +++ b/compiler/testData/codegen/box/innerClass/getOuterVal.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/innerClass/inheritanceMultipleModules1.kt b/compiler/testData/codegen/box/innerClass/inheritanceMultipleModules1.kt similarity index 96% rename from native/native.tests/testData/codegen/innerClass/inheritanceMultipleModules1.kt rename to compiler/testData/codegen/box/innerClass/inheritanceMultipleModules1.kt index 020f6b2d033..cd010ecfb58 100644 --- a/native/native.tests/testData/codegen/innerClass/inheritanceMultipleModules1.kt +++ b/compiler/testData/codegen/box/innerClass/inheritanceMultipleModules1.kt @@ -1,3 +1,4 @@ +// WITH_STDLIB // MODULE: lib // FILE: lib.kt diff --git a/native/native.tests/testData/codegen/innerClass/inheritanceMultipleModules2.kt b/compiler/testData/codegen/box/innerClass/inheritanceMultipleModules2.kt similarity index 100% rename from native/native.tests/testData/codegen/innerClass/inheritanceMultipleModules2.kt rename to compiler/testData/codegen/box/innerClass/inheritanceMultipleModules2.kt diff --git a/native/native.tests/testData/codegen/innerClass/inheritanceMultipleModules3.kt b/compiler/testData/codegen/box/innerClass/inheritanceMultipleModules3.kt similarity index 96% rename from native/native.tests/testData/codegen/innerClass/inheritanceMultipleModules3.kt rename to compiler/testData/codegen/box/innerClass/inheritanceMultipleModules3.kt index 01c42a27ce3..ef5c4e90474 100644 --- a/native/native.tests/testData/codegen/innerClass/inheritanceMultipleModules3.kt +++ b/compiler/testData/codegen/box/innerClass/inheritanceMultipleModules3.kt @@ -1,3 +1,4 @@ +// WITH_STDLIB // MODULE: lib // FILE: lib.kt diff --git a/native/native.tests/testData/codegen/innerClass/multipleModules.kt b/compiler/testData/codegen/box/innerClass/multipleModules.kt similarity index 100% rename from native/native.tests/testData/codegen/innerClass/multipleModules.kt rename to compiler/testData/codegen/box/innerClass/multipleModules.kt diff --git a/native/native.tests/testData/codegen/innerClass/noPrimaryConstructor.kt b/compiler/testData/codegen/box/innerClass/noPrimaryConstructor.kt similarity index 97% rename from native/native.tests/testData/codegen/innerClass/noPrimaryConstructor.kt rename to compiler/testData/codegen/box/innerClass/noPrimaryConstructor.kt index b6275fcfe68..a7df18699f3 100644 --- a/native/native.tests/testData/codegen/innerClass/noPrimaryConstructor.kt +++ b/compiler/testData/codegen/box/innerClass/noPrimaryConstructor.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/innerClass/qualifiedThis.kt b/compiler/testData/codegen/box/innerClass/qualifiedThis.kt similarity index 98% rename from native/native.tests/testData/codegen/innerClass/qualifiedThis.kt rename to compiler/testData/codegen/box/innerClass/qualifiedThis.kt index c595d88870a..343e69f2352 100644 --- a/native/native.tests/testData/codegen/innerClass/qualifiedThis.kt +++ b/compiler/testData/codegen/box/innerClass/qualifiedThis.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/compiler/testData/codegen/box/innerClass/secondaryConstructor.jvm_abi.txt b/compiler/testData/codegen/box/innerClass/secondaryConstructor.jvm_abi.txt new file mode 100644 index 00000000000..2f66ef08fcb --- /dev/null +++ b/compiler/testData/codegen/box/innerClass/secondaryConstructor.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS SecondaryConstructorKt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/innerClass/secondaryConstructor.kt b/compiler/testData/codegen/box/innerClass/secondaryConstructor.kt similarity index 92% rename from native/native.tests/testData/codegen/innerClass/secondaryConstructor.kt rename to compiler/testData/codegen/box/innerClass/secondaryConstructor.kt index 1019d8f8fc2..e4eba8fc41c 100644 --- a/native/native.tests/testData/codegen/innerClass/secondaryConstructor.kt +++ b/compiler/testData/codegen/box/innerClass/secondaryConstructor.kt @@ -2,6 +2,8 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/innerClass/simple.kt b/compiler/testData/codegen/box/innerClass/simple.kt similarity index 94% rename from native/native.tests/testData/codegen/innerClass/simple.kt rename to compiler/testData/codegen/box/innerClass/simple.kt index 3c82688fb08..525f84bca5e 100644 --- a/native/native.tests/testData/codegen/innerClass/simple.kt +++ b/compiler/testData/codegen/box/innerClass/simple.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/innerClass/superOuter.kt b/compiler/testData/codegen/box/innerClass/superOuter.kt similarity index 96% rename from native/native.tests/testData/codegen/innerClass/superOuter.kt rename to compiler/testData/codegen/box/innerClass/superOuter.kt index 0a62da7a6ec..debfeea50de 100644 --- a/native/native.tests/testData/codegen/innerClass/superOuter.kt +++ b/compiler/testData/codegen/box/innerClass/superOuter.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/interfaceCallsNCasts/conservativeItable.kt b/compiler/testData/codegen/box/interfaceCallsNCasts/conservativeItable.kt similarity index 99% rename from native/native.tests/testData/codegen/interfaceCallsNCasts/conservativeItable.kt rename to compiler/testData/codegen/box/interfaceCallsNCasts/conservativeItable.kt index c8f2b5bf763..a82641ec2e5 100644 --- a/native/native.tests/testData/codegen/interfaceCallsNCasts/conservativeItable.kt +++ b/compiler/testData/codegen/box/interfaceCallsNCasts/conservativeItable.kt @@ -2,6 +2,7 @@ * Copyright 2010-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/interfaceCallsNCasts/diamond.kt b/compiler/testData/codegen/box/interfaceCallsNCasts/diamond.kt similarity index 97% rename from native/native.tests/testData/codegen/interfaceCallsNCasts/diamond.kt rename to compiler/testData/codegen/box/interfaceCallsNCasts/diamond.kt index d996f960aaf..b410a40e969 100644 --- a/native/native.tests/testData/codegen/interfaceCallsNCasts/diamond.kt +++ b/compiler/testData/codegen/box/interfaceCallsNCasts/diamond.kt @@ -2,6 +2,7 @@ * Copyright 2010-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/interfaceCallsNCasts/finalMethod.kt b/compiler/testData/codegen/box/interfaceCallsNCasts/finalMethod.kt similarity index 96% rename from native/native.tests/testData/codegen/interfaceCallsNCasts/finalMethod.kt rename to compiler/testData/codegen/box/interfaceCallsNCasts/finalMethod.kt index f59cc214324..0f4df19277c 100644 --- a/native/native.tests/testData/codegen/interfaceCallsNCasts/finalMethod.kt +++ b/compiler/testData/codegen/box/interfaceCallsNCasts/finalMethod.kt @@ -2,6 +2,7 @@ * Copyright 2010-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/compiler/testData/codegen/box/interfaceCallsNCasts/interface0.jvm_abi.txt b/compiler/testData/codegen/box/interfaceCallsNCasts/interface0.jvm_abi.txt new file mode 100644 index 00000000000..32fd76b7a26 --- /dev/null +++ b/compiler/testData/codegen/box/interfaceCallsNCasts/interface0.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS Interface0Kt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/interfaceCallsNCasts/interface0.kt b/compiler/testData/codegen/box/interfaceCallsNCasts/interface0.kt similarity index 89% rename from native/native.tests/testData/codegen/interfaceCallsNCasts/interface0.kt rename to compiler/testData/codegen/box/interfaceCallsNCasts/interface0.kt index 3f2e3b3865b..4243f29d1fb 100644 --- a/native/native.tests/testData/codegen/interfaceCallsNCasts/interface0.kt +++ b/compiler/testData/codegen/box/interfaceCallsNCasts/interface0.kt @@ -2,6 +2,8 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB import kotlin.test.* interface A { diff --git a/native/native.tests/testData/codegen/kclass/kClassEnumArgument.kt b/compiler/testData/codegen/box/kclass/kClassEnumArgument.kt similarity index 92% rename from native/native.tests/testData/codegen/kclass/kClassEnumArgument.kt rename to compiler/testData/codegen/box/kclass/kClassEnumArgument.kt index bcf5a0ceb6f..4ac8a4be4b6 100644 --- a/native/native.tests/testData/codegen/kclass/kClassEnumArgument.kt +++ b/compiler/testData/codegen/box/kclass/kClassEnumArgument.kt @@ -2,6 +2,8 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB +// WITH_REFLECT import kotlin.test.* import kotlin.reflect.KClass diff --git a/compiler/testData/codegen/box/kclass/kclass1.jvm_abi.txt b/compiler/testData/codegen/box/kclass/kclass1.jvm_abi.txt new file mode 100644 index 00000000000..8ee686bd6bf --- /dev/null +++ b/compiler/testData/codegen/box/kclass/kclass1.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS codegen/kclass/kclass1/Kclass1Kt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/kclass/kclass1.kt b/compiler/testData/codegen/box/kclass/kclass1.kt similarity index 65% rename from native/native.tests/testData/codegen/kclass/kclass1.kt rename to compiler/testData/codegen/box/kclass/kclass1.kt index c793193d0b1..6e87ef0184a 100644 --- a/native/native.tests/testData/codegen/kclass/kclass1.kt +++ b/compiler/testData/codegen/box/kclass/kclass1.kt @@ -2,6 +2,10 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// Unsupported [This reflection API is not supported yet in JavaScript] +// IGNORE_BACKEND: JS_IR, JS_IR_ES6, WASM +// WITH_STDLIB package codegen.kclass.kclass1 @@ -45,15 +49,15 @@ class App(testQualified: Boolean) { } init { - assert(type.simpleName == "TestClass") + assertTrue(type.simpleName == "TestClass") if (testQualified) - assert(type.qualifiedName == "codegen.kclass.kclass1.TestClass") // This is not really necessary, but always better :). + assertTrue(type.qualifiedName == "codegen.kclass.kclass1.TestClass") // This is not really necessary, but always better :). - assert(String::class == String::class) - assert(String::class != Int::class) + assertTrue(String::class == String::class) + assertTrue(String::class != Int::class) - assert(TestClass()::class == TestClass()::class) - assert(TestClass()::class == TestClass::class) + assertTrue(TestClass()::class == TestClass()::class) + assertTrue(TestClass()::class == TestClass::class) sb.append("OK") } diff --git a/native/native.tests/testData/codegen/ktype/ktype1_basics1.kt b/compiler/testData/codegen/box/ktype/ktype1_basics1.kt similarity index 79% rename from native/native.tests/testData/codegen/ktype/ktype1_basics1.kt rename to compiler/testData/codegen/box/ktype/ktype1_basics1.kt index 8d86db79199..89facb0a67e 100644 --- a/native/native.tests/testData/codegen/ktype/ktype1_basics1.kt +++ b/compiler/testData/codegen/box/ktype/ktype1_basics1.kt @@ -2,6 +2,12 @@ * Copyright 2010-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// AssertionError: Expected >, actual >. +// AssertionError: Expected >>, actual >>. +// IGNORE_BACKEND: JS_IR, JS_IR_ES6, WASM, ANDROID + +// WITH_STDLIB +// WITH_REFLECT import kotlin.test.* import kotlin.reflect.* diff --git a/native/native.tests/testData/codegen/ktype/ktype1_inner.kt b/compiler/testData/codegen/box/ktype/ktype1_inner.kt similarity index 95% rename from native/native.tests/testData/codegen/ktype/ktype1_inner.kt rename to compiler/testData/codegen/box/ktype/ktype1_inner.kt index 727724b480a..e95fe33d17b 100644 --- a/native/native.tests/testData/codegen/ktype/ktype1_inner.kt +++ b/compiler/testData/codegen/box/ktype/ktype1_inner.kt @@ -2,6 +2,9 @@ * Copyright 2010-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB +// WITH_REFLECT + import kotlin.test.* import kotlin.reflect.* diff --git a/native/native.tests/testData/codegen/ktype/nonReified_class.kt b/compiler/testData/codegen/box/ktype/nonReified_class.kt similarity index 94% rename from native/native.tests/testData/codegen/ktype/nonReified_class.kt rename to compiler/testData/codegen/box/ktype/nonReified_class.kt index f6f1ca669e3..044f1420608 100644 --- a/native/native.tests/testData/codegen/ktype/nonReified_class.kt +++ b/compiler/testData/codegen/box/ktype/nonReified_class.kt @@ -2,6 +2,9 @@ * Copyright 2010-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB +// WITH_REFLECT + import kotlin.test.* import kotlin.reflect.* diff --git a/native/native.tests/testData/codegen/ktype/nonReified_equality.kt b/compiler/testData/codegen/box/ktype/nonReified_equality.kt similarity index 87% rename from native/native.tests/testData/codegen/ktype/nonReified_equality.kt rename to compiler/testData/codegen/box/ktype/nonReified_equality.kt index 5954f7a2ed5..7a4e1e41e8d 100644 --- a/native/native.tests/testData/codegen/ktype/nonReified_equality.kt +++ b/compiler/testData/codegen/box/ktype/nonReified_equality.kt @@ -2,6 +2,12 @@ * Copyright 2010-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// KT-66091: AssertionError: Illegal value: . +// IGNORE_BACKEND: JS_IR, JS_IR_ES6, WASM + +// WITH_STDLIB +// WITH_REFLECT + import kotlin.test.* import kotlin.reflect.* diff --git a/native/native.tests/testData/codegen/ktype/nonReified_fun.kt b/compiler/testData/codegen/box/ktype/nonReified_fun.kt similarity index 94% rename from native/native.tests/testData/codegen/ktype/nonReified_fun.kt rename to compiler/testData/codegen/box/ktype/nonReified_fun.kt index bbdac18669e..47ebd13a016 100644 --- a/native/native.tests/testData/codegen/ktype/nonReified_fun.kt +++ b/compiler/testData/codegen/box/ktype/nonReified_fun.kt @@ -2,6 +2,9 @@ * Copyright 2010-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB +// WITH_REFLECT + import kotlin.test.* import kotlin.reflect.* diff --git a/native/native.tests/testData/codegen/ktype/nonReified_recursionInReified.kt b/compiler/testData/codegen/box/ktype/nonReified_recursionInReified.kt similarity index 93% rename from native/native.tests/testData/codegen/ktype/nonReified_recursionInReified.kt rename to compiler/testData/codegen/box/ktype/nonReified_recursionInReified.kt index dbecfce76cc..14aa49a99d3 100644 --- a/native/native.tests/testData/codegen/ktype/nonReified_recursionInReified.kt +++ b/compiler/testData/codegen/box/ktype/nonReified_recursionInReified.kt @@ -2,6 +2,9 @@ * Copyright 2010-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB +// WITH_REFLECT + import kotlin.test.* import kotlin.reflect.* diff --git a/compiler/testData/codegen/box/ktype/nonReified_reifiedUpperBound.kt b/compiler/testData/codegen/box/ktype/nonReified_reifiedUpperBound.kt new file mode 100644 index 00000000000..cda32f9e323 --- /dev/null +++ b/compiler/testData/codegen/box/ktype/nonReified_reifiedUpperBound.kt @@ -0,0 +1,28 @@ +/* + * Copyright 2010-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license + * that can be found in the LICENSE file. + */ +// KT-66092: Assertion failed for `(t as KTypeParameter).isReified` +// IGNORE_BACKEND: JS_IR, JS_IR_ES6, WASM +// WITH_STDLIB +// WITH_REFLECT + +import kotlin.test.* +import kotlin.reflect.* + +inline fun reifiedUpperBound() = typeOf>() + +fun box(): String { + val l = reifiedUpperBound() + assertEquals(List::class, l.classifier, "List::class, l.classifier") + val r = l.arguments.single().type!!.classifier + assertTrue(r is KTypeParameter, "r is KTypeParameter") + assertFalse((r as KTypeParameter).isReified, "(r as KTypeParameter).isReified") + assertEquals("R", (r as KTypeParameter).name, "\"R\", (r as KTypeParameter).name") + val t = (r as KTypeParameter).upperBounds.single().classifier + assertTrue(t is KTypeParameter, "t is KTypeParameter") + assertTrue((t as KTypeParameter).isReified, "(t as KTypeParameter).isReified") + assertEquals("T", (t as KTypeParameter).name, "\"T\", (t as KTypeParameter).name") + + return "OK" +} diff --git a/compiler/testData/codegen/box/lambda/lambda1.jvm_abi.txt b/compiler/testData/codegen/box/lambda/lambda1.jvm_abi.txt new file mode 100644 index 00000000000..11bb956070b --- /dev/null +++ b/compiler/testData/codegen/box/lambda/lambda1.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS Lambda1Kt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/lambda/lambda1.kt b/compiler/testData/codegen/box/lambda/lambda1.kt similarity index 87% rename from native/native.tests/testData/codegen/lambda/lambda1.kt rename to compiler/testData/codegen/box/lambda/lambda1.kt index 01b5ece039e..50c30bc149e 100644 --- a/native/native.tests/testData/codegen/lambda/lambda1.kt +++ b/compiler/testData/codegen/box/lambda/lambda1.kt @@ -2,6 +2,8 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB import kotlin.test.* diff --git a/compiler/testData/codegen/box/lambda/lambda10.jvm_abi.txt b/compiler/testData/codegen/box/lambda/lambda10.jvm_abi.txt new file mode 100644 index 00000000000..ab8f06816ff --- /dev/null +++ b/compiler/testData/codegen/box/lambda/lambda10.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS Lambda10Kt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/lambda/lambda10.kt b/compiler/testData/codegen/box/lambda/lambda10.kt similarity index 90% rename from native/native.tests/testData/codegen/lambda/lambda10.kt rename to compiler/testData/codegen/box/lambda/lambda10.kt index 10f69df97e3..efc1e2df9d2 100644 --- a/native/native.tests/testData/codegen/lambda/lambda10.kt +++ b/compiler/testData/codegen/box/lambda/lambda10.kt @@ -2,6 +2,8 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB import kotlin.test.* diff --git a/compiler/testData/codegen/box/lambda/lambda11.jvm_abi.txt b/compiler/testData/codegen/box/lambda/lambda11.jvm_abi.txt new file mode 100644 index 00000000000..72ee542026b --- /dev/null +++ b/compiler/testData/codegen/box/lambda/lambda11.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS Lambda11Kt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/lambda/lambda11.kt b/compiler/testData/codegen/box/lambda/lambda11.kt similarity index 91% rename from native/native.tests/testData/codegen/lambda/lambda11.kt rename to compiler/testData/codegen/box/lambda/lambda11.kt index 50efae1617a..ad56b7b5a00 100644 --- a/native/native.tests/testData/codegen/lambda/lambda11.kt +++ b/compiler/testData/codegen/box/lambda/lambda11.kt @@ -2,6 +2,8 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB import kotlin.test.* diff --git a/compiler/testData/codegen/box/lambda/lambda12.jvm_abi.txt b/compiler/testData/codegen/box/lambda/lambda12.jvm_abi.txt new file mode 100644 index 00000000000..b057cf78088 --- /dev/null +++ b/compiler/testData/codegen/box/lambda/lambda12.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS Lambda12Kt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/lambda/lambda12.kt b/compiler/testData/codegen/box/lambda/lambda12.kt similarity index 90% rename from native/native.tests/testData/codegen/lambda/lambda12.kt rename to compiler/testData/codegen/box/lambda/lambda12.kt index b687c50bffd..3aea9116d80 100644 --- a/native/native.tests/testData/codegen/lambda/lambda12.kt +++ b/compiler/testData/codegen/box/lambda/lambda12.kt @@ -2,6 +2,8 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB import kotlin.test.* diff --git a/compiler/testData/codegen/box/lambda/lambda13.jvm_abi.txt b/compiler/testData/codegen/box/lambda/lambda13.jvm_abi.txt new file mode 100644 index 00000000000..2db6f4a2cdf --- /dev/null +++ b/compiler/testData/codegen/box/lambda/lambda13.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS Lambda13Kt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/lambda/lambda13.kt b/compiler/testData/codegen/box/lambda/lambda13.kt similarity index 88% rename from native/native.tests/testData/codegen/lambda/lambda13.kt rename to compiler/testData/codegen/box/lambda/lambda13.kt index 51b3fe49180..d220a56c03c 100644 --- a/native/native.tests/testData/codegen/lambda/lambda13.kt +++ b/compiler/testData/codegen/box/lambda/lambda13.kt @@ -2,6 +2,8 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/lambda/lambda14.kt b/compiler/testData/codegen/box/lambda/lambda14.kt similarity index 96% rename from native/native.tests/testData/codegen/lambda/lambda14.kt rename to compiler/testData/codegen/box/lambda/lambda14.kt index 6d687caa286..faed6759c13 100644 --- a/native/native.tests/testData/codegen/lambda/lambda14.kt +++ b/compiler/testData/codegen/box/lambda/lambda14.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB // FILE: 1.kt diff --git a/compiler/testData/codegen/box/lambda/lambda2.jvm_abi.txt b/compiler/testData/codegen/box/lambda/lambda2.jvm_abi.txt new file mode 100644 index 00000000000..b051ff34bb9 --- /dev/null +++ b/compiler/testData/codegen/box/lambda/lambda2.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS Lambda2Kt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/lambda/lambda2.kt b/compiler/testData/codegen/box/lambda/lambda2.kt similarity index 72% rename from native/native.tests/testData/codegen/lambda/lambda2.kt rename to compiler/testData/codegen/box/lambda/lambda2.kt index 159c72fb4cf..a4a2010e5d1 100644 --- a/native/native.tests/testData/codegen/lambda/lambda2.kt +++ b/compiler/testData/codegen/box/lambda/lambda2.kt @@ -2,6 +2,10 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// KT-66106: uncaught exception: Wrong box result 'undefined'; Expected "OK" +// IGNORE_BACKEND: WASM +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB import kotlin.test.* diff --git a/compiler/testData/codegen/box/lambda/lambda3.jvm_abi.txt b/compiler/testData/codegen/box/lambda/lambda3.jvm_abi.txt new file mode 100644 index 00000000000..65532a40c24 --- /dev/null +++ b/compiler/testData/codegen/box/lambda/lambda3.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS Lambda3Kt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/lambda/lambda3.kt b/compiler/testData/codegen/box/lambda/lambda3.kt similarity index 87% rename from native/native.tests/testData/codegen/lambda/lambda3.kt rename to compiler/testData/codegen/box/lambda/lambda3.kt index 372ad4e41c1..cb9fb46400b 100644 --- a/native/native.tests/testData/codegen/lambda/lambda3.kt +++ b/compiler/testData/codegen/box/lambda/lambda3.kt @@ -2,6 +2,8 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB import kotlin.test.* diff --git a/compiler/testData/codegen/box/lambda/lambda4.jvm_abi.txt b/compiler/testData/codegen/box/lambda/lambda4.jvm_abi.txt new file mode 100644 index 00000000000..9d373334509 --- /dev/null +++ b/compiler/testData/codegen/box/lambda/lambda4.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS Lambda4Kt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/lambda/lambda4.kt b/compiler/testData/codegen/box/lambda/lambda4.kt similarity index 94% rename from native/native.tests/testData/codegen/lambda/lambda4.kt rename to compiler/testData/codegen/box/lambda/lambda4.kt index d3bdad03a62..d2835adbab8 100644 --- a/native/native.tests/testData/codegen/lambda/lambda4.kt +++ b/compiler/testData/codegen/box/lambda/lambda4.kt @@ -2,6 +2,8 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB import kotlin.test.* diff --git a/compiler/testData/codegen/box/lambda/lambda5.jvm_abi.txt b/compiler/testData/codegen/box/lambda/lambda5.jvm_abi.txt new file mode 100644 index 00000000000..bbd2cb657ae --- /dev/null +++ b/compiler/testData/codegen/box/lambda/lambda5.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS Lambda5Kt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/lambda/lambda5.kt b/compiler/testData/codegen/box/lambda/lambda5.kt similarity index 88% rename from native/native.tests/testData/codegen/lambda/lambda5.kt rename to compiler/testData/codegen/box/lambda/lambda5.kt index e5d6bda9b49..60a67d52155 100644 --- a/native/native.tests/testData/codegen/lambda/lambda5.kt +++ b/compiler/testData/codegen/box/lambda/lambda5.kt @@ -2,6 +2,8 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB import kotlin.test.* diff --git a/compiler/testData/codegen/box/lambda/lambda6.jvm_abi.txt b/compiler/testData/codegen/box/lambda/lambda6.jvm_abi.txt new file mode 100644 index 00000000000..fd790800887 --- /dev/null +++ b/compiler/testData/codegen/box/lambda/lambda6.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS Lambda6Kt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/lambda/lambda6.kt b/compiler/testData/codegen/box/lambda/lambda6.kt similarity index 90% rename from native/native.tests/testData/codegen/lambda/lambda6.kt rename to compiler/testData/codegen/box/lambda/lambda6.kt index b29b4e6841f..c9aef4425b1 100644 --- a/native/native.tests/testData/codegen/lambda/lambda6.kt +++ b/compiler/testData/codegen/box/lambda/lambda6.kt @@ -2,6 +2,8 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/lambda/lambda7.kt b/compiler/testData/codegen/box/lambda/lambda7.kt similarity index 95% rename from native/native.tests/testData/codegen/lambda/lambda7.kt rename to compiler/testData/codegen/box/lambda/lambda7.kt index 4702ab37484..77e80d14e6f 100644 --- a/native/native.tests/testData/codegen/lambda/lambda7.kt +++ b/compiler/testData/codegen/box/lambda/lambda7.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/compiler/testData/codegen/box/lambda/lambda8.jvm_abi.txt b/compiler/testData/codegen/box/lambda/lambda8.jvm_abi.txt new file mode 100644 index 00000000000..ead7652e89b --- /dev/null +++ b/compiler/testData/codegen/box/lambda/lambda8.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS Lambda8Kt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/lambda/lambda8.kt b/compiler/testData/codegen/box/lambda/lambda8.kt similarity index 94% rename from native/native.tests/testData/codegen/lambda/lambda8.kt rename to compiler/testData/codegen/box/lambda/lambda8.kt index eb6f7e731b4..5075ce2a8d8 100644 --- a/native/native.tests/testData/codegen/lambda/lambda8.kt +++ b/compiler/testData/codegen/box/lambda/lambda8.kt @@ -2,6 +2,8 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB import kotlin.test.* diff --git a/compiler/testData/codegen/box/lambda/lambda9.jvm_abi.txt b/compiler/testData/codegen/box/lambda/lambda9.jvm_abi.txt new file mode 100644 index 00000000000..9e964db8559 --- /dev/null +++ b/compiler/testData/codegen/box/lambda/lambda9.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS Lambda9Kt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/lambda/lambda9.kt b/compiler/testData/codegen/box/lambda/lambda9.kt similarity index 94% rename from native/native.tests/testData/codegen/lambda/lambda9.kt rename to compiler/testData/codegen/box/lambda/lambda9.kt index 3bc8dd2a5c3..39d57922a7a 100644 --- a/native/native.tests/testData/codegen/lambda/lambda9.kt +++ b/compiler/testData/codegen/box/lambda/lambda9.kt @@ -2,6 +2,8 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/lambda/lambda_kt49360_trivial.kt b/compiler/testData/codegen/box/lambda/lambda_kt49360_trivial.kt similarity index 91% rename from native/native.tests/testData/codegen/lambda/lambda_kt49360_trivial.kt rename to compiler/testData/codegen/box/lambda/lambda_kt49360_trivial.kt index 4f8d4cdc189..89fb323912b 100644 --- a/native/native.tests/testData/codegen/lambda/lambda_kt49360_trivial.kt +++ b/compiler/testData/codegen/box/lambda/lambda_kt49360_trivial.kt @@ -1,3 +1,5 @@ +// WITH_STDLIB +// WITH_COROUTINES import kotlin.test.* import kotlin.coroutines.* diff --git a/native/native.tests/testData/codegen/lambda/lambda_kt49360_withFlow.kt b/compiler/testData/codegen/box/lambda/lambda_kt49360_withFlow.kt similarity index 98% rename from native/native.tests/testData/codegen/lambda/lambda_kt49360_withFlow.kt rename to compiler/testData/codegen/box/lambda/lambda_kt49360_withFlow.kt index 368c9ae52fd..3786263e3a2 100644 --- a/native/native.tests/testData/codegen/lambda/lambda_kt49360_withFlow.kt +++ b/compiler/testData/codegen/box/lambda/lambda_kt49360_withFlow.kt @@ -1,3 +1,5 @@ +// WITH_STDLIB +// WITH_COROUTINES import kotlin.test.* import kotlin.coroutines.* diff --git a/native/native.tests/testData/codegen/lambda/lambda_kt49360_wrapBlock.kt b/compiler/testData/codegen/box/lambda/lambda_kt49360_wrapBlock.kt similarity index 92% rename from native/native.tests/testData/codegen/lambda/lambda_kt49360_wrapBlock.kt rename to compiler/testData/codegen/box/lambda/lambda_kt49360_wrapBlock.kt index 1bee2cfdf61..2b4e2d477d7 100644 --- a/native/native.tests/testData/codegen/lambda/lambda_kt49360_wrapBlock.kt +++ b/compiler/testData/codegen/box/lambda/lambda_kt49360_wrapBlock.kt @@ -1,3 +1,5 @@ +// WITH_STDLIB +// WITH_COROUTINES import kotlin.test.* import kotlin.coroutines.* diff --git a/compiler/testData/codegen/box/lateinit/globalIsInitialized.jvm_abi.txt b/compiler/testData/codegen/box/lateinit/globalIsInitialized.jvm_abi.txt new file mode 100644 index 00000000000..14fdfc1b265 --- /dev/null +++ b/compiler/testData/codegen/box/lateinit/globalIsInitialized.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS GlobalIsInitializedKt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/lateinit/globalIsInitialized.kt b/compiler/testData/codegen/box/lateinit/globalIsInitialized.kt similarity index 90% rename from native/native.tests/testData/codegen/lateinit/globalIsInitialized.kt rename to compiler/testData/codegen/box/lateinit/globalIsInitialized.kt index 91cd81bd87d..09ff0fe01b4 100644 --- a/native/native.tests/testData/codegen/lateinit/globalIsInitialized.kt +++ b/compiler/testData/codegen/box/lateinit/globalIsInitialized.kt @@ -2,6 +2,8 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/lateinit/inBaseClass.kt b/compiler/testData/codegen/box/lateinit/inBaseClass.kt similarity index 96% rename from native/native.tests/testData/codegen/lateinit/inBaseClass.kt rename to compiler/testData/codegen/box/lateinit/inBaseClass.kt index 0243c4ad541..9d8380e8871 100644 --- a/native/native.tests/testData/codegen/lateinit/inBaseClass.kt +++ b/compiler/testData/codegen/box/lateinit/inBaseClass.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/lateinit/initialized.kt b/compiler/testData/codegen/box/lateinit/initialized.kt similarity index 95% rename from native/native.tests/testData/codegen/lateinit/initialized.kt rename to compiler/testData/codegen/box/lateinit/initialized.kt index b0e0c8ff115..52dfc4e2dbd 100644 --- a/native/native.tests/testData/codegen/lateinit/initialized.kt +++ b/compiler/testData/codegen/box/lateinit/initialized.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/lateinit/innerIsInitialized.kt b/compiler/testData/codegen/box/lateinit/innerIsInitialized.kt similarity index 97% rename from native/native.tests/testData/codegen/lateinit/innerIsInitialized.kt rename to compiler/testData/codegen/box/lateinit/innerIsInitialized.kt index 5a03ee1ced8..bd4518f54e1 100644 --- a/native/native.tests/testData/codegen/lateinit/innerIsInitialized.kt +++ b/compiler/testData/codegen/box/lateinit/innerIsInitialized.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/compiler/testData/codegen/box/lateinit/isInitialized.jvm_abi.txt b/compiler/testData/codegen/box/lateinit/isInitialized.jvm_abi.txt new file mode 100644 index 00000000000..3101997a17c --- /dev/null +++ b/compiler/testData/codegen/box/lateinit/isInitialized.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS IsInitializedKt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/lateinit/isInitialized.kt b/compiler/testData/codegen/box/lateinit/isInitialized.kt similarity index 91% rename from native/native.tests/testData/codegen/lateinit/isInitialized.kt rename to compiler/testData/codegen/box/lateinit/isInitialized.kt index 0af9c7b6ff0..f970aef691b 100644 --- a/native/native.tests/testData/codegen/lateinit/isInitialized.kt +++ b/compiler/testData/codegen/box/lateinit/isInitialized.kt @@ -2,6 +2,8 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/lateinit/localCapturedInitialized.kt b/compiler/testData/codegen/box/lateinit/localCapturedInitialized.kt similarity index 94% rename from native/native.tests/testData/codegen/lateinit/localCapturedInitialized.kt rename to compiler/testData/codegen/box/lateinit/localCapturedInitialized.kt index b753635d44d..cfe928a469a 100644 --- a/native/native.tests/testData/codegen/lateinit/localCapturedInitialized.kt +++ b/compiler/testData/codegen/box/lateinit/localCapturedInitialized.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/compiler/testData/codegen/box/lateinit/localCapturedNotInitialized.jvm_abi.txt b/compiler/testData/codegen/box/lateinit/localCapturedNotInitialized.jvm_abi.txt new file mode 100644 index 00000000000..69044ceb419 --- /dev/null +++ b/compiler/testData/codegen/box/lateinit/localCapturedNotInitialized.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS LocalCapturedNotInitializedKt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/lateinit/localCapturedNotInitialized.kt b/compiler/testData/codegen/box/lateinit/localCapturedNotInitialized.kt similarity index 90% rename from native/native.tests/testData/codegen/lateinit/localCapturedNotInitialized.kt rename to compiler/testData/codegen/box/lateinit/localCapturedNotInitialized.kt index 6ff2e102ffc..92649fd09e8 100644 --- a/native/native.tests/testData/codegen/lateinit/localCapturedNotInitialized.kt +++ b/compiler/testData/codegen/box/lateinit/localCapturedNotInitialized.kt @@ -2,6 +2,8 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/lateinit/localInitialized.kt b/compiler/testData/codegen/box/lateinit/localInitialized.kt similarity index 94% rename from native/native.tests/testData/codegen/lateinit/localInitialized.kt rename to compiler/testData/codegen/box/lateinit/localInitialized.kt index fdfdcb58b94..24212e5ac8e 100644 --- a/native/native.tests/testData/codegen/lateinit/localInitialized.kt +++ b/compiler/testData/codegen/box/lateinit/localInitialized.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/compiler/testData/codegen/box/lateinit/localNotInitialized.jvm_abi.txt b/compiler/testData/codegen/box/lateinit/localNotInitialized.jvm_abi.txt new file mode 100644 index 00000000000..065f1623b14 --- /dev/null +++ b/compiler/testData/codegen/box/lateinit/localNotInitialized.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS LocalNotInitializedKt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/lateinit/localNotInitialized.kt b/compiler/testData/codegen/box/lateinit/localNotInitialized.kt similarity index 89% rename from native/native.tests/testData/codegen/lateinit/localNotInitialized.kt rename to compiler/testData/codegen/box/lateinit/localNotInitialized.kt index edfe9116516..785c654b85b 100644 --- a/native/native.tests/testData/codegen/lateinit/localNotInitialized.kt +++ b/compiler/testData/codegen/box/lateinit/localNotInitialized.kt @@ -2,6 +2,8 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB import kotlin.test.* diff --git a/compiler/testData/codegen/box/lateinit/notInitialized.jvm_abi.txt b/compiler/testData/codegen/box/lateinit/notInitialized.jvm_abi.txt new file mode 100644 index 00000000000..a3b9e68bb78 --- /dev/null +++ b/compiler/testData/codegen/box/lateinit/notInitialized.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS NotInitializedKt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/lateinit/notInitialized.kt b/compiler/testData/codegen/box/lateinit/notInitialized.kt similarity index 90% rename from native/native.tests/testData/codegen/lateinit/notInitialized.kt rename to compiler/testData/codegen/box/lateinit/notInitialized.kt index 87066ba0db7..71ab3782586 100644 --- a/native/native.tests/testData/codegen/lateinit/notInitialized.kt +++ b/compiler/testData/codegen/box/lateinit/notInitialized.kt @@ -2,6 +2,8 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/literals/listof1.kt b/compiler/testData/codegen/box/literals/listof1.kt similarity index 100% rename from native/native.tests/testData/codegen/literals/listof1.kt rename to compiler/testData/codegen/box/literals/listof1.kt diff --git a/native/native.tests/testData/codegen/literals/strdedup1.kt b/compiler/testData/codegen/box/literals/strdedup1.kt similarity index 96% rename from native/native.tests/testData/codegen/literals/strdedup1.kt rename to compiler/testData/codegen/box/literals/strdedup1.kt index 977acd4fdc7..01e2d066f12 100644 --- a/native/native.tests/testData/codegen/literals/strdedup1.kt +++ b/compiler/testData/codegen/box/literals/strdedup1.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/compiler/testData/codegen/box/localClass/innerTakesCapturedFromOuter.jvm_abi.txt b/compiler/testData/codegen/box/localClass/innerTakesCapturedFromOuter.jvm_abi.txt new file mode 100644 index 00000000000..763a618ad5c --- /dev/null +++ b/compiler/testData/codegen/box/localClass/innerTakesCapturedFromOuter.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS InnerTakesCapturedFromOuterKt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/localClass/innerTakesCapturedFromOuter.kt b/compiler/testData/codegen/box/localClass/innerTakesCapturedFromOuter.kt similarity index 93% rename from native/native.tests/testData/codegen/localClass/innerTakesCapturedFromOuter.kt rename to compiler/testData/codegen/box/localClass/innerTakesCapturedFromOuter.kt index 246c49b9872..98c6973f1d8 100644 --- a/native/native.tests/testData/codegen/localClass/innerTakesCapturedFromOuter.kt +++ b/compiler/testData/codegen/box/localClass/innerTakesCapturedFromOuter.kt @@ -2,6 +2,8 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/localClass/innerWithCapture.kt b/compiler/testData/codegen/box/localClass/innerWithCapture.kt similarity index 78% rename from native/native.tests/testData/codegen/localClass/innerWithCapture.kt rename to compiler/testData/codegen/box/localClass/innerWithCapture.kt index 2a88d51229b..fb462a28505 100644 --- a/native/native.tests/testData/codegen/localClass/innerWithCapture.kt +++ b/compiler/testData/codegen/box/localClass/innerWithCapture.kt @@ -2,6 +2,9 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// KT-66105: SyntaxError: Identifier 'box' has already been declared +// IGNORE_BACKEND: WASM +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/localClass/localFunctionCallFromLocalClass.kt b/compiler/testData/codegen/box/localClass/localFunctionCallFromLocalClass.kt similarity index 95% rename from native/native.tests/testData/codegen/localClass/localFunctionCallFromLocalClass.kt rename to compiler/testData/codegen/box/localClass/localFunctionCallFromLocalClass.kt index 19fb8ecdbbe..dedb824e883 100644 --- a/native/native.tests/testData/codegen/localClass/localFunctionCallFromLocalClass.kt +++ b/compiler/testData/codegen/box/localClass/localFunctionCallFromLocalClass.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/localClass/localFunctionInLocalClass.kt b/compiler/testData/codegen/box/localClass/localFunctionInLocalClass.kt similarity index 97% rename from native/native.tests/testData/codegen/localClass/localFunctionInLocalClass.kt rename to compiler/testData/codegen/box/localClass/localFunctionInLocalClass.kt index 9858f5c0ee3..5c793f90043 100644 --- a/native/native.tests/testData/codegen/localClass/localFunctionInLocalClass.kt +++ b/compiler/testData/codegen/box/localClass/localFunctionInLocalClass.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/localClass/localHierarchy.kt b/compiler/testData/codegen/box/localClass/localHierarchy.kt similarity index 96% rename from native/native.tests/testData/codegen/localClass/localHierarchy.kt rename to compiler/testData/codegen/box/localClass/localHierarchy.kt index bd25a45a93c..f4c0dff5f05 100644 --- a/native/native.tests/testData/codegen/localClass/localHierarchy.kt +++ b/compiler/testData/codegen/box/localClass/localHierarchy.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/localClass/noPrimaryConstructor.kt b/compiler/testData/codegen/box/localClass/noPrimaryConstructor.kt similarity index 83% rename from native/native.tests/testData/codegen/localClass/noPrimaryConstructor.kt rename to compiler/testData/codegen/box/localClass/noPrimaryConstructor.kt index e602a91a66a..4738ddc090d 100644 --- a/native/native.tests/testData/codegen/localClass/noPrimaryConstructor.kt +++ b/compiler/testData/codegen/box/localClass/noPrimaryConstructor.kt @@ -2,6 +2,9 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// KT-66105: SyntaxError: Identifier 'box' has already been declared +// IGNORE_BACKEND: WASM +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/localClass/objectExpressionInInitializer.kt b/compiler/testData/codegen/box/localClass/objectExpressionInInitializer.kt similarity index 97% rename from native/native.tests/testData/codegen/localClass/objectExpressionInInitializer.kt rename to compiler/testData/codegen/box/localClass/objectExpressionInInitializer.kt index 169d0507b09..f331282886c 100644 --- a/native/native.tests/testData/codegen/localClass/objectExpressionInInitializer.kt +++ b/compiler/testData/codegen/box/localClass/objectExpressionInInitializer.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/localClass/objectExpressionInProperty.kt b/compiler/testData/codegen/box/localClass/objectExpressionInProperty.kt similarity index 97% rename from native/native.tests/testData/codegen/localClass/objectExpressionInProperty.kt rename to compiler/testData/codegen/box/localClass/objectExpressionInProperty.kt index f7432b09e38..be2b98f59d8 100644 --- a/native/native.tests/testData/codegen/localClass/objectExpressionInProperty.kt +++ b/compiler/testData/codegen/box/localClass/objectExpressionInProperty.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/compiler/testData/codegen/box/localClass/tryCatch.jvm_abi.txt b/compiler/testData/codegen/box/localClass/tryCatch.jvm_abi.txt new file mode 100644 index 00000000000..e90df2e430c --- /dev/null +++ b/compiler/testData/codegen/box/localClass/tryCatch.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS TryCatchKt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/localClass/tryCatch.kt b/compiler/testData/codegen/box/localClass/tryCatch.kt similarity index 92% rename from native/native.tests/testData/codegen/localClass/tryCatch.kt rename to compiler/testData/codegen/box/localClass/tryCatch.kt index 7459a422448..cfeb4282d25 100644 --- a/native/native.tests/testData/codegen/localClass/tryCatch.kt +++ b/compiler/testData/codegen/box/localClass/tryCatch.kt @@ -2,6 +2,8 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/localClass/virtualCallFromConstructor.kt b/compiler/testData/codegen/box/localClass/virtualCallFromConstructor.kt similarity index 97% rename from native/native.tests/testData/codegen/localClass/virtualCallFromConstructor.kt rename to compiler/testData/codegen/box/localClass/virtualCallFromConstructor.kt index 61709780c62..202a0d381a7 100644 --- a/native/native.tests/testData/codegen/localClass/virtualCallFromConstructor.kt +++ b/compiler/testData/codegen/box/localClass/virtualCallFromConstructor.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/compiler/testData/codegen/box/localEscapeAnalysis/arraysFieldWrite.jvm_abi.txt b/compiler/testData/codegen/box/localEscapeAnalysis/arraysFieldWrite.jvm_abi.txt new file mode 100644 index 00000000000..4841035453c --- /dev/null +++ b/compiler/testData/codegen/box/localEscapeAnalysis/arraysFieldWrite.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS ArraysFieldWriteKt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/localEscapeAnalysis/arraysFieldWrite.kt b/compiler/testData/codegen/box/localEscapeAnalysis/arraysFieldWrite.kt similarity index 98% rename from native/native.tests/testData/codegen/localEscapeAnalysis/arraysFieldWrite.kt rename to compiler/testData/codegen/box/localEscapeAnalysis/arraysFieldWrite.kt index a755e663255..3a13ff1bd6d 100644 --- a/native/native.tests/testData/codegen/localEscapeAnalysis/arraysFieldWrite.kt +++ b/compiler/testData/codegen/box/localEscapeAnalysis/arraysFieldWrite.kt @@ -2,6 +2,8 @@ * Copyright 2010-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB import kotlin.test.* val sb = StringBuilder() diff --git a/native/native.tests/testData/codegen/lower/localDelegatedProperty.kt b/compiler/testData/codegen/box/lower/localDelegatedProperty.kt similarity index 92% rename from native/native.tests/testData/codegen/lower/localDelegatedProperty.kt rename to compiler/testData/codegen/box/lower/localDelegatedProperty.kt index d9a0e67afe2..80594d72178 100644 --- a/native/native.tests/testData/codegen/lower/localDelegatedProperty.kt +++ b/compiler/testData/codegen/box/lower/localDelegatedProperty.kt @@ -1,3 +1,4 @@ +// WITH_STDLIB // MODULE: lib // FILE: lib.kt diff --git a/native/native.tests/testData/codegen/mangling/multipleConstructors.kt b/compiler/testData/codegen/box/mangling/multipleConstructors.kt similarity index 97% rename from native/native.tests/testData/codegen/mangling/multipleConstructors.kt rename to compiler/testData/codegen/box/mangling/multipleConstructors.kt index a009b73fc24..2dde1fd551a 100644 --- a/native/native.tests/testData/codegen/mangling/multipleConstructors.kt +++ b/compiler/testData/codegen/box/mangling/multipleConstructors.kt @@ -1,3 +1,4 @@ +// WITH_STDLIB // MODULE: lib // FILE: lib.kt diff --git a/native/native.tests/testData/codegen/object/constructor0.kt b/compiler/testData/codegen/box/object/constructor0.kt similarity index 95% rename from native/native.tests/testData/codegen/object/constructor0.kt rename to compiler/testData/codegen/box/object/constructor0.kt index b38bd4cff7b..112b0799b7a 100644 --- a/native/native.tests/testData/codegen/object/constructor0.kt +++ b/compiler/testData/codegen/box/object/constructor0.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/object/fields.kt b/compiler/testData/codegen/box/object/fields.kt similarity index 96% rename from native/native.tests/testData/codegen/object/fields.kt rename to compiler/testData/codegen/box/object/fields.kt index 24f9c1e9247..a8638d4f65a 100644 --- a/native/native.tests/testData/codegen/object/fields.kt +++ b/compiler/testData/codegen/box/object/fields.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/object/fields1.kt b/compiler/testData/codegen/box/object/fields1.kt similarity index 97% rename from native/native.tests/testData/codegen/object/fields1.kt rename to compiler/testData/codegen/box/object/fields1.kt index 6fdbbce4c05..1f7b992e35e 100644 --- a/native/native.tests/testData/codegen/object/fields1.kt +++ b/compiler/testData/codegen/box/object/fields1.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/compiler/testData/codegen/box/object/fields2.jvm_abi.txt b/compiler/testData/codegen/box/object/fields2.jvm_abi.txt new file mode 100644 index 00000000000..65d1311d68c --- /dev/null +++ b/compiler/testData/codegen/box/object/fields2.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS Fields2Kt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/object/fields2.kt b/compiler/testData/codegen/box/object/fields2.kt similarity index 95% rename from native/native.tests/testData/codegen/object/fields2.kt rename to compiler/testData/codegen/box/object/fields2.kt index 887682fa727..9f418c264d5 100644 --- a/native/native.tests/testData/codegen/object/fields2.kt +++ b/compiler/testData/codegen/box/object/fields2.kt @@ -2,6 +2,8 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/object/globalInitializer.kt b/compiler/testData/codegen/box/object/globalInitializer.kt similarity index 100% rename from native/native.tests/testData/codegen/object/globalInitializer.kt rename to compiler/testData/codegen/box/object/globalInitializer.kt diff --git a/native/native.tests/testData/codegen/object/init0.kt b/compiler/testData/codegen/box/object/init0.kt similarity index 95% rename from native/native.tests/testData/codegen/object/init0.kt rename to compiler/testData/codegen/box/object/init0.kt index 641d308b764..1ed487db8ec 100644 --- a/native/native.tests/testData/codegen/object/init0.kt +++ b/compiler/testData/codegen/box/object/init0.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/object/initialization.kt b/compiler/testData/codegen/box/object/initialization.kt similarity index 97% rename from native/native.tests/testData/codegen/object/initialization.kt rename to compiler/testData/codegen/box/object/initialization.kt index d28b700a201..25c0a406d9a 100644 --- a/native/native.tests/testData/codegen/object/initialization.kt +++ b/compiler/testData/codegen/box/object/initialization.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/compiler/testData/codegen/box/object/initialization1.jvm_abi.txt b/compiler/testData/codegen/box/object/initialization1.jvm_abi.txt new file mode 100644 index 00000000000..e6d3fc4cc37 --- /dev/null +++ b/compiler/testData/codegen/box/object/initialization1.jvm_abi.txt @@ -0,0 +1,17 @@ +MODULE main + CLASS TestClass.class + CLASS METADATA + PROPERTY getF()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder + CLASS Initialization1Kt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/object/initialization1.kt b/compiler/testData/codegen/box/object/initialization1.kt similarity index 93% rename from native/native.tests/testData/codegen/object/initialization1.kt rename to compiler/testData/codegen/box/object/initialization1.kt index 63f9fc28835..48e61cca266 100644 --- a/native/native.tests/testData/codegen/object/initialization1.kt +++ b/compiler/testData/codegen/box/object/initialization1.kt @@ -2,6 +2,8 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/object/method_call.kt b/compiler/testData/codegen/box/object/method_call.kt similarity index 95% rename from native/native.tests/testData/codegen/object/method_call.kt rename to compiler/testData/codegen/box/object/method_call.kt index ef9d7de3d57..ed2aed88b95 100644 --- a/native/native.tests/testData/codegen/object/method_call.kt +++ b/compiler/testData/codegen/box/object/method_call.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/objectExpression/expr1.kt b/compiler/testData/codegen/box/objectExpression/expr1.kt similarity index 96% rename from native/native.tests/testData/codegen/objectExpression/expr1.kt rename to compiler/testData/codegen/box/objectExpression/expr1.kt index 2b68f000c5f..8866fcfd36a 100644 --- a/native/native.tests/testData/codegen/objectExpression/expr1.kt +++ b/compiler/testData/codegen/box/objectExpression/expr1.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/objectExpression/expr2.kt b/compiler/testData/codegen/box/objectExpression/expr2.kt similarity index 96% rename from native/native.tests/testData/codegen/objectExpression/expr2.kt rename to compiler/testData/codegen/box/objectExpression/expr2.kt index 6d4de2f2dbe..3eb887143ff 100644 --- a/native/native.tests/testData/codegen/objectExpression/expr2.kt +++ b/compiler/testData/codegen/box/objectExpression/expr2.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/compiler/testData/codegen/box/objectExpression/expr3.jvm_abi.txt b/compiler/testData/codegen/box/objectExpression/expr3.jvm_abi.txt new file mode 100644 index 00000000000..68466972f75 --- /dev/null +++ b/compiler/testData/codegen/box/objectExpression/expr3.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS Expr3Kt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/objectExpression/expr3.kt b/compiler/testData/codegen/box/objectExpression/expr3.kt similarity index 92% rename from native/native.tests/testData/codegen/objectExpression/expr3.kt rename to compiler/testData/codegen/box/objectExpression/expr3.kt index c6c7f8f701b..301ac1ab9c8 100644 --- a/native/native.tests/testData/codegen/objectExpression/expr3.kt +++ b/compiler/testData/codegen/box/objectExpression/expr3.kt @@ -2,6 +2,8 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB import kotlin.test.* diff --git a/compiler/testData/codegen/box/propertyCallableReference/dynamicReceiver.jvm_abi.txt b/compiler/testData/codegen/box/propertyCallableReference/dynamicReceiver.jvm_abi.txt new file mode 100644 index 00000000000..86482f92e12 --- /dev/null +++ b/compiler/testData/codegen/box/propertyCallableReference/dynamicReceiver.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS DynamicReceiverKt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/propertyCallableReference/dynamicReceiver.kt b/compiler/testData/codegen/box/propertyCallableReference/dynamicReceiver.kt similarity index 89% rename from native/native.tests/testData/codegen/propertyCallableReference/dynamicReceiver.kt rename to compiler/testData/codegen/box/propertyCallableReference/dynamicReceiver.kt index d325e547ea8..00e7ec269a3 100644 --- a/native/native.tests/testData/codegen/propertyCallableReference/dynamicReceiver.kt +++ b/compiler/testData/codegen/box/propertyCallableReference/dynamicReceiver.kt @@ -2,6 +2,8 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/propertyCallableReference/multipleModules.kt b/compiler/testData/codegen/box/propertyCallableReference/multipleModules.kt similarity index 100% rename from native/native.tests/testData/codegen/propertyCallableReference/multipleModules.kt rename to compiler/testData/codegen/box/propertyCallableReference/multipleModules.kt diff --git a/native/native.tests/testData/codegen/propertyCallableReference/valClass.kt b/compiler/testData/codegen/box/propertyCallableReference/valClass.kt similarity index 95% rename from native/native.tests/testData/codegen/propertyCallableReference/valClass.kt rename to compiler/testData/codegen/box/propertyCallableReference/valClass.kt index 0f57d0f91e4..a004e21bf55 100644 --- a/native/native.tests/testData/codegen/propertyCallableReference/valClass.kt +++ b/compiler/testData/codegen/box/propertyCallableReference/valClass.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/propertyCallableReference/valExtension.kt b/compiler/testData/codegen/box/propertyCallableReference/valExtension.kt similarity index 96% rename from native/native.tests/testData/codegen/propertyCallableReference/valExtension.kt rename to compiler/testData/codegen/box/propertyCallableReference/valExtension.kt index 440275b1d9d..d445fba4b85 100644 --- a/native/native.tests/testData/codegen/propertyCallableReference/valExtension.kt +++ b/compiler/testData/codegen/box/propertyCallableReference/valExtension.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/propertyCallableReference/valModule.kt b/compiler/testData/codegen/box/propertyCallableReference/valModule.kt similarity index 94% rename from native/native.tests/testData/codegen/propertyCallableReference/valModule.kt rename to compiler/testData/codegen/box/propertyCallableReference/valModule.kt index b7eec0b1545..1a0c79076db 100644 --- a/native/native.tests/testData/codegen/propertyCallableReference/valModule.kt +++ b/compiler/testData/codegen/box/propertyCallableReference/valModule.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/propertyCallableReference/varClass.kt b/compiler/testData/codegen/box/propertyCallableReference/varClass.kt similarity index 96% rename from native/native.tests/testData/codegen/propertyCallableReference/varClass.kt rename to compiler/testData/codegen/box/propertyCallableReference/varClass.kt index 638e4725111..4797df824bd 100644 --- a/native/native.tests/testData/codegen/propertyCallableReference/varClass.kt +++ b/compiler/testData/codegen/box/propertyCallableReference/varClass.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/propertyCallableReference/varExtension.kt b/compiler/testData/codegen/box/propertyCallableReference/varExtension.kt similarity index 97% rename from native/native.tests/testData/codegen/propertyCallableReference/varExtension.kt rename to compiler/testData/codegen/box/propertyCallableReference/varExtension.kt index d2de143f184..557038ef3c0 100644 --- a/native/native.tests/testData/codegen/propertyCallableReference/varExtension.kt +++ b/compiler/testData/codegen/box/propertyCallableReference/varExtension.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/propertyCallableReference/varModule.kt b/compiler/testData/codegen/box/propertyCallableReference/varModule.kt similarity index 95% rename from native/native.tests/testData/codegen/propertyCallableReference/varModule.kt rename to compiler/testData/codegen/box/propertyCallableReference/varModule.kt index 4088a6b1388..613b0798a01 100644 --- a/native/native.tests/testData/codegen/propertyCallableReference/varModule.kt +++ b/compiler/testData/codegen/box/propertyCallableReference/varModule.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/compiler/testData/codegen/box/serialization/deserializedMembers.jvm_abi.txt b/compiler/testData/codegen/box/serialization/deserializedMembers.jvm_abi.txt new file mode 100644 index 00000000000..8b264fa5581 --- /dev/null +++ b/compiler/testData/codegen/box/serialization/deserializedMembers.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE lib + CLASS foo/bar/LibKt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/serialization/deserializedMembers.kt b/compiler/testData/codegen/box/serialization/deserializedMembers.kt similarity index 92% rename from native/native.tests/testData/codegen/serialization/deserializedMembers.kt rename to compiler/testData/codegen/box/serialization/deserializedMembers.kt index f9b1056fcd6..4f524f2fc89 100644 --- a/native/native.tests/testData/codegen/serialization/deserializedMembers.kt +++ b/compiler/testData/codegen/box/serialization/deserializedMembers.kt @@ -1,3 +1,10 @@ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// KT-54635: Kotlin/JS cannot distinguish between Int and Double at runtime +// Expected: types third level 1.0 +// Actual: types third level 1 +// IGNORE_BACKEND: JS_IR, JS_IR_ES6 + +// WITH_STDLIB // MODULE: lib // FILE: lib.kt diff --git a/native/native.tests/testData/codegen/serialization/serializedCatch.kt b/compiler/testData/codegen/box/serialization/serializedCatch.kt similarity index 100% rename from native/native.tests/testData/codegen/serialization/serializedCatch.kt rename to compiler/testData/codegen/box/serialization/serializedCatch.kt diff --git a/native/native.tests/testData/codegen/serialization/serializedCharConstant.kt b/compiler/testData/codegen/box/serialization/serializedCharConstant.kt similarity index 93% rename from native/native.tests/testData/codegen/serialization/serializedCharConstant.kt rename to compiler/testData/codegen/box/serialization/serializedCharConstant.kt index 5566a0d4ea6..e6410964ee7 100644 --- a/native/native.tests/testData/codegen/serialization/serializedCharConstant.kt +++ b/compiler/testData/codegen/box/serialization/serializedCharConstant.kt @@ -1,3 +1,4 @@ +// WITH_STDLIB // MODULE: lib // FILE: lib.kt diff --git a/native/native.tests/testData/codegen/serialization/serializedDefaultArgs.kt b/compiler/testData/codegen/box/serialization/serializedDefaultArgs.kt similarity index 95% rename from native/native.tests/testData/codegen/serialization/serializedDefaultArgs.kt rename to compiler/testData/codegen/box/serialization/serializedDefaultArgs.kt index 7807bea87b5..164e4c124d1 100644 --- a/native/native.tests/testData/codegen/serialization/serializedDefaultArgs.kt +++ b/compiler/testData/codegen/box/serialization/serializedDefaultArgs.kt @@ -1,3 +1,4 @@ +// WITH_STDLIB // MODULE: lib // FILE: lib.kt diff --git a/compiler/testData/codegen/box/serialization/serializedDoWhile.jvm_abi.txt b/compiler/testData/codegen/box/serialization/serializedDoWhile.jvm_abi.txt new file mode 100644 index 00000000000..ae0798862c0 --- /dev/null +++ b/compiler/testData/codegen/box/serialization/serializedDoWhile.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE lib + CLASS LibKt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/serialization/serializedDoWhile.kt b/compiler/testData/codegen/box/serialization/serializedDoWhile.kt similarity index 84% rename from native/native.tests/testData/codegen/serialization/serializedDoWhile.kt rename to compiler/testData/codegen/box/serialization/serializedDoWhile.kt index 83c76906b27..5a5deca1a05 100644 --- a/native/native.tests/testData/codegen/serialization/serializedDoWhile.kt +++ b/compiler/testData/codegen/box/serialization/serializedDoWhile.kt @@ -1,3 +1,5 @@ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB // MODULE: lib // FILE: lib.kt diff --git a/native/native.tests/testData/codegen/serialization/serializedEnumOrdinal.kt b/compiler/testData/codegen/box/serialization/serializedEnumOrdinal.kt similarity index 97% rename from native/native.tests/testData/codegen/serialization/serializedEnumOrdinal.kt rename to compiler/testData/codegen/box/serialization/serializedEnumOrdinal.kt index 41d1a415c98..d3d683abc6d 100644 --- a/native/native.tests/testData/codegen/serialization/serializedEnumOrdinal.kt +++ b/compiler/testData/codegen/box/serialization/serializedEnumOrdinal.kt @@ -1,3 +1,4 @@ +// WITH_STDLIB // MODULE: lib // FILE: lib.kt diff --git a/compiler/testData/codegen/box/serialization/serializedVararg.jvm_abi.txt b/compiler/testData/codegen/box/serialization/serializedVararg.jvm_abi.txt new file mode 100644 index 00000000000..ae0798862c0 --- /dev/null +++ b/compiler/testData/codegen/box/serialization/serializedVararg.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE lib + CLASS LibKt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/serialization/serializedVararg.kt b/compiler/testData/codegen/box/serialization/serializedVararg.kt similarity index 90% rename from native/native.tests/testData/codegen/serialization/serializedVararg.kt rename to compiler/testData/codegen/box/serialization/serializedVararg.kt index 2eec01b872e..23e502aa7f8 100644 --- a/native/native.tests/testData/codegen/serialization/serializedVararg.kt +++ b/compiler/testData/codegen/box/serialization/serializedVararg.kt @@ -1,3 +1,5 @@ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB // MODULE: lib // FILE: lib.kt diff --git a/native/native.tests/testData/codegen/stringTrim/stringTrim.kt b/compiler/testData/codegen/box/stringTrim/stringTrim.kt similarity index 97% rename from native/native.tests/testData/codegen/stringTrim/stringTrim.kt rename to compiler/testData/codegen/box/stringTrim/stringTrim.kt index d7673a0e7e8..ced9f89eb24 100644 --- a/native/native.tests/testData/codegen/stringTrim/stringTrim.kt +++ b/compiler/testData/codegen/box/stringTrim/stringTrim.kt @@ -2,6 +2,7 @@ * Copyright 2010-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/compiler/testData/codegen/box/try/catch3.jvm_abi.txt b/compiler/testData/codegen/box/try/catch3.jvm_abi.txt new file mode 100644 index 00000000000..96436cc1d6e --- /dev/null +++ b/compiler/testData/codegen/box/try/catch3.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS Catch3Kt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/try/catch3.kt b/compiler/testData/codegen/box/try/catch3.kt similarity index 92% rename from native/native.tests/testData/codegen/try/catch3.kt rename to compiler/testData/codegen/box/try/catch3.kt index 8d723f1e47c..03c7ae06ab5 100644 --- a/native/native.tests/testData/codegen/try/catch3.kt +++ b/compiler/testData/codegen/box/try/catch3.kt @@ -2,6 +2,8 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB import kotlin.test.* diff --git a/compiler/testData/codegen/box/try/catch4.jvm_abi.txt b/compiler/testData/codegen/box/try/catch4.jvm_abi.txt new file mode 100644 index 00000000000..06feccfd568 --- /dev/null +++ b/compiler/testData/codegen/box/try/catch4.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS Catch4Kt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/try/catch4.kt b/compiler/testData/codegen/box/try/catch4.kt similarity index 93% rename from native/native.tests/testData/codegen/try/catch4.kt rename to compiler/testData/codegen/box/try/catch4.kt index 6b830f9dff1..908ecedcae6 100644 --- a/native/native.tests/testData/codegen/try/catch4.kt +++ b/compiler/testData/codegen/box/try/catch4.kt @@ -2,6 +2,8 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB import kotlin.test.* diff --git a/compiler/testData/codegen/box/try/catch5.jvm_abi.txt b/compiler/testData/codegen/box/try/catch5.jvm_abi.txt new file mode 100644 index 00000000000..55afd761005 --- /dev/null +++ b/compiler/testData/codegen/box/try/catch5.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS Catch5Kt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/try/catch5.kt b/compiler/testData/codegen/box/try/catch5.kt similarity index 94% rename from native/native.tests/testData/codegen/try/catch5.kt rename to compiler/testData/codegen/box/try/catch5.kt index 2cc0524f452..69daa511c8c 100644 --- a/native/native.tests/testData/codegen/try/catch5.kt +++ b/compiler/testData/codegen/box/try/catch5.kt @@ -2,6 +2,8 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB import kotlin.test.* diff --git a/compiler/testData/codegen/box/try/catch6.jvm_abi.txt b/compiler/testData/codegen/box/try/catch6.jvm_abi.txt new file mode 100644 index 00000000000..b2d124b5770 --- /dev/null +++ b/compiler/testData/codegen/box/try/catch6.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS Catch6Kt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/try/catch6.kt b/compiler/testData/codegen/box/try/catch6.kt similarity index 94% rename from native/native.tests/testData/codegen/try/catch6.kt rename to compiler/testData/codegen/box/try/catch6.kt index ebbaab9a6f9..e6fc7010fa3 100644 --- a/native/native.tests/testData/codegen/try/catch6.kt +++ b/compiler/testData/codegen/box/try/catch6.kt @@ -2,6 +2,8 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB import kotlin.test.* diff --git a/compiler/testData/codegen/box/try/catch8.jvm_abi.txt b/compiler/testData/codegen/box/try/catch8.jvm_abi.txt new file mode 100644 index 00000000000..4dd85c5ec12 --- /dev/null +++ b/compiler/testData/codegen/box/try/catch8.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS Catch8Kt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/try/catch8.kt b/compiler/testData/codegen/box/try/catch8.kt similarity index 91% rename from native/native.tests/testData/codegen/try/catch8.kt rename to compiler/testData/codegen/box/try/catch8.kt index 785eca71f84..f2de0664098 100644 --- a/native/native.tests/testData/codegen/try/catch8.kt +++ b/compiler/testData/codegen/box/try/catch8.kt @@ -2,6 +2,8 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB import kotlin.test.* diff --git a/compiler/testData/codegen/box/try/finally1.jvm_abi.txt b/compiler/testData/codegen/box/try/finally1.jvm_abi.txt new file mode 100644 index 00000000000..1e7812860e0 --- /dev/null +++ b/compiler/testData/codegen/box/try/finally1.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS Finally1Kt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/try/finally1.kt b/compiler/testData/codegen/box/try/finally1.kt similarity index 90% rename from native/native.tests/testData/codegen/try/finally1.kt rename to compiler/testData/codegen/box/try/finally1.kt index 40cf69ae136..e47a0de1e9a 100644 --- a/native/native.tests/testData/codegen/try/finally1.kt +++ b/compiler/testData/codegen/box/try/finally1.kt @@ -2,6 +2,8 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB import kotlin.test.* diff --git a/compiler/testData/codegen/box/try/finally10.jvm_abi.txt b/compiler/testData/codegen/box/try/finally10.jvm_abi.txt new file mode 100644 index 00000000000..068d547a122 --- /dev/null +++ b/compiler/testData/codegen/box/try/finally10.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS Finally10Kt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/try/finally10.kt b/compiler/testData/codegen/box/try/finally10.kt similarity index 91% rename from native/native.tests/testData/codegen/try/finally10.kt rename to compiler/testData/codegen/box/try/finally10.kt index fbeae103283..8d362dc6ffa 100644 --- a/native/native.tests/testData/codegen/try/finally10.kt +++ b/compiler/testData/codegen/box/try/finally10.kt @@ -2,6 +2,8 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB import kotlin.test.* diff --git a/compiler/testData/codegen/box/try/finally11.jvm_abi.txt b/compiler/testData/codegen/box/try/finally11.jvm_abi.txt new file mode 100644 index 00000000000..5f3db865ad9 --- /dev/null +++ b/compiler/testData/codegen/box/try/finally11.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS Finally11Kt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/try/finally11.kt b/compiler/testData/codegen/box/try/finally11.kt similarity index 93% rename from native/native.tests/testData/codegen/try/finally11.kt rename to compiler/testData/codegen/box/try/finally11.kt index 48119b706e0..6bf2a58b568 100644 --- a/native/native.tests/testData/codegen/try/finally11.kt +++ b/compiler/testData/codegen/box/try/finally11.kt @@ -2,6 +2,8 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB import kotlin.test.* diff --git a/compiler/testData/codegen/box/try/finally2.jvm_abi.txt b/compiler/testData/codegen/box/try/finally2.jvm_abi.txt new file mode 100644 index 00000000000..a57f058cbdd --- /dev/null +++ b/compiler/testData/codegen/box/try/finally2.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS Finally2Kt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/try/finally2.kt b/compiler/testData/codegen/box/try/finally2.kt similarity index 92% rename from native/native.tests/testData/codegen/try/finally2.kt rename to compiler/testData/codegen/box/try/finally2.kt index 1d7bacee1e4..e41037d2c88 100644 --- a/native/native.tests/testData/codegen/try/finally2.kt +++ b/compiler/testData/codegen/box/try/finally2.kt @@ -2,6 +2,8 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB import kotlin.test.* diff --git a/compiler/testData/codegen/box/try/finally3.jvm_abi.txt b/compiler/testData/codegen/box/try/finally3.jvm_abi.txt new file mode 100644 index 00000000000..61222fdba7e --- /dev/null +++ b/compiler/testData/codegen/box/try/finally3.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS Finally3Kt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/try/finally3.kt b/compiler/testData/codegen/box/try/finally3.kt similarity index 93% rename from native/native.tests/testData/codegen/try/finally3.kt rename to compiler/testData/codegen/box/try/finally3.kt index c0eef067a1c..42ba7b52156 100644 --- a/native/native.tests/testData/codegen/try/finally3.kt +++ b/compiler/testData/codegen/box/try/finally3.kt @@ -2,6 +2,8 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB import kotlin.test.* diff --git a/compiler/testData/codegen/box/try/finally4.jvm_abi.txt b/compiler/testData/codegen/box/try/finally4.jvm_abi.txt new file mode 100644 index 00000000000..59a1ff613c9 --- /dev/null +++ b/compiler/testData/codegen/box/try/finally4.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS Finally4Kt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/try/finally4.kt b/compiler/testData/codegen/box/try/finally4.kt similarity index 95% rename from native/native.tests/testData/codegen/try/finally4.kt rename to compiler/testData/codegen/box/try/finally4.kt index f894afe13a9..d78a701cf90 100644 --- a/native/native.tests/testData/codegen/try/finally4.kt +++ b/compiler/testData/codegen/box/try/finally4.kt @@ -2,6 +2,8 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB import kotlin.test.* diff --git a/compiler/testData/codegen/box/try/finally5.jvm_abi.txt b/compiler/testData/codegen/box/try/finally5.jvm_abi.txt new file mode 100644 index 00000000000..cf4703aec67 --- /dev/null +++ b/compiler/testData/codegen/box/try/finally5.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS Finally5Kt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/try/finally5.kt b/compiler/testData/codegen/box/try/finally5.kt similarity index 91% rename from native/native.tests/testData/codegen/try/finally5.kt rename to compiler/testData/codegen/box/try/finally5.kt index 7c69526bcbd..2f47f99f540 100644 --- a/native/native.tests/testData/codegen/try/finally5.kt +++ b/compiler/testData/codegen/box/try/finally5.kt @@ -2,6 +2,8 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB import kotlin.test.* diff --git a/compiler/testData/codegen/box/try/finally6.jvm_abi.txt b/compiler/testData/codegen/box/try/finally6.jvm_abi.txt new file mode 100644 index 00000000000..a4c6d430637 --- /dev/null +++ b/compiler/testData/codegen/box/try/finally6.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS Finally6Kt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/try/finally6.kt b/compiler/testData/codegen/box/try/finally6.kt similarity index 92% rename from native/native.tests/testData/codegen/try/finally6.kt rename to compiler/testData/codegen/box/try/finally6.kt index 1ef5a0cf1ff..3aa908b3789 100644 --- a/native/native.tests/testData/codegen/try/finally6.kt +++ b/compiler/testData/codegen/box/try/finally6.kt @@ -2,6 +2,8 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB import kotlin.test.* diff --git a/compiler/testData/codegen/box/try/finally7.jvm_abi.txt b/compiler/testData/codegen/box/try/finally7.jvm_abi.txt new file mode 100644 index 00000000000..74285d1d9d7 --- /dev/null +++ b/compiler/testData/codegen/box/try/finally7.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS Finally7Kt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/try/finally7.kt b/compiler/testData/codegen/box/try/finally7.kt similarity index 92% rename from native/native.tests/testData/codegen/try/finally7.kt rename to compiler/testData/codegen/box/try/finally7.kt index 55956e076e5..5ca1b564586 100644 --- a/native/native.tests/testData/codegen/try/finally7.kt +++ b/compiler/testData/codegen/box/try/finally7.kt @@ -2,6 +2,8 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB import kotlin.test.* diff --git a/compiler/testData/codegen/box/try/finally8.jvm_abi.txt b/compiler/testData/codegen/box/try/finally8.jvm_abi.txt new file mode 100644 index 00000000000..98f8e859215 --- /dev/null +++ b/compiler/testData/codegen/box/try/finally8.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS Finally8Kt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/try/finally8.kt b/compiler/testData/codegen/box/try/finally8.kt similarity index 92% rename from native/native.tests/testData/codegen/try/finally8.kt rename to compiler/testData/codegen/box/try/finally8.kt index f2234c7ac5c..a558c43b063 100644 --- a/native/native.tests/testData/codegen/try/finally8.kt +++ b/compiler/testData/codegen/box/try/finally8.kt @@ -2,6 +2,8 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB import kotlin.test.* diff --git a/compiler/testData/codegen/box/try/finally9.jvm_abi.txt b/compiler/testData/codegen/box/try/finally9.jvm_abi.txt new file mode 100644 index 00000000000..e4dbb6ddc86 --- /dev/null +++ b/compiler/testData/codegen/box/try/finally9.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS Finally9Kt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/try/finally9.kt b/compiler/testData/codegen/box/try/finally9.kt similarity index 93% rename from native/native.tests/testData/codegen/try/finally9.kt rename to compiler/testData/codegen/box/try/finally9.kt index 459a2005a29..edbcaac8c66 100644 --- a/native/native.tests/testData/codegen/try/finally9.kt +++ b/compiler/testData/codegen/box/try/finally9.kt @@ -2,6 +2,8 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB import kotlin.test.* diff --git a/compiler/testData/codegen/box/try/returnsDifferentTypes.jvm_abi.txt b/compiler/testData/codegen/box/try/returnsDifferentTypes.jvm_abi.txt new file mode 100644 index 00000000000..1d4abe8ccbf --- /dev/null +++ b/compiler/testData/codegen/box/try/returnsDifferentTypes.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS ReturnsDifferentTypesKt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/try/returnsDifferentTypes.kt b/compiler/testData/codegen/box/try/returnsDifferentTypes.kt similarity index 95% rename from native/native.tests/testData/codegen/try/returnsDifferentTypes.kt rename to compiler/testData/codegen/box/try/returnsDifferentTypes.kt index 7a1cd2b6f8c..3173a497393 100644 --- a/native/native.tests/testData/codegen/try/returnsDifferentTypes.kt +++ b/compiler/testData/codegen/box/try/returnsDifferentTypes.kt @@ -2,6 +2,8 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/try/try1.kt b/compiler/testData/codegen/box/try/try1.kt similarity index 95% rename from native/native.tests/testData/codegen/try/try1.kt rename to compiler/testData/codegen/box/try/try1.kt index f8aa8951269..883650b828a 100644 --- a/native/native.tests/testData/codegen/try/try1.kt +++ b/compiler/testData/codegen/box/try/try1.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/try/try2.kt b/compiler/testData/codegen/box/try/try2.kt similarity index 95% rename from native/native.tests/testData/codegen/try/try2.kt rename to compiler/testData/codegen/box/try/try2.kt index fe00c576e96..e77f02d0a1a 100644 --- a/native/native.tests/testData/codegen/try/try2.kt +++ b/compiler/testData/codegen/box/try/try2.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/native/native.tests/testData/codegen/try/try3.kt b/compiler/testData/codegen/box/try/try3.kt similarity index 95% rename from native/native.tests/testData/codegen/try/try3.kt rename to compiler/testData/codegen/box/try/try3.kt index 5e8887b0c97..6e291267d45 100644 --- a/native/native.tests/testData/codegen/try/try3.kt +++ b/compiler/testData/codegen/box/try/try3.kt @@ -2,6 +2,7 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// WITH_STDLIB import kotlin.test.* diff --git a/compiler/testData/codegen/box/try/try4.jvm_abi.txt b/compiler/testData/codegen/box/try/try4.jvm_abi.txt new file mode 100644 index 00000000000..985cd56816e --- /dev/null +++ b/compiler/testData/codegen/box/try/try4.jvm_abi.txt @@ -0,0 +1,9 @@ +MODULE main + CLASS Try4Kt.class + PACKAGE METADATA + PROPERTY getSb()Ljava/lang/StringBuilder; + Property: class.metadata.property.returnType + K1 + java/lang/StringBuilder /* = kotlin/text/StringBuilder^ */ + K2 + java/lang/StringBuilder diff --git a/native/native.tests/testData/codegen/try/try4.kt b/compiler/testData/codegen/box/try/try4.kt similarity index 90% rename from native/native.tests/testData/codegen/try/try4.kt rename to compiler/testData/codegen/box/try/try4.kt index d13c4f7089f..48d6ec3f353 100644 --- a/native/native.tests/testData/codegen/try/try4.kt +++ b/compiler/testData/codegen/box/try/try4.kt @@ -2,6 +2,8 @@ * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ +// JVM_ABI_K1_K2_DIFF: KT-63864 +// WITH_STDLIB import kotlin.test.* 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 fb2d3376c05..ddb31c54284 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 @@ -107,6 +107,12 @@ public class JvmAbiConsistencyTestBoxGenerated extends AbstractJvmAbiConsistency runTest("compiler/testData/codegen/box/annotations/annotationWithVarargAsDefaultValue.kt"); } + @Test + @TestMetadata("annotations0.kt") + public void testAnnotations0() { + runTest("compiler/testData/codegen/box/annotations/annotations0.kt"); + } + @Test @TestMetadata("annotationsOnDefault.kt") public void testAnnotationsOnDefault() { @@ -936,6 +942,82 @@ public class JvmAbiConsistencyTestBoxGenerated extends AbstractJvmAbiConsistency } } + @Nested + @TestMetadata("compiler/testData/codegen/box/arithmetic") + @TestDataPath("$PROJECT_ROOT") + public class Arithmetic { + @Test + public void testAllFilesPresentInArithmetic() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/arithmetic"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("basic_charConversions.kt") + public void testBasic_charConversions() { + runTest("compiler/testData/codegen/box/arithmetic/basic_charConversions.kt"); + } + + @Test + @TestMetadata("basic_charCornerCases.kt") + public void testBasic_charCornerCases() { + runTest("compiler/testData/codegen/box/arithmetic/basic_charCornerCases.kt"); + } + + @Test + @TestMetadata("basic_compareIntToFloat.kt") + public void testBasic_compareIntToFloat() { + runTest("compiler/testData/codegen/box/arithmetic/basic_compareIntToFloat.kt"); + } + + @Test + @TestMetadata("basic_doubleBasic.kt") + public void testBasic_doubleBasic() { + runTest("compiler/testData/codegen/box/arithmetic/basic_doubleBasic.kt"); + } + + @Test + @TestMetadata("basic_integralToFloat.kt") + public void testBasic_integralToFloat() { + runTest("compiler/testData/codegen/box/arithmetic/basic_integralToFloat.kt"); + } + + @Test + @TestMetadata("basic_kt37412.kt") + public void testBasic_kt37412() { + runTest("compiler/testData/codegen/box/arithmetic/basic_kt37412.kt"); + } + + @Test + @TestMetadata("basic_selfComparison.kt") + public void testBasic_selfComparison() { + runTest("compiler/testData/codegen/box/arithmetic/basic_selfComparison.kt"); + } + + @Test + @TestMetadata("basic_shifts.kt") + public void testBasic_shifts() { + runTest("compiler/testData/codegen/box/arithmetic/basic_shifts.kt"); + } + + @Test + @TestMetadata("basic_uintTests.kt") + public void testBasic_uintTests() { + runTest("compiler/testData/codegen/box/arithmetic/basic_uintTests.kt"); + } + + @Test + @TestMetadata("division.kt") + public void testDivision() { + runTest("compiler/testData/codegen/box/arithmetic/division.kt"); + } + + @Test + @TestMetadata("github1856.kt") + public void testGithub1856() { + runTest("compiler/testData/codegen/box/arithmetic/github1856.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/arrays") @TestDataPath("$PROJECT_ROOT") @@ -1788,6 +1870,302 @@ public class JvmAbiConsistencyTestBoxGenerated extends AbstractJvmAbiConsistency } } + @Nested + @TestMetadata("compiler/testData/codegen/box/basics") + @TestDataPath("$PROJECT_ROOT") + public class Basics { + @Test + public void testAllFilesPresentInBasics() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/basics"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("array_to_any.kt") + public void testArray_to_any() { + runTest("compiler/testData/codegen/box/basics/array_to_any.kt"); + } + + @Test + @TestMetadata("canonical_name.kt") + public void testCanonical_name() { + runTest("compiler/testData/codegen/box/basics/canonical_name.kt"); + } + + @Test + @TestMetadata("cast_null.kt") + public void testCast_null() { + runTest("compiler/testData/codegen/box/basics/cast_null.kt"); + } + + @Test + @TestMetadata("cast_simple.kt") + public void testCast_simple() { + runTest("compiler/testData/codegen/box/basics/cast_simple.kt"); + } + + @Test + @TestMetadata("check_type.kt") + public void testCheck_type() { + runTest("compiler/testData/codegen/box/basics/check_type.kt"); + } + + @Test + @TestMetadata("companion.kt") + public void testCompanion() { + runTest("compiler/testData/codegen/box/basics/companion.kt"); + } + + @Test + @TestMetadata("concatenation.kt") + public void testConcatenation() { + runTest("compiler/testData/codegen/box/basics/concatenation.kt"); + } + + @Test + @TestMetadata("const_infinity.kt") + public void testConst_infinity() { + runTest("compiler/testData/codegen/box/basics/const_infinity.kt"); + } + + @Test + @TestMetadata("expression_as_statement.kt") + public void testExpression_as_statement() { + runTest("compiler/testData/codegen/box/basics/expression_as_statement.kt"); + } + + @Test + @TestMetadata("k42000_1.kt") + public void testK42000_1() { + runTest("compiler/testData/codegen/box/basics/k42000_1.kt"); + } + + @Test + @TestMetadata("k42000_2.kt") + public void testK42000_2() { + runTest("compiler/testData/codegen/box/basics/k42000_2.kt"); + } + + @Test + @TestMetadata("local_variable.kt") + public void testLocal_variable() { + runTest("compiler/testData/codegen/box/basics/local_variable.kt"); + } + + @Test + @TestMetadata("null_check.kt") + public void testNull_check() { + runTest("compiler/testData/codegen/box/basics/null_check.kt"); + } + + @Test + @TestMetadata("safe_cast.kt") + public void testSafe_cast() { + runTest("compiler/testData/codegen/box/basics/safe_cast.kt"); + } + + @Test + @TestMetadata("spread_operator_0.kt") + public void testSpread_operator_0() { + runTest("compiler/testData/codegen/box/basics/spread_operator_0.kt"); + } + + @Test + @TestMetadata("statements0.kt") + public void testStatements0() { + runTest("compiler/testData/codegen/box/basics/statements0.kt"); + } + + @Test + @TestMetadata("superFunCall.kt") + public void testSuperFunCall() { + runTest("compiler/testData/codegen/box/basics/superFunCall.kt"); + } + + @Test + @TestMetadata("superGetterCall.kt") + public void testSuperGetterCall() { + runTest("compiler/testData/codegen/box/basics/superGetterCall.kt"); + } + + @Test + @TestMetadata("superSetterCall.kt") + public void testSuperSetterCall() { + runTest("compiler/testData/codegen/box/basics/superSetterCall.kt"); + } + + @Test + @TestMetadata("typealias1.kt") + public void testTypealias1() { + runTest("compiler/testData/codegen/box/basics/typealias1.kt"); + } + + @Test + @TestMetadata("unchecked_cast1.kt") + public void testUnchecked_cast1() { + runTest("compiler/testData/codegen/box/basics/unchecked_cast1.kt"); + } + + @Test + @TestMetadata("unchecked_cast2.kt") + public void testUnchecked_cast2() { + runTest("compiler/testData/codegen/box/basics/unchecked_cast2.kt"); + } + + @Test + @TestMetadata("unchecked_cast3.kt") + public void testUnchecked_cast3() { + runTest("compiler/testData/codegen/box/basics/unchecked_cast3.kt"); + } + + @Test + @TestMetadata("unchecked_cast4.kt") + public void testUnchecked_cast4() { + runTest("compiler/testData/codegen/box/basics/unchecked_cast4.kt"); + } + + @Test + @TestMetadata("unit1.kt") + public void testUnit1() { + runTest("compiler/testData/codegen/box/basics/unit1.kt"); + } + + @Test + @TestMetadata("unit2.kt") + public void testUnit2() { + runTest("compiler/testData/codegen/box/basics/unit2.kt"); + } + + @Test + @TestMetadata("unit3.kt") + public void testUnit3() { + runTest("compiler/testData/codegen/box/basics/unit3.kt"); + } + + @Test + @TestMetadata("unit4.kt") + public void testUnit4() { + runTest("compiler/testData/codegen/box/basics/unit4.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/bce") + @TestDataPath("$PROJECT_ROOT") + public class Bce { + @Test + public void testAllFilesPresentInBce() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/bce"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("bceCases.kt") + public void testBceCases() { + runTest("compiler/testData/codegen/box/bce/bceCases.kt"); + } + + @Test + @TestMetadata("customGetter.kt") + public void testCustomGetter() { + runTest("compiler/testData/codegen/box/bce/customGetter.kt"); + } + + @Test + @TestMetadata("delegatedProperty.kt") + public void testDelegatedProperty() { + runTest("compiler/testData/codegen/box/bce/delegatedProperty.kt"); + } + + @Test + @TestMetadata("differentArrays.kt") + public void testDifferentArrays() { + runTest("compiler/testData/codegen/box/bce/differentArrays.kt"); + } + + @Test + @TestMetadata("differentObjects.kt") + public void testDifferentObjects() { + runTest("compiler/testData/codegen/box/bce/differentObjects.kt"); + } + + @Test + @TestMetadata("forDownToSize.kt") + public void testForDownToSize() { + runTest("compiler/testData/codegen/box/bce/forDownToSize.kt"); + } + + @Test + @TestMetadata("forDownToWithStep.kt") + public void testForDownToWithStep() { + runTest("compiler/testData/codegen/box/bce/forDownToWithStep.kt"); + } + + @Test + @TestMetadata("forEachIndexedTest.kt") + public void testForEachIndexedTest() { + runTest("compiler/testData/codegen/box/bce/forEachIndexedTest.kt"); + } + + @Test + @TestMetadata("forEachIndicies.kt") + public void testForEachIndicies() { + runTest("compiler/testData/codegen/box/bce/forEachIndicies.kt"); + } + + @Test + @TestMetadata("forIndiciesWithStep.kt") + public void testForIndiciesWithStep() { + runTest("compiler/testData/codegen/box/bce/forIndiciesWithStep.kt"); + } + + @Test + @TestMetadata("forRangeToSize.kt") + public void testForRangeToSize() { + runTest("compiler/testData/codegen/box/bce/forRangeToSize.kt"); + } + + @Test + @TestMetadata("forRangeToWithStep.kt") + public void testForRangeToWithStep() { + runTest("compiler/testData/codegen/box/bce/forRangeToWithStep.kt"); + } + + @Test + @TestMetadata("forReversed.kt") + public void testForReversed() { + runTest("compiler/testData/codegen/box/bce/forReversed.kt"); + } + + @Test + @TestMetadata("forUntilSize.kt") + public void testForUntilSize() { + runTest("compiler/testData/codegen/box/bce/forUntilSize.kt"); + } + + @Test + @TestMetadata("forUntilWithStep.kt") + public void testForUntilWithStep() { + runTest("compiler/testData/codegen/box/bce/forUntilWithStep.kt"); + } + + @Test + @TestMetadata("forWithIndex.kt") + public void testForWithIndex() { + runTest("compiler/testData/codegen/box/bce/forWithIndex.kt"); + } + + @Test + @TestMetadata("inheritance.kt") + public void testInheritance() { + runTest("compiler/testData/codegen/box/bce/inheritance.kt"); + } + + @Test + @TestMetadata("withGetter.kt") + public void testWithGetter() { + runTest("compiler/testData/codegen/box/bce/withGetter.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/binaryOp") @TestDataPath("$PROJECT_ROOT") @@ -1984,6 +2362,124 @@ public class JvmAbiConsistencyTestBoxGenerated extends AbstractJvmAbiConsistency } } + @Nested + @TestMetadata("compiler/testData/codegen/box/boxing") + @TestDataPath("$PROJECT_ROOT") + public class Boxing { + @Test + public void testAllFilesPresentInBoxing() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/boxing"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("box_cache0.kt") + public void testBox_cache0() { + runTest("compiler/testData/codegen/box/boxing/box_cache0.kt"); + } + + @Test + @TestMetadata("boxing0.kt") + public void testBoxing0() { + runTest("compiler/testData/codegen/box/boxing/boxing0.kt"); + } + + @Test + @TestMetadata("boxing1.kt") + public void testBoxing1() { + runTest("compiler/testData/codegen/box/boxing/boxing1.kt"); + } + + @Test + @TestMetadata("boxing10.kt") + public void testBoxing10() { + runTest("compiler/testData/codegen/box/boxing/boxing10.kt"); + } + + @Test + @TestMetadata("boxing11.kt") + public void testBoxing11() { + runTest("compiler/testData/codegen/box/boxing/boxing11.kt"); + } + + @Test + @TestMetadata("boxing12.kt") + public void testBoxing12() { + runTest("compiler/testData/codegen/box/boxing/boxing12.kt"); + } + + @Test + @TestMetadata("boxing13.kt") + public void testBoxing13() { + runTest("compiler/testData/codegen/box/boxing/boxing13.kt"); + } + + @Test + @TestMetadata("boxing14.kt") + public void testBoxing14() { + runTest("compiler/testData/codegen/box/boxing/boxing14.kt"); + } + + @Test + @TestMetadata("boxing15.kt") + public void testBoxing15() { + runTest("compiler/testData/codegen/box/boxing/boxing15.kt"); + } + + @Test + @TestMetadata("boxing2.kt") + public void testBoxing2() { + runTest("compiler/testData/codegen/box/boxing/boxing2.kt"); + } + + @Test + @TestMetadata("boxing3.kt") + public void testBoxing3() { + runTest("compiler/testData/codegen/box/boxing/boxing3.kt"); + } + + @Test + @TestMetadata("boxing4.kt") + public void testBoxing4() { + runTest("compiler/testData/codegen/box/boxing/boxing4.kt"); + } + + @Test + @TestMetadata("boxing5.kt") + public void testBoxing5() { + runTest("compiler/testData/codegen/box/boxing/boxing5.kt"); + } + + @Test + @TestMetadata("boxing6.kt") + public void testBoxing6() { + runTest("compiler/testData/codegen/box/boxing/boxing6.kt"); + } + + @Test + @TestMetadata("boxing7.kt") + public void testBoxing7() { + runTest("compiler/testData/codegen/box/boxing/boxing7.kt"); + } + + @Test + @TestMetadata("boxing8.kt") + public void testBoxing8() { + runTest("compiler/testData/codegen/box/boxing/boxing8.kt"); + } + + @Test + @TestMetadata("boxing9.kt") + public void testBoxing9() { + runTest("compiler/testData/codegen/box/boxing/boxing9.kt"); + } + + @Test + @TestMetadata("kt53100_casts.kt") + public void testKt53100_casts() { + runTest("compiler/testData/codegen/box/boxing/kt53100_casts.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/boxingOptimization") @TestDataPath("$PROJECT_ROOT") @@ -2264,6 +2760,88 @@ public class JvmAbiConsistencyTestBoxGenerated extends AbstractJvmAbiConsistency } } + @Nested + @TestMetadata("compiler/testData/codegen/box/branching") + @TestDataPath("$PROJECT_ROOT") + public class Branching { + @Test + @TestMetadata("advanced_when2.kt") + public void testAdvanced_when2() { + runTest("compiler/testData/codegen/box/branching/advanced_when2.kt"); + } + + @Test + @TestMetadata("advanced_when5.kt") + public void testAdvanced_when5() { + runTest("compiler/testData/codegen/box/branching/advanced_when5.kt"); + } + + @Test + public void testAllFilesPresentInBranching() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/branching"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("if_else.kt") + public void testIf_else() { + runTest("compiler/testData/codegen/box/branching/if_else.kt"); + } + + @Test + @TestMetadata("when2.kt") + public void testWhen2() { + runTest("compiler/testData/codegen/box/branching/when2.kt"); + } + + @Test + @TestMetadata("when4.kt") + public void testWhen4() { + runTest("compiler/testData/codegen/box/branching/when4.kt"); + } + + @Test + @TestMetadata("when5.kt") + public void testWhen5() { + runTest("compiler/testData/codegen/box/branching/when5.kt"); + } + + @Test + @TestMetadata("when6.kt") + public void testWhen6() { + runTest("compiler/testData/codegen/box/branching/when6.kt"); + } + + @Test + @TestMetadata("when7.kt") + public void testWhen7() { + runTest("compiler/testData/codegen/box/branching/when7.kt"); + } + + @Test + @TestMetadata("when8.kt") + public void testWhen8() { + runTest("compiler/testData/codegen/box/branching/when8.kt"); + } + + @Test + @TestMetadata("when9.kt") + public void testWhen9() { + runTest("compiler/testData/codegen/box/branching/when9.kt"); + } + + @Test + @TestMetadata("when_through.kt") + public void testWhen_through() { + runTest("compiler/testData/codegen/box/branching/when_through.kt"); + } + + @Test + @TestMetadata("when_with_try1.kt") + public void testWhen_with_try1() { + runTest("compiler/testData/codegen/box/branching/when_with_try1.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/bridges") @TestDataPath("$PROJECT_ROOT") @@ -2525,6 +3103,18 @@ public class JvmAbiConsistencyTestBoxGenerated extends AbstractJvmAbiConsistency runTest("compiler/testData/codegen/box/bridges/methodWithDefaultParameter.kt"); } + @Test + @TestMetadata("multipleModules1.kt") + public void testMultipleModules1() { + runTest("compiler/testData/codegen/box/bridges/multipleModules1.kt"); + } + + @Test + @TestMetadata("multipleModules2.kt") + public void testMultipleModules2() { + runTest("compiler/testData/codegen/box/bridges/multipleModules2.kt"); + } + @Test @TestMetadata("nestedClassTypeParameters.kt") public void testNestedClassTypeParameters() { @@ -2591,6 +3181,12 @@ public class JvmAbiConsistencyTestBoxGenerated extends AbstractJvmAbiConsistency runTest("compiler/testData/codegen/box/bridges/propertySetter.kt"); } + @Test + @TestMetadata("returnTypeSignature.kt") + public void testReturnTypeSignature() { + runTest("compiler/testData/codegen/box/bridges/returnTypeSignature.kt"); + } + @Test @TestMetadata("simple.kt") public void testSimple() { @@ -2633,6 +3229,18 @@ public class JvmAbiConsistencyTestBoxGenerated extends AbstractJvmAbiConsistency runTest("compiler/testData/codegen/box/bridges/simpleUpperBound.kt"); } + @Test + @TestMetadata("special.kt") + public void testSpecial() { + runTest("compiler/testData/codegen/box/bridges/special.kt"); + } + + @Test + @TestMetadata("specialGeneric.kt") + public void testSpecialGeneric() { + runTest("compiler/testData/codegen/box/bridges/specialGeneric.kt"); + } + @Test @TestMetadata("strListContains.kt") public void testStrListContains() { @@ -2645,6 +3253,120 @@ public class JvmAbiConsistencyTestBoxGenerated extends AbstractJvmAbiConsistency runTest("compiler/testData/codegen/box/bridges/strListRemove.kt"); } + @Test + @TestMetadata("test0.kt") + public void testTest0() { + runTest("compiler/testData/codegen/box/bridges/test0.kt"); + } + + @Test + @TestMetadata("test1.kt") + public void testTest1() { + runTest("compiler/testData/codegen/box/bridges/test1.kt"); + } + + @Test + @TestMetadata("test10.kt") + public void testTest10() { + runTest("compiler/testData/codegen/box/bridges/test10.kt"); + } + + @Test + @TestMetadata("test11.kt") + public void testTest11() { + runTest("compiler/testData/codegen/box/bridges/test11.kt"); + } + + @Test + @TestMetadata("test12.kt") + public void testTest12() { + runTest("compiler/testData/codegen/box/bridges/test12.kt"); + } + + @Test + @TestMetadata("test13.kt") + public void testTest13() { + runTest("compiler/testData/codegen/box/bridges/test13.kt"); + } + + @Test + @TestMetadata("test14.kt") + public void testTest14() { + runTest("compiler/testData/codegen/box/bridges/test14.kt"); + } + + @Test + @TestMetadata("test15.kt") + public void testTest15() { + runTest("compiler/testData/codegen/box/bridges/test15.kt"); + } + + @Test + @TestMetadata("test16.kt") + public void testTest16() { + runTest("compiler/testData/codegen/box/bridges/test16.kt"); + } + + @Test + @TestMetadata("test17.kt") + public void testTest17() { + runTest("compiler/testData/codegen/box/bridges/test17.kt"); + } + + @Test + @TestMetadata("test18.kt") + public void testTest18() { + runTest("compiler/testData/codegen/box/bridges/test18.kt"); + } + + @Test + @TestMetadata("test2.kt") + public void testTest2() { + runTest("compiler/testData/codegen/box/bridges/test2.kt"); + } + + @Test + @TestMetadata("test3.kt") + public void testTest3() { + runTest("compiler/testData/codegen/box/bridges/test3.kt"); + } + + @Test + @TestMetadata("test4.kt") + public void testTest4() { + runTest("compiler/testData/codegen/box/bridges/test4.kt"); + } + + @Test + @TestMetadata("test5.kt") + public void testTest5() { + runTest("compiler/testData/codegen/box/bridges/test5.kt"); + } + + @Test + @TestMetadata("test6.kt") + public void testTest6() { + runTest("compiler/testData/codegen/box/bridges/test6.kt"); + } + + @Test + @TestMetadata("test7.kt") + public void testTest7() { + runTest("compiler/testData/codegen/box/bridges/test7.kt"); + } + + @Test + @TestMetadata("test8.kt") + public void testTest8() { + runTest("compiler/testData/codegen/box/bridges/test8.kt"); + } + + @Test + @TestMetadata("test9.kt") + public void testTest9() { + runTest("compiler/testData/codegen/box/bridges/test9.kt"); + } + @Test @TestMetadata("traitImplInheritsTraitImpl.kt") public void testTraitImplInheritsTraitImpl() { @@ -6324,6 +7046,46 @@ public class JvmAbiConsistencyTestBoxGenerated extends AbstractJvmAbiConsistency } } + @Nested + @TestMetadata("compiler/testData/codegen/box/classDelegation") + @TestDataPath("$PROJECT_ROOT") + public class ClassDelegation { + @Test + public void testAllFilesPresentInClassDelegation() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/classDelegation"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("generic.kt") + public void testGeneric() { + runTest("compiler/testData/codegen/box/classDelegation/generic.kt"); + } + + @Test + @TestMetadata("method.kt") + public void testMethod() { + runTest("compiler/testData/codegen/box/classDelegation/method.kt"); + } + + @Test + @TestMetadata("multipleModules.kt") + public void testMultipleModules() { + runTest("compiler/testData/codegen/box/classDelegation/multipleModules.kt"); + } + + @Test + @TestMetadata("property.kt") + public void testProperty() { + runTest("compiler/testData/codegen/box/classDelegation/property.kt"); + } + + @Test + @TestMetadata("withBridge.kt") + public void testWithBridge() { + runTest("compiler/testData/codegen/box/classDelegation/withBridge.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/classLiteral") @TestDataPath("$PROJECT_ROOT") @@ -9551,6 +10313,12 @@ public class JvmAbiConsistencyTestBoxGenerated extends AbstractJvmAbiConsistency runTest("compiler/testData/codegen/box/contracts/constructorArgument.kt"); } + @Test + @TestMetadata("contractForCast.kt") + public void testContractForCast() { + runTest("compiler/testData/codegen/box/contracts/contractForCast.kt"); + } + @Test @TestMetadata("destructuredVariable.kt") public void testDestructuredVariable() { @@ -9593,6 +10361,12 @@ public class JvmAbiConsistencyTestBoxGenerated extends AbstractJvmAbiConsistency runTest("compiler/testData/codegen/box/contracts/functionParameter.kt"); } + @Test + @TestMetadata("isNullString.kt") + public void testIsNullString() { + runTest("compiler/testData/codegen/box/contracts/isNullString.kt"); + } + @Test @TestMetadata("kt39374.kt") public void testKt39374() { @@ -9635,6 +10409,24 @@ public class JvmAbiConsistencyTestBoxGenerated extends AbstractJvmAbiConsistency runTest("compiler/testData/codegen/box/contracts/nestedLambdaInNonInlineCallExactlyOnce.kt"); } + @Test + @TestMetadata("nonNullSmartCast.kt") + public void testNonNullSmartCast() { + runTest("compiler/testData/codegen/box/contracts/nonNullSmartCast.kt"); + } + + @Test + @TestMetadata("require.kt") + public void testRequire() { + runTest("compiler/testData/codegen/box/contracts/require.kt"); + } + + @Test + @TestMetadata("runLambdaForVal.kt") + public void testRunLambdaForVal() { + runTest("compiler/testData/codegen/box/contracts/runLambdaForVal.kt"); + } + @Test @TestMetadata("valInWhen.kt") public void testValInWhen() { @@ -11082,6 +11874,124 @@ public class JvmAbiConsistencyTestBoxGenerated extends AbstractJvmAbiConsistency } } + @Nested + @TestMetadata("compiler/testData/codegen/box/controlflow") + @TestDataPath("$PROJECT_ROOT") + public class Controlflow { + @Test + public void testAllFilesPresentInControlflow() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/controlflow"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("break.kt") + public void testBreak() { + runTest("compiler/testData/codegen/box/controlflow/break.kt"); + } + + @Test + @TestMetadata("break1.kt") + public void testBreak1() { + runTest("compiler/testData/codegen/box/controlflow/break1.kt"); + } + + @Test + @TestMetadata("for_loops.kt") + public void testFor_loops() { + runTest("compiler/testData/codegen/box/controlflow/for_loops.kt"); + } + + @Test + @TestMetadata("for_loops_array_break_continue.kt") + public void testFor_loops_array_break_continue() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_array_break_continue.kt"); + } + + @Test + @TestMetadata("for_loops_array_indices.kt") + public void testFor_loops_array_indices() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_array_indices.kt"); + } + + @Test + @TestMetadata("for_loops_array_mutation.kt") + public void testFor_loops_array_mutation() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_array_mutation.kt"); + } + + @Test + @TestMetadata("for_loops_array_nested.kt") + public void testFor_loops_array_nested() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_array_nested.kt"); + } + + @Test + @TestMetadata("for_loops_array_nullable.kt") + public void testFor_loops_array_nullable() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_array_nullable.kt"); + } + + @Test + @TestMetadata("for_loops_array_side_effects.kt") + public void testFor_loops_array_side_effects() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_array_side_effects.kt"); + } + + @Test + @TestMetadata("for_loops_call_order.kt") + public void testFor_loops_call_order() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_call_order.kt"); + } + + @Test + @TestMetadata("for_loops_coroutines.kt") + public void testFor_loops_coroutines() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_coroutines.kt"); + } + + @Test + @TestMetadata("for_loops_empty_range.kt") + public void testFor_loops_empty_range() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_empty_range.kt"); + } + + @Test + @TestMetadata("for_loops_errors.kt") + public void testFor_loops_errors() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_errors.kt"); + } + + @Test + @TestMetadata("for_loops_let_with_nullable.kt") + public void testFor_loops_let_with_nullable() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_let_with_nullable.kt"); + } + + @Test + @TestMetadata("for_loops_nested.kt") + public void testFor_loops_nested() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_nested.kt"); + } + + @Test + @TestMetadata("for_loops_overflow.kt") + public void testFor_loops_overflow() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_overflow.kt"); + } + + @Test + @TestMetadata("for_loops_types.kt") + public void testFor_loops_types() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_types.kt"); + } + + @Test + @TestMetadata("unreachable1.kt") + public void testUnreachable1() { + runTest("compiler/testData/codegen/box/controlflow/unreachable1.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/coroutines") @TestDataPath("$PROJECT_ROOT") @@ -11103,6 +12013,12 @@ public class JvmAbiConsistencyTestBoxGenerated extends AbstractJvmAbiConsistency KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test + @TestMetadata("anonymousObject.kt") + public void testAnonymousObject() { + runTest("compiler/testData/codegen/box/coroutines/anonymousObject.kt"); + } + @Test @TestMetadata("async.kt") public void testAsync() { @@ -11199,12 +12115,144 @@ public class JvmAbiConsistencyTestBoxGenerated extends AbstractJvmAbiConsistency runTest("compiler/testData/codegen/box/coroutines/coercionToUnit.kt"); } + @Test + @TestMetadata("controlFlow_chain.kt") + public void testControlFlow_chain() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_chain.kt"); + } + + @Test + @TestMetadata("controlFlow_finally1.kt") + public void testControlFlow_finally1() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally1.kt"); + } + + @Test + @TestMetadata("controlFlow_finally2.kt") + public void testControlFlow_finally2() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally2.kt"); + } + + @Test + @TestMetadata("controlFlow_finally3.kt") + public void testControlFlow_finally3() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally3.kt"); + } + + @Test + @TestMetadata("controlFlow_finally4.kt") + public void testControlFlow_finally4() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally4.kt"); + } + + @Test + @TestMetadata("controlFlow_finally5.kt") + public void testControlFlow_finally5() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally5.kt"); + } + + @Test + @TestMetadata("controlFlow_finally6.kt") + public void testControlFlow_finally6() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally6.kt"); + } + + @Test + @TestMetadata("controlFlow_finally7.kt") + public void testControlFlow_finally7() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally7.kt"); + } + + @Test + @TestMetadata("controlFlow_if1.kt") + public void testControlFlow_if1() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_if1.kt"); + } + + @Test + @TestMetadata("controlFlow_if2.kt") + public void testControlFlow_if2() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_if2.kt"); + } + + @Test + @TestMetadata("controlFlow_inline1.kt") + public void testControlFlow_inline1() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_inline1.kt"); + } + + @Test + @TestMetadata("controlFlow_inline2.kt") + public void testControlFlow_inline2() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_inline2.kt"); + } + + @Test + @TestMetadata("controlFlow_inline3.kt") + public void testControlFlow_inline3() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_inline3.kt"); + } + + @Test + @TestMetadata("controlFlow_tryCatch1.kt") + public void testControlFlow_tryCatch1() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_tryCatch1.kt"); + } + + @Test + @TestMetadata("controlFlow_tryCatch2.kt") + public void testControlFlow_tryCatch2() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_tryCatch2.kt"); + } + + @Test + @TestMetadata("controlFlow_tryCatch3.kt") + public void testControlFlow_tryCatch3() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_tryCatch3.kt"); + } + + @Test + @TestMetadata("controlFlow_tryCatch4.kt") + public void testControlFlow_tryCatch4() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_tryCatch4.kt"); + } + + @Test + @TestMetadata("controlFlow_tryCatch5.kt") + public void testControlFlow_tryCatch5() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_tryCatch5.kt"); + } + + @Test + @TestMetadata("controlFlow_while1.kt") + public void testControlFlow_while1() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_while1.kt"); + } + + @Test + @TestMetadata("controlFlow_while2.kt") + public void testControlFlow_while2() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_while2.kt"); + } + @Test @TestMetadata("controllerAccessFromInnerLambda.kt") public void testControllerAccessFromInnerLambda() { runTest("compiler/testData/codegen/box/coroutines/controllerAccessFromInnerLambda.kt"); } + @Test + @TestMetadata("coroutineContext1.kt") + public void testCoroutineContext1() { + runTest("compiler/testData/codegen/box/coroutines/coroutineContext1.kt"); + } + + @Test + @TestMetadata("coroutineContext2.kt") + public void testCoroutineContext2() { + runTest("compiler/testData/codegen/box/coroutines/coroutineContext2.kt"); + } + @Test @TestMetadata("coroutineContextInInlinedLambda.kt") public void testCoroutineContextInInlinedLambda() { @@ -11217,6 +12265,12 @@ public class JvmAbiConsistencyTestBoxGenerated extends AbstractJvmAbiConsistency runTest("compiler/testData/codegen/box/coroutines/coroutineToString.kt"); } + @Test + @TestMetadata("correctOrder1.kt") + public void testCorrectOrder1() { + runTest("compiler/testData/codegen/box/coroutines/correctOrder1.kt"); + } + @Test @TestMetadata("createCoroutineSafe.kt") public void testCreateCoroutineSafe() { @@ -11253,6 +12307,18 @@ public class JvmAbiConsistencyTestBoxGenerated extends AbstractJvmAbiConsistency runTest("compiler/testData/codegen/box/coroutines/defaultParametersInSuspendWithJvmOverloads.kt"); } + @Test + @TestMetadata("degenerate1.kt") + public void testDegenerate1() { + runTest("compiler/testData/codegen/box/coroutines/degenerate1.kt"); + } + + @Test + @TestMetadata("degenerate2.kt") + public void testDegenerate2() { + runTest("compiler/testData/codegen/box/coroutines/degenerate2.kt"); + } + @Test @TestMetadata("delegatedSuspendMember.kt") public void testDelegatedSuspendMember() { @@ -11301,6 +12367,30 @@ public class JvmAbiConsistencyTestBoxGenerated extends AbstractJvmAbiConsistency runTest("compiler/testData/codegen/box/coroutines/falseUnitCoercion.kt"); } + @Test + @TestMetadata("functionReference_eqeq_name.kt") + public void testFunctionReference_eqeq_name() { + runTest("compiler/testData/codegen/box/coroutines/functionReference_eqeq_name.kt"); + } + + @Test + @TestMetadata("functionReference_invokeAsFunction.kt") + public void testFunctionReference_invokeAsFunction() { + runTest("compiler/testData/codegen/box/coroutines/functionReference_invokeAsFunction.kt"); + } + + @Test + @TestMetadata("functionReference_lambdaAsSuspendLambda.kt") + public void testFunctionReference_lambdaAsSuspendLambda() { + runTest("compiler/testData/codegen/box/coroutines/functionReference_lambdaAsSuspendLambda.kt"); + } + + @Test + @TestMetadata("functionReference_simple.kt") + public void testFunctionReference_simple() { + runTest("compiler/testData/codegen/box/coroutines/functionReference_simple.kt"); + } + @Test @TestMetadata("generate.kt") public void testGenerate() { @@ -11511,6 +12601,12 @@ public class JvmAbiConsistencyTestBoxGenerated extends AbstractJvmAbiConsistency runTest("compiler/testData/codegen/box/coroutines/kt38099.kt"); } + @Test + @TestMetadata("kt41394.kt") + public void testKt41394() { + runTest("compiler/testData/codegen/box/coroutines/kt41394.kt"); + } + @Test @TestMetadata("kt42028.kt") public void testKt42028() { @@ -11757,12 +12853,30 @@ public class JvmAbiConsistencyTestBoxGenerated extends AbstractJvmAbiConsistency runTest("compiler/testData/codegen/box/coroutines/returnByLabel.kt"); } + @Test + @TestMetadata("returnsNothing1.kt") + public void testReturnsNothing1() { + runTest("compiler/testData/codegen/box/coroutines/returnsNothing1.kt"); + } + + @Test + @TestMetadata("returnsUnit1.kt") + public void testReturnsUnit1() { + runTest("compiler/testData/codegen/box/coroutines/returnsUnit1.kt"); + } + @Test @TestMetadata("simple.kt") public void testSimple() { runTest("compiler/testData/codegen/box/coroutines/simple.kt"); } + @Test + @TestMetadata("simple2.kt") + public void testSimple2() { + runTest("compiler/testData/codegen/box/coroutines/simple2.kt"); + } + @Test @TestMetadata("simpleException.kt") public void testSimpleException() { @@ -11811,6 +12925,12 @@ public class JvmAbiConsistencyTestBoxGenerated extends AbstractJvmAbiConsistency runTest("compiler/testData/codegen/box/coroutines/suspendCallsInArguments.kt"); } + @Test + @TestMetadata("suspendConversion.kt") + public void testSuspendConversion() { + runTest("compiler/testData/codegen/box/coroutines/suspendConversion.kt"); + } + @Test @TestMetadata("suspendCoroutineFromStateMachine.kt") public void testSuspendCoroutineFromStateMachine() { @@ -12003,6 +13123,12 @@ public class JvmAbiConsistencyTestBoxGenerated extends AbstractJvmAbiConsistency runTest("compiler/testData/codegen/box/coroutines/varargCallFromSuspend.kt"); } + @Test + @TestMetadata("withReceiver.kt") + public void testWithReceiver() { + runTest("compiler/testData/codegen/box/coroutines/withReceiver.kt"); + } + @Nested @TestMetadata("compiler/testData/codegen/box/coroutines/bridges") @TestDataPath("$PROJECT_ROOT") @@ -14686,6 +15812,34 @@ public class JvmAbiConsistencyTestBoxGenerated extends AbstractJvmAbiConsistency } } + @Nested + @TestMetadata("compiler/testData/codegen/box/cycles") + @TestDataPath("$PROJECT_ROOT") + public class Cycles { + @Test + public void testAllFilesPresentInCycles() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cycles"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("cycle.kt") + public void testCycle() { + runTest("compiler/testData/codegen/box/cycles/cycle.kt"); + } + + @Test + @TestMetadata("cycle_do.kt") + public void testCycle_do() { + runTest("compiler/testData/codegen/box/cycles/cycle_do.kt"); + } + + @Test + @TestMetadata("cycle_for.kt") + public void testCycle_for() { + runTest("compiler/testData/codegen/box/cycles/cycle_for.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/dataClasses") @TestDataPath("$PROJECT_ROOT") @@ -15140,6 +16294,28 @@ public class JvmAbiConsistencyTestBoxGenerated extends AbstractJvmAbiConsistency } } + @Nested + @TestMetadata("compiler/testData/codegen/box/dataflow") + @TestDataPath("$PROJECT_ROOT") + public class Dataflow { + @Test + public void testAllFilesPresentInDataflow() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/dataflow"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("scope1.kt") + public void testScope1() { + runTest("compiler/testData/codegen/box/dataflow/scope1.kt"); + } + + @Test + @TestMetadata("uninitialized_val.kt") + public void testUninitialized_val() { + runTest("compiler/testData/codegen/box/dataflow/uninitialized_val.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/deadCodeElimination") @TestDataPath("$PROJECT_ROOT") @@ -15801,6 +16977,12 @@ public class JvmAbiConsistencyTestBoxGenerated extends AbstractJvmAbiConsistency runTest("compiler/testData/codegen/box/delegatedProperty/castSetParameter.kt"); } + @Test + @TestMetadata("correctFieldsOrder.kt") + public void testCorrectFieldsOrder() { + runTest("compiler/testData/codegen/box/delegatedProperty/correctFieldsOrder.kt"); + } + @Test @TestMetadata("delegateAsInnerClass.kt") public void testDelegateAsInnerClass() { @@ -15861,6 +17043,12 @@ public class JvmAbiConsistencyTestBoxGenerated extends AbstractJvmAbiConsistency runTest("compiler/testData/codegen/box/delegatedProperty/delegateWithPrivateSet.kt"); } + @Test + @TestMetadata("delegatedOverride.kt") + public void testDelegatedOverride() { + runTest("compiler/testData/codegen/box/delegatedProperty/delegatedOverride.kt"); + } + @Test @TestMetadata("delegatedPropertyInEnum.kt") public void testDelegatedPropertyInEnum() { @@ -16005,12 +17193,42 @@ public class JvmAbiConsistencyTestBoxGenerated extends AbstractJvmAbiConsistency runTest("compiler/testData/codegen/box/delegatedProperty/kt9712.kt"); } + @Test + @TestMetadata("lazy.kt") + public void testLazy() { + runTest("compiler/testData/codegen/box/delegatedProperty/lazy.kt"); + } + + @Test + @TestMetadata("local.kt") + public void testLocal() { + runTest("compiler/testData/codegen/box/delegatedProperty/local.kt"); + } + + @Test + @TestMetadata("map.kt") + public void testMap() { + runTest("compiler/testData/codegen/box/delegatedProperty/map.kt"); + } + @Test @TestMetadata("noTypeVariablesLeft.kt") public void testNoTypeVariablesLeft() { runTest("compiler/testData/codegen/box/delegatedProperty/noTypeVariablesLeft.kt"); } + @Test + @TestMetadata("observable.kt") + public void testObservable() { + runTest("compiler/testData/codegen/box/delegatedProperty/observable.kt"); + } + + @Test + @TestMetadata("packageLevel.kt") + public void testPackageLevel() { + runTest("compiler/testData/codegen/box/delegatedProperty/packageLevel.kt"); + } + @Test @TestMetadata("privateInSubClass.kt") public void testPrivateInSubClass() { @@ -16071,6 +17289,18 @@ public class JvmAbiConsistencyTestBoxGenerated extends AbstractJvmAbiConsistency runTest("compiler/testData/codegen/box/delegatedProperty/setAsExtensionFunInClass.kt"); } + @Test + @TestMetadata("simpleVal.kt") + public void testSimpleVal() { + runTest("compiler/testData/codegen/box/delegatedProperty/simpleVal.kt"); + } + + @Test + @TestMetadata("simpleVar.kt") + public void testSimpleVar() { + runTest("compiler/testData/codegen/box/delegatedProperty/simpleVar.kt"); + } + @Test @TestMetadata("stackOverflowOnCallFromGetValue.kt") public void testStackOverflowOnCallFromGetValue() { @@ -17040,6 +18270,40 @@ public class JvmAbiConsistencyTestBoxGenerated extends AbstractJvmAbiConsistency } } + @Nested + @TestMetadata("compiler/testData/codegen/box/devirtualization") + @TestDataPath("$PROJECT_ROOT") + public class Devirtualization { + @Test + public void testAllFilesPresentInDevirtualization() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/devirtualization"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("anonymousObject.kt") + public void testAnonymousObject() { + runTest("compiler/testData/codegen/box/devirtualization/anonymousObject.kt"); + } + + @Test + @TestMetadata("getter_looking_as_box_function.kt") + public void testGetter_looking_as_box_function() { + runTest("compiler/testData/codegen/box/devirtualization/getter_looking_as_box_function.kt"); + } + + @Test + @TestMetadata("inline_getter.kt") + public void testInline_getter() { + runTest("compiler/testData/codegen/box/devirtualization/inline_getter.kt"); + } + + @Test + @TestMetadata("lateinitInterface.kt") + public void testLateinitInterface() { + runTest("compiler/testData/codegen/box/devirtualization/lateinitInterface.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/diagnostics") @TestDataPath("$PROJECT_ROOT") @@ -17701,6 +18965,12 @@ public class JvmAbiConsistencyTestBoxGenerated extends AbstractJvmAbiConsistency runTest("compiler/testData/codegen/box/enum/companionAccessingEnumValue.kt"); } + @Test + @TestMetadata("companionObject.kt") + public void testCompanionObject() { + runTest("compiler/testData/codegen/box/enum/companionObject.kt"); + } + @Test @TestMetadata("companionObjectInEnum.kt") public void testCompanionObjectInEnum() { @@ -17887,6 +19157,12 @@ public class JvmAbiConsistencyTestBoxGenerated extends AbstractJvmAbiConsistency runTest("compiler/testData/codegen/box/enum/enumWithLambdaParameter.kt"); } + @Test + @TestMetadata("enum_equals.kt") + public void testEnum_equals() { + runTest("compiler/testData/codegen/box/enum/enum_equals.kt"); + } + @Test @TestMetadata("getEnumEntityByOrdinal.kt") public void testGetEnumEntityByOrdinal() { @@ -17959,6 +19235,18 @@ public class JvmAbiConsistencyTestBoxGenerated extends AbstractJvmAbiConsistency runTest("compiler/testData/codegen/box/enum/innerWithExistingClassObject.kt"); } + @Test + @TestMetadata("interfaceCallNoEntryClass.kt") + public void testInterfaceCallNoEntryClass() { + runTest("compiler/testData/codegen/box/enum/interfaceCallNoEntryClass.kt"); + } + + @Test + @TestMetadata("interfaceCallWithEntryClass.kt") + public void testInterfaceCallWithEntryClass() { + runTest("compiler/testData/codegen/box/enum/interfaceCallWithEntryClass.kt"); + } + @Test @TestMetadata("javaClassWithNestedEnum.kt") public void testJavaClassWithNestedEnum() { @@ -18049,6 +19337,12 @@ public class JvmAbiConsistencyTestBoxGenerated extends AbstractJvmAbiConsistency runTest("compiler/testData/codegen/box/enum/kt2350.kt"); } + @Test + @TestMetadata("kt38540.kt") + public void testKt38540() { + runTest("compiler/testData/codegen/box/enum/kt38540.kt"); + } + @Test @TestMetadata("kt38996.kt") public void testKt38996() { @@ -18145,6 +19439,18 @@ public class JvmAbiConsistencyTestBoxGenerated extends AbstractJvmAbiConsistency runTest("compiler/testData/codegen/box/enum/kt9711_2.kt"); } + @Test + @TestMetadata("lambdaInDefault.kt") + public void testLambdaInDefault() { + runTest("compiler/testData/codegen/box/enum/lambdaInDefault.kt"); + } + + @Test + @TestMetadata("loop.kt") + public void testLoop() { + runTest("compiler/testData/codegen/box/enum/loop.kt"); + } + @Test @TestMetadata("manyDefaultParameters.kt") public void testManyDefaultParameters() { @@ -18157,6 +19463,12 @@ public class JvmAbiConsistencyTestBoxGenerated extends AbstractJvmAbiConsistency runTest("compiler/testData/codegen/box/enum/modifierFlags.kt"); } + @Test + @TestMetadata("multipleModules.kt") + public void testMultipleModules() { + runTest("compiler/testData/codegen/box/enum/multipleModules.kt"); + } + @Test @TestMetadata("nameClashWithCompanion.kt") public void testNameClashWithCompanion() { @@ -18169,12 +19481,24 @@ public class JvmAbiConsistencyTestBoxGenerated extends AbstractJvmAbiConsistency runTest("compiler/testData/codegen/box/enum/nameConflict.kt"); } + @Test + @TestMetadata("nested.kt") + public void testNested() { + runTest("compiler/testData/codegen/box/enum/nested.kt"); + } + @Test @TestMetadata("noClassForSimpleEnum.kt") public void testNoClassForSimpleEnum() { runTest("compiler/testData/codegen/box/enum/noClassForSimpleEnum.kt"); } + @Test + @TestMetadata("openMethodNoOverrides.kt") + public void testOpenMethodNoOverrides() { + runTest("compiler/testData/codegen/box/enum/openMethodNoOverrides.kt"); + } + @Test @TestMetadata("ordinal.kt") public void testOrdinal() { @@ -18205,6 +19529,12 @@ public class JvmAbiConsistencyTestBoxGenerated extends AbstractJvmAbiConsistency runTest("compiler/testData/codegen/box/enum/refToThis.kt"); } + @Test + @TestMetadata("reorderedArguments.kt") + public void testReorderedArguments() { + runTest("compiler/testData/codegen/box/enum/reorderedArguments.kt"); + } + @Test @TestMetadata("simple.kt") public void testSimple() { @@ -18259,18 +19589,66 @@ public class JvmAbiConsistencyTestBoxGenerated extends AbstractJvmAbiConsistency runTest("compiler/testData/codegen/box/enum/superCallInEnumLiteral.kt"); } + @Test + @TestMetadata("switchLowering.kt") + public void testSwitchLowering() { + runTest("compiler/testData/codegen/box/enum/switchLowering.kt"); + } + + @Test + @TestMetadata("test0.kt") + public void testTest0() { + runTest("compiler/testData/codegen/box/enum/test0.kt"); + } + + @Test + @TestMetadata("test1.kt") + public void testTest1() { + runTest("compiler/testData/codegen/box/enum/test1.kt"); + } + @Test @TestMetadata("toString.kt") public void testToString() { runTest("compiler/testData/codegen/box/enum/toString.kt"); } + @Test + @TestMetadata("vCallNoEntryClass.kt") + public void testVCallNoEntryClass() { + runTest("compiler/testData/codegen/box/enum/vCallNoEntryClass.kt"); + } + + @Test + @TestMetadata("vCallWithEntryClass.kt") + public void testVCallWithEntryClass() { + runTest("compiler/testData/codegen/box/enum/vCallWithEntryClass.kt"); + } + + @Test + @TestMetadata("valueOf2.kt") + public void testValueOf2() { + runTest("compiler/testData/codegen/box/enum/valueOf2.kt"); + } + @Test @TestMetadata("valueof.kt") public void testValueof() { runTest("compiler/testData/codegen/box/enum/valueof.kt"); } + @Test + @TestMetadata("values.kt") + public void testValues() { + runTest("compiler/testData/codegen/box/enum/values.kt"); + } + + @Test + @TestMetadata("varargParam.kt") + public void testVarargParam() { + runTest("compiler/testData/codegen/box/enum/varargParam.kt"); + } + @Test @TestMetadata("whenInObject.kt") public void testWhenInObject() { @@ -18346,6 +19724,112 @@ public class JvmAbiConsistencyTestBoxGenerated extends AbstractJvmAbiConsistency } } + @Nested + @TestMetadata("compiler/testData/codegen/box/escapeAnalysis") + @TestDataPath("$PROJECT_ROOT") + public class EscapeAnalysis { + @Test + public void testAllFilesPresentInEscapeAnalysis() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/escapeAnalysis"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("recursion.kt") + public void testRecursion() { + runTest("compiler/testData/codegen/box/escapeAnalysis/recursion.kt"); + } + + @Test + @TestMetadata("stack_array.kt") + public void testStack_array() { + runTest("compiler/testData/codegen/box/escapeAnalysis/stack_array.kt"); + } + + @Test + @TestMetadata("test1.kt") + public void testTest1() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test1.kt"); + } + + @Test + @TestMetadata("test10.kt") + public void testTest10() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test10.kt"); + } + + @Test + @TestMetadata("test11.kt") + public void testTest11() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test11.kt"); + } + + @Test + @TestMetadata("test12.kt") + public void testTest12() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test12.kt"); + } + + @Test + @TestMetadata("test13.kt") + public void testTest13() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test13.kt"); + } + + @Test + @TestMetadata("test2.kt") + public void testTest2() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test2.kt"); + } + + @Test + @TestMetadata("test3.kt") + public void testTest3() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test3.kt"); + } + + @Test + @TestMetadata("test4.kt") + public void testTest4() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test4.kt"); + } + + @Test + @TestMetadata("test5.kt") + public void testTest5() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test5.kt"); + } + + @Test + @TestMetadata("test6.kt") + public void testTest6() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test6.kt"); + } + + @Test + @TestMetadata("test7.kt") + public void testTest7() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test7.kt"); + } + + @Test + @TestMetadata("test8.kt") + public void testTest8() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test8.kt"); + } + + @Test + @TestMetadata("test9.kt") + public void testTest9() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test9.kt"); + } + + @Test + @TestMetadata("zeroOutObjectOnAlloc.kt") + public void testZeroOutObjectOnAlloc() { + runTest("compiler/testData/codegen/box/escapeAnalysis/zeroOutObjectOnAlloc.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/evaluate") @TestDataPath("$PROJECT_ROOT") @@ -18458,6 +19942,58 @@ public class JvmAbiConsistencyTestBoxGenerated extends AbstractJvmAbiConsistency } } + @Nested + @TestMetadata("compiler/testData/codegen/box/exceptions") + @TestDataPath("$PROJECT_ROOT") + public class Exceptions { + @Test + public void testAllFilesPresentInExceptions() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/exceptions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("catch1.kt") + public void testCatch1() { + runTest("compiler/testData/codegen/box/exceptions/catch1.kt"); + } + + @Test + @TestMetadata("catch2.kt") + public void testCatch2() { + runTest("compiler/testData/codegen/box/exceptions/catch2.kt"); + } + + @Test + @TestMetadata("catch7.kt") + public void testCatch7() { + runTest("compiler/testData/codegen/box/exceptions/catch7.kt"); + } + + @Test + @TestMetadata("extend0.kt") + public void testExtend0() { + runTest("compiler/testData/codegen/box/exceptions/extend0.kt"); + } + + @Test + @TestMetadata("rethrow.kt") + public void testRethrow() { + runTest("compiler/testData/codegen/box/exceptions/rethrow.kt"); + } + + @Test + @TestMetadata("throw0.kt") + public void testThrow0() { + runTest("compiler/testData/codegen/box/exceptions/throw0.kt"); + } + + @Test + @TestMetadata("throw_from_catch.kt") + public void testThrow_from_catch() { + runTest("compiler/testData/codegen/box/exceptions/throw_from_catch.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/exclExcl") @TestDataPath("$PROJECT_ROOT") @@ -20351,6 +21887,12 @@ public class JvmAbiConsistencyTestBoxGenerated extends AbstractJvmAbiConsistency runTest("compiler/testData/codegen/box/funInterface/funInterfaceWithReceiver.kt"); } + @Test + @TestMetadata("implIsNotFunction.kt") + public void testImplIsNotFunction() { + runTest("compiler/testData/codegen/box/funInterface/implIsNotFunction.kt"); + } + @Test @TestMetadata("inlinedSamWrapper.kt") public void testInlinedSamWrapper() { @@ -20399,6 +21941,18 @@ public class JvmAbiConsistencyTestBoxGenerated extends AbstractJvmAbiConsistency runTest("compiler/testData/codegen/box/funInterface/kt46908_functionSupertype.kt"); } + @Test + @TestMetadata("kt49384.kt") + public void testKt49384() { + runTest("compiler/testData/codegen/box/funInterface/kt49384.kt"); + } + + @Test + @TestMetadata("kt49384_getSame.kt") + public void testKt49384_getSame() { + runTest("compiler/testData/codegen/box/funInterface/kt49384_getSame.kt"); + } + @Test @TestMetadata("multimodule.kt") public void testMultimodule() { @@ -20417,6 +21971,12 @@ public class JvmAbiConsistencyTestBoxGenerated extends AbstractJvmAbiConsistency runTest("compiler/testData/codegen/box/funInterface/nonAbstractMethod.kt"); } + @Test + @TestMetadata("nonTrivialProjectionInSuperType.kt") + public void testNonTrivialProjectionInSuperType() { + runTest("compiler/testData/codegen/box/funInterface/nonTrivialProjectionInSuperType.kt"); + } + @Test @TestMetadata("nullableSam.kt") public void testNullableSam() { @@ -20506,6 +22066,232 @@ public class JvmAbiConsistencyTestBoxGenerated extends AbstractJvmAbiConsistency } } + @Nested + @TestMetadata("compiler/testData/codegen/box/function") + @TestDataPath("$PROJECT_ROOT") + public class Function { + @Test + public void testAllFilesPresentInFunction() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/function"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("arithmetic.kt") + public void testArithmetic() { + runTest("compiler/testData/codegen/box/function/arithmetic.kt"); + } + + @Test + @TestMetadata("boolean.kt") + public void testBoolean() { + runTest("compiler/testData/codegen/box/function/boolean.kt"); + } + + @Test + @TestMetadata("defaults.kt") + public void testDefaults() { + runTest("compiler/testData/codegen/box/function/defaults.kt"); + } + + @Test + @TestMetadata("defaults1.kt") + public void testDefaults1() { + runTest("compiler/testData/codegen/box/function/defaults1.kt"); + } + + @Test + @TestMetadata("defaults10.kt") + public void testDefaults10() { + runTest("compiler/testData/codegen/box/function/defaults10.kt"); + } + + @Test + @TestMetadata("defaults2.kt") + public void testDefaults2() { + runTest("compiler/testData/codegen/box/function/defaults2.kt"); + } + + @Test + @TestMetadata("defaults3.kt") + public void testDefaults3() { + runTest("compiler/testData/codegen/box/function/defaults3.kt"); + } + + @Test + @TestMetadata("defaults4.kt") + public void testDefaults4() { + runTest("compiler/testData/codegen/box/function/defaults4.kt"); + } + + @Test + @TestMetadata("defaults5.kt") + public void testDefaults5() { + runTest("compiler/testData/codegen/box/function/defaults5.kt"); + } + + @Test + @TestMetadata("defaults6.kt") + public void testDefaults6() { + runTest("compiler/testData/codegen/box/function/defaults6.kt"); + } + + @Test + @TestMetadata("defaults7.kt") + public void testDefaults7() { + runTest("compiler/testData/codegen/box/function/defaults7.kt"); + } + + @Test + @TestMetadata("defaults8.kt") + public void testDefaults8() { + runTest("compiler/testData/codegen/box/function/defaults8.kt"); + } + + @Test + @TestMetadata("defaults9.kt") + public void testDefaults9() { + runTest("compiler/testData/codegen/box/function/defaults9.kt"); + } + + @Test + @TestMetadata("defaultsFromFakeOverride.kt") + public void testDefaultsFromFakeOverride() { + runTest("compiler/testData/codegen/box/function/defaultsFromFakeOverride.kt"); + } + + @Test + @TestMetadata("defaultsWithInlineClasses.kt") + public void testDefaultsWithInlineClasses() { + runTest("compiler/testData/codegen/box/function/defaultsWithInlineClasses.kt"); + } + + @Test + @TestMetadata("defaultsWithVarArg1.kt") + public void testDefaultsWithVarArg1() { + runTest("compiler/testData/codegen/box/function/defaultsWithVarArg1.kt"); + } + + @Test + @TestMetadata("defaultsWithVarArg2.kt") + public void testDefaultsWithVarArg2() { + runTest("compiler/testData/codegen/box/function/defaultsWithVarArg2.kt"); + } + + @Test + @TestMetadata("eqeq.kt") + public void testEqeq() { + runTest("compiler/testData/codegen/box/function/eqeq.kt"); + } + + @Test + @TestMetadata("extension.kt") + public void testExtension() { + runTest("compiler/testData/codegen/box/function/extension.kt"); + } + + @Test + @TestMetadata("intrinsic.kt") + public void testIntrinsic() { + runTest("compiler/testData/codegen/box/function/intrinsic.kt"); + } + + @Test + @TestMetadata("localFunction.kt") + public void testLocalFunction() { + runTest("compiler/testData/codegen/box/function/localFunction.kt"); + } + + @Test + @TestMetadata("localFunction2.kt") + public void testLocalFunction2() { + runTest("compiler/testData/codegen/box/function/localFunction2.kt"); + } + + @Test + @TestMetadata("localFunction3.kt") + public void testLocalFunction3() { + runTest("compiler/testData/codegen/box/function/localFunction3.kt"); + } + + @Test + @TestMetadata("minus_eq.kt") + public void testMinus_eq() { + runTest("compiler/testData/codegen/box/function/minus_eq.kt"); + } + + @Test + @TestMetadata("named.kt") + public void testNamed() { + runTest("compiler/testData/codegen/box/function/named.kt"); + } + + @Test + @TestMetadata("nothingNReturningSafeCall.kt") + public void testNothingNReturningSafeCall() { + runTest("compiler/testData/codegen/box/function/nothingNReturningSafeCall.kt"); + } + + @Test + @TestMetadata("plus_eq.kt") + public void testPlus_eq() { + runTest("compiler/testData/codegen/box/function/plus_eq.kt"); + } + + @Test + @TestMetadata("referenceBigArity.kt") + public void testReferenceBigArity() { + runTest("compiler/testData/codegen/box/function/referenceBigArity.kt"); + } + + @Test + @TestMetadata("sum.kt") + public void testSum() { + runTest("compiler/testData/codegen/box/function/sum.kt"); + } + + @Test + @TestMetadata("sum_3const.kt") + public void testSum_3const() { + runTest("compiler/testData/codegen/box/function/sum_3const.kt"); + } + + @Test + @TestMetadata("sum_foo_bar.kt") + public void testSum_foo_bar() { + runTest("compiler/testData/codegen/box/function/sum_foo_bar.kt"); + } + + @Test + @TestMetadata("sum_func.kt") + public void testSum_func() { + runTest("compiler/testData/codegen/box/function/sum_func.kt"); + } + + @Test + @TestMetadata("sum_imm.kt") + public void testSum_imm() { + runTest("compiler/testData/codegen/box/function/sum_imm.kt"); + } + + @Test + @TestMetadata("sum_mixed.kt") + public void testSum_mixed() { + runTest("compiler/testData/codegen/box/function/sum_mixed.kt"); + } + + @Test + @TestMetadata("sum_silly.kt") + public void testSum_silly() { + runTest("compiler/testData/codegen/box/function/sum_silly.kt"); + } + + @Test + @TestMetadata("unreachableStatementAfterReturn.kt") + public void testUnreachableStatementAfterReturn() { + runTest("compiler/testData/codegen/box/function/unreachableStatementAfterReturn.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/functions") @TestDataPath("$PROJECT_ROOT") @@ -22408,6 +24194,474 @@ public class JvmAbiConsistencyTestBoxGenerated extends AbstractJvmAbiConsistency } } + @Nested + @TestMetadata("compiler/testData/codegen/box/initializers") + @TestDataPath("$PROJECT_ROOT") + public class Initializers { + @Test + public void testAllFilesPresentInInitializers() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/initializers"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("correctOrder1.kt") + public void testCorrectOrder1() { + runTest("compiler/testData/codegen/box/initializers/correctOrder1.kt"); + } + + @Test + @TestMetadata("correctOrder2.kt") + public void testCorrectOrder2() { + runTest("compiler/testData/codegen/box/initializers/correctOrder2.kt"); + } + + @Test + @TestMetadata("initializers0.kt") + public void testInitializers0() { + runTest("compiler/testData/codegen/box/initializers/initializers0.kt"); + } + + @Test + @TestMetadata("initializers1.kt") + public void testInitializers1() { + runTest("compiler/testData/codegen/box/initializers/initializers1.kt"); + } + + @Test + @TestMetadata("initializers2.kt") + public void testInitializers2() { + runTest("compiler/testData/codegen/box/initializers/initializers2.kt"); + } + + @Test + @TestMetadata("initializers3.kt") + public void testInitializers3() { + runTest("compiler/testData/codegen/box/initializers/initializers3.kt"); + } + + @Test + @TestMetadata("initializers4.kt") + public void testInitializers4() { + runTest("compiler/testData/codegen/box/initializers/initializers4.kt"); + } + + @Test + @TestMetadata("initializers5.kt") + public void testInitializers5() { + runTest("compiler/testData/codegen/box/initializers/initializers5.kt"); + } + + @Test + @TestMetadata("initializers7.kt") + public void testInitializers7() { + runTest("compiler/testData/codegen/box/initializers/initializers7.kt"); + } + + @Test + @TestMetadata("initializers8.kt") + public void testInitializers8() { + runTest("compiler/testData/codegen/box/initializers/initializers8.kt"); + } + + @Test + @TestMetadata("multipleModules1.kt") + public void testMultipleModules1() { + runTest("compiler/testData/codegen/box/initializers/multipleModules1.kt"); + } + + @Test + @TestMetadata("object.kt") + public void testObject() { + runTest("compiler/testData/codegen/box/initializers/object.kt"); + } + + @Test + @TestMetadata("sharedVarInInitBlock.kt") + public void testSharedVarInInitBlock() { + runTest("compiler/testData/codegen/box/initializers/sharedVarInInitBlock.kt"); + } + + @Test + @TestMetadata("static_arrays.kt") + public void testStatic_arrays() { + runTest("compiler/testData/codegen/box/initializers/static_arrays.kt"); + } + + @Test + @TestMetadata("static_list.kt") + public void testStatic_list() { + runTest("compiler/testData/codegen/box/initializers/static_list.kt"); + } + + @Test + @TestMetadata("static_smallIntIdentity.kt") + public void testStatic_smallIntIdentity() { + runTest("compiler/testData/codegen/box/initializers/static_smallIntIdentity.kt"); + } + + @Test + @TestMetadata("static_varargChange.kt") + public void testStatic_varargChange() { + runTest("compiler/testData/codegen/box/initializers/static_varargChange.kt"); + } + + @Test + @TestMetadata("throw1.kt") + public void testThrow1() { + runTest("compiler/testData/codegen/box/initializers/throw1.kt"); + } + + @Test + @TestMetadata("throw2.kt") + public void testThrow2() { + runTest("compiler/testData/codegen/box/initializers/throw2.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/initializers/files") + @TestDataPath("$PROJECT_ROOT") + public class Files { + @Test + public void testAllFilesPresentInFiles() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/initializers/files"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("globalInitedAfterAccessingFile.kt") + public void testGlobalInitedAfterAccessingFile() { + runTest("compiler/testData/codegen/box/initializers/files/globalInitedAfterAccessingFile.kt"); + } + + @Test + @TestMetadata("globalNotInitedAfterAccessingClassInternals.kt") + public void testGlobalNotInitedAfterAccessingClassInternals() { + runTest("compiler/testData/codegen/box/initializers/files/globalNotInitedAfterAccessingClassInternals.kt"); + } + + @Test + @TestMetadata("simple.kt") + public void testSimple() { + runTest("compiler/testData/codegen/box/initializers/files/simple.kt"); + } + + @Test + @TestMetadata("simpleMultiModule.kt") + public void testSimpleMultiModule() { + runTest("compiler/testData/codegen/box/initializers/files/simpleMultiModule.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/inline") + @TestDataPath("$PROJECT_ROOT") + public class Inline { + @Test + public void testAllFilesPresentInInline() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inline"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("changingCapturedLocal.kt") + public void testChangingCapturedLocal() { + runTest("compiler/testData/codegen/box/inline/changingCapturedLocal.kt"); + } + + @Test + @TestMetadata("classDeclarationInsideInline.kt") + public void testClassDeclarationInsideInline() { + runTest("compiler/testData/codegen/box/inline/classDeclarationInsideInline.kt"); + } + + @Test + @TestMetadata("coercionToUnit.kt") + public void testCoercionToUnit() { + runTest("compiler/testData/codegen/box/inline/coercionToUnit.kt"); + } + + @Test + @TestMetadata("correctOrderFunctionReference.kt") + public void testCorrectOrderFunctionReference() { + runTest("compiler/testData/codegen/box/inline/correctOrderFunctionReference.kt"); + } + + @Test + @TestMetadata("defaultArgs.kt") + public void testDefaultArgs() { + runTest("compiler/testData/codegen/box/inline/defaultArgs.kt"); + } + + @Test + @TestMetadata("defaultArgsMultipleModules.kt") + public void testDefaultArgsMultipleModules() { + runTest("compiler/testData/codegen/box/inline/defaultArgsMultipleModules.kt"); + } + + @Test + @TestMetadata("genericFunctionReference.kt") + public void testGenericFunctionReference() { + runTest("compiler/testData/codegen/box/inline/genericFunctionReference.kt"); + } + + @Test + @TestMetadata("getClass.kt") + public void testGetClass() { + runTest("compiler/testData/codegen/box/inline/getClass.kt"); + } + + @Test + @TestMetadata("inline0.kt") + public void testInline0() { + runTest("compiler/testData/codegen/box/inline/inline0.kt"); + } + + @Test + @TestMetadata("inline1.kt") + public void testInline1() { + runTest("compiler/testData/codegen/box/inline/inline1.kt"); + } + + @Test + @TestMetadata("inline10.kt") + public void testInline10() { + runTest("compiler/testData/codegen/box/inline/inline10.kt"); + } + + @Test + @TestMetadata("inline11.kt") + public void testInline11() { + runTest("compiler/testData/codegen/box/inline/inline11.kt"); + } + + @Test + @TestMetadata("inline12.kt") + public void testInline12() { + runTest("compiler/testData/codegen/box/inline/inline12.kt"); + } + + @Test + @TestMetadata("inline13.kt") + public void testInline13() { + runTest("compiler/testData/codegen/box/inline/inline13.kt"); + } + + @Test + @TestMetadata("inline14.kt") + public void testInline14() { + runTest("compiler/testData/codegen/box/inline/inline14.kt"); + } + + @Test + @TestMetadata("inline15.kt") + public void testInline15() { + runTest("compiler/testData/codegen/box/inline/inline15.kt"); + } + + @Test + @TestMetadata("inline16.kt") + public void testInline16() { + runTest("compiler/testData/codegen/box/inline/inline16.kt"); + } + + @Test + @TestMetadata("inline17.kt") + public void testInline17() { + runTest("compiler/testData/codegen/box/inline/inline17.kt"); + } + + @Test + @TestMetadata("inline19.kt") + public void testInline19() { + runTest("compiler/testData/codegen/box/inline/inline19.kt"); + } + + @Test + @TestMetadata("inline2.kt") + public void testInline2() { + runTest("compiler/testData/codegen/box/inline/inline2.kt"); + } + + @Test + @TestMetadata("inline20.kt") + public void testInline20() { + runTest("compiler/testData/codegen/box/inline/inline20.kt"); + } + + @Test + @TestMetadata("inline21.kt") + public void testInline21() { + runTest("compiler/testData/codegen/box/inline/inline21.kt"); + } + + @Test + @TestMetadata("inline22.kt") + public void testInline22() { + runTest("compiler/testData/codegen/box/inline/inline22.kt"); + } + + @Test + @TestMetadata("inline23.kt") + public void testInline23() { + runTest("compiler/testData/codegen/box/inline/inline23.kt"); + } + + @Test + @TestMetadata("inline24.kt") + public void testInline24() { + runTest("compiler/testData/codegen/box/inline/inline24.kt"); + } + + @Test + @TestMetadata("inline25.kt") + public void testInline25() { + runTest("compiler/testData/codegen/box/inline/inline25.kt"); + } + + @Test + @TestMetadata("inline26.kt") + public void testInline26() { + runTest("compiler/testData/codegen/box/inline/inline26.kt"); + } + + @Test + @TestMetadata("inline3.kt") + public void testInline3() { + runTest("compiler/testData/codegen/box/inline/inline3.kt"); + } + + @Test + @TestMetadata("inline4.kt") + public void testInline4() { + runTest("compiler/testData/codegen/box/inline/inline4.kt"); + } + + @Test + @TestMetadata("inline5.kt") + public void testInline5() { + runTest("compiler/testData/codegen/box/inline/inline5.kt"); + } + + @Test + @TestMetadata("inline6.kt") + public void testInline6() { + runTest("compiler/testData/codegen/box/inline/inline6.kt"); + } + + @Test + @TestMetadata("inline7.kt") + public void testInline7() { + runTest("compiler/testData/codegen/box/inline/inline7.kt"); + } + + @Test + @TestMetadata("inline8.kt") + public void testInline8() { + runTest("compiler/testData/codegen/box/inline/inline8.kt"); + } + + @Test + @TestMetadata("inline9.kt") + public void testInline9() { + runTest("compiler/testData/codegen/box/inline/inline9.kt"); + } + + @Test + @TestMetadata("inlineCtor.kt") + public void testInlineCtor() { + runTest("compiler/testData/codegen/box/inline/inlineCtor.kt"); + } + + @Test + @TestMetadata("innerInlineFunCapturesOuter.kt") + public void testInnerInlineFunCapturesOuter() { + runTest("compiler/testData/codegen/box/inline/innerInlineFunCapturesOuter.kt"); + } + + @Test + @TestMetadata("lambdaAsAny.kt") + public void testLambdaAsAny() { + runTest("compiler/testData/codegen/box/inline/lambdaAsAny.kt"); + } + + @Test + @TestMetadata("lambdaInDefaultValue.kt") + public void testLambdaInDefaultValue() { + runTest("compiler/testData/codegen/box/inline/lambdaInDefaultValue.kt"); + } + + @Test + @TestMetadata("lateinitProperty.kt") + public void testLateinitProperty() { + runTest("compiler/testData/codegen/box/inline/lateinitProperty.kt"); + } + + @Test + @TestMetadata("localFunctionInInitializerBlock.kt") + public void testLocalFunctionInInitializerBlock() { + runTest("compiler/testData/codegen/box/inline/localFunctionInInitializerBlock.kt"); + } + + @Test + @TestMetadata("localObjectReturnedFromWhen.kt") + public void testLocalObjectReturnedFromWhen() { + runTest("compiler/testData/codegen/box/inline/localObjectReturnedFromWhen.kt"); + } + + @Test + @TestMetadata("propertyAccessorInline.kt") + public void testPropertyAccessorInline() { + runTest("compiler/testData/codegen/box/inline/propertyAccessorInline.kt"); + } + + @Test + @TestMetadata("redundantCoercionsCleaner.kt") + public void testRedundantCoercionsCleaner() { + runTest("compiler/testData/codegen/box/inline/redundantCoercionsCleaner.kt"); + } + + @Test + @TestMetadata("redundantCoercionsCleanerKT48876.kt") + public void testRedundantCoercionsCleanerKT48876() { + runTest("compiler/testData/codegen/box/inline/redundantCoercionsCleanerKT48876.kt"); + } + + @Test + @TestMetadata("redundantCoercionsCleanerKT49356.kt") + public void testRedundantCoercionsCleanerKT49356() { + runTest("compiler/testData/codegen/box/inline/redundantCoercionsCleanerKT49356.kt"); + } + + @Test + @TestMetadata("returnLocalClassFromBlock.kt") + public void testReturnLocalClassFromBlock() { + runTest("compiler/testData/codegen/box/inline/returnLocalClassFromBlock.kt"); + } + + @Test + @TestMetadata("sharedVar.kt") + public void testSharedVar() { + runTest("compiler/testData/codegen/box/inline/sharedVar.kt"); + } + + @Test + @TestMetadata("statementAsLastExprInBlock.kt") + public void testStatementAsLastExprInBlock() { + runTest("compiler/testData/codegen/box/inline/statementAsLastExprInBlock.kt"); + } + + @Test + @TestMetadata("twiceInlinedObject.kt") + public void testTwiceInlinedObject() { + runTest("compiler/testData/codegen/box/inline/twiceInlinedObject.kt"); + } + + @Test + @TestMetadata("typeSubstitutionInFakeOverride.kt") + public void testTypeSubstitutionInFakeOverride() { + runTest("compiler/testData/codegen/box/inline/typeSubstitutionInFakeOverride.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/inlineArgsInPlace") @TestDataPath("$PROJECT_ROOT") @@ -22490,6 +24744,40 @@ public class JvmAbiConsistencyTestBoxGenerated extends AbstractJvmAbiConsistency } } + @Nested + @TestMetadata("compiler/testData/codegen/box/inlineClass") + @TestDataPath("$PROJECT_ROOT") + public class InlineClass { + @Test + public void testAllFilesPresentInInlineClass() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineClass"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("customEquals.kt") + public void testCustomEquals() { + runTest("compiler/testData/codegen/box/inlineClass/customEquals.kt"); + } + + @Test + @TestMetadata("defaultEquals.kt") + public void testDefaultEquals() { + runTest("compiler/testData/codegen/box/inlineClass/defaultEquals.kt"); + } + + @Test + @TestMetadata("nestedInlineClasses.kt") + public void testNestedInlineClasses() { + runTest("compiler/testData/codegen/box/inlineClass/nestedInlineClasses.kt"); + } + + @Test + @TestMetadata("secondaryConstructorWithGenerics.kt") + public void testSecondaryConstructorWithGenerics() { + runTest("compiler/testData/codegen/box/inlineClass/secondaryConstructorWithGenerics.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/inlineClasses") @TestDataPath("$PROJECT_ROOT") @@ -28126,6 +30414,88 @@ public class JvmAbiConsistencyTestBoxGenerated extends AbstractJvmAbiConsistency } } + @Nested + @TestMetadata("compiler/testData/codegen/box/innerClass") + @TestDataPath("$PROJECT_ROOT") + public class InnerClass { + @Test + public void testAllFilesPresentInInnerClass() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/innerClass"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("doubleInner.kt") + public void testDoubleInner() { + runTest("compiler/testData/codegen/box/innerClass/doubleInner.kt"); + } + + @Test + @TestMetadata("generic.kt") + public void testGeneric() { + runTest("compiler/testData/codegen/box/innerClass/generic.kt"); + } + + @Test + @TestMetadata("getOuterVal.kt") + public void testGetOuterVal() { + runTest("compiler/testData/codegen/box/innerClass/getOuterVal.kt"); + } + + @Test + @TestMetadata("inheritanceMultipleModules1.kt") + public void testInheritanceMultipleModules1() { + runTest("compiler/testData/codegen/box/innerClass/inheritanceMultipleModules1.kt"); + } + + @Test + @TestMetadata("inheritanceMultipleModules2.kt") + public void testInheritanceMultipleModules2() { + runTest("compiler/testData/codegen/box/innerClass/inheritanceMultipleModules2.kt"); + } + + @Test + @TestMetadata("inheritanceMultipleModules3.kt") + public void testInheritanceMultipleModules3() { + runTest("compiler/testData/codegen/box/innerClass/inheritanceMultipleModules3.kt"); + } + + @Test + @TestMetadata("multipleModules.kt") + public void testMultipleModules() { + runTest("compiler/testData/codegen/box/innerClass/multipleModules.kt"); + } + + @Test + @TestMetadata("noPrimaryConstructor.kt") + public void testNoPrimaryConstructor() { + runTest("compiler/testData/codegen/box/innerClass/noPrimaryConstructor.kt"); + } + + @Test + @TestMetadata("qualifiedThis.kt") + public void testQualifiedThis() { + runTest("compiler/testData/codegen/box/innerClass/qualifiedThis.kt"); + } + + @Test + @TestMetadata("secondaryConstructor.kt") + public void testSecondaryConstructor() { + runTest("compiler/testData/codegen/box/innerClass/secondaryConstructor.kt"); + } + + @Test + @TestMetadata("simple.kt") + public void testSimple() { + runTest("compiler/testData/codegen/box/innerClass/simple.kt"); + } + + @Test + @TestMetadata("superOuter.kt") + public void testSuperOuter() { + runTest("compiler/testData/codegen/box/innerClass/superOuter.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/innerNested") @TestDataPath("$PROJECT_ROOT") @@ -28526,6 +30896,40 @@ public class JvmAbiConsistencyTestBoxGenerated extends AbstractJvmAbiConsistency } } + @Nested + @TestMetadata("compiler/testData/codegen/box/interfaceCallsNCasts") + @TestDataPath("$PROJECT_ROOT") + public class InterfaceCallsNCasts { + @Test + public void testAllFilesPresentInInterfaceCallsNCasts() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/interfaceCallsNCasts"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("conservativeItable.kt") + public void testConservativeItable() { + runTest("compiler/testData/codegen/box/interfaceCallsNCasts/conservativeItable.kt"); + } + + @Test + @TestMetadata("diamond.kt") + public void testDiamond() { + runTest("compiler/testData/codegen/box/interfaceCallsNCasts/diamond.kt"); + } + + @Test + @TestMetadata("finalMethod.kt") + public void testFinalMethod() { + runTest("compiler/testData/codegen/box/interfaceCallsNCasts/finalMethod.kt"); + } + + @Test + @TestMetadata("interface0.kt") + public void testInterface0() { + runTest("compiler/testData/codegen/box/interfaceCallsNCasts/interface0.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/intrinsics") @TestDataPath("$PROJECT_ROOT") @@ -33676,6 +36080,80 @@ public class JvmAbiConsistencyTestBoxGenerated extends AbstractJvmAbiConsistency } } + @Nested + @TestMetadata("compiler/testData/codegen/box/kclass") + @TestDataPath("$PROJECT_ROOT") + public class Kclass { + @Test + public void testAllFilesPresentInKclass() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/kclass"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("kClassEnumArgument.kt") + public void testKClassEnumArgument() { + runTest("compiler/testData/codegen/box/kclass/kClassEnumArgument.kt"); + } + + @Test + @TestMetadata("kclass1.kt") + public void testKclass1() { + runTest("compiler/testData/codegen/box/kclass/kclass1.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/ktype") + @TestDataPath("$PROJECT_ROOT") + public class Ktype { + @Test + public void testAllFilesPresentInKtype() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ktype"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("ktype1_basics1.kt") + public void testKtype1_basics1() { + runTest("compiler/testData/codegen/box/ktype/ktype1_basics1.kt"); + } + + @Test + @TestMetadata("ktype1_inner.kt") + public void testKtype1_inner() { + runTest("compiler/testData/codegen/box/ktype/ktype1_inner.kt"); + } + + @Test + @TestMetadata("nonReified_class.kt") + public void testNonReified_class() { + runTest("compiler/testData/codegen/box/ktype/nonReified_class.kt"); + } + + @Test + @TestMetadata("nonReified_equality.kt") + public void testNonReified_equality() { + runTest("compiler/testData/codegen/box/ktype/nonReified_equality.kt"); + } + + @Test + @TestMetadata("nonReified_fun.kt") + public void testNonReified_fun() { + runTest("compiler/testData/codegen/box/ktype/nonReified_fun.kt"); + } + + @Test + @TestMetadata("nonReified_recursionInReified.kt") + public void testNonReified_recursionInReified() { + runTest("compiler/testData/codegen/box/ktype/nonReified_recursionInReified.kt"); + } + + @Test + @TestMetadata("nonReified_reifiedUpperBound.kt") + public void testNonReified_reifiedUpperBound() { + runTest("compiler/testData/codegen/box/ktype/nonReified_reifiedUpperBound.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/labels") @TestDataPath("$PROJECT_ROOT") @@ -33734,6 +36212,188 @@ public class JvmAbiConsistencyTestBoxGenerated extends AbstractJvmAbiConsistency } } + @Nested + @TestMetadata("compiler/testData/codegen/box/lambda") + @TestDataPath("$PROJECT_ROOT") + public class Lambda { + @Test + public void testAllFilesPresentInLambda() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/lambda"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("lambda1.kt") + public void testLambda1() { + runTest("compiler/testData/codegen/box/lambda/lambda1.kt"); + } + + @Test + @TestMetadata("lambda10.kt") + public void testLambda10() { + runTest("compiler/testData/codegen/box/lambda/lambda10.kt"); + } + + @Test + @TestMetadata("lambda11.kt") + public void testLambda11() { + runTest("compiler/testData/codegen/box/lambda/lambda11.kt"); + } + + @Test + @TestMetadata("lambda12.kt") + public void testLambda12() { + runTest("compiler/testData/codegen/box/lambda/lambda12.kt"); + } + + @Test + @TestMetadata("lambda13.kt") + public void testLambda13() { + runTest("compiler/testData/codegen/box/lambda/lambda13.kt"); + } + + @Test + @TestMetadata("lambda14.kt") + public void testLambda14() { + runTest("compiler/testData/codegen/box/lambda/lambda14.kt"); + } + + @Test + @TestMetadata("lambda2.kt") + public void testLambda2() { + runTest("compiler/testData/codegen/box/lambda/lambda2.kt"); + } + + @Test + @TestMetadata("lambda3.kt") + public void testLambda3() { + runTest("compiler/testData/codegen/box/lambda/lambda3.kt"); + } + + @Test + @TestMetadata("lambda4.kt") + public void testLambda4() { + runTest("compiler/testData/codegen/box/lambda/lambda4.kt"); + } + + @Test + @TestMetadata("lambda5.kt") + public void testLambda5() { + runTest("compiler/testData/codegen/box/lambda/lambda5.kt"); + } + + @Test + @TestMetadata("lambda6.kt") + public void testLambda6() { + runTest("compiler/testData/codegen/box/lambda/lambda6.kt"); + } + + @Test + @TestMetadata("lambda7.kt") + public void testLambda7() { + runTest("compiler/testData/codegen/box/lambda/lambda7.kt"); + } + + @Test + @TestMetadata("lambda8.kt") + public void testLambda8() { + runTest("compiler/testData/codegen/box/lambda/lambda8.kt"); + } + + @Test + @TestMetadata("lambda9.kt") + public void testLambda9() { + runTest("compiler/testData/codegen/box/lambda/lambda9.kt"); + } + + @Test + @TestMetadata("lambda_kt49360_trivial.kt") + public void testLambda_kt49360_trivial() { + runTest("compiler/testData/codegen/box/lambda/lambda_kt49360_trivial.kt"); + } + + @Test + @TestMetadata("lambda_kt49360_withFlow.kt") + public void testLambda_kt49360_withFlow() { + runTest("compiler/testData/codegen/box/lambda/lambda_kt49360_withFlow.kt"); + } + + @Test + @TestMetadata("lambda_kt49360_wrapBlock.kt") + public void testLambda_kt49360_wrapBlock() { + runTest("compiler/testData/codegen/box/lambda/lambda_kt49360_wrapBlock.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/lateinit") + @TestDataPath("$PROJECT_ROOT") + public class Lateinit { + @Test + public void testAllFilesPresentInLateinit() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/lateinit"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("globalIsInitialized.kt") + public void testGlobalIsInitialized() { + runTest("compiler/testData/codegen/box/lateinit/globalIsInitialized.kt"); + } + + @Test + @TestMetadata("inBaseClass.kt") + public void testInBaseClass() { + runTest("compiler/testData/codegen/box/lateinit/inBaseClass.kt"); + } + + @Test + @TestMetadata("initialized.kt") + public void testInitialized() { + runTest("compiler/testData/codegen/box/lateinit/initialized.kt"); + } + + @Test + @TestMetadata("innerIsInitialized.kt") + public void testInnerIsInitialized() { + runTest("compiler/testData/codegen/box/lateinit/innerIsInitialized.kt"); + } + + @Test + @TestMetadata("isInitialized.kt") + public void testIsInitialized() { + runTest("compiler/testData/codegen/box/lateinit/isInitialized.kt"); + } + + @Test + @TestMetadata("localCapturedInitialized.kt") + public void testLocalCapturedInitialized() { + runTest("compiler/testData/codegen/box/lateinit/localCapturedInitialized.kt"); + } + + @Test + @TestMetadata("localCapturedNotInitialized.kt") + public void testLocalCapturedNotInitialized() { + runTest("compiler/testData/codegen/box/lateinit/localCapturedNotInitialized.kt"); + } + + @Test + @TestMetadata("localInitialized.kt") + public void testLocalInitialized() { + runTest("compiler/testData/codegen/box/lateinit/localInitialized.kt"); + } + + @Test + @TestMetadata("localNotInitialized.kt") + public void testLocalNotInitialized() { + runTest("compiler/testData/codegen/box/lateinit/localNotInitialized.kt"); + } + + @Test + @TestMetadata("notInitialized.kt") + public void testNotInitialized() { + runTest("compiler/testData/codegen/box/lateinit/notInitialized.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/lazyCodegen") @TestDataPath("$PROJECT_ROOT") @@ -33862,6 +36522,98 @@ public class JvmAbiConsistencyTestBoxGenerated extends AbstractJvmAbiConsistency } } + @Nested + @TestMetadata("compiler/testData/codegen/box/literals") + @TestDataPath("$PROJECT_ROOT") + public class Literals { + @Test + public void testAllFilesPresentInLiterals() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/literals"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("listof1.kt") + public void testListof1() { + runTest("compiler/testData/codegen/box/literals/listof1.kt"); + } + + @Test + @TestMetadata("strdedup1.kt") + public void testStrdedup1() { + runTest("compiler/testData/codegen/box/literals/strdedup1.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/localClass") + @TestDataPath("$PROJECT_ROOT") + public class LocalClass { + @Test + public void testAllFilesPresentInLocalClass() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/localClass"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("innerTakesCapturedFromOuter.kt") + public void testInnerTakesCapturedFromOuter() { + runTest("compiler/testData/codegen/box/localClass/innerTakesCapturedFromOuter.kt"); + } + + @Test + @TestMetadata("innerWithCapture.kt") + public void testInnerWithCapture() { + runTest("compiler/testData/codegen/box/localClass/innerWithCapture.kt"); + } + + @Test + @TestMetadata("localFunctionCallFromLocalClass.kt") + public void testLocalFunctionCallFromLocalClass() { + runTest("compiler/testData/codegen/box/localClass/localFunctionCallFromLocalClass.kt"); + } + + @Test + @TestMetadata("localFunctionInLocalClass.kt") + public void testLocalFunctionInLocalClass() { + runTest("compiler/testData/codegen/box/localClass/localFunctionInLocalClass.kt"); + } + + @Test + @TestMetadata("localHierarchy.kt") + public void testLocalHierarchy() { + runTest("compiler/testData/codegen/box/localClass/localHierarchy.kt"); + } + + @Test + @TestMetadata("noPrimaryConstructor.kt") + public void testNoPrimaryConstructor() { + runTest("compiler/testData/codegen/box/localClass/noPrimaryConstructor.kt"); + } + + @Test + @TestMetadata("objectExpressionInInitializer.kt") + public void testObjectExpressionInInitializer() { + runTest("compiler/testData/codegen/box/localClass/objectExpressionInInitializer.kt"); + } + + @Test + @TestMetadata("objectExpressionInProperty.kt") + public void testObjectExpressionInProperty() { + runTest("compiler/testData/codegen/box/localClass/objectExpressionInProperty.kt"); + } + + @Test + @TestMetadata("tryCatch.kt") + public void testTryCatch() { + runTest("compiler/testData/codegen/box/localClass/tryCatch.kt"); + } + + @Test + @TestMetadata("virtualCallFromConstructor.kt") + public void testVirtualCallFromConstructor() { + runTest("compiler/testData/codegen/box/localClass/virtualCallFromConstructor.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/localClasses") @TestDataPath("$PROJECT_ROOT") @@ -34112,6 +36864,38 @@ public class JvmAbiConsistencyTestBoxGenerated extends AbstractJvmAbiConsistency } } + @Nested + @TestMetadata("compiler/testData/codegen/box/localEscapeAnalysis") + @TestDataPath("$PROJECT_ROOT") + public class LocalEscapeAnalysis { + @Test + public void testAllFilesPresentInLocalEscapeAnalysis() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/localEscapeAnalysis"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("arraysFieldWrite.kt") + public void testArraysFieldWrite() { + runTest("compiler/testData/codegen/box/localEscapeAnalysis/arraysFieldWrite.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/lower") + @TestDataPath("$PROJECT_ROOT") + public class Lower { + @Test + public void testAllFilesPresentInLower() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/lower"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("localDelegatedProperty.kt") + public void testLocalDelegatedProperty() { + runTest("compiler/testData/codegen/box/lower/localDelegatedProperty.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/mangling") @TestDataPath("$PROJECT_ROOT") @@ -34151,6 +36935,12 @@ public class JvmAbiConsistencyTestBoxGenerated extends AbstractJvmAbiConsistency runTest("compiler/testData/codegen/box/mangling/internalOverrideSuperCall.kt"); } + @Test + @TestMetadata("multipleConstructors.kt") + public void testMultipleConstructors() { + runTest("compiler/testData/codegen/box/mangling/multipleConstructors.kt"); + } + @Test @TestMetadata("noOverrideWithJava.kt") public void testNoOverrideWithJava() { @@ -35492,6 +38282,98 @@ public class JvmAbiConsistencyTestBoxGenerated extends AbstractJvmAbiConsistency } } + @Nested + @TestMetadata("compiler/testData/codegen/box/object") + @TestDataPath("$PROJECT_ROOT") + public class Object { + @Test + public void testAllFilesPresentInObject() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/object"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("constructor0.kt") + public void testConstructor0() { + runTest("compiler/testData/codegen/box/object/constructor0.kt"); + } + + @Test + @TestMetadata("fields.kt") + public void testFields() { + runTest("compiler/testData/codegen/box/object/fields.kt"); + } + + @Test + @TestMetadata("fields1.kt") + public void testFields1() { + runTest("compiler/testData/codegen/box/object/fields1.kt"); + } + + @Test + @TestMetadata("fields2.kt") + public void testFields2() { + runTest("compiler/testData/codegen/box/object/fields2.kt"); + } + + @Test + @TestMetadata("globalInitializer.kt") + public void testGlobalInitializer() { + runTest("compiler/testData/codegen/box/object/globalInitializer.kt"); + } + + @Test + @TestMetadata("init0.kt") + public void testInit0() { + runTest("compiler/testData/codegen/box/object/init0.kt"); + } + + @Test + @TestMetadata("initialization.kt") + public void testInitialization() { + runTest("compiler/testData/codegen/box/object/initialization.kt"); + } + + @Test + @TestMetadata("initialization1.kt") + public void testInitialization1() { + runTest("compiler/testData/codegen/box/object/initialization1.kt"); + } + + @Test + @TestMetadata("method_call.kt") + public void testMethod_call() { + runTest("compiler/testData/codegen/box/object/method_call.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/objectExpression") + @TestDataPath("$PROJECT_ROOT") + public class ObjectExpression { + @Test + public void testAllFilesPresentInObjectExpression() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/objectExpression"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("expr1.kt") + public void testExpr1() { + runTest("compiler/testData/codegen/box/objectExpression/expr1.kt"); + } + + @Test + @TestMetadata("expr2.kt") + public void testExpr2() { + runTest("compiler/testData/codegen/box/objectExpression/expr2.kt"); + } + + @Test + @TestMetadata("expr3.kt") + public void testExpr3() { + runTest("compiler/testData/codegen/box/objectExpression/expr3.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/objectIntrinsics") @TestDataPath("$PROJECT_ROOT") @@ -38788,6 +41670,64 @@ public class JvmAbiConsistencyTestBoxGenerated extends AbstractJvmAbiConsistency } } + @Nested + @TestMetadata("compiler/testData/codegen/box/propertyCallableReference") + @TestDataPath("$PROJECT_ROOT") + public class PropertyCallableReference { + @Test + public void testAllFilesPresentInPropertyCallableReference() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/propertyCallableReference"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("dynamicReceiver.kt") + public void testDynamicReceiver() { + runTest("compiler/testData/codegen/box/propertyCallableReference/dynamicReceiver.kt"); + } + + @Test + @TestMetadata("multipleModules.kt") + public void testMultipleModules() { + runTest("compiler/testData/codegen/box/propertyCallableReference/multipleModules.kt"); + } + + @Test + @TestMetadata("valClass.kt") + public void testValClass() { + runTest("compiler/testData/codegen/box/propertyCallableReference/valClass.kt"); + } + + @Test + @TestMetadata("valExtension.kt") + public void testValExtension() { + runTest("compiler/testData/codegen/box/propertyCallableReference/valExtension.kt"); + } + + @Test + @TestMetadata("valModule.kt") + public void testValModule() { + runTest("compiler/testData/codegen/box/propertyCallableReference/valModule.kt"); + } + + @Test + @TestMetadata("varClass.kt") + public void testVarClass() { + runTest("compiler/testData/codegen/box/propertyCallableReference/varClass.kt"); + } + + @Test + @TestMetadata("varExtension.kt") + public void testVarExtension() { + runTest("compiler/testData/codegen/box/propertyCallableReference/varExtension.kt"); + } + + @Test + @TestMetadata("varModule.kt") + public void testVarModule() { + runTest("compiler/testData/codegen/box/propertyCallableReference/varModule.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/publishedApi") @TestDataPath("$PROJECT_ROOT") @@ -51034,6 +53974,58 @@ public class JvmAbiConsistencyTestBoxGenerated extends AbstractJvmAbiConsistency } } + @Nested + @TestMetadata("compiler/testData/codegen/box/serialization") + @TestDataPath("$PROJECT_ROOT") + public class Serialization { + @Test + public void testAllFilesPresentInSerialization() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/serialization"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("deserializedMembers.kt") + public void testDeserializedMembers() { + runTest("compiler/testData/codegen/box/serialization/deserializedMembers.kt"); + } + + @Test + @TestMetadata("serializedCatch.kt") + public void testSerializedCatch() { + runTest("compiler/testData/codegen/box/serialization/serializedCatch.kt"); + } + + @Test + @TestMetadata("serializedCharConstant.kt") + public void testSerializedCharConstant() { + runTest("compiler/testData/codegen/box/serialization/serializedCharConstant.kt"); + } + + @Test + @TestMetadata("serializedDefaultArgs.kt") + public void testSerializedDefaultArgs() { + runTest("compiler/testData/codegen/box/serialization/serializedDefaultArgs.kt"); + } + + @Test + @TestMetadata("serializedDoWhile.kt") + public void testSerializedDoWhile() { + runTest("compiler/testData/codegen/box/serialization/serializedDoWhile.kt"); + } + + @Test + @TestMetadata("serializedEnumOrdinal.kt") + public void testSerializedEnumOrdinal() { + runTest("compiler/testData/codegen/box/serialization/serializedEnumOrdinal.kt"); + } + + @Test + @TestMetadata("serializedVararg.kt") + public void testSerializedVararg() { + runTest("compiler/testData/codegen/box/serialization/serializedVararg.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/size") @TestDataPath("$PROJECT_ROOT") @@ -51706,6 +54698,22 @@ public class JvmAbiConsistencyTestBoxGenerated extends AbstractJvmAbiConsistency } } + @Nested + @TestMetadata("compiler/testData/codegen/box/stringTrim") + @TestDataPath("$PROJECT_ROOT") + public class StringTrim { + @Test + public void testAllFilesPresentInStringTrim() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/stringTrim"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("stringTrim.kt") + public void testStringTrim() { + runTest("compiler/testData/codegen/box/stringTrim/stringTrim.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/strings") @TestDataPath("$PROJECT_ROOT") @@ -53234,6 +56242,142 @@ public class JvmAbiConsistencyTestBoxGenerated extends AbstractJvmAbiConsistency } } + @Nested + @TestMetadata("compiler/testData/codegen/box/try") + @TestDataPath("$PROJECT_ROOT") + public class Try { + @Test + public void testAllFilesPresentInTry() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/try"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("catch3.kt") + public void testCatch3() { + runTest("compiler/testData/codegen/box/try/catch3.kt"); + } + + @Test + @TestMetadata("catch4.kt") + public void testCatch4() { + runTest("compiler/testData/codegen/box/try/catch4.kt"); + } + + @Test + @TestMetadata("catch5.kt") + public void testCatch5() { + runTest("compiler/testData/codegen/box/try/catch5.kt"); + } + + @Test + @TestMetadata("catch6.kt") + public void testCatch6() { + runTest("compiler/testData/codegen/box/try/catch6.kt"); + } + + @Test + @TestMetadata("catch8.kt") + public void testCatch8() { + runTest("compiler/testData/codegen/box/try/catch8.kt"); + } + + @Test + @TestMetadata("finally1.kt") + public void testFinally1() { + runTest("compiler/testData/codegen/box/try/finally1.kt"); + } + + @Test + @TestMetadata("finally10.kt") + public void testFinally10() { + runTest("compiler/testData/codegen/box/try/finally10.kt"); + } + + @Test + @TestMetadata("finally11.kt") + public void testFinally11() { + runTest("compiler/testData/codegen/box/try/finally11.kt"); + } + + @Test + @TestMetadata("finally2.kt") + public void testFinally2() { + runTest("compiler/testData/codegen/box/try/finally2.kt"); + } + + @Test + @TestMetadata("finally3.kt") + public void testFinally3() { + runTest("compiler/testData/codegen/box/try/finally3.kt"); + } + + @Test + @TestMetadata("finally4.kt") + public void testFinally4() { + runTest("compiler/testData/codegen/box/try/finally4.kt"); + } + + @Test + @TestMetadata("finally5.kt") + public void testFinally5() { + runTest("compiler/testData/codegen/box/try/finally5.kt"); + } + + @Test + @TestMetadata("finally6.kt") + public void testFinally6() { + runTest("compiler/testData/codegen/box/try/finally6.kt"); + } + + @Test + @TestMetadata("finally7.kt") + public void testFinally7() { + runTest("compiler/testData/codegen/box/try/finally7.kt"); + } + + @Test + @TestMetadata("finally8.kt") + public void testFinally8() { + runTest("compiler/testData/codegen/box/try/finally8.kt"); + } + + @Test + @TestMetadata("finally9.kt") + public void testFinally9() { + runTest("compiler/testData/codegen/box/try/finally9.kt"); + } + + @Test + @TestMetadata("returnsDifferentTypes.kt") + public void testReturnsDifferentTypes() { + runTest("compiler/testData/codegen/box/try/returnsDifferentTypes.kt"); + } + + @Test + @TestMetadata("try1.kt") + public void testTry1() { + runTest("compiler/testData/codegen/box/try/try1.kt"); + } + + @Test + @TestMetadata("try2.kt") + public void testTry2() { + runTest("compiler/testData/codegen/box/try/try2.kt"); + } + + @Test + @TestMetadata("try3.kt") + public void testTry3() { + runTest("compiler/testData/codegen/box/try/try3.kt"); + } + + @Test + @TestMetadata("try4.kt") + public void testTry4() { + runTest("compiler/testData/codegen/box/try/try4.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/typeInfo") @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 564ea696a13..d4a48e0882f 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 @@ -762,6 +762,82 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { } } + @Nested + @TestMetadata("compiler/testData/codegen/box/arithmetic") + @TestDataPath("$PROJECT_ROOT") + public class Arithmetic { + @Test + public void testAllFilesPresentInArithmetic() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/arithmetic"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); + } + + @Test + @TestMetadata("basic_charConversions.kt") + public void testBasic_charConversions() { + runTest("compiler/testData/codegen/box/arithmetic/basic_charConversions.kt"); + } + + @Test + @TestMetadata("basic_charCornerCases.kt") + public void testBasic_charCornerCases() { + runTest("compiler/testData/codegen/box/arithmetic/basic_charCornerCases.kt"); + } + + @Test + @TestMetadata("basic_compareIntToFloat.kt") + public void testBasic_compareIntToFloat() { + runTest("compiler/testData/codegen/box/arithmetic/basic_compareIntToFloat.kt"); + } + + @Test + @TestMetadata("basic_doubleBasic.kt") + public void testBasic_doubleBasic() { + runTest("compiler/testData/codegen/box/arithmetic/basic_doubleBasic.kt"); + } + + @Test + @TestMetadata("basic_integralToFloat.kt") + public void testBasic_integralToFloat() { + runTest("compiler/testData/codegen/box/arithmetic/basic_integralToFloat.kt"); + } + + @Test + @TestMetadata("basic_kt37412.kt") + public void testBasic_kt37412() { + runTest("compiler/testData/codegen/box/arithmetic/basic_kt37412.kt"); + } + + @Test + @TestMetadata("basic_selfComparison.kt") + public void testBasic_selfComparison() { + runTest("compiler/testData/codegen/box/arithmetic/basic_selfComparison.kt"); + } + + @Test + @TestMetadata("basic_shifts.kt") + public void testBasic_shifts() { + runTest("compiler/testData/codegen/box/arithmetic/basic_shifts.kt"); + } + + @Test + @TestMetadata("basic_uintTests.kt") + public void testBasic_uintTests() { + runTest("compiler/testData/codegen/box/arithmetic/basic_uintTests.kt"); + } + + @Test + @TestMetadata("division.kt") + public void testDivision() { + runTest("compiler/testData/codegen/box/arithmetic/division.kt"); + } + + @Test + @TestMetadata("github1856.kt") + public void testGithub1856() { + runTest("compiler/testData/codegen/box/arithmetic/github1856.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/arrays") @TestDataPath("$PROJECT_ROOT") @@ -1602,6 +1678,302 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { } } + @Nested + @TestMetadata("compiler/testData/codegen/box/basics") + @TestDataPath("$PROJECT_ROOT") + public class Basics { + @Test + public void testAllFilesPresentInBasics() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/basics"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); + } + + @Test + @TestMetadata("array_to_any.kt") + public void testArray_to_any() { + runTest("compiler/testData/codegen/box/basics/array_to_any.kt"); + } + + @Test + @TestMetadata("canonical_name.kt") + public void testCanonical_name() { + runTest("compiler/testData/codegen/box/basics/canonical_name.kt"); + } + + @Test + @TestMetadata("cast_null.kt") + public void testCast_null() { + runTest("compiler/testData/codegen/box/basics/cast_null.kt"); + } + + @Test + @TestMetadata("cast_simple.kt") + public void testCast_simple() { + runTest("compiler/testData/codegen/box/basics/cast_simple.kt"); + } + + @Test + @TestMetadata("check_type.kt") + public void testCheck_type() { + runTest("compiler/testData/codegen/box/basics/check_type.kt"); + } + + @Test + @TestMetadata("companion.kt") + public void testCompanion() { + runTest("compiler/testData/codegen/box/basics/companion.kt"); + } + + @Test + @TestMetadata("concatenation.kt") + public void testConcatenation() { + runTest("compiler/testData/codegen/box/basics/concatenation.kt"); + } + + @Test + @TestMetadata("const_infinity.kt") + public void testConst_infinity() { + runTest("compiler/testData/codegen/box/basics/const_infinity.kt"); + } + + @Test + @TestMetadata("expression_as_statement.kt") + public void testExpression_as_statement() { + runTest("compiler/testData/codegen/box/basics/expression_as_statement.kt"); + } + + @Test + @TestMetadata("k42000_1.kt") + public void testK42000_1() { + runTest("compiler/testData/codegen/box/basics/k42000_1.kt"); + } + + @Test + @TestMetadata("k42000_2.kt") + public void testK42000_2() { + runTest("compiler/testData/codegen/box/basics/k42000_2.kt"); + } + + @Test + @TestMetadata("local_variable.kt") + public void testLocal_variable() { + runTest("compiler/testData/codegen/box/basics/local_variable.kt"); + } + + @Test + @TestMetadata("null_check.kt") + public void testNull_check() { + runTest("compiler/testData/codegen/box/basics/null_check.kt"); + } + + @Test + @TestMetadata("safe_cast.kt") + public void testSafe_cast() { + runTest("compiler/testData/codegen/box/basics/safe_cast.kt"); + } + + @Test + @TestMetadata("spread_operator_0.kt") + public void testSpread_operator_0() { + runTest("compiler/testData/codegen/box/basics/spread_operator_0.kt"); + } + + @Test + @TestMetadata("statements0.kt") + public void testStatements0() { + runTest("compiler/testData/codegen/box/basics/statements0.kt"); + } + + @Test + @TestMetadata("superFunCall.kt") + public void testSuperFunCall() { + runTest("compiler/testData/codegen/box/basics/superFunCall.kt"); + } + + @Test + @TestMetadata("superGetterCall.kt") + public void testSuperGetterCall() { + runTest("compiler/testData/codegen/box/basics/superGetterCall.kt"); + } + + @Test + @TestMetadata("superSetterCall.kt") + public void testSuperSetterCall() { + runTest("compiler/testData/codegen/box/basics/superSetterCall.kt"); + } + + @Test + @TestMetadata("typealias1.kt") + public void testTypealias1() { + runTest("compiler/testData/codegen/box/basics/typealias1.kt"); + } + + @Test + @TestMetadata("unchecked_cast1.kt") + public void testUnchecked_cast1() { + runTest("compiler/testData/codegen/box/basics/unchecked_cast1.kt"); + } + + @Test + @TestMetadata("unchecked_cast2.kt") + public void testUnchecked_cast2() { + runTest("compiler/testData/codegen/box/basics/unchecked_cast2.kt"); + } + + @Test + @TestMetadata("unchecked_cast3.kt") + public void testUnchecked_cast3() { + runTest("compiler/testData/codegen/box/basics/unchecked_cast3.kt"); + } + + @Test + @TestMetadata("unchecked_cast4.kt") + public void testUnchecked_cast4() { + runTest("compiler/testData/codegen/box/basics/unchecked_cast4.kt"); + } + + @Test + @TestMetadata("unit1.kt") + public void testUnit1() { + runTest("compiler/testData/codegen/box/basics/unit1.kt"); + } + + @Test + @TestMetadata("unit2.kt") + public void testUnit2() { + runTest("compiler/testData/codegen/box/basics/unit2.kt"); + } + + @Test + @TestMetadata("unit3.kt") + public void testUnit3() { + runTest("compiler/testData/codegen/box/basics/unit3.kt"); + } + + @Test + @TestMetadata("unit4.kt") + public void testUnit4() { + runTest("compiler/testData/codegen/box/basics/unit4.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/bce") + @TestDataPath("$PROJECT_ROOT") + public class Bce { + @Test + public void testAllFilesPresentInBce() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/bce"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); + } + + @Test + @TestMetadata("bceCases.kt") + public void testBceCases() { + runTest("compiler/testData/codegen/box/bce/bceCases.kt"); + } + + @Test + @TestMetadata("customGetter.kt") + public void testCustomGetter() { + runTest("compiler/testData/codegen/box/bce/customGetter.kt"); + } + + @Test + @TestMetadata("delegatedProperty.kt") + public void testDelegatedProperty() { + runTest("compiler/testData/codegen/box/bce/delegatedProperty.kt"); + } + + @Test + @TestMetadata("differentArrays.kt") + public void testDifferentArrays() { + runTest("compiler/testData/codegen/box/bce/differentArrays.kt"); + } + + @Test + @TestMetadata("differentObjects.kt") + public void testDifferentObjects() { + runTest("compiler/testData/codegen/box/bce/differentObjects.kt"); + } + + @Test + @TestMetadata("forDownToSize.kt") + public void testForDownToSize() { + runTest("compiler/testData/codegen/box/bce/forDownToSize.kt"); + } + + @Test + @TestMetadata("forDownToWithStep.kt") + public void testForDownToWithStep() { + runTest("compiler/testData/codegen/box/bce/forDownToWithStep.kt"); + } + + @Test + @TestMetadata("forEachIndexedTest.kt") + public void testForEachIndexedTest() { + runTest("compiler/testData/codegen/box/bce/forEachIndexedTest.kt"); + } + + @Test + @TestMetadata("forEachIndicies.kt") + public void testForEachIndicies() { + runTest("compiler/testData/codegen/box/bce/forEachIndicies.kt"); + } + + @Test + @TestMetadata("forIndiciesWithStep.kt") + public void testForIndiciesWithStep() { + runTest("compiler/testData/codegen/box/bce/forIndiciesWithStep.kt"); + } + + @Test + @TestMetadata("forRangeToSize.kt") + public void testForRangeToSize() { + runTest("compiler/testData/codegen/box/bce/forRangeToSize.kt"); + } + + @Test + @TestMetadata("forRangeToWithStep.kt") + public void testForRangeToWithStep() { + runTest("compiler/testData/codegen/box/bce/forRangeToWithStep.kt"); + } + + @Test + @TestMetadata("forReversed.kt") + public void testForReversed() { + runTest("compiler/testData/codegen/box/bce/forReversed.kt"); + } + + @Test + @TestMetadata("forUntilSize.kt") + public void testForUntilSize() { + runTest("compiler/testData/codegen/box/bce/forUntilSize.kt"); + } + + @Test + @TestMetadata("forUntilWithStep.kt") + public void testForUntilWithStep() { + runTest("compiler/testData/codegen/box/bce/forUntilWithStep.kt"); + } + + @Test + @TestMetadata("forWithIndex.kt") + public void testForWithIndex() { + runTest("compiler/testData/codegen/box/bce/forWithIndex.kt"); + } + + @Test + @TestMetadata("inheritance.kt") + public void testInheritance() { + runTest("compiler/testData/codegen/box/bce/inheritance.kt"); + } + + @Test + @TestMetadata("withGetter.kt") + public void testWithGetter() { + runTest("compiler/testData/codegen/box/bce/withGetter.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/binaryOp") @TestDataPath("$PROJECT_ROOT") @@ -1798,6 +2170,124 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { } } + @Nested + @TestMetadata("compiler/testData/codegen/box/boxing") + @TestDataPath("$PROJECT_ROOT") + public class Boxing { + @Test + public void testAllFilesPresentInBoxing() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/boxing"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); + } + + @Test + @TestMetadata("box_cache0.kt") + public void testBox_cache0() { + runTest("compiler/testData/codegen/box/boxing/box_cache0.kt"); + } + + @Test + @TestMetadata("boxing0.kt") + public void testBoxing0() { + runTest("compiler/testData/codegen/box/boxing/boxing0.kt"); + } + + @Test + @TestMetadata("boxing1.kt") + public void testBoxing1() { + runTest("compiler/testData/codegen/box/boxing/boxing1.kt"); + } + + @Test + @TestMetadata("boxing10.kt") + public void testBoxing10() { + runTest("compiler/testData/codegen/box/boxing/boxing10.kt"); + } + + @Test + @TestMetadata("boxing11.kt") + public void testBoxing11() { + runTest("compiler/testData/codegen/box/boxing/boxing11.kt"); + } + + @Test + @TestMetadata("boxing12.kt") + public void testBoxing12() { + runTest("compiler/testData/codegen/box/boxing/boxing12.kt"); + } + + @Test + @TestMetadata("boxing13.kt") + public void testBoxing13() { + runTest("compiler/testData/codegen/box/boxing/boxing13.kt"); + } + + @Test + @TestMetadata("boxing14.kt") + public void testBoxing14() { + runTest("compiler/testData/codegen/box/boxing/boxing14.kt"); + } + + @Test + @TestMetadata("boxing15.kt") + public void testBoxing15() { + runTest("compiler/testData/codegen/box/boxing/boxing15.kt"); + } + + @Test + @TestMetadata("boxing2.kt") + public void testBoxing2() { + runTest("compiler/testData/codegen/box/boxing/boxing2.kt"); + } + + @Test + @TestMetadata("boxing3.kt") + public void testBoxing3() { + runTest("compiler/testData/codegen/box/boxing/boxing3.kt"); + } + + @Test + @TestMetadata("boxing4.kt") + public void testBoxing4() { + runTest("compiler/testData/codegen/box/boxing/boxing4.kt"); + } + + @Test + @TestMetadata("boxing5.kt") + public void testBoxing5() { + runTest("compiler/testData/codegen/box/boxing/boxing5.kt"); + } + + @Test + @TestMetadata("boxing6.kt") + public void testBoxing6() { + runTest("compiler/testData/codegen/box/boxing/boxing6.kt"); + } + + @Test + @TestMetadata("boxing7.kt") + public void testBoxing7() { + runTest("compiler/testData/codegen/box/boxing/boxing7.kt"); + } + + @Test + @TestMetadata("boxing8.kt") + public void testBoxing8() { + runTest("compiler/testData/codegen/box/boxing/boxing8.kt"); + } + + @Test + @TestMetadata("boxing9.kt") + public void testBoxing9() { + runTest("compiler/testData/codegen/box/boxing/boxing9.kt"); + } + + @Test + @TestMetadata("kt53100_casts.kt") + public void testKt53100_casts() { + runTest("compiler/testData/codegen/box/boxing/kt53100_casts.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/boxingOptimization") @TestDataPath("$PROJECT_ROOT") @@ -2078,6 +2568,88 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { } } + @Nested + @TestMetadata("compiler/testData/codegen/box/branching") + @TestDataPath("$PROJECT_ROOT") + public class Branching { + @Test + @TestMetadata("advanced_when2.kt") + public void testAdvanced_when2() { + runTest("compiler/testData/codegen/box/branching/advanced_when2.kt"); + } + + @Test + @TestMetadata("advanced_when5.kt") + public void testAdvanced_when5() { + runTest("compiler/testData/codegen/box/branching/advanced_when5.kt"); + } + + @Test + public void testAllFilesPresentInBranching() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/branching"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); + } + + @Test + @TestMetadata("if_else.kt") + public void testIf_else() { + runTest("compiler/testData/codegen/box/branching/if_else.kt"); + } + + @Test + @TestMetadata("when2.kt") + public void testWhen2() { + runTest("compiler/testData/codegen/box/branching/when2.kt"); + } + + @Test + @TestMetadata("when4.kt") + public void testWhen4() { + runTest("compiler/testData/codegen/box/branching/when4.kt"); + } + + @Test + @TestMetadata("when5.kt") + public void testWhen5() { + runTest("compiler/testData/codegen/box/branching/when5.kt"); + } + + @Test + @TestMetadata("when6.kt") + public void testWhen6() { + runTest("compiler/testData/codegen/box/branching/when6.kt"); + } + + @Test + @TestMetadata("when7.kt") + public void testWhen7() { + runTest("compiler/testData/codegen/box/branching/when7.kt"); + } + + @Test + @TestMetadata("when8.kt") + public void testWhen8() { + runTest("compiler/testData/codegen/box/branching/when8.kt"); + } + + @Test + @TestMetadata("when9.kt") + public void testWhen9() { + runTest("compiler/testData/codegen/box/branching/when9.kt"); + } + + @Test + @TestMetadata("when_through.kt") + public void testWhen_through() { + runTest("compiler/testData/codegen/box/branching/when_through.kt"); + } + + @Test + @TestMetadata("when_with_try1.kt") + public void testWhen_with_try1() { + runTest("compiler/testData/codegen/box/branching/when_with_try1.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/bridges") @TestDataPath("$PROJECT_ROOT") @@ -2339,6 +2911,18 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/bridges/methodWithDefaultParameter.kt"); } + @Test + @TestMetadata("multipleModules1.kt") + public void testMultipleModules1() { + runTest("compiler/testData/codegen/box/bridges/multipleModules1.kt"); + } + + @Test + @TestMetadata("multipleModules2.kt") + public void testMultipleModules2() { + runTest("compiler/testData/codegen/box/bridges/multipleModules2.kt"); + } + @Test @TestMetadata("nestedClassTypeParameters.kt") public void testNestedClassTypeParameters() { @@ -2405,6 +2989,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/bridges/propertySetter.kt"); } + @Test + @TestMetadata("returnTypeSignature.kt") + public void testReturnTypeSignature() { + runTest("compiler/testData/codegen/box/bridges/returnTypeSignature.kt"); + } + @Test @TestMetadata("simple.kt") public void testSimple() { @@ -2447,6 +3037,18 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/bridges/simpleUpperBound.kt"); } + @Test + @TestMetadata("special.kt") + public void testSpecial() { + runTest("compiler/testData/codegen/box/bridges/special.kt"); + } + + @Test + @TestMetadata("specialGeneric.kt") + public void testSpecialGeneric() { + runTest("compiler/testData/codegen/box/bridges/specialGeneric.kt"); + } + @Test @TestMetadata("strListContains.kt") public void testStrListContains() { @@ -2459,6 +3061,120 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/bridges/strListRemove.kt"); } + @Test + @TestMetadata("test0.kt") + public void testTest0() { + runTest("compiler/testData/codegen/box/bridges/test0.kt"); + } + + @Test + @TestMetadata("test1.kt") + public void testTest1() { + runTest("compiler/testData/codegen/box/bridges/test1.kt"); + } + + @Test + @TestMetadata("test10.kt") + public void testTest10() { + runTest("compiler/testData/codegen/box/bridges/test10.kt"); + } + + @Test + @TestMetadata("test11.kt") + public void testTest11() { + runTest("compiler/testData/codegen/box/bridges/test11.kt"); + } + + @Test + @TestMetadata("test12.kt") + public void testTest12() { + runTest("compiler/testData/codegen/box/bridges/test12.kt"); + } + + @Test + @TestMetadata("test13.kt") + public void testTest13() { + runTest("compiler/testData/codegen/box/bridges/test13.kt"); + } + + @Test + @TestMetadata("test14.kt") + public void testTest14() { + runTest("compiler/testData/codegen/box/bridges/test14.kt"); + } + + @Test + @TestMetadata("test15.kt") + public void testTest15() { + runTest("compiler/testData/codegen/box/bridges/test15.kt"); + } + + @Test + @TestMetadata("test16.kt") + public void testTest16() { + runTest("compiler/testData/codegen/box/bridges/test16.kt"); + } + + @Test + @TestMetadata("test17.kt") + public void testTest17() { + runTest("compiler/testData/codegen/box/bridges/test17.kt"); + } + + @Test + @TestMetadata("test18.kt") + public void testTest18() { + runTest("compiler/testData/codegen/box/bridges/test18.kt"); + } + + @Test + @TestMetadata("test2.kt") + public void testTest2() { + runTest("compiler/testData/codegen/box/bridges/test2.kt"); + } + + @Test + @TestMetadata("test3.kt") + public void testTest3() { + runTest("compiler/testData/codegen/box/bridges/test3.kt"); + } + + @Test + @TestMetadata("test4.kt") + public void testTest4() { + runTest("compiler/testData/codegen/box/bridges/test4.kt"); + } + + @Test + @TestMetadata("test5.kt") + public void testTest5() { + runTest("compiler/testData/codegen/box/bridges/test5.kt"); + } + + @Test + @TestMetadata("test6.kt") + public void testTest6() { + runTest("compiler/testData/codegen/box/bridges/test6.kt"); + } + + @Test + @TestMetadata("test7.kt") + public void testTest7() { + runTest("compiler/testData/codegen/box/bridges/test7.kt"); + } + + @Test + @TestMetadata("test8.kt") + public void testTest8() { + runTest("compiler/testData/codegen/box/bridges/test8.kt"); + } + + @Test + @TestMetadata("test9.kt") + public void testTest9() { + runTest("compiler/testData/codegen/box/bridges/test9.kt"); + } + @Test @TestMetadata("traitImplInheritsTraitImpl.kt") public void testTraitImplInheritsTraitImpl() { @@ -6078,6 +6794,46 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { } } + @Nested + @TestMetadata("compiler/testData/codegen/box/classDelegation") + @TestDataPath("$PROJECT_ROOT") + public class ClassDelegation { + @Test + public void testAllFilesPresentInClassDelegation() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/classDelegation"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); + } + + @Test + @TestMetadata("generic.kt") + public void testGeneric() { + runTest("compiler/testData/codegen/box/classDelegation/generic.kt"); + } + + @Test + @TestMetadata("method.kt") + public void testMethod() { + runTest("compiler/testData/codegen/box/classDelegation/method.kt"); + } + + @Test + @TestMetadata("multipleModules.kt") + public void testMultipleModules() { + runTest("compiler/testData/codegen/box/classDelegation/multipleModules.kt"); + } + + @Test + @TestMetadata("property.kt") + public void testProperty() { + runTest("compiler/testData/codegen/box/classDelegation/property.kt"); + } + + @Test + @TestMetadata("withBridge.kt") + public void testWithBridge() { + runTest("compiler/testData/codegen/box/classDelegation/withBridge.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/classLiteral") @TestDataPath("$PROJECT_ROOT") @@ -9281,6 +10037,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/contracts/constructorArgument.kt"); } + @Test + @TestMetadata("contractForCast.kt") + public void testContractForCast() { + runTest("compiler/testData/codegen/box/contracts/contractForCast.kt"); + } + @Test @TestMetadata("destructuredVariable.kt") public void testDestructuredVariable() { @@ -9323,6 +10085,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/contracts/functionParameter.kt"); } + @Test + @TestMetadata("isNullString.kt") + public void testIsNullString() { + runTest("compiler/testData/codegen/box/contracts/isNullString.kt"); + } + @Test @TestMetadata("kt39374.kt") public void testKt39374() { @@ -9365,6 +10133,24 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/contracts/nestedLambdaInNonInlineCallExactlyOnce.kt"); } + @Test + @TestMetadata("nonNullSmartCast.kt") + public void testNonNullSmartCast() { + runTest("compiler/testData/codegen/box/contracts/nonNullSmartCast.kt"); + } + + @Test + @TestMetadata("require.kt") + public void testRequire() { + runTest("compiler/testData/codegen/box/contracts/require.kt"); + } + + @Test + @TestMetadata("runLambdaForVal.kt") + public void testRunLambdaForVal() { + runTest("compiler/testData/codegen/box/contracts/runLambdaForVal.kt"); + } + @Test @TestMetadata("valInWhen.kt") public void testValInWhen() { @@ -10776,6 +11562,124 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { } } + @Nested + @TestMetadata("compiler/testData/codegen/box/controlflow") + @TestDataPath("$PROJECT_ROOT") + public class Controlflow { + @Test + public void testAllFilesPresentInControlflow() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/controlflow"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); + } + + @Test + @TestMetadata("break.kt") + public void testBreak() { + runTest("compiler/testData/codegen/box/controlflow/break.kt"); + } + + @Test + @TestMetadata("break1.kt") + public void testBreak1() { + runTest("compiler/testData/codegen/box/controlflow/break1.kt"); + } + + @Test + @TestMetadata("for_loops.kt") + public void testFor_loops() { + runTest("compiler/testData/codegen/box/controlflow/for_loops.kt"); + } + + @Test + @TestMetadata("for_loops_array_break_continue.kt") + public void testFor_loops_array_break_continue() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_array_break_continue.kt"); + } + + @Test + @TestMetadata("for_loops_array_indices.kt") + public void testFor_loops_array_indices() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_array_indices.kt"); + } + + @Test + @TestMetadata("for_loops_array_mutation.kt") + public void testFor_loops_array_mutation() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_array_mutation.kt"); + } + + @Test + @TestMetadata("for_loops_array_nested.kt") + public void testFor_loops_array_nested() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_array_nested.kt"); + } + + @Test + @TestMetadata("for_loops_array_nullable.kt") + public void testFor_loops_array_nullable() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_array_nullable.kt"); + } + + @Test + @TestMetadata("for_loops_array_side_effects.kt") + public void testFor_loops_array_side_effects() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_array_side_effects.kt"); + } + + @Test + @TestMetadata("for_loops_call_order.kt") + public void testFor_loops_call_order() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_call_order.kt"); + } + + @Test + @TestMetadata("for_loops_coroutines.kt") + public void testFor_loops_coroutines() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_coroutines.kt"); + } + + @Test + @TestMetadata("for_loops_empty_range.kt") + public void testFor_loops_empty_range() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_empty_range.kt"); + } + + @Test + @TestMetadata("for_loops_errors.kt") + public void testFor_loops_errors() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_errors.kt"); + } + + @Test + @TestMetadata("for_loops_let_with_nullable.kt") + public void testFor_loops_let_with_nullable() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_let_with_nullable.kt"); + } + + @Test + @TestMetadata("for_loops_nested.kt") + public void testFor_loops_nested() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_nested.kt"); + } + + @Test + @TestMetadata("for_loops_overflow.kt") + public void testFor_loops_overflow() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_overflow.kt"); + } + + @Test + @TestMetadata("for_loops_types.kt") + public void testFor_loops_types() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_types.kt"); + } + + @Test + @TestMetadata("unreachable1.kt") + public void testUnreachable1() { + runTest("compiler/testData/codegen/box/controlflow/unreachable1.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/coroutines") @TestDataPath("$PROJECT_ROOT") @@ -10797,6 +11701,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test + @TestMetadata("anonymousObject.kt") + public void testAnonymousObject() { + runTest("compiler/testData/codegen/box/coroutines/anonymousObject.kt"); + } + @Test @TestMetadata("async.kt") public void testAsync() { @@ -10893,12 +11803,144 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/coroutines/coercionToUnit.kt"); } + @Test + @TestMetadata("controlFlow_chain.kt") + public void testControlFlow_chain() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_chain.kt"); + } + + @Test + @TestMetadata("controlFlow_finally1.kt") + public void testControlFlow_finally1() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally1.kt"); + } + + @Test + @TestMetadata("controlFlow_finally2.kt") + public void testControlFlow_finally2() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally2.kt"); + } + + @Test + @TestMetadata("controlFlow_finally3.kt") + public void testControlFlow_finally3() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally3.kt"); + } + + @Test + @TestMetadata("controlFlow_finally4.kt") + public void testControlFlow_finally4() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally4.kt"); + } + + @Test + @TestMetadata("controlFlow_finally5.kt") + public void testControlFlow_finally5() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally5.kt"); + } + + @Test + @TestMetadata("controlFlow_finally6.kt") + public void testControlFlow_finally6() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally6.kt"); + } + + @Test + @TestMetadata("controlFlow_finally7.kt") + public void testControlFlow_finally7() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally7.kt"); + } + + @Test + @TestMetadata("controlFlow_if1.kt") + public void testControlFlow_if1() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_if1.kt"); + } + + @Test + @TestMetadata("controlFlow_if2.kt") + public void testControlFlow_if2() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_if2.kt"); + } + + @Test + @TestMetadata("controlFlow_inline1.kt") + public void testControlFlow_inline1() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_inline1.kt"); + } + + @Test + @TestMetadata("controlFlow_inline2.kt") + public void testControlFlow_inline2() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_inline2.kt"); + } + + @Test + @TestMetadata("controlFlow_inline3.kt") + public void testControlFlow_inline3() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_inline3.kt"); + } + + @Test + @TestMetadata("controlFlow_tryCatch1.kt") + public void testControlFlow_tryCatch1() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_tryCatch1.kt"); + } + + @Test + @TestMetadata("controlFlow_tryCatch2.kt") + public void testControlFlow_tryCatch2() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_tryCatch2.kt"); + } + + @Test + @TestMetadata("controlFlow_tryCatch3.kt") + public void testControlFlow_tryCatch3() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_tryCatch3.kt"); + } + + @Test + @TestMetadata("controlFlow_tryCatch4.kt") + public void testControlFlow_tryCatch4() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_tryCatch4.kt"); + } + + @Test + @TestMetadata("controlFlow_tryCatch5.kt") + public void testControlFlow_tryCatch5() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_tryCatch5.kt"); + } + + @Test + @TestMetadata("controlFlow_while1.kt") + public void testControlFlow_while1() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_while1.kt"); + } + + @Test + @TestMetadata("controlFlow_while2.kt") + public void testControlFlow_while2() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_while2.kt"); + } + @Test @TestMetadata("controllerAccessFromInnerLambda.kt") public void testControllerAccessFromInnerLambda() { runTest("compiler/testData/codegen/box/coroutines/controllerAccessFromInnerLambda.kt"); } + @Test + @TestMetadata("coroutineContext1.kt") + public void testCoroutineContext1() { + runTest("compiler/testData/codegen/box/coroutines/coroutineContext1.kt"); + } + + @Test + @TestMetadata("coroutineContext2.kt") + public void testCoroutineContext2() { + runTest("compiler/testData/codegen/box/coroutines/coroutineContext2.kt"); + } + @Test @TestMetadata("coroutineContextInInlinedLambda.kt") public void testCoroutineContextInInlinedLambda() { @@ -10911,6 +11953,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/coroutines/coroutineToString.kt"); } + @Test + @TestMetadata("correctOrder1.kt") + public void testCorrectOrder1() { + runTest("compiler/testData/codegen/box/coroutines/correctOrder1.kt"); + } + @Test @TestMetadata("createCoroutineSafe.kt") public void testCreateCoroutineSafe() { @@ -10947,6 +11995,18 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/coroutines/defaultParametersInSuspendWithJvmOverloads.kt"); } + @Test + @TestMetadata("degenerate1.kt") + public void testDegenerate1() { + runTest("compiler/testData/codegen/box/coroutines/degenerate1.kt"); + } + + @Test + @TestMetadata("degenerate2.kt") + public void testDegenerate2() { + runTest("compiler/testData/codegen/box/coroutines/degenerate2.kt"); + } + @Test @TestMetadata("delegatedSuspendMember.kt") public void testDelegatedSuspendMember() { @@ -10995,6 +12055,30 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/coroutines/falseUnitCoercion.kt"); } + @Test + @TestMetadata("functionReference_eqeq_name.kt") + public void testFunctionReference_eqeq_name() { + runTest("compiler/testData/codegen/box/coroutines/functionReference_eqeq_name.kt"); + } + + @Test + @TestMetadata("functionReference_invokeAsFunction.kt") + public void testFunctionReference_invokeAsFunction() { + runTest("compiler/testData/codegen/box/coroutines/functionReference_invokeAsFunction.kt"); + } + + @Test + @TestMetadata("functionReference_lambdaAsSuspendLambda.kt") + public void testFunctionReference_lambdaAsSuspendLambda() { + runTest("compiler/testData/codegen/box/coroutines/functionReference_lambdaAsSuspendLambda.kt"); + } + + @Test + @TestMetadata("functionReference_simple.kt") + public void testFunctionReference_simple() { + runTest("compiler/testData/codegen/box/coroutines/functionReference_simple.kt"); + } + @Test @TestMetadata("generate.kt") public void testGenerate() { @@ -11205,6 +12289,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/coroutines/kt38099.kt"); } + @Test + @TestMetadata("kt41394.kt") + public void testKt41394() { + runTest("compiler/testData/codegen/box/coroutines/kt41394.kt"); + } + @Test @TestMetadata("kt42028.kt") public void testKt42028() { @@ -11451,12 +12541,30 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/coroutines/returnByLabel.kt"); } + @Test + @TestMetadata("returnsNothing1.kt") + public void testReturnsNothing1() { + runTest("compiler/testData/codegen/box/coroutines/returnsNothing1.kt"); + } + + @Test + @TestMetadata("returnsUnit1.kt") + public void testReturnsUnit1() { + runTest("compiler/testData/codegen/box/coroutines/returnsUnit1.kt"); + } + @Test @TestMetadata("simple.kt") public void testSimple() { runTest("compiler/testData/codegen/box/coroutines/simple.kt"); } + @Test + @TestMetadata("simple2.kt") + public void testSimple2() { + runTest("compiler/testData/codegen/box/coroutines/simple2.kt"); + } + @Test @TestMetadata("simpleException.kt") public void testSimpleException() { @@ -11685,6 +12793,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/coroutines/varargCallFromSuspend.kt"); } + @Test + @TestMetadata("withReceiver.kt") + public void testWithReceiver() { + runTest("compiler/testData/codegen/box/coroutines/withReceiver.kt"); + } + @Nested @TestMetadata("compiler/testData/codegen/box/coroutines/bridges") @TestDataPath("$PROJECT_ROOT") @@ -14314,6 +15428,34 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { } } + @Nested + @TestMetadata("compiler/testData/codegen/box/cycles") + @TestDataPath("$PROJECT_ROOT") + public class Cycles { + @Test + public void testAllFilesPresentInCycles() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cycles"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); + } + + @Test + @TestMetadata("cycle.kt") + public void testCycle() { + runTest("compiler/testData/codegen/box/cycles/cycle.kt"); + } + + @Test + @TestMetadata("cycle_do.kt") + public void testCycle_do() { + runTest("compiler/testData/codegen/box/cycles/cycle_do.kt"); + } + + @Test + @TestMetadata("cycle_for.kt") + public void testCycle_for() { + runTest("compiler/testData/codegen/box/cycles/cycle_for.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/dataClasses") @TestDataPath("$PROJECT_ROOT") @@ -14756,6 +15898,28 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { } } + @Nested + @TestMetadata("compiler/testData/codegen/box/dataflow") + @TestDataPath("$PROJECT_ROOT") + public class Dataflow { + @Test + public void testAllFilesPresentInDataflow() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/dataflow"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); + } + + @Test + @TestMetadata("scope1.kt") + public void testScope1() { + runTest("compiler/testData/codegen/box/dataflow/scope1.kt"); + } + + @Test + @TestMetadata("uninitialized_val.kt") + public void testUninitialized_val() { + runTest("compiler/testData/codegen/box/dataflow/uninitialized_val.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/deadCodeElimination") @TestDataPath("$PROJECT_ROOT") @@ -15417,6 +16581,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/delegatedProperty/castSetParameter.kt"); } + @Test + @TestMetadata("correctFieldsOrder.kt") + public void testCorrectFieldsOrder() { + runTest("compiler/testData/codegen/box/delegatedProperty/correctFieldsOrder.kt"); + } + @Test @TestMetadata("delegateAsInnerClass.kt") public void testDelegateAsInnerClass() { @@ -15477,6 +16647,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/delegatedProperty/delegateWithPrivateSet.kt"); } + @Test + @TestMetadata("delegatedOverride.kt") + public void testDelegatedOverride() { + runTest("compiler/testData/codegen/box/delegatedProperty/delegatedOverride.kt"); + } + @Test @TestMetadata("delegatedPropertyInEnum.kt") public void testDelegatedPropertyInEnum() { @@ -15621,12 +16797,42 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/delegatedProperty/kt9712.kt"); } + @Test + @TestMetadata("lazy.kt") + public void testLazy() { + runTest("compiler/testData/codegen/box/delegatedProperty/lazy.kt"); + } + + @Test + @TestMetadata("local.kt") + public void testLocal() { + runTest("compiler/testData/codegen/box/delegatedProperty/local.kt"); + } + + @Test + @TestMetadata("map.kt") + public void testMap() { + runTest("compiler/testData/codegen/box/delegatedProperty/map.kt"); + } + @Test @TestMetadata("noTypeVariablesLeft.kt") public void testNoTypeVariablesLeft() { runTest("compiler/testData/codegen/box/delegatedProperty/noTypeVariablesLeft.kt"); } + @Test + @TestMetadata("observable.kt") + public void testObservable() { + runTest("compiler/testData/codegen/box/delegatedProperty/observable.kt"); + } + + @Test + @TestMetadata("packageLevel.kt") + public void testPackageLevel() { + runTest("compiler/testData/codegen/box/delegatedProperty/packageLevel.kt"); + } + @Test @TestMetadata("privateInSubClass.kt") public void testPrivateInSubClass() { @@ -15687,6 +16893,18 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/delegatedProperty/setAsExtensionFunInClass.kt"); } + @Test + @TestMetadata("simpleVal.kt") + public void testSimpleVal() { + runTest("compiler/testData/codegen/box/delegatedProperty/simpleVal.kt"); + } + + @Test + @TestMetadata("simpleVar.kt") + public void testSimpleVar() { + runTest("compiler/testData/codegen/box/delegatedProperty/simpleVar.kt"); + } + @Test @TestMetadata("stackOverflowOnCallFromGetValue.kt") public void testStackOverflowOnCallFromGetValue() { @@ -16632,6 +17850,40 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { } } + @Nested + @TestMetadata("compiler/testData/codegen/box/devirtualization") + @TestDataPath("$PROJECT_ROOT") + public class Devirtualization { + @Test + public void testAllFilesPresentInDevirtualization() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/devirtualization"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); + } + + @Test + @TestMetadata("anonymousObject.kt") + public void testAnonymousObject() { + runTest("compiler/testData/codegen/box/devirtualization/anonymousObject.kt"); + } + + @Test + @TestMetadata("getter_looking_as_box_function.kt") + public void testGetter_looking_as_box_function() { + runTest("compiler/testData/codegen/box/devirtualization/getter_looking_as_box_function.kt"); + } + + @Test + @TestMetadata("inline_getter.kt") + public void testInline_getter() { + runTest("compiler/testData/codegen/box/devirtualization/inline_getter.kt"); + } + + @Test + @TestMetadata("lateinitInterface.kt") + public void testLateinitInterface() { + runTest("compiler/testData/codegen/box/devirtualization/lateinitInterface.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/diagnostics") @TestDataPath("$PROJECT_ROOT") @@ -17293,6 +18545,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/enum/companionAccessingEnumValue.kt"); } + @Test + @TestMetadata("companionObject.kt") + public void testCompanionObject() { + runTest("compiler/testData/codegen/box/enum/companionObject.kt"); + } + @Test @TestMetadata("companionObjectInEnum.kt") public void testCompanionObjectInEnum() { @@ -17443,6 +18701,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/enum/enumWithLambdaParameter.kt"); } + @Test + @TestMetadata("enum_equals.kt") + public void testEnum_equals() { + runTest("compiler/testData/codegen/box/enum/enum_equals.kt"); + } + @Test @TestMetadata("getEnumEntityByOrdinal.kt") public void testGetEnumEntityByOrdinal() { @@ -17515,6 +18779,18 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/enum/innerWithExistingClassObject.kt"); } + @Test + @TestMetadata("interfaceCallNoEntryClass.kt") + public void testInterfaceCallNoEntryClass() { + runTest("compiler/testData/codegen/box/enum/interfaceCallNoEntryClass.kt"); + } + + @Test + @TestMetadata("interfaceCallWithEntryClass.kt") + public void testInterfaceCallWithEntryClass() { + runTest("compiler/testData/codegen/box/enum/interfaceCallWithEntryClass.kt"); + } + @Test @TestMetadata("javaClassWithNestedEnum.kt") public void testJavaClassWithNestedEnum() { @@ -17605,6 +18881,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/enum/kt2350.kt"); } + @Test + @TestMetadata("kt38540.kt") + public void testKt38540() { + runTest("compiler/testData/codegen/box/enum/kt38540.kt"); + } + @Test @TestMetadata("kt38996.kt") public void testKt38996() { @@ -17701,6 +18983,18 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/enum/kt9711_2.kt"); } + @Test + @TestMetadata("lambdaInDefault.kt") + public void testLambdaInDefault() { + runTest("compiler/testData/codegen/box/enum/lambdaInDefault.kt"); + } + + @Test + @TestMetadata("loop.kt") + public void testLoop() { + runTest("compiler/testData/codegen/box/enum/loop.kt"); + } + @Test @TestMetadata("manyDefaultParameters.kt") public void testManyDefaultParameters() { @@ -17713,6 +19007,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/enum/modifierFlags.kt"); } + @Test + @TestMetadata("multipleModules.kt") + public void testMultipleModules() { + runTest("compiler/testData/codegen/box/enum/multipleModules.kt"); + } + @Test @TestMetadata("nameClashWithCompanion.kt") public void testNameClashWithCompanion() { @@ -17725,12 +19025,24 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/enum/nameConflict.kt"); } + @Test + @TestMetadata("nested.kt") + public void testNested() { + runTest("compiler/testData/codegen/box/enum/nested.kt"); + } + @Test @TestMetadata("noClassForSimpleEnum.kt") public void testNoClassForSimpleEnum() { runTest("compiler/testData/codegen/box/enum/noClassForSimpleEnum.kt"); } + @Test + @TestMetadata("openMethodNoOverrides.kt") + public void testOpenMethodNoOverrides() { + runTest("compiler/testData/codegen/box/enum/openMethodNoOverrides.kt"); + } + @Test @TestMetadata("ordinal.kt") public void testOrdinal() { @@ -17761,6 +19073,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/enum/refToThis.kt"); } + @Test + @TestMetadata("reorderedArguments.kt") + public void testReorderedArguments() { + runTest("compiler/testData/codegen/box/enum/reorderedArguments.kt"); + } + @Test @TestMetadata("simple.kt") public void testSimple() { @@ -17815,18 +19133,66 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/enum/superCallInEnumLiteral.kt"); } + @Test + @TestMetadata("switchLowering.kt") + public void testSwitchLowering() { + runTest("compiler/testData/codegen/box/enum/switchLowering.kt"); + } + + @Test + @TestMetadata("test0.kt") + public void testTest0() { + runTest("compiler/testData/codegen/box/enum/test0.kt"); + } + + @Test + @TestMetadata("test1.kt") + public void testTest1() { + runTest("compiler/testData/codegen/box/enum/test1.kt"); + } + @Test @TestMetadata("toString.kt") public void testToString() { runTest("compiler/testData/codegen/box/enum/toString.kt"); } + @Test + @TestMetadata("vCallNoEntryClass.kt") + public void testVCallNoEntryClass() { + runTest("compiler/testData/codegen/box/enum/vCallNoEntryClass.kt"); + } + + @Test + @TestMetadata("vCallWithEntryClass.kt") + public void testVCallWithEntryClass() { + runTest("compiler/testData/codegen/box/enum/vCallWithEntryClass.kt"); + } + + @Test + @TestMetadata("valueOf2.kt") + public void testValueOf2() { + runTest("compiler/testData/codegen/box/enum/valueOf2.kt"); + } + @Test @TestMetadata("valueof.kt") public void testValueof() { runTest("compiler/testData/codegen/box/enum/valueof.kt"); } + @Test + @TestMetadata("values.kt") + public void testValues() { + runTest("compiler/testData/codegen/box/enum/values.kt"); + } + + @Test + @TestMetadata("varargParam.kt") + public void testVarargParam() { + runTest("compiler/testData/codegen/box/enum/varargParam.kt"); + } + @Test @TestMetadata("whenInObject.kt") public void testWhenInObject() { @@ -17902,6 +19268,112 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { } } + @Nested + @TestMetadata("compiler/testData/codegen/box/escapeAnalysis") + @TestDataPath("$PROJECT_ROOT") + public class EscapeAnalysis { + @Test + public void testAllFilesPresentInEscapeAnalysis() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/escapeAnalysis"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); + } + + @Test + @TestMetadata("recursion.kt") + public void testRecursion() { + runTest("compiler/testData/codegen/box/escapeAnalysis/recursion.kt"); + } + + @Test + @TestMetadata("stack_array.kt") + public void testStack_array() { + runTest("compiler/testData/codegen/box/escapeAnalysis/stack_array.kt"); + } + + @Test + @TestMetadata("test1.kt") + public void testTest1() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test1.kt"); + } + + @Test + @TestMetadata("test10.kt") + public void testTest10() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test10.kt"); + } + + @Test + @TestMetadata("test11.kt") + public void testTest11() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test11.kt"); + } + + @Test + @TestMetadata("test12.kt") + public void testTest12() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test12.kt"); + } + + @Test + @TestMetadata("test13.kt") + public void testTest13() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test13.kt"); + } + + @Test + @TestMetadata("test2.kt") + public void testTest2() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test2.kt"); + } + + @Test + @TestMetadata("test3.kt") + public void testTest3() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test3.kt"); + } + + @Test + @TestMetadata("test4.kt") + public void testTest4() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test4.kt"); + } + + @Test + @TestMetadata("test5.kt") + public void testTest5() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test5.kt"); + } + + @Test + @TestMetadata("test6.kt") + public void testTest6() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test6.kt"); + } + + @Test + @TestMetadata("test7.kt") + public void testTest7() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test7.kt"); + } + + @Test + @TestMetadata("test8.kt") + public void testTest8() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test8.kt"); + } + + @Test + @TestMetadata("test9.kt") + public void testTest9() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test9.kt"); + } + + @Test + @TestMetadata("zeroOutObjectOnAlloc.kt") + public void testZeroOutObjectOnAlloc() { + runTest("compiler/testData/codegen/box/escapeAnalysis/zeroOutObjectOnAlloc.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/evaluate") @TestDataPath("$PROJECT_ROOT") @@ -18014,6 +19486,58 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { } } + @Nested + @TestMetadata("compiler/testData/codegen/box/exceptions") + @TestDataPath("$PROJECT_ROOT") + public class Exceptions { + @Test + public void testAllFilesPresentInExceptions() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/exceptions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); + } + + @Test + @TestMetadata("catch1.kt") + public void testCatch1() { + runTest("compiler/testData/codegen/box/exceptions/catch1.kt"); + } + + @Test + @TestMetadata("catch2.kt") + public void testCatch2() { + runTest("compiler/testData/codegen/box/exceptions/catch2.kt"); + } + + @Test + @TestMetadata("catch7.kt") + public void testCatch7() { + runTest("compiler/testData/codegen/box/exceptions/catch7.kt"); + } + + @Test + @TestMetadata("extend0.kt") + public void testExtend0() { + runTest("compiler/testData/codegen/box/exceptions/extend0.kt"); + } + + @Test + @TestMetadata("rethrow.kt") + public void testRethrow() { + runTest("compiler/testData/codegen/box/exceptions/rethrow.kt"); + } + + @Test + @TestMetadata("throw0.kt") + public void testThrow0() { + runTest("compiler/testData/codegen/box/exceptions/throw0.kt"); + } + + @Test + @TestMetadata("throw_from_catch.kt") + public void testThrow_from_catch() { + runTest("compiler/testData/codegen/box/exceptions/throw_from_catch.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/exclExcl") @TestDataPath("$PROJECT_ROOT") @@ -19151,6 +20675,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/funInterface/funInterfaceWithReceiver.kt"); } + @Test + @TestMetadata("implIsNotFunction.kt") + public void testImplIsNotFunction() { + runTest("compiler/testData/codegen/box/funInterface/implIsNotFunction.kt"); + } + @Test @TestMetadata("inlinedSamWrapper.kt") public void testInlinedSamWrapper() { @@ -19199,6 +20729,18 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/funInterface/kt46908_functionSupertype.kt"); } + @Test + @TestMetadata("kt49384.kt") + public void testKt49384() { + runTest("compiler/testData/codegen/box/funInterface/kt49384.kt"); + } + + @Test + @TestMetadata("kt49384_getSame.kt") + public void testKt49384_getSame() { + runTest("compiler/testData/codegen/box/funInterface/kt49384_getSame.kt"); + } + @Test @TestMetadata("multimodule.kt") public void testMultimodule() { @@ -19217,6 +20759,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/funInterface/nonAbstractMethod.kt"); } + @Test + @TestMetadata("nonTrivialProjectionInSuperType.kt") + public void testNonTrivialProjectionInSuperType() { + runTest("compiler/testData/codegen/box/funInterface/nonTrivialProjectionInSuperType.kt"); + } + @Test @TestMetadata("nullableSam.kt") public void testNullableSam() { @@ -19306,6 +20854,232 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { } } + @Nested + @TestMetadata("compiler/testData/codegen/box/function") + @TestDataPath("$PROJECT_ROOT") + public class Function { + @Test + public void testAllFilesPresentInFunction() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/function"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); + } + + @Test + @TestMetadata("arithmetic.kt") + public void testArithmetic() { + runTest("compiler/testData/codegen/box/function/arithmetic.kt"); + } + + @Test + @TestMetadata("boolean.kt") + public void testBoolean() { + runTest("compiler/testData/codegen/box/function/boolean.kt"); + } + + @Test + @TestMetadata("defaults.kt") + public void testDefaults() { + runTest("compiler/testData/codegen/box/function/defaults.kt"); + } + + @Test + @TestMetadata("defaults1.kt") + public void testDefaults1() { + runTest("compiler/testData/codegen/box/function/defaults1.kt"); + } + + @Test + @TestMetadata("defaults10.kt") + public void testDefaults10() { + runTest("compiler/testData/codegen/box/function/defaults10.kt"); + } + + @Test + @TestMetadata("defaults2.kt") + public void testDefaults2() { + runTest("compiler/testData/codegen/box/function/defaults2.kt"); + } + + @Test + @TestMetadata("defaults3.kt") + public void testDefaults3() { + runTest("compiler/testData/codegen/box/function/defaults3.kt"); + } + + @Test + @TestMetadata("defaults4.kt") + public void testDefaults4() { + runTest("compiler/testData/codegen/box/function/defaults4.kt"); + } + + @Test + @TestMetadata("defaults5.kt") + public void testDefaults5() { + runTest("compiler/testData/codegen/box/function/defaults5.kt"); + } + + @Test + @TestMetadata("defaults6.kt") + public void testDefaults6() { + runTest("compiler/testData/codegen/box/function/defaults6.kt"); + } + + @Test + @TestMetadata("defaults7.kt") + public void testDefaults7() { + runTest("compiler/testData/codegen/box/function/defaults7.kt"); + } + + @Test + @TestMetadata("defaults8.kt") + public void testDefaults8() { + runTest("compiler/testData/codegen/box/function/defaults8.kt"); + } + + @Test + @TestMetadata("defaults9.kt") + public void testDefaults9() { + runTest("compiler/testData/codegen/box/function/defaults9.kt"); + } + + @Test + @TestMetadata("defaultsFromFakeOverride.kt") + public void testDefaultsFromFakeOverride() { + runTest("compiler/testData/codegen/box/function/defaultsFromFakeOverride.kt"); + } + + @Test + @TestMetadata("defaultsWithInlineClasses.kt") + public void testDefaultsWithInlineClasses() { + runTest("compiler/testData/codegen/box/function/defaultsWithInlineClasses.kt"); + } + + @Test + @TestMetadata("defaultsWithVarArg1.kt") + public void testDefaultsWithVarArg1() { + runTest("compiler/testData/codegen/box/function/defaultsWithVarArg1.kt"); + } + + @Test + @TestMetadata("defaultsWithVarArg2.kt") + public void testDefaultsWithVarArg2() { + runTest("compiler/testData/codegen/box/function/defaultsWithVarArg2.kt"); + } + + @Test + @TestMetadata("eqeq.kt") + public void testEqeq() { + runTest("compiler/testData/codegen/box/function/eqeq.kt"); + } + + @Test + @TestMetadata("extension.kt") + public void testExtension() { + runTest("compiler/testData/codegen/box/function/extension.kt"); + } + + @Test + @TestMetadata("intrinsic.kt") + public void testIntrinsic() { + runTest("compiler/testData/codegen/box/function/intrinsic.kt"); + } + + @Test + @TestMetadata("localFunction.kt") + public void testLocalFunction() { + runTest("compiler/testData/codegen/box/function/localFunction.kt"); + } + + @Test + @TestMetadata("localFunction2.kt") + public void testLocalFunction2() { + runTest("compiler/testData/codegen/box/function/localFunction2.kt"); + } + + @Test + @TestMetadata("localFunction3.kt") + public void testLocalFunction3() { + runTest("compiler/testData/codegen/box/function/localFunction3.kt"); + } + + @Test + @TestMetadata("minus_eq.kt") + public void testMinus_eq() { + runTest("compiler/testData/codegen/box/function/minus_eq.kt"); + } + + @Test + @TestMetadata("named.kt") + public void testNamed() { + runTest("compiler/testData/codegen/box/function/named.kt"); + } + + @Test + @TestMetadata("nothingNReturningSafeCall.kt") + public void testNothingNReturningSafeCall() { + runTest("compiler/testData/codegen/box/function/nothingNReturningSafeCall.kt"); + } + + @Test + @TestMetadata("plus_eq.kt") + public void testPlus_eq() { + runTest("compiler/testData/codegen/box/function/plus_eq.kt"); + } + + @Test + @TestMetadata("referenceBigArity.kt") + public void testReferenceBigArity() { + runTest("compiler/testData/codegen/box/function/referenceBigArity.kt"); + } + + @Test + @TestMetadata("sum.kt") + public void testSum() { + runTest("compiler/testData/codegen/box/function/sum.kt"); + } + + @Test + @TestMetadata("sum_3const.kt") + public void testSum_3const() { + runTest("compiler/testData/codegen/box/function/sum_3const.kt"); + } + + @Test + @TestMetadata("sum_foo_bar.kt") + public void testSum_foo_bar() { + runTest("compiler/testData/codegen/box/function/sum_foo_bar.kt"); + } + + @Test + @TestMetadata("sum_func.kt") + public void testSum_func() { + runTest("compiler/testData/codegen/box/function/sum_func.kt"); + } + + @Test + @TestMetadata("sum_imm.kt") + public void testSum_imm() { + runTest("compiler/testData/codegen/box/function/sum_imm.kt"); + } + + @Test + @TestMetadata("sum_mixed.kt") + public void testSum_mixed() { + runTest("compiler/testData/codegen/box/function/sum_mixed.kt"); + } + + @Test + @TestMetadata("sum_silly.kt") + public void testSum_silly() { + runTest("compiler/testData/codegen/box/function/sum_silly.kt"); + } + + @Test + @TestMetadata("unreachableStatementAfterReturn.kt") + public void testUnreachableStatementAfterReturn() { + runTest("compiler/testData/codegen/box/function/unreachableStatementAfterReturn.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/functions") @TestDataPath("$PROJECT_ROOT") @@ -21184,6 +22958,468 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { } } + @Nested + @TestMetadata("compiler/testData/codegen/box/initializers") + @TestDataPath("$PROJECT_ROOT") + public class Initializers { + @Test + public void testAllFilesPresentInInitializers() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/initializers"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); + } + + @Test + @TestMetadata("correctOrder1.kt") + public void testCorrectOrder1() { + runTest("compiler/testData/codegen/box/initializers/correctOrder1.kt"); + } + + @Test + @TestMetadata("correctOrder2.kt") + public void testCorrectOrder2() { + runTest("compiler/testData/codegen/box/initializers/correctOrder2.kt"); + } + + @Test + @TestMetadata("initializers0.kt") + public void testInitializers0() { + runTest("compiler/testData/codegen/box/initializers/initializers0.kt"); + } + + @Test + @TestMetadata("initializers1.kt") + public void testInitializers1() { + runTest("compiler/testData/codegen/box/initializers/initializers1.kt"); + } + + @Test + @TestMetadata("initializers2.kt") + public void testInitializers2() { + runTest("compiler/testData/codegen/box/initializers/initializers2.kt"); + } + + @Test + @TestMetadata("initializers3.kt") + public void testInitializers3() { + runTest("compiler/testData/codegen/box/initializers/initializers3.kt"); + } + + @Test + @TestMetadata("initializers4.kt") + public void testInitializers4() { + runTest("compiler/testData/codegen/box/initializers/initializers4.kt"); + } + + @Test + @TestMetadata("initializers5.kt") + public void testInitializers5() { + runTest("compiler/testData/codegen/box/initializers/initializers5.kt"); + } + + @Test + @TestMetadata("initializers7.kt") + public void testInitializers7() { + runTest("compiler/testData/codegen/box/initializers/initializers7.kt"); + } + + @Test + @TestMetadata("initializers8.kt") + public void testInitializers8() { + runTest("compiler/testData/codegen/box/initializers/initializers8.kt"); + } + + @Test + @TestMetadata("multipleModules1.kt") + public void testMultipleModules1() { + runTest("compiler/testData/codegen/box/initializers/multipleModules1.kt"); + } + + @Test + @TestMetadata("object.kt") + public void testObject() { + runTest("compiler/testData/codegen/box/initializers/object.kt"); + } + + @Test + @TestMetadata("sharedVarInInitBlock.kt") + public void testSharedVarInInitBlock() { + runTest("compiler/testData/codegen/box/initializers/sharedVarInInitBlock.kt"); + } + + @Test + @TestMetadata("static_arrays.kt") + public void testStatic_arrays() { + runTest("compiler/testData/codegen/box/initializers/static_arrays.kt"); + } + + @Test + @TestMetadata("static_list.kt") + public void testStatic_list() { + runTest("compiler/testData/codegen/box/initializers/static_list.kt"); + } + + @Test + @TestMetadata("static_smallIntIdentity.kt") + public void testStatic_smallIntIdentity() { + runTest("compiler/testData/codegen/box/initializers/static_smallIntIdentity.kt"); + } + + @Test + @TestMetadata("static_varargChange.kt") + public void testStatic_varargChange() { + runTest("compiler/testData/codegen/box/initializers/static_varargChange.kt"); + } + + @Test + @TestMetadata("throw1.kt") + public void testThrow1() { + runTest("compiler/testData/codegen/box/initializers/throw1.kt"); + } + + @Test + @TestMetadata("throw2.kt") + public void testThrow2() { + runTest("compiler/testData/codegen/box/initializers/throw2.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/initializers/files") + @TestDataPath("$PROJECT_ROOT") + public class Files { + @Test + public void testAllFilesPresentInFiles() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/initializers/files"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); + } + + @Test + @TestMetadata("globalInitedAfterAccessingFile.kt") + public void testGlobalInitedAfterAccessingFile() { + runTest("compiler/testData/codegen/box/initializers/files/globalInitedAfterAccessingFile.kt"); + } + + @Test + @TestMetadata("globalNotInitedAfterAccessingClassInternals.kt") + public void testGlobalNotInitedAfterAccessingClassInternals() { + runTest("compiler/testData/codegen/box/initializers/files/globalNotInitedAfterAccessingClassInternals.kt"); + } + + @Test + @TestMetadata("simple.kt") + public void testSimple() { + runTest("compiler/testData/codegen/box/initializers/files/simple.kt"); + } + + @Test + @TestMetadata("simpleMultiModule.kt") + public void testSimpleMultiModule() { + runTest("compiler/testData/codegen/box/initializers/files/simpleMultiModule.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/inline") + @TestDataPath("$PROJECT_ROOT") + public class Inline { + @Test + public void testAllFilesPresentInInline() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inline"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); + } + + @Test + @TestMetadata("changingCapturedLocal.kt") + public void testChangingCapturedLocal() { + runTest("compiler/testData/codegen/box/inline/changingCapturedLocal.kt"); + } + + @Test + @TestMetadata("classDeclarationInsideInline.kt") + public void testClassDeclarationInsideInline() { + runTest("compiler/testData/codegen/box/inline/classDeclarationInsideInline.kt"); + } + + @Test + @TestMetadata("coercionToUnit.kt") + public void testCoercionToUnit() { + runTest("compiler/testData/codegen/box/inline/coercionToUnit.kt"); + } + + @Test + @TestMetadata("correctOrderFunctionReference.kt") + public void testCorrectOrderFunctionReference() { + runTest("compiler/testData/codegen/box/inline/correctOrderFunctionReference.kt"); + } + + @Test + @TestMetadata("defaultArgs.kt") + public void testDefaultArgs() { + runTest("compiler/testData/codegen/box/inline/defaultArgs.kt"); + } + + @Test + @TestMetadata("defaultArgsMultipleModules.kt") + public void testDefaultArgsMultipleModules() { + runTest("compiler/testData/codegen/box/inline/defaultArgsMultipleModules.kt"); + } + + @Test + @TestMetadata("genericFunctionReference.kt") + public void testGenericFunctionReference() { + runTest("compiler/testData/codegen/box/inline/genericFunctionReference.kt"); + } + + @Test + @TestMetadata("getClass.kt") + public void testGetClass() { + runTest("compiler/testData/codegen/box/inline/getClass.kt"); + } + + @Test + @TestMetadata("inline0.kt") + public void testInline0() { + runTest("compiler/testData/codegen/box/inline/inline0.kt"); + } + + @Test + @TestMetadata("inline1.kt") + public void testInline1() { + runTest("compiler/testData/codegen/box/inline/inline1.kt"); + } + + @Test + @TestMetadata("inline10.kt") + public void testInline10() { + runTest("compiler/testData/codegen/box/inline/inline10.kt"); + } + + @Test + @TestMetadata("inline11.kt") + public void testInline11() { + runTest("compiler/testData/codegen/box/inline/inline11.kt"); + } + + @Test + @TestMetadata("inline12.kt") + public void testInline12() { + runTest("compiler/testData/codegen/box/inline/inline12.kt"); + } + + @Test + @TestMetadata("inline13.kt") + public void testInline13() { + runTest("compiler/testData/codegen/box/inline/inline13.kt"); + } + + @Test + @TestMetadata("inline14.kt") + public void testInline14() { + runTest("compiler/testData/codegen/box/inline/inline14.kt"); + } + + @Test + @TestMetadata("inline15.kt") + public void testInline15() { + runTest("compiler/testData/codegen/box/inline/inline15.kt"); + } + + @Test + @TestMetadata("inline16.kt") + public void testInline16() { + runTest("compiler/testData/codegen/box/inline/inline16.kt"); + } + + @Test + @TestMetadata("inline17.kt") + public void testInline17() { + runTest("compiler/testData/codegen/box/inline/inline17.kt"); + } + + @Test + @TestMetadata("inline19.kt") + public void testInline19() { + runTest("compiler/testData/codegen/box/inline/inline19.kt"); + } + + @Test + @TestMetadata("inline2.kt") + public void testInline2() { + runTest("compiler/testData/codegen/box/inline/inline2.kt"); + } + + @Test + @TestMetadata("inline20.kt") + public void testInline20() { + runTest("compiler/testData/codegen/box/inline/inline20.kt"); + } + + @Test + @TestMetadata("inline21.kt") + public void testInline21() { + runTest("compiler/testData/codegen/box/inline/inline21.kt"); + } + + @Test + @TestMetadata("inline22.kt") + public void testInline22() { + runTest("compiler/testData/codegen/box/inline/inline22.kt"); + } + + @Test + @TestMetadata("inline23.kt") + public void testInline23() { + runTest("compiler/testData/codegen/box/inline/inline23.kt"); + } + + @Test + @TestMetadata("inline24.kt") + public void testInline24() { + runTest("compiler/testData/codegen/box/inline/inline24.kt"); + } + + @Test + @TestMetadata("inline25.kt") + public void testInline25() { + runTest("compiler/testData/codegen/box/inline/inline25.kt"); + } + + @Test + @TestMetadata("inline26.kt") + public void testInline26() { + runTest("compiler/testData/codegen/box/inline/inline26.kt"); + } + + @Test + @TestMetadata("inline3.kt") + public void testInline3() { + runTest("compiler/testData/codegen/box/inline/inline3.kt"); + } + + @Test + @TestMetadata("inline4.kt") + public void testInline4() { + runTest("compiler/testData/codegen/box/inline/inline4.kt"); + } + + @Test + @TestMetadata("inline5.kt") + public void testInline5() { + runTest("compiler/testData/codegen/box/inline/inline5.kt"); + } + + @Test + @TestMetadata("inline6.kt") + public void testInline6() { + runTest("compiler/testData/codegen/box/inline/inline6.kt"); + } + + @Test + @TestMetadata("inline7.kt") + public void testInline7() { + runTest("compiler/testData/codegen/box/inline/inline7.kt"); + } + + @Test + @TestMetadata("inline8.kt") + public void testInline8() { + runTest("compiler/testData/codegen/box/inline/inline8.kt"); + } + + @Test + @TestMetadata("inline9.kt") + public void testInline9() { + runTest("compiler/testData/codegen/box/inline/inline9.kt"); + } + + @Test + @TestMetadata("inlineCtor.kt") + public void testInlineCtor() { + runTest("compiler/testData/codegen/box/inline/inlineCtor.kt"); + } + + @Test + @TestMetadata("lambdaAsAny.kt") + public void testLambdaAsAny() { + runTest("compiler/testData/codegen/box/inline/lambdaAsAny.kt"); + } + + @Test + @TestMetadata("lambdaInDefaultValue.kt") + public void testLambdaInDefaultValue() { + runTest("compiler/testData/codegen/box/inline/lambdaInDefaultValue.kt"); + } + + @Test + @TestMetadata("lateinitProperty.kt") + public void testLateinitProperty() { + runTest("compiler/testData/codegen/box/inline/lateinitProperty.kt"); + } + + @Test + @TestMetadata("localFunctionInInitializerBlock.kt") + public void testLocalFunctionInInitializerBlock() { + runTest("compiler/testData/codegen/box/inline/localFunctionInInitializerBlock.kt"); + } + + @Test + @TestMetadata("localObjectReturnedFromWhen.kt") + public void testLocalObjectReturnedFromWhen() { + runTest("compiler/testData/codegen/box/inline/localObjectReturnedFromWhen.kt"); + } + + @Test + @TestMetadata("propertyAccessorInline.kt") + public void testPropertyAccessorInline() { + runTest("compiler/testData/codegen/box/inline/propertyAccessorInline.kt"); + } + + @Test + @TestMetadata("redundantCoercionsCleaner.kt") + public void testRedundantCoercionsCleaner() { + runTest("compiler/testData/codegen/box/inline/redundantCoercionsCleaner.kt"); + } + + @Test + @TestMetadata("redundantCoercionsCleanerKT48876.kt") + public void testRedundantCoercionsCleanerKT48876() { + runTest("compiler/testData/codegen/box/inline/redundantCoercionsCleanerKT48876.kt"); + } + + @Test + @TestMetadata("redundantCoercionsCleanerKT49356.kt") + public void testRedundantCoercionsCleanerKT49356() { + runTest("compiler/testData/codegen/box/inline/redundantCoercionsCleanerKT49356.kt"); + } + + @Test + @TestMetadata("returnLocalClassFromBlock.kt") + public void testReturnLocalClassFromBlock() { + runTest("compiler/testData/codegen/box/inline/returnLocalClassFromBlock.kt"); + } + + @Test + @TestMetadata("sharedVar.kt") + public void testSharedVar() { + runTest("compiler/testData/codegen/box/inline/sharedVar.kt"); + } + + @Test + @TestMetadata("statementAsLastExprInBlock.kt") + public void testStatementAsLastExprInBlock() { + runTest("compiler/testData/codegen/box/inline/statementAsLastExprInBlock.kt"); + } + + @Test + @TestMetadata("twiceInlinedObject.kt") + public void testTwiceInlinedObject() { + runTest("compiler/testData/codegen/box/inline/twiceInlinedObject.kt"); + } + + @Test + @TestMetadata("typeSubstitutionInFakeOverride.kt") + public void testTypeSubstitutionInFakeOverride() { + runTest("compiler/testData/codegen/box/inline/typeSubstitutionInFakeOverride.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/inlineArgsInPlace") @TestDataPath("$PROJECT_ROOT") @@ -21266,6 +23502,34 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { } } + @Nested + @TestMetadata("compiler/testData/codegen/box/inlineClass") + @TestDataPath("$PROJECT_ROOT") + public class InlineClass { + @Test + public void testAllFilesPresentInInlineClass() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineClass"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); + } + + @Test + @TestMetadata("defaultEquals.kt") + public void testDefaultEquals() { + runTest("compiler/testData/codegen/box/inlineClass/defaultEquals.kt"); + } + + @Test + @TestMetadata("nestedInlineClasses.kt") + public void testNestedInlineClasses() { + runTest("compiler/testData/codegen/box/inlineClass/nestedInlineClasses.kt"); + } + + @Test + @TestMetadata("secondaryConstructorWithGenerics.kt") + public void testSecondaryConstructorWithGenerics() { + runTest("compiler/testData/codegen/box/inlineClass/secondaryConstructorWithGenerics.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/inlineClasses") @TestDataPath("$PROJECT_ROOT") @@ -26746,6 +29010,88 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { } } + @Nested + @TestMetadata("compiler/testData/codegen/box/innerClass") + @TestDataPath("$PROJECT_ROOT") + public class InnerClass { + @Test + public void testAllFilesPresentInInnerClass() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/innerClass"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); + } + + @Test + @TestMetadata("doubleInner.kt") + public void testDoubleInner() { + runTest("compiler/testData/codegen/box/innerClass/doubleInner.kt"); + } + + @Test + @TestMetadata("generic.kt") + public void testGeneric() { + runTest("compiler/testData/codegen/box/innerClass/generic.kt"); + } + + @Test + @TestMetadata("getOuterVal.kt") + public void testGetOuterVal() { + runTest("compiler/testData/codegen/box/innerClass/getOuterVal.kt"); + } + + @Test + @TestMetadata("inheritanceMultipleModules1.kt") + public void testInheritanceMultipleModules1() { + runTest("compiler/testData/codegen/box/innerClass/inheritanceMultipleModules1.kt"); + } + + @Test + @TestMetadata("inheritanceMultipleModules2.kt") + public void testInheritanceMultipleModules2() { + runTest("compiler/testData/codegen/box/innerClass/inheritanceMultipleModules2.kt"); + } + + @Test + @TestMetadata("inheritanceMultipleModules3.kt") + public void testInheritanceMultipleModules3() { + runTest("compiler/testData/codegen/box/innerClass/inheritanceMultipleModules3.kt"); + } + + @Test + @TestMetadata("multipleModules.kt") + public void testMultipleModules() { + runTest("compiler/testData/codegen/box/innerClass/multipleModules.kt"); + } + + @Test + @TestMetadata("noPrimaryConstructor.kt") + public void testNoPrimaryConstructor() { + runTest("compiler/testData/codegen/box/innerClass/noPrimaryConstructor.kt"); + } + + @Test + @TestMetadata("qualifiedThis.kt") + public void testQualifiedThis() { + runTest("compiler/testData/codegen/box/innerClass/qualifiedThis.kt"); + } + + @Test + @TestMetadata("secondaryConstructor.kt") + public void testSecondaryConstructor() { + runTest("compiler/testData/codegen/box/innerClass/secondaryConstructor.kt"); + } + + @Test + @TestMetadata("simple.kt") + public void testSimple() { + runTest("compiler/testData/codegen/box/innerClass/simple.kt"); + } + + @Test + @TestMetadata("superOuter.kt") + public void testSuperOuter() { + runTest("compiler/testData/codegen/box/innerClass/superOuter.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/innerNested") @TestDataPath("$PROJECT_ROOT") @@ -27140,6 +29486,40 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { } } + @Nested + @TestMetadata("compiler/testData/codegen/box/interfaceCallsNCasts") + @TestDataPath("$PROJECT_ROOT") + public class InterfaceCallsNCasts { + @Test + public void testAllFilesPresentInInterfaceCallsNCasts() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/interfaceCallsNCasts"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); + } + + @Test + @TestMetadata("conservativeItable.kt") + public void testConservativeItable() { + runTest("compiler/testData/codegen/box/interfaceCallsNCasts/conservativeItable.kt"); + } + + @Test + @TestMetadata("diamond.kt") + public void testDiamond() { + runTest("compiler/testData/codegen/box/interfaceCallsNCasts/diamond.kt"); + } + + @Test + @TestMetadata("finalMethod.kt") + public void testFinalMethod() { + runTest("compiler/testData/codegen/box/interfaceCallsNCasts/finalMethod.kt"); + } + + @Test + @TestMetadata("interface0.kt") + public void testInterface0() { + runTest("compiler/testData/codegen/box/interfaceCallsNCasts/interface0.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/intrinsics") @TestDataPath("$PROJECT_ROOT") @@ -31786,6 +34166,80 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { } } + @Nested + @TestMetadata("compiler/testData/codegen/box/kclass") + @TestDataPath("$PROJECT_ROOT") + public class Kclass { + @Test + public void testAllFilesPresentInKclass() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/kclass"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); + } + + @Test + @TestMetadata("kClassEnumArgument.kt") + public void testKClassEnumArgument() { + runTest("compiler/testData/codegen/box/kclass/kClassEnumArgument.kt"); + } + + @Test + @TestMetadata("kclass1.kt") + public void testKclass1() { + runTest("compiler/testData/codegen/box/kclass/kclass1.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/ktype") + @TestDataPath("$PROJECT_ROOT") + public class Ktype { + @Test + public void testAllFilesPresentInKtype() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ktype"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); + } + + @Test + @TestMetadata("ktype1_basics1.kt") + public void testKtype1_basics1() { + runTest("compiler/testData/codegen/box/ktype/ktype1_basics1.kt"); + } + + @Test + @TestMetadata("ktype1_inner.kt") + public void testKtype1_inner() { + runTest("compiler/testData/codegen/box/ktype/ktype1_inner.kt"); + } + + @Test + @TestMetadata("nonReified_class.kt") + public void testNonReified_class() { + runTest("compiler/testData/codegen/box/ktype/nonReified_class.kt"); + } + + @Test + @TestMetadata("nonReified_equality.kt") + public void testNonReified_equality() { + runTest("compiler/testData/codegen/box/ktype/nonReified_equality.kt"); + } + + @Test + @TestMetadata("nonReified_fun.kt") + public void testNonReified_fun() { + runTest("compiler/testData/codegen/box/ktype/nonReified_fun.kt"); + } + + @Test + @TestMetadata("nonReified_recursionInReified.kt") + public void testNonReified_recursionInReified() { + runTest("compiler/testData/codegen/box/ktype/nonReified_recursionInReified.kt"); + } + + @Test + @TestMetadata("nonReified_reifiedUpperBound.kt") + public void testNonReified_reifiedUpperBound() { + runTest("compiler/testData/codegen/box/ktype/nonReified_reifiedUpperBound.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/labels") @TestDataPath("$PROJECT_ROOT") @@ -31844,6 +34298,188 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { } } + @Nested + @TestMetadata("compiler/testData/codegen/box/lambda") + @TestDataPath("$PROJECT_ROOT") + public class Lambda { + @Test + public void testAllFilesPresentInLambda() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/lambda"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); + } + + @Test + @TestMetadata("lambda1.kt") + public void testLambda1() { + runTest("compiler/testData/codegen/box/lambda/lambda1.kt"); + } + + @Test + @TestMetadata("lambda10.kt") + public void testLambda10() { + runTest("compiler/testData/codegen/box/lambda/lambda10.kt"); + } + + @Test + @TestMetadata("lambda11.kt") + public void testLambda11() { + runTest("compiler/testData/codegen/box/lambda/lambda11.kt"); + } + + @Test + @TestMetadata("lambda12.kt") + public void testLambda12() { + runTest("compiler/testData/codegen/box/lambda/lambda12.kt"); + } + + @Test + @TestMetadata("lambda13.kt") + public void testLambda13() { + runTest("compiler/testData/codegen/box/lambda/lambda13.kt"); + } + + @Test + @TestMetadata("lambda14.kt") + public void testLambda14() { + runTest("compiler/testData/codegen/box/lambda/lambda14.kt"); + } + + @Test + @TestMetadata("lambda2.kt") + public void testLambda2() { + runTest("compiler/testData/codegen/box/lambda/lambda2.kt"); + } + + @Test + @TestMetadata("lambda3.kt") + public void testLambda3() { + runTest("compiler/testData/codegen/box/lambda/lambda3.kt"); + } + + @Test + @TestMetadata("lambda4.kt") + public void testLambda4() { + runTest("compiler/testData/codegen/box/lambda/lambda4.kt"); + } + + @Test + @TestMetadata("lambda5.kt") + public void testLambda5() { + runTest("compiler/testData/codegen/box/lambda/lambda5.kt"); + } + + @Test + @TestMetadata("lambda6.kt") + public void testLambda6() { + runTest("compiler/testData/codegen/box/lambda/lambda6.kt"); + } + + @Test + @TestMetadata("lambda7.kt") + public void testLambda7() { + runTest("compiler/testData/codegen/box/lambda/lambda7.kt"); + } + + @Test + @TestMetadata("lambda8.kt") + public void testLambda8() { + runTest("compiler/testData/codegen/box/lambda/lambda8.kt"); + } + + @Test + @TestMetadata("lambda9.kt") + public void testLambda9() { + runTest("compiler/testData/codegen/box/lambda/lambda9.kt"); + } + + @Test + @TestMetadata("lambda_kt49360_trivial.kt") + public void testLambda_kt49360_trivial() { + runTest("compiler/testData/codegen/box/lambda/lambda_kt49360_trivial.kt"); + } + + @Test + @TestMetadata("lambda_kt49360_withFlow.kt") + public void testLambda_kt49360_withFlow() { + runTest("compiler/testData/codegen/box/lambda/lambda_kt49360_withFlow.kt"); + } + + @Test + @TestMetadata("lambda_kt49360_wrapBlock.kt") + public void testLambda_kt49360_wrapBlock() { + runTest("compiler/testData/codegen/box/lambda/lambda_kt49360_wrapBlock.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/lateinit") + @TestDataPath("$PROJECT_ROOT") + public class Lateinit { + @Test + public void testAllFilesPresentInLateinit() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/lateinit"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); + } + + @Test + @TestMetadata("globalIsInitialized.kt") + public void testGlobalIsInitialized() { + runTest("compiler/testData/codegen/box/lateinit/globalIsInitialized.kt"); + } + + @Test + @TestMetadata("inBaseClass.kt") + public void testInBaseClass() { + runTest("compiler/testData/codegen/box/lateinit/inBaseClass.kt"); + } + + @Test + @TestMetadata("initialized.kt") + public void testInitialized() { + runTest("compiler/testData/codegen/box/lateinit/initialized.kt"); + } + + @Test + @TestMetadata("innerIsInitialized.kt") + public void testInnerIsInitialized() { + runTest("compiler/testData/codegen/box/lateinit/innerIsInitialized.kt"); + } + + @Test + @TestMetadata("isInitialized.kt") + public void testIsInitialized() { + runTest("compiler/testData/codegen/box/lateinit/isInitialized.kt"); + } + + @Test + @TestMetadata("localCapturedInitialized.kt") + public void testLocalCapturedInitialized() { + runTest("compiler/testData/codegen/box/lateinit/localCapturedInitialized.kt"); + } + + @Test + @TestMetadata("localCapturedNotInitialized.kt") + public void testLocalCapturedNotInitialized() { + runTest("compiler/testData/codegen/box/lateinit/localCapturedNotInitialized.kt"); + } + + @Test + @TestMetadata("localInitialized.kt") + public void testLocalInitialized() { + runTest("compiler/testData/codegen/box/lateinit/localInitialized.kt"); + } + + @Test + @TestMetadata("localNotInitialized.kt") + public void testLocalNotInitialized() { + runTest("compiler/testData/codegen/box/lateinit/localNotInitialized.kt"); + } + + @Test + @TestMetadata("notInitialized.kt") + public void testNotInitialized() { + runTest("compiler/testData/codegen/box/lateinit/notInitialized.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/lazyCodegen") @TestDataPath("$PROJECT_ROOT") @@ -31972,6 +34608,98 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { } } + @Nested + @TestMetadata("compiler/testData/codegen/box/literals") + @TestDataPath("$PROJECT_ROOT") + public class Literals { + @Test + public void testAllFilesPresentInLiterals() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/literals"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); + } + + @Test + @TestMetadata("listof1.kt") + public void testListof1() { + runTest("compiler/testData/codegen/box/literals/listof1.kt"); + } + + @Test + @TestMetadata("strdedup1.kt") + public void testStrdedup1() { + runTest("compiler/testData/codegen/box/literals/strdedup1.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/localClass") + @TestDataPath("$PROJECT_ROOT") + public class LocalClass { + @Test + public void testAllFilesPresentInLocalClass() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/localClass"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); + } + + @Test + @TestMetadata("innerTakesCapturedFromOuter.kt") + public void testInnerTakesCapturedFromOuter() { + runTest("compiler/testData/codegen/box/localClass/innerTakesCapturedFromOuter.kt"); + } + + @Test + @TestMetadata("innerWithCapture.kt") + public void testInnerWithCapture() { + runTest("compiler/testData/codegen/box/localClass/innerWithCapture.kt"); + } + + @Test + @TestMetadata("localFunctionCallFromLocalClass.kt") + public void testLocalFunctionCallFromLocalClass() { + runTest("compiler/testData/codegen/box/localClass/localFunctionCallFromLocalClass.kt"); + } + + @Test + @TestMetadata("localFunctionInLocalClass.kt") + public void testLocalFunctionInLocalClass() { + runTest("compiler/testData/codegen/box/localClass/localFunctionInLocalClass.kt"); + } + + @Test + @TestMetadata("localHierarchy.kt") + public void testLocalHierarchy() { + runTest("compiler/testData/codegen/box/localClass/localHierarchy.kt"); + } + + @Test + @TestMetadata("noPrimaryConstructor.kt") + public void testNoPrimaryConstructor() { + runTest("compiler/testData/codegen/box/localClass/noPrimaryConstructor.kt"); + } + + @Test + @TestMetadata("objectExpressionInInitializer.kt") + public void testObjectExpressionInInitializer() { + runTest("compiler/testData/codegen/box/localClass/objectExpressionInInitializer.kt"); + } + + @Test + @TestMetadata("objectExpressionInProperty.kt") + public void testObjectExpressionInProperty() { + runTest("compiler/testData/codegen/box/localClass/objectExpressionInProperty.kt"); + } + + @Test + @TestMetadata("tryCatch.kt") + public void testTryCatch() { + runTest("compiler/testData/codegen/box/localClass/tryCatch.kt"); + } + + @Test + @TestMetadata("virtualCallFromConstructor.kt") + public void testVirtualCallFromConstructor() { + runTest("compiler/testData/codegen/box/localClass/virtualCallFromConstructor.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/localClasses") @TestDataPath("$PROJECT_ROOT") @@ -32222,6 +34950,38 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { } } + @Nested + @TestMetadata("compiler/testData/codegen/box/localEscapeAnalysis") + @TestDataPath("$PROJECT_ROOT") + public class LocalEscapeAnalysis { + @Test + public void testAllFilesPresentInLocalEscapeAnalysis() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/localEscapeAnalysis"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); + } + + @Test + @TestMetadata("arraysFieldWrite.kt") + public void testArraysFieldWrite() { + runTest("compiler/testData/codegen/box/localEscapeAnalysis/arraysFieldWrite.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/lower") + @TestDataPath("$PROJECT_ROOT") + public class Lower { + @Test + public void testAllFilesPresentInLower() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/lower"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); + } + + @Test + @TestMetadata("localDelegatedProperty.kt") + public void testLocalDelegatedProperty() { + runTest("compiler/testData/codegen/box/lower/localDelegatedProperty.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/mangling") @TestDataPath("$PROJECT_ROOT") @@ -32261,6 +35021,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/mangling/internalOverrideSuperCall.kt"); } + @Test + @TestMetadata("multipleConstructors.kt") + public void testMultipleConstructors() { + runTest("compiler/testData/codegen/box/mangling/multipleConstructors.kt"); + } + @Test @TestMetadata("noOverrideWithJava.kt") public void testNoOverrideWithJava() { @@ -33548,6 +36314,98 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { } } + @Nested + @TestMetadata("compiler/testData/codegen/box/object") + @TestDataPath("$PROJECT_ROOT") + public class Object { + @Test + public void testAllFilesPresentInObject() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/object"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); + } + + @Test + @TestMetadata("constructor0.kt") + public void testConstructor0() { + runTest("compiler/testData/codegen/box/object/constructor0.kt"); + } + + @Test + @TestMetadata("fields.kt") + public void testFields() { + runTest("compiler/testData/codegen/box/object/fields.kt"); + } + + @Test + @TestMetadata("fields1.kt") + public void testFields1() { + runTest("compiler/testData/codegen/box/object/fields1.kt"); + } + + @Test + @TestMetadata("fields2.kt") + public void testFields2() { + runTest("compiler/testData/codegen/box/object/fields2.kt"); + } + + @Test + @TestMetadata("globalInitializer.kt") + public void testGlobalInitializer() { + runTest("compiler/testData/codegen/box/object/globalInitializer.kt"); + } + + @Test + @TestMetadata("init0.kt") + public void testInit0() { + runTest("compiler/testData/codegen/box/object/init0.kt"); + } + + @Test + @TestMetadata("initialization.kt") + public void testInitialization() { + runTest("compiler/testData/codegen/box/object/initialization.kt"); + } + + @Test + @TestMetadata("initialization1.kt") + public void testInitialization1() { + runTest("compiler/testData/codegen/box/object/initialization1.kt"); + } + + @Test + @TestMetadata("method_call.kt") + public void testMethod_call() { + runTest("compiler/testData/codegen/box/object/method_call.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/objectExpression") + @TestDataPath("$PROJECT_ROOT") + public class ObjectExpression { + @Test + public void testAllFilesPresentInObjectExpression() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/objectExpression"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); + } + + @Test + @TestMetadata("expr1.kt") + public void testExpr1() { + runTest("compiler/testData/codegen/box/objectExpression/expr1.kt"); + } + + @Test + @TestMetadata("expr2.kt") + public void testExpr2() { + runTest("compiler/testData/codegen/box/objectExpression/expr2.kt"); + } + + @Test + @TestMetadata("expr3.kt") + public void testExpr3() { + runTest("compiler/testData/codegen/box/objectExpression/expr3.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/objectIntrinsics") @TestDataPath("$PROJECT_ROOT") @@ -36712,6 +39570,64 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { } } + @Nested + @TestMetadata("compiler/testData/codegen/box/propertyCallableReference") + @TestDataPath("$PROJECT_ROOT") + public class PropertyCallableReference { + @Test + public void testAllFilesPresentInPropertyCallableReference() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/propertyCallableReference"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); + } + + @Test + @TestMetadata("dynamicReceiver.kt") + public void testDynamicReceiver() { + runTest("compiler/testData/codegen/box/propertyCallableReference/dynamicReceiver.kt"); + } + + @Test + @TestMetadata("multipleModules.kt") + public void testMultipleModules() { + runTest("compiler/testData/codegen/box/propertyCallableReference/multipleModules.kt"); + } + + @Test + @TestMetadata("valClass.kt") + public void testValClass() { + runTest("compiler/testData/codegen/box/propertyCallableReference/valClass.kt"); + } + + @Test + @TestMetadata("valExtension.kt") + public void testValExtension() { + runTest("compiler/testData/codegen/box/propertyCallableReference/valExtension.kt"); + } + + @Test + @TestMetadata("valModule.kt") + public void testValModule() { + runTest("compiler/testData/codegen/box/propertyCallableReference/valModule.kt"); + } + + @Test + @TestMetadata("varClass.kt") + public void testVarClass() { + runTest("compiler/testData/codegen/box/propertyCallableReference/varClass.kt"); + } + + @Test + @TestMetadata("varExtension.kt") + public void testVarExtension() { + runTest("compiler/testData/codegen/box/propertyCallableReference/varExtension.kt"); + } + + @Test + @TestMetadata("varModule.kt") + public void testVarModule() { + runTest("compiler/testData/codegen/box/propertyCallableReference/varModule.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/publishedApi") @TestDataPath("$PROJECT_ROOT") @@ -47896,6 +50812,58 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { } } + @Nested + @TestMetadata("compiler/testData/codegen/box/serialization") + @TestDataPath("$PROJECT_ROOT") + public class Serialization { + @Test + public void testAllFilesPresentInSerialization() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/serialization"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); + } + + @Test + @TestMetadata("deserializedMembers.kt") + public void testDeserializedMembers() { + runTest("compiler/testData/codegen/box/serialization/deserializedMembers.kt"); + } + + @Test + @TestMetadata("serializedCatch.kt") + public void testSerializedCatch() { + runTest("compiler/testData/codegen/box/serialization/serializedCatch.kt"); + } + + @Test + @TestMetadata("serializedCharConstant.kt") + public void testSerializedCharConstant() { + runTest("compiler/testData/codegen/box/serialization/serializedCharConstant.kt"); + } + + @Test + @TestMetadata("serializedDefaultArgs.kt") + public void testSerializedDefaultArgs() { + runTest("compiler/testData/codegen/box/serialization/serializedDefaultArgs.kt"); + } + + @Test + @TestMetadata("serializedDoWhile.kt") + public void testSerializedDoWhile() { + runTest("compiler/testData/codegen/box/serialization/serializedDoWhile.kt"); + } + + @Test + @TestMetadata("serializedEnumOrdinal.kt") + public void testSerializedEnumOrdinal() { + runTest("compiler/testData/codegen/box/serialization/serializedEnumOrdinal.kt"); + } + + @Test + @TestMetadata("serializedVararg.kt") + public void testSerializedVararg() { + runTest("compiler/testData/codegen/box/serialization/serializedVararg.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/size") @TestDataPath("$PROJECT_ROOT") @@ -48544,6 +51512,22 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { } } + @Nested + @TestMetadata("compiler/testData/codegen/box/stringTrim") + @TestDataPath("$PROJECT_ROOT") + public class StringTrim { + @Test + public void testAllFilesPresentInStringTrim() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/stringTrim"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); + } + + @Test + @TestMetadata("stringTrim.kt") + public void testStringTrim() { + runTest("compiler/testData/codegen/box/stringTrim/stringTrim.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/strings") @TestDataPath("$PROJECT_ROOT") @@ -50042,6 +53026,142 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { } } + @Nested + @TestMetadata("compiler/testData/codegen/box/try") + @TestDataPath("$PROJECT_ROOT") + public class Try { + @Test + public void testAllFilesPresentInTry() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/try"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); + } + + @Test + @TestMetadata("catch3.kt") + public void testCatch3() { + runTest("compiler/testData/codegen/box/try/catch3.kt"); + } + + @Test + @TestMetadata("catch4.kt") + public void testCatch4() { + runTest("compiler/testData/codegen/box/try/catch4.kt"); + } + + @Test + @TestMetadata("catch5.kt") + public void testCatch5() { + runTest("compiler/testData/codegen/box/try/catch5.kt"); + } + + @Test + @TestMetadata("catch6.kt") + public void testCatch6() { + runTest("compiler/testData/codegen/box/try/catch6.kt"); + } + + @Test + @TestMetadata("catch8.kt") + public void testCatch8() { + runTest("compiler/testData/codegen/box/try/catch8.kt"); + } + + @Test + @TestMetadata("finally1.kt") + public void testFinally1() { + runTest("compiler/testData/codegen/box/try/finally1.kt"); + } + + @Test + @TestMetadata("finally10.kt") + public void testFinally10() { + runTest("compiler/testData/codegen/box/try/finally10.kt"); + } + + @Test + @TestMetadata("finally11.kt") + public void testFinally11() { + runTest("compiler/testData/codegen/box/try/finally11.kt"); + } + + @Test + @TestMetadata("finally2.kt") + public void testFinally2() { + runTest("compiler/testData/codegen/box/try/finally2.kt"); + } + + @Test + @TestMetadata("finally3.kt") + public void testFinally3() { + runTest("compiler/testData/codegen/box/try/finally3.kt"); + } + + @Test + @TestMetadata("finally4.kt") + public void testFinally4() { + runTest("compiler/testData/codegen/box/try/finally4.kt"); + } + + @Test + @TestMetadata("finally5.kt") + public void testFinally5() { + runTest("compiler/testData/codegen/box/try/finally5.kt"); + } + + @Test + @TestMetadata("finally6.kt") + public void testFinally6() { + runTest("compiler/testData/codegen/box/try/finally6.kt"); + } + + @Test + @TestMetadata("finally7.kt") + public void testFinally7() { + runTest("compiler/testData/codegen/box/try/finally7.kt"); + } + + @Test + @TestMetadata("finally8.kt") + public void testFinally8() { + runTest("compiler/testData/codegen/box/try/finally8.kt"); + } + + @Test + @TestMetadata("finally9.kt") + public void testFinally9() { + runTest("compiler/testData/codegen/box/try/finally9.kt"); + } + + @Test + @TestMetadata("returnsDifferentTypes.kt") + public void testReturnsDifferentTypes() { + runTest("compiler/testData/codegen/box/try/returnsDifferentTypes.kt"); + } + + @Test + @TestMetadata("try1.kt") + public void testTry1() { + runTest("compiler/testData/codegen/box/try/try1.kt"); + } + + @Test + @TestMetadata("try2.kt") + public void testTry2() { + runTest("compiler/testData/codegen/box/try/try2.kt"); + } + + @Test + @TestMetadata("try3.kt") + public void testTry3() { + runTest("compiler/testData/codegen/box/try/try3.kt"); + } + + @Test + @TestMetadata("try4.kt") + public void testTry4() { + runTest("compiler/testData/codegen/box/try/try4.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/typeInfo") @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 f59579a42d7..964f61f4e27 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 @@ -107,6 +107,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/annotations/annotationWithVarargAsDefaultValue.kt"); } + @Test + @TestMetadata("annotations0.kt") + public void testAnnotations0() { + runTest("compiler/testData/codegen/box/annotations/annotations0.kt"); + } + @Test @TestMetadata("annotationsOnDefault.kt") public void testAnnotationsOnDefault() { @@ -936,6 +942,82 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes } } + @Nested + @TestMetadata("compiler/testData/codegen/box/arithmetic") + @TestDataPath("$PROJECT_ROOT") + public class Arithmetic { + @Test + public void testAllFilesPresentInArithmetic() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/arithmetic"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("basic_charConversions.kt") + public void testBasic_charConversions() { + runTest("compiler/testData/codegen/box/arithmetic/basic_charConversions.kt"); + } + + @Test + @TestMetadata("basic_charCornerCases.kt") + public void testBasic_charCornerCases() { + runTest("compiler/testData/codegen/box/arithmetic/basic_charCornerCases.kt"); + } + + @Test + @TestMetadata("basic_compareIntToFloat.kt") + public void testBasic_compareIntToFloat() { + runTest("compiler/testData/codegen/box/arithmetic/basic_compareIntToFloat.kt"); + } + + @Test + @TestMetadata("basic_doubleBasic.kt") + public void testBasic_doubleBasic() { + runTest("compiler/testData/codegen/box/arithmetic/basic_doubleBasic.kt"); + } + + @Test + @TestMetadata("basic_integralToFloat.kt") + public void testBasic_integralToFloat() { + runTest("compiler/testData/codegen/box/arithmetic/basic_integralToFloat.kt"); + } + + @Test + @TestMetadata("basic_kt37412.kt") + public void testBasic_kt37412() { + runTest("compiler/testData/codegen/box/arithmetic/basic_kt37412.kt"); + } + + @Test + @TestMetadata("basic_selfComparison.kt") + public void testBasic_selfComparison() { + runTest("compiler/testData/codegen/box/arithmetic/basic_selfComparison.kt"); + } + + @Test + @TestMetadata("basic_shifts.kt") + public void testBasic_shifts() { + runTest("compiler/testData/codegen/box/arithmetic/basic_shifts.kt"); + } + + @Test + @TestMetadata("basic_uintTests.kt") + public void testBasic_uintTests() { + runTest("compiler/testData/codegen/box/arithmetic/basic_uintTests.kt"); + } + + @Test + @TestMetadata("division.kt") + public void testDivision() { + runTest("compiler/testData/codegen/box/arithmetic/division.kt"); + } + + @Test + @TestMetadata("github1856.kt") + public void testGithub1856() { + runTest("compiler/testData/codegen/box/arithmetic/github1856.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/arrays") @TestDataPath("$PROJECT_ROOT") @@ -1788,6 +1870,302 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes } } + @Nested + @TestMetadata("compiler/testData/codegen/box/basics") + @TestDataPath("$PROJECT_ROOT") + public class Basics { + @Test + public void testAllFilesPresentInBasics() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/basics"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("array_to_any.kt") + public void testArray_to_any() { + runTest("compiler/testData/codegen/box/basics/array_to_any.kt"); + } + + @Test + @TestMetadata("canonical_name.kt") + public void testCanonical_name() { + runTest("compiler/testData/codegen/box/basics/canonical_name.kt"); + } + + @Test + @TestMetadata("cast_null.kt") + public void testCast_null() { + runTest("compiler/testData/codegen/box/basics/cast_null.kt"); + } + + @Test + @TestMetadata("cast_simple.kt") + public void testCast_simple() { + runTest("compiler/testData/codegen/box/basics/cast_simple.kt"); + } + + @Test + @TestMetadata("check_type.kt") + public void testCheck_type() { + runTest("compiler/testData/codegen/box/basics/check_type.kt"); + } + + @Test + @TestMetadata("companion.kt") + public void testCompanion() { + runTest("compiler/testData/codegen/box/basics/companion.kt"); + } + + @Test + @TestMetadata("concatenation.kt") + public void testConcatenation() { + runTest("compiler/testData/codegen/box/basics/concatenation.kt"); + } + + @Test + @TestMetadata("const_infinity.kt") + public void testConst_infinity() { + runTest("compiler/testData/codegen/box/basics/const_infinity.kt"); + } + + @Test + @TestMetadata("expression_as_statement.kt") + public void testExpression_as_statement() { + runTest("compiler/testData/codegen/box/basics/expression_as_statement.kt"); + } + + @Test + @TestMetadata("k42000_1.kt") + public void testK42000_1() { + runTest("compiler/testData/codegen/box/basics/k42000_1.kt"); + } + + @Test + @TestMetadata("k42000_2.kt") + public void testK42000_2() { + runTest("compiler/testData/codegen/box/basics/k42000_2.kt"); + } + + @Test + @TestMetadata("local_variable.kt") + public void testLocal_variable() { + runTest("compiler/testData/codegen/box/basics/local_variable.kt"); + } + + @Test + @TestMetadata("null_check.kt") + public void testNull_check() { + runTest("compiler/testData/codegen/box/basics/null_check.kt"); + } + + @Test + @TestMetadata("safe_cast.kt") + public void testSafe_cast() { + runTest("compiler/testData/codegen/box/basics/safe_cast.kt"); + } + + @Test + @TestMetadata("spread_operator_0.kt") + public void testSpread_operator_0() { + runTest("compiler/testData/codegen/box/basics/spread_operator_0.kt"); + } + + @Test + @TestMetadata("statements0.kt") + public void testStatements0() { + runTest("compiler/testData/codegen/box/basics/statements0.kt"); + } + + @Test + @TestMetadata("superFunCall.kt") + public void testSuperFunCall() { + runTest("compiler/testData/codegen/box/basics/superFunCall.kt"); + } + + @Test + @TestMetadata("superGetterCall.kt") + public void testSuperGetterCall() { + runTest("compiler/testData/codegen/box/basics/superGetterCall.kt"); + } + + @Test + @TestMetadata("superSetterCall.kt") + public void testSuperSetterCall() { + runTest("compiler/testData/codegen/box/basics/superSetterCall.kt"); + } + + @Test + @TestMetadata("typealias1.kt") + public void testTypealias1() { + runTest("compiler/testData/codegen/box/basics/typealias1.kt"); + } + + @Test + @TestMetadata("unchecked_cast1.kt") + public void testUnchecked_cast1() { + runTest("compiler/testData/codegen/box/basics/unchecked_cast1.kt"); + } + + @Test + @TestMetadata("unchecked_cast2.kt") + public void testUnchecked_cast2() { + runTest("compiler/testData/codegen/box/basics/unchecked_cast2.kt"); + } + + @Test + @TestMetadata("unchecked_cast3.kt") + public void testUnchecked_cast3() { + runTest("compiler/testData/codegen/box/basics/unchecked_cast3.kt"); + } + + @Test + @TestMetadata("unchecked_cast4.kt") + public void testUnchecked_cast4() { + runTest("compiler/testData/codegen/box/basics/unchecked_cast4.kt"); + } + + @Test + @TestMetadata("unit1.kt") + public void testUnit1() { + runTest("compiler/testData/codegen/box/basics/unit1.kt"); + } + + @Test + @TestMetadata("unit2.kt") + public void testUnit2() { + runTest("compiler/testData/codegen/box/basics/unit2.kt"); + } + + @Test + @TestMetadata("unit3.kt") + public void testUnit3() { + runTest("compiler/testData/codegen/box/basics/unit3.kt"); + } + + @Test + @TestMetadata("unit4.kt") + public void testUnit4() { + runTest("compiler/testData/codegen/box/basics/unit4.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/bce") + @TestDataPath("$PROJECT_ROOT") + public class Bce { + @Test + public void testAllFilesPresentInBce() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/bce"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("bceCases.kt") + public void testBceCases() { + runTest("compiler/testData/codegen/box/bce/bceCases.kt"); + } + + @Test + @TestMetadata("customGetter.kt") + public void testCustomGetter() { + runTest("compiler/testData/codegen/box/bce/customGetter.kt"); + } + + @Test + @TestMetadata("delegatedProperty.kt") + public void testDelegatedProperty() { + runTest("compiler/testData/codegen/box/bce/delegatedProperty.kt"); + } + + @Test + @TestMetadata("differentArrays.kt") + public void testDifferentArrays() { + runTest("compiler/testData/codegen/box/bce/differentArrays.kt"); + } + + @Test + @TestMetadata("differentObjects.kt") + public void testDifferentObjects() { + runTest("compiler/testData/codegen/box/bce/differentObjects.kt"); + } + + @Test + @TestMetadata("forDownToSize.kt") + public void testForDownToSize() { + runTest("compiler/testData/codegen/box/bce/forDownToSize.kt"); + } + + @Test + @TestMetadata("forDownToWithStep.kt") + public void testForDownToWithStep() { + runTest("compiler/testData/codegen/box/bce/forDownToWithStep.kt"); + } + + @Test + @TestMetadata("forEachIndexedTest.kt") + public void testForEachIndexedTest() { + runTest("compiler/testData/codegen/box/bce/forEachIndexedTest.kt"); + } + + @Test + @TestMetadata("forEachIndicies.kt") + public void testForEachIndicies() { + runTest("compiler/testData/codegen/box/bce/forEachIndicies.kt"); + } + + @Test + @TestMetadata("forIndiciesWithStep.kt") + public void testForIndiciesWithStep() { + runTest("compiler/testData/codegen/box/bce/forIndiciesWithStep.kt"); + } + + @Test + @TestMetadata("forRangeToSize.kt") + public void testForRangeToSize() { + runTest("compiler/testData/codegen/box/bce/forRangeToSize.kt"); + } + + @Test + @TestMetadata("forRangeToWithStep.kt") + public void testForRangeToWithStep() { + runTest("compiler/testData/codegen/box/bce/forRangeToWithStep.kt"); + } + + @Test + @TestMetadata("forReversed.kt") + public void testForReversed() { + runTest("compiler/testData/codegen/box/bce/forReversed.kt"); + } + + @Test + @TestMetadata("forUntilSize.kt") + public void testForUntilSize() { + runTest("compiler/testData/codegen/box/bce/forUntilSize.kt"); + } + + @Test + @TestMetadata("forUntilWithStep.kt") + public void testForUntilWithStep() { + runTest("compiler/testData/codegen/box/bce/forUntilWithStep.kt"); + } + + @Test + @TestMetadata("forWithIndex.kt") + public void testForWithIndex() { + runTest("compiler/testData/codegen/box/bce/forWithIndex.kt"); + } + + @Test + @TestMetadata("inheritance.kt") + public void testInheritance() { + runTest("compiler/testData/codegen/box/bce/inheritance.kt"); + } + + @Test + @TestMetadata("withGetter.kt") + public void testWithGetter() { + runTest("compiler/testData/codegen/box/bce/withGetter.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/binaryOp") @TestDataPath("$PROJECT_ROOT") @@ -1984,6 +2362,124 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes } } + @Nested + @TestMetadata("compiler/testData/codegen/box/boxing") + @TestDataPath("$PROJECT_ROOT") + public class Boxing { + @Test + public void testAllFilesPresentInBoxing() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/boxing"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("box_cache0.kt") + public void testBox_cache0() { + runTest("compiler/testData/codegen/box/boxing/box_cache0.kt"); + } + + @Test + @TestMetadata("boxing0.kt") + public void testBoxing0() { + runTest("compiler/testData/codegen/box/boxing/boxing0.kt"); + } + + @Test + @TestMetadata("boxing1.kt") + public void testBoxing1() { + runTest("compiler/testData/codegen/box/boxing/boxing1.kt"); + } + + @Test + @TestMetadata("boxing10.kt") + public void testBoxing10() { + runTest("compiler/testData/codegen/box/boxing/boxing10.kt"); + } + + @Test + @TestMetadata("boxing11.kt") + public void testBoxing11() { + runTest("compiler/testData/codegen/box/boxing/boxing11.kt"); + } + + @Test + @TestMetadata("boxing12.kt") + public void testBoxing12() { + runTest("compiler/testData/codegen/box/boxing/boxing12.kt"); + } + + @Test + @TestMetadata("boxing13.kt") + public void testBoxing13() { + runTest("compiler/testData/codegen/box/boxing/boxing13.kt"); + } + + @Test + @TestMetadata("boxing14.kt") + public void testBoxing14() { + runTest("compiler/testData/codegen/box/boxing/boxing14.kt"); + } + + @Test + @TestMetadata("boxing15.kt") + public void testBoxing15() { + runTest("compiler/testData/codegen/box/boxing/boxing15.kt"); + } + + @Test + @TestMetadata("boxing2.kt") + public void testBoxing2() { + runTest("compiler/testData/codegen/box/boxing/boxing2.kt"); + } + + @Test + @TestMetadata("boxing3.kt") + public void testBoxing3() { + runTest("compiler/testData/codegen/box/boxing/boxing3.kt"); + } + + @Test + @TestMetadata("boxing4.kt") + public void testBoxing4() { + runTest("compiler/testData/codegen/box/boxing/boxing4.kt"); + } + + @Test + @TestMetadata("boxing5.kt") + public void testBoxing5() { + runTest("compiler/testData/codegen/box/boxing/boxing5.kt"); + } + + @Test + @TestMetadata("boxing6.kt") + public void testBoxing6() { + runTest("compiler/testData/codegen/box/boxing/boxing6.kt"); + } + + @Test + @TestMetadata("boxing7.kt") + public void testBoxing7() { + runTest("compiler/testData/codegen/box/boxing/boxing7.kt"); + } + + @Test + @TestMetadata("boxing8.kt") + public void testBoxing8() { + runTest("compiler/testData/codegen/box/boxing/boxing8.kt"); + } + + @Test + @TestMetadata("boxing9.kt") + public void testBoxing9() { + runTest("compiler/testData/codegen/box/boxing/boxing9.kt"); + } + + @Test + @TestMetadata("kt53100_casts.kt") + public void testKt53100_casts() { + runTest("compiler/testData/codegen/box/boxing/kt53100_casts.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/boxingOptimization") @TestDataPath("$PROJECT_ROOT") @@ -2264,6 +2760,88 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes } } + @Nested + @TestMetadata("compiler/testData/codegen/box/branching") + @TestDataPath("$PROJECT_ROOT") + public class Branching { + @Test + @TestMetadata("advanced_when2.kt") + public void testAdvanced_when2() { + runTest("compiler/testData/codegen/box/branching/advanced_when2.kt"); + } + + @Test + @TestMetadata("advanced_when5.kt") + public void testAdvanced_when5() { + runTest("compiler/testData/codegen/box/branching/advanced_when5.kt"); + } + + @Test + public void testAllFilesPresentInBranching() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/branching"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("if_else.kt") + public void testIf_else() { + runTest("compiler/testData/codegen/box/branching/if_else.kt"); + } + + @Test + @TestMetadata("when2.kt") + public void testWhen2() { + runTest("compiler/testData/codegen/box/branching/when2.kt"); + } + + @Test + @TestMetadata("when4.kt") + public void testWhen4() { + runTest("compiler/testData/codegen/box/branching/when4.kt"); + } + + @Test + @TestMetadata("when5.kt") + public void testWhen5() { + runTest("compiler/testData/codegen/box/branching/when5.kt"); + } + + @Test + @TestMetadata("when6.kt") + public void testWhen6() { + runTest("compiler/testData/codegen/box/branching/when6.kt"); + } + + @Test + @TestMetadata("when7.kt") + public void testWhen7() { + runTest("compiler/testData/codegen/box/branching/when7.kt"); + } + + @Test + @TestMetadata("when8.kt") + public void testWhen8() { + runTest("compiler/testData/codegen/box/branching/when8.kt"); + } + + @Test + @TestMetadata("when9.kt") + public void testWhen9() { + runTest("compiler/testData/codegen/box/branching/when9.kt"); + } + + @Test + @TestMetadata("when_through.kt") + public void testWhen_through() { + runTest("compiler/testData/codegen/box/branching/when_through.kt"); + } + + @Test + @TestMetadata("when_with_try1.kt") + public void testWhen_with_try1() { + runTest("compiler/testData/codegen/box/branching/when_with_try1.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/bridges") @TestDataPath("$PROJECT_ROOT") @@ -2525,6 +3103,18 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/bridges/methodWithDefaultParameter.kt"); } + @Test + @TestMetadata("multipleModules1.kt") + public void testMultipleModules1() { + runTest("compiler/testData/codegen/box/bridges/multipleModules1.kt"); + } + + @Test + @TestMetadata("multipleModules2.kt") + public void testMultipleModules2() { + runTest("compiler/testData/codegen/box/bridges/multipleModules2.kt"); + } + @Test @TestMetadata("nestedClassTypeParameters.kt") public void testNestedClassTypeParameters() { @@ -2591,6 +3181,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/bridges/propertySetter.kt"); } + @Test + @TestMetadata("returnTypeSignature.kt") + public void testReturnTypeSignature() { + runTest("compiler/testData/codegen/box/bridges/returnTypeSignature.kt"); + } + @Test @TestMetadata("simple.kt") public void testSimple() { @@ -2633,6 +3229,18 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/bridges/simpleUpperBound.kt"); } + @Test + @TestMetadata("special.kt") + public void testSpecial() { + runTest("compiler/testData/codegen/box/bridges/special.kt"); + } + + @Test + @TestMetadata("specialGeneric.kt") + public void testSpecialGeneric() { + runTest("compiler/testData/codegen/box/bridges/specialGeneric.kt"); + } + @Test @TestMetadata("strListContains.kt") public void testStrListContains() { @@ -2645,6 +3253,120 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/bridges/strListRemove.kt"); } + @Test + @TestMetadata("test0.kt") + public void testTest0() { + runTest("compiler/testData/codegen/box/bridges/test0.kt"); + } + + @Test + @TestMetadata("test1.kt") + public void testTest1() { + runTest("compiler/testData/codegen/box/bridges/test1.kt"); + } + + @Test + @TestMetadata("test10.kt") + public void testTest10() { + runTest("compiler/testData/codegen/box/bridges/test10.kt"); + } + + @Test + @TestMetadata("test11.kt") + public void testTest11() { + runTest("compiler/testData/codegen/box/bridges/test11.kt"); + } + + @Test + @TestMetadata("test12.kt") + public void testTest12() { + runTest("compiler/testData/codegen/box/bridges/test12.kt"); + } + + @Test + @TestMetadata("test13.kt") + public void testTest13() { + runTest("compiler/testData/codegen/box/bridges/test13.kt"); + } + + @Test + @TestMetadata("test14.kt") + public void testTest14() { + runTest("compiler/testData/codegen/box/bridges/test14.kt"); + } + + @Test + @TestMetadata("test15.kt") + public void testTest15() { + runTest("compiler/testData/codegen/box/bridges/test15.kt"); + } + + @Test + @TestMetadata("test16.kt") + public void testTest16() { + runTest("compiler/testData/codegen/box/bridges/test16.kt"); + } + + @Test + @TestMetadata("test17.kt") + public void testTest17() { + runTest("compiler/testData/codegen/box/bridges/test17.kt"); + } + + @Test + @TestMetadata("test18.kt") + public void testTest18() { + runTest("compiler/testData/codegen/box/bridges/test18.kt"); + } + + @Test + @TestMetadata("test2.kt") + public void testTest2() { + runTest("compiler/testData/codegen/box/bridges/test2.kt"); + } + + @Test + @TestMetadata("test3.kt") + public void testTest3() { + runTest("compiler/testData/codegen/box/bridges/test3.kt"); + } + + @Test + @TestMetadata("test4.kt") + public void testTest4() { + runTest("compiler/testData/codegen/box/bridges/test4.kt"); + } + + @Test + @TestMetadata("test5.kt") + public void testTest5() { + runTest("compiler/testData/codegen/box/bridges/test5.kt"); + } + + @Test + @TestMetadata("test6.kt") + public void testTest6() { + runTest("compiler/testData/codegen/box/bridges/test6.kt"); + } + + @Test + @TestMetadata("test7.kt") + public void testTest7() { + runTest("compiler/testData/codegen/box/bridges/test7.kt"); + } + + @Test + @TestMetadata("test8.kt") + public void testTest8() { + runTest("compiler/testData/codegen/box/bridges/test8.kt"); + } + + @Test + @TestMetadata("test9.kt") + public void testTest9() { + runTest("compiler/testData/codegen/box/bridges/test9.kt"); + } + @Test @TestMetadata("traitImplInheritsTraitImpl.kt") public void testTraitImplInheritsTraitImpl() { @@ -6324,6 +7046,46 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes } } + @Nested + @TestMetadata("compiler/testData/codegen/box/classDelegation") + @TestDataPath("$PROJECT_ROOT") + public class ClassDelegation { + @Test + public void testAllFilesPresentInClassDelegation() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/classDelegation"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("generic.kt") + public void testGeneric() { + runTest("compiler/testData/codegen/box/classDelegation/generic.kt"); + } + + @Test + @TestMetadata("method.kt") + public void testMethod() { + runTest("compiler/testData/codegen/box/classDelegation/method.kt"); + } + + @Test + @TestMetadata("multipleModules.kt") + public void testMultipleModules() { + runTest("compiler/testData/codegen/box/classDelegation/multipleModules.kt"); + } + + @Test + @TestMetadata("property.kt") + public void testProperty() { + runTest("compiler/testData/codegen/box/classDelegation/property.kt"); + } + + @Test + @TestMetadata("withBridge.kt") + public void testWithBridge() { + runTest("compiler/testData/codegen/box/classDelegation/withBridge.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/classLiteral") @TestDataPath("$PROJECT_ROOT") @@ -9551,6 +10313,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/contracts/constructorArgument.kt"); } + @Test + @TestMetadata("contractForCast.kt") + public void testContractForCast() { + runTest("compiler/testData/codegen/box/contracts/contractForCast.kt"); + } + @Test @TestMetadata("destructuredVariable.kt") public void testDestructuredVariable() { @@ -9593,6 +10361,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/contracts/functionParameter.kt"); } + @Test + @TestMetadata("isNullString.kt") + public void testIsNullString() { + runTest("compiler/testData/codegen/box/contracts/isNullString.kt"); + } + @Test @TestMetadata("kt39374.kt") public void testKt39374() { @@ -9635,6 +10409,24 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/contracts/nestedLambdaInNonInlineCallExactlyOnce.kt"); } + @Test + @TestMetadata("nonNullSmartCast.kt") + public void testNonNullSmartCast() { + runTest("compiler/testData/codegen/box/contracts/nonNullSmartCast.kt"); + } + + @Test + @TestMetadata("require.kt") + public void testRequire() { + runTest("compiler/testData/codegen/box/contracts/require.kt"); + } + + @Test + @TestMetadata("runLambdaForVal.kt") + public void testRunLambdaForVal() { + runTest("compiler/testData/codegen/box/contracts/runLambdaForVal.kt"); + } + @Test @TestMetadata("valInWhen.kt") public void testValInWhen() { @@ -11082,6 +11874,124 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes } } + @Nested + @TestMetadata("compiler/testData/codegen/box/controlflow") + @TestDataPath("$PROJECT_ROOT") + public class Controlflow { + @Test + public void testAllFilesPresentInControlflow() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/controlflow"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("break.kt") + public void testBreak() { + runTest("compiler/testData/codegen/box/controlflow/break.kt"); + } + + @Test + @TestMetadata("break1.kt") + public void testBreak1() { + runTest("compiler/testData/codegen/box/controlflow/break1.kt"); + } + + @Test + @TestMetadata("for_loops.kt") + public void testFor_loops() { + runTest("compiler/testData/codegen/box/controlflow/for_loops.kt"); + } + + @Test + @TestMetadata("for_loops_array_break_continue.kt") + public void testFor_loops_array_break_continue() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_array_break_continue.kt"); + } + + @Test + @TestMetadata("for_loops_array_indices.kt") + public void testFor_loops_array_indices() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_array_indices.kt"); + } + + @Test + @TestMetadata("for_loops_array_mutation.kt") + public void testFor_loops_array_mutation() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_array_mutation.kt"); + } + + @Test + @TestMetadata("for_loops_array_nested.kt") + public void testFor_loops_array_nested() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_array_nested.kt"); + } + + @Test + @TestMetadata("for_loops_array_nullable.kt") + public void testFor_loops_array_nullable() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_array_nullable.kt"); + } + + @Test + @TestMetadata("for_loops_array_side_effects.kt") + public void testFor_loops_array_side_effects() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_array_side_effects.kt"); + } + + @Test + @TestMetadata("for_loops_call_order.kt") + public void testFor_loops_call_order() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_call_order.kt"); + } + + @Test + @TestMetadata("for_loops_coroutines.kt") + public void testFor_loops_coroutines() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_coroutines.kt"); + } + + @Test + @TestMetadata("for_loops_empty_range.kt") + public void testFor_loops_empty_range() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_empty_range.kt"); + } + + @Test + @TestMetadata("for_loops_errors.kt") + public void testFor_loops_errors() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_errors.kt"); + } + + @Test + @TestMetadata("for_loops_let_with_nullable.kt") + public void testFor_loops_let_with_nullable() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_let_with_nullable.kt"); + } + + @Test + @TestMetadata("for_loops_nested.kt") + public void testFor_loops_nested() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_nested.kt"); + } + + @Test + @TestMetadata("for_loops_overflow.kt") + public void testFor_loops_overflow() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_overflow.kt"); + } + + @Test + @TestMetadata("for_loops_types.kt") + public void testFor_loops_types() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_types.kt"); + } + + @Test + @TestMetadata("unreachable1.kt") + public void testUnreachable1() { + runTest("compiler/testData/codegen/box/controlflow/unreachable1.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/coroutines") @TestDataPath("$PROJECT_ROOT") @@ -11103,6 +12013,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test + @TestMetadata("anonymousObject.kt") + public void testAnonymousObject() { + runTest("compiler/testData/codegen/box/coroutines/anonymousObject.kt"); + } + @Test @TestMetadata("async.kt") public void testAsync() { @@ -11199,12 +12115,144 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/coroutines/coercionToUnit.kt"); } + @Test + @TestMetadata("controlFlow_chain.kt") + public void testControlFlow_chain() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_chain.kt"); + } + + @Test + @TestMetadata("controlFlow_finally1.kt") + public void testControlFlow_finally1() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally1.kt"); + } + + @Test + @TestMetadata("controlFlow_finally2.kt") + public void testControlFlow_finally2() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally2.kt"); + } + + @Test + @TestMetadata("controlFlow_finally3.kt") + public void testControlFlow_finally3() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally3.kt"); + } + + @Test + @TestMetadata("controlFlow_finally4.kt") + public void testControlFlow_finally4() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally4.kt"); + } + + @Test + @TestMetadata("controlFlow_finally5.kt") + public void testControlFlow_finally5() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally5.kt"); + } + + @Test + @TestMetadata("controlFlow_finally6.kt") + public void testControlFlow_finally6() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally6.kt"); + } + + @Test + @TestMetadata("controlFlow_finally7.kt") + public void testControlFlow_finally7() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally7.kt"); + } + + @Test + @TestMetadata("controlFlow_if1.kt") + public void testControlFlow_if1() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_if1.kt"); + } + + @Test + @TestMetadata("controlFlow_if2.kt") + public void testControlFlow_if2() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_if2.kt"); + } + + @Test + @TestMetadata("controlFlow_inline1.kt") + public void testControlFlow_inline1() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_inline1.kt"); + } + + @Test + @TestMetadata("controlFlow_inline2.kt") + public void testControlFlow_inline2() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_inline2.kt"); + } + + @Test + @TestMetadata("controlFlow_inline3.kt") + public void testControlFlow_inline3() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_inline3.kt"); + } + + @Test + @TestMetadata("controlFlow_tryCatch1.kt") + public void testControlFlow_tryCatch1() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_tryCatch1.kt"); + } + + @Test + @TestMetadata("controlFlow_tryCatch2.kt") + public void testControlFlow_tryCatch2() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_tryCatch2.kt"); + } + + @Test + @TestMetadata("controlFlow_tryCatch3.kt") + public void testControlFlow_tryCatch3() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_tryCatch3.kt"); + } + + @Test + @TestMetadata("controlFlow_tryCatch4.kt") + public void testControlFlow_tryCatch4() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_tryCatch4.kt"); + } + + @Test + @TestMetadata("controlFlow_tryCatch5.kt") + public void testControlFlow_tryCatch5() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_tryCatch5.kt"); + } + + @Test + @TestMetadata("controlFlow_while1.kt") + public void testControlFlow_while1() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_while1.kt"); + } + + @Test + @TestMetadata("controlFlow_while2.kt") + public void testControlFlow_while2() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_while2.kt"); + } + @Test @TestMetadata("controllerAccessFromInnerLambda.kt") public void testControllerAccessFromInnerLambda() { runTest("compiler/testData/codegen/box/coroutines/controllerAccessFromInnerLambda.kt"); } + @Test + @TestMetadata("coroutineContext1.kt") + public void testCoroutineContext1() { + runTest("compiler/testData/codegen/box/coroutines/coroutineContext1.kt"); + } + + @Test + @TestMetadata("coroutineContext2.kt") + public void testCoroutineContext2() { + runTest("compiler/testData/codegen/box/coroutines/coroutineContext2.kt"); + } + @Test @TestMetadata("coroutineContextInInlinedLambda.kt") public void testCoroutineContextInInlinedLambda() { @@ -11217,6 +12265,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/coroutines/coroutineToString.kt"); } + @Test + @TestMetadata("correctOrder1.kt") + public void testCorrectOrder1() { + runTest("compiler/testData/codegen/box/coroutines/correctOrder1.kt"); + } + @Test @TestMetadata("createCoroutineSafe.kt") public void testCreateCoroutineSafe() { @@ -11253,6 +12307,18 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/coroutines/defaultParametersInSuspendWithJvmOverloads.kt"); } + @Test + @TestMetadata("degenerate1.kt") + public void testDegenerate1() { + runTest("compiler/testData/codegen/box/coroutines/degenerate1.kt"); + } + + @Test + @TestMetadata("degenerate2.kt") + public void testDegenerate2() { + runTest("compiler/testData/codegen/box/coroutines/degenerate2.kt"); + } + @Test @TestMetadata("delegatedSuspendMember.kt") public void testDelegatedSuspendMember() { @@ -11301,6 +12367,30 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/coroutines/falseUnitCoercion.kt"); } + @Test + @TestMetadata("functionReference_eqeq_name.kt") + public void testFunctionReference_eqeq_name() { + runTest("compiler/testData/codegen/box/coroutines/functionReference_eqeq_name.kt"); + } + + @Test + @TestMetadata("functionReference_invokeAsFunction.kt") + public void testFunctionReference_invokeAsFunction() { + runTest("compiler/testData/codegen/box/coroutines/functionReference_invokeAsFunction.kt"); + } + + @Test + @TestMetadata("functionReference_lambdaAsSuspendLambda.kt") + public void testFunctionReference_lambdaAsSuspendLambda() { + runTest("compiler/testData/codegen/box/coroutines/functionReference_lambdaAsSuspendLambda.kt"); + } + + @Test + @TestMetadata("functionReference_simple.kt") + public void testFunctionReference_simple() { + runTest("compiler/testData/codegen/box/coroutines/functionReference_simple.kt"); + } + @Test @TestMetadata("generate.kt") public void testGenerate() { @@ -11511,6 +12601,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/coroutines/kt38099.kt"); } + @Test + @TestMetadata("kt41394.kt") + public void testKt41394() { + runTest("compiler/testData/codegen/box/coroutines/kt41394.kt"); + } + @Test @TestMetadata("kt42028.kt") public void testKt42028() { @@ -11757,12 +12853,30 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/coroutines/returnByLabel.kt"); } + @Test + @TestMetadata("returnsNothing1.kt") + public void testReturnsNothing1() { + runTest("compiler/testData/codegen/box/coroutines/returnsNothing1.kt"); + } + + @Test + @TestMetadata("returnsUnit1.kt") + public void testReturnsUnit1() { + runTest("compiler/testData/codegen/box/coroutines/returnsUnit1.kt"); + } + @Test @TestMetadata("simple.kt") public void testSimple() { runTest("compiler/testData/codegen/box/coroutines/simple.kt"); } + @Test + @TestMetadata("simple2.kt") + public void testSimple2() { + runTest("compiler/testData/codegen/box/coroutines/simple2.kt"); + } + @Test @TestMetadata("simpleException.kt") public void testSimpleException() { @@ -11811,6 +12925,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/coroutines/suspendCallsInArguments.kt"); } + @Test + @TestMetadata("suspendConversion.kt") + public void testSuspendConversion() { + runTest("compiler/testData/codegen/box/coroutines/suspendConversion.kt"); + } + @Test @TestMetadata("suspendCoroutineFromStateMachine.kt") public void testSuspendCoroutineFromStateMachine() { @@ -12003,6 +13123,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/coroutines/varargCallFromSuspend.kt"); } + @Test + @TestMetadata("withReceiver.kt") + public void testWithReceiver() { + runTest("compiler/testData/codegen/box/coroutines/withReceiver.kt"); + } + @Nested @TestMetadata("compiler/testData/codegen/box/coroutines/bridges") @TestDataPath("$PROJECT_ROOT") @@ -14686,6 +15812,34 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes } } + @Nested + @TestMetadata("compiler/testData/codegen/box/cycles") + @TestDataPath("$PROJECT_ROOT") + public class Cycles { + @Test + public void testAllFilesPresentInCycles() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cycles"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("cycle.kt") + public void testCycle() { + runTest("compiler/testData/codegen/box/cycles/cycle.kt"); + } + + @Test + @TestMetadata("cycle_do.kt") + public void testCycle_do() { + runTest("compiler/testData/codegen/box/cycles/cycle_do.kt"); + } + + @Test + @TestMetadata("cycle_for.kt") + public void testCycle_for() { + runTest("compiler/testData/codegen/box/cycles/cycle_for.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/dataClasses") @TestDataPath("$PROJECT_ROOT") @@ -15140,6 +16294,28 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes } } + @Nested + @TestMetadata("compiler/testData/codegen/box/dataflow") + @TestDataPath("$PROJECT_ROOT") + public class Dataflow { + @Test + public void testAllFilesPresentInDataflow() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/dataflow"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("scope1.kt") + public void testScope1() { + runTest("compiler/testData/codegen/box/dataflow/scope1.kt"); + } + + @Test + @TestMetadata("uninitialized_val.kt") + public void testUninitialized_val() { + runTest("compiler/testData/codegen/box/dataflow/uninitialized_val.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/deadCodeElimination") @TestDataPath("$PROJECT_ROOT") @@ -15801,6 +16977,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/delegatedProperty/castSetParameter.kt"); } + @Test + @TestMetadata("correctFieldsOrder.kt") + public void testCorrectFieldsOrder() { + runTest("compiler/testData/codegen/box/delegatedProperty/correctFieldsOrder.kt"); + } + @Test @TestMetadata("delegateAsInnerClass.kt") public void testDelegateAsInnerClass() { @@ -15861,6 +17043,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/delegatedProperty/delegateWithPrivateSet.kt"); } + @Test + @TestMetadata("delegatedOverride.kt") + public void testDelegatedOverride() { + runTest("compiler/testData/codegen/box/delegatedProperty/delegatedOverride.kt"); + } + @Test @TestMetadata("delegatedPropertyInEnum.kt") public void testDelegatedPropertyInEnum() { @@ -16005,12 +17193,42 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/delegatedProperty/kt9712.kt"); } + @Test + @TestMetadata("lazy.kt") + public void testLazy() { + runTest("compiler/testData/codegen/box/delegatedProperty/lazy.kt"); + } + + @Test + @TestMetadata("local.kt") + public void testLocal() { + runTest("compiler/testData/codegen/box/delegatedProperty/local.kt"); + } + + @Test + @TestMetadata("map.kt") + public void testMap() { + runTest("compiler/testData/codegen/box/delegatedProperty/map.kt"); + } + @Test @TestMetadata("noTypeVariablesLeft.kt") public void testNoTypeVariablesLeft() { runTest("compiler/testData/codegen/box/delegatedProperty/noTypeVariablesLeft.kt"); } + @Test + @TestMetadata("observable.kt") + public void testObservable() { + runTest("compiler/testData/codegen/box/delegatedProperty/observable.kt"); + } + + @Test + @TestMetadata("packageLevel.kt") + public void testPackageLevel() { + runTest("compiler/testData/codegen/box/delegatedProperty/packageLevel.kt"); + } + @Test @TestMetadata("privateInSubClass.kt") public void testPrivateInSubClass() { @@ -16071,6 +17289,18 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/delegatedProperty/setAsExtensionFunInClass.kt"); } + @Test + @TestMetadata("simpleVal.kt") + public void testSimpleVal() { + runTest("compiler/testData/codegen/box/delegatedProperty/simpleVal.kt"); + } + + @Test + @TestMetadata("simpleVar.kt") + public void testSimpleVar() { + runTest("compiler/testData/codegen/box/delegatedProperty/simpleVar.kt"); + } + @Test @TestMetadata("stackOverflowOnCallFromGetValue.kt") public void testStackOverflowOnCallFromGetValue() { @@ -17040,6 +18270,40 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes } } + @Nested + @TestMetadata("compiler/testData/codegen/box/devirtualization") + @TestDataPath("$PROJECT_ROOT") + public class Devirtualization { + @Test + public void testAllFilesPresentInDevirtualization() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/devirtualization"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("anonymousObject.kt") + public void testAnonymousObject() { + runTest("compiler/testData/codegen/box/devirtualization/anonymousObject.kt"); + } + + @Test + @TestMetadata("getter_looking_as_box_function.kt") + public void testGetter_looking_as_box_function() { + runTest("compiler/testData/codegen/box/devirtualization/getter_looking_as_box_function.kt"); + } + + @Test + @TestMetadata("inline_getter.kt") + public void testInline_getter() { + runTest("compiler/testData/codegen/box/devirtualization/inline_getter.kt"); + } + + @Test + @TestMetadata("lateinitInterface.kt") + public void testLateinitInterface() { + runTest("compiler/testData/codegen/box/devirtualization/lateinitInterface.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/diagnostics") @TestDataPath("$PROJECT_ROOT") @@ -17701,6 +18965,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/enum/companionAccessingEnumValue.kt"); } + @Test + @TestMetadata("companionObject.kt") + public void testCompanionObject() { + runTest("compiler/testData/codegen/box/enum/companionObject.kt"); + } + @Test @TestMetadata("companionObjectInEnum.kt") public void testCompanionObjectInEnum() { @@ -17887,6 +19157,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/enum/enumWithLambdaParameter.kt"); } + @Test + @TestMetadata("enum_equals.kt") + public void testEnum_equals() { + runTest("compiler/testData/codegen/box/enum/enum_equals.kt"); + } + @Test @TestMetadata("getEnumEntityByOrdinal.kt") public void testGetEnumEntityByOrdinal() { @@ -17959,6 +19235,18 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/enum/innerWithExistingClassObject.kt"); } + @Test + @TestMetadata("interfaceCallNoEntryClass.kt") + public void testInterfaceCallNoEntryClass() { + runTest("compiler/testData/codegen/box/enum/interfaceCallNoEntryClass.kt"); + } + + @Test + @TestMetadata("interfaceCallWithEntryClass.kt") + public void testInterfaceCallWithEntryClass() { + runTest("compiler/testData/codegen/box/enum/interfaceCallWithEntryClass.kt"); + } + @Test @TestMetadata("javaClassWithNestedEnum.kt") public void testJavaClassWithNestedEnum() { @@ -18049,6 +19337,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/enum/kt2350.kt"); } + @Test + @TestMetadata("kt38540.kt") + public void testKt38540() { + runTest("compiler/testData/codegen/box/enum/kt38540.kt"); + } + @Test @TestMetadata("kt38996.kt") public void testKt38996() { @@ -18145,6 +19439,18 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/enum/kt9711_2.kt"); } + @Test + @TestMetadata("lambdaInDefault.kt") + public void testLambdaInDefault() { + runTest("compiler/testData/codegen/box/enum/lambdaInDefault.kt"); + } + + @Test + @TestMetadata("loop.kt") + public void testLoop() { + runTest("compiler/testData/codegen/box/enum/loop.kt"); + } + @Test @TestMetadata("manyDefaultParameters.kt") public void testManyDefaultParameters() { @@ -18157,6 +19463,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/enum/modifierFlags.kt"); } + @Test + @TestMetadata("multipleModules.kt") + public void testMultipleModules() { + runTest("compiler/testData/codegen/box/enum/multipleModules.kt"); + } + @Test @TestMetadata("nameClashWithCompanion.kt") public void testNameClashWithCompanion() { @@ -18169,12 +19481,24 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/enum/nameConflict.kt"); } + @Test + @TestMetadata("nested.kt") + public void testNested() { + runTest("compiler/testData/codegen/box/enum/nested.kt"); + } + @Test @TestMetadata("noClassForSimpleEnum.kt") public void testNoClassForSimpleEnum() { runTest("compiler/testData/codegen/box/enum/noClassForSimpleEnum.kt"); } + @Test + @TestMetadata("openMethodNoOverrides.kt") + public void testOpenMethodNoOverrides() { + runTest("compiler/testData/codegen/box/enum/openMethodNoOverrides.kt"); + } + @Test @TestMetadata("ordinal.kt") public void testOrdinal() { @@ -18205,6 +19529,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/enum/refToThis.kt"); } + @Test + @TestMetadata("reorderedArguments.kt") + public void testReorderedArguments() { + runTest("compiler/testData/codegen/box/enum/reorderedArguments.kt"); + } + @Test @TestMetadata("simple.kt") public void testSimple() { @@ -18259,18 +19589,66 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/enum/superCallInEnumLiteral.kt"); } + @Test + @TestMetadata("switchLowering.kt") + public void testSwitchLowering() { + runTest("compiler/testData/codegen/box/enum/switchLowering.kt"); + } + + @Test + @TestMetadata("test0.kt") + public void testTest0() { + runTest("compiler/testData/codegen/box/enum/test0.kt"); + } + + @Test + @TestMetadata("test1.kt") + public void testTest1() { + runTest("compiler/testData/codegen/box/enum/test1.kt"); + } + @Test @TestMetadata("toString.kt") public void testToString() { runTest("compiler/testData/codegen/box/enum/toString.kt"); } + @Test + @TestMetadata("vCallNoEntryClass.kt") + public void testVCallNoEntryClass() { + runTest("compiler/testData/codegen/box/enum/vCallNoEntryClass.kt"); + } + + @Test + @TestMetadata("vCallWithEntryClass.kt") + public void testVCallWithEntryClass() { + runTest("compiler/testData/codegen/box/enum/vCallWithEntryClass.kt"); + } + + @Test + @TestMetadata("valueOf2.kt") + public void testValueOf2() { + runTest("compiler/testData/codegen/box/enum/valueOf2.kt"); + } + @Test @TestMetadata("valueof.kt") public void testValueof() { runTest("compiler/testData/codegen/box/enum/valueof.kt"); } + @Test + @TestMetadata("values.kt") + public void testValues() { + runTest("compiler/testData/codegen/box/enum/values.kt"); + } + + @Test + @TestMetadata("varargParam.kt") + public void testVarargParam() { + runTest("compiler/testData/codegen/box/enum/varargParam.kt"); + } + @Test @TestMetadata("whenInObject.kt") public void testWhenInObject() { @@ -18346,6 +19724,112 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes } } + @Nested + @TestMetadata("compiler/testData/codegen/box/escapeAnalysis") + @TestDataPath("$PROJECT_ROOT") + public class EscapeAnalysis { + @Test + public void testAllFilesPresentInEscapeAnalysis() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/escapeAnalysis"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("recursion.kt") + public void testRecursion() { + runTest("compiler/testData/codegen/box/escapeAnalysis/recursion.kt"); + } + + @Test + @TestMetadata("stack_array.kt") + public void testStack_array() { + runTest("compiler/testData/codegen/box/escapeAnalysis/stack_array.kt"); + } + + @Test + @TestMetadata("test1.kt") + public void testTest1() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test1.kt"); + } + + @Test + @TestMetadata("test10.kt") + public void testTest10() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test10.kt"); + } + + @Test + @TestMetadata("test11.kt") + public void testTest11() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test11.kt"); + } + + @Test + @TestMetadata("test12.kt") + public void testTest12() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test12.kt"); + } + + @Test + @TestMetadata("test13.kt") + public void testTest13() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test13.kt"); + } + + @Test + @TestMetadata("test2.kt") + public void testTest2() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test2.kt"); + } + + @Test + @TestMetadata("test3.kt") + public void testTest3() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test3.kt"); + } + + @Test + @TestMetadata("test4.kt") + public void testTest4() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test4.kt"); + } + + @Test + @TestMetadata("test5.kt") + public void testTest5() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test5.kt"); + } + + @Test + @TestMetadata("test6.kt") + public void testTest6() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test6.kt"); + } + + @Test + @TestMetadata("test7.kt") + public void testTest7() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test7.kt"); + } + + @Test + @TestMetadata("test8.kt") + public void testTest8() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test8.kt"); + } + + @Test + @TestMetadata("test9.kt") + public void testTest9() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test9.kt"); + } + + @Test + @TestMetadata("zeroOutObjectOnAlloc.kt") + public void testZeroOutObjectOnAlloc() { + runTest("compiler/testData/codegen/box/escapeAnalysis/zeroOutObjectOnAlloc.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/evaluate") @TestDataPath("$PROJECT_ROOT") @@ -18458,6 +19942,58 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes } } + @Nested + @TestMetadata("compiler/testData/codegen/box/exceptions") + @TestDataPath("$PROJECT_ROOT") + public class Exceptions { + @Test + public void testAllFilesPresentInExceptions() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/exceptions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("catch1.kt") + public void testCatch1() { + runTest("compiler/testData/codegen/box/exceptions/catch1.kt"); + } + + @Test + @TestMetadata("catch2.kt") + public void testCatch2() { + runTest("compiler/testData/codegen/box/exceptions/catch2.kt"); + } + + @Test + @TestMetadata("catch7.kt") + public void testCatch7() { + runTest("compiler/testData/codegen/box/exceptions/catch7.kt"); + } + + @Test + @TestMetadata("extend0.kt") + public void testExtend0() { + runTest("compiler/testData/codegen/box/exceptions/extend0.kt"); + } + + @Test + @TestMetadata("rethrow.kt") + public void testRethrow() { + runTest("compiler/testData/codegen/box/exceptions/rethrow.kt"); + } + + @Test + @TestMetadata("throw0.kt") + public void testThrow0() { + runTest("compiler/testData/codegen/box/exceptions/throw0.kt"); + } + + @Test + @TestMetadata("throw_from_catch.kt") + public void testThrow_from_catch() { + runTest("compiler/testData/codegen/box/exceptions/throw_from_catch.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/exclExcl") @TestDataPath("$PROJECT_ROOT") @@ -20351,6 +21887,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/funInterface/funInterfaceWithReceiver.kt"); } + @Test + @TestMetadata("implIsNotFunction.kt") + public void testImplIsNotFunction() { + runTest("compiler/testData/codegen/box/funInterface/implIsNotFunction.kt"); + } + @Test @TestMetadata("inlinedSamWrapper.kt") public void testInlinedSamWrapper() { @@ -20399,6 +21941,18 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/funInterface/kt46908_functionSupertype.kt"); } + @Test + @TestMetadata("kt49384.kt") + public void testKt49384() { + runTest("compiler/testData/codegen/box/funInterface/kt49384.kt"); + } + + @Test + @TestMetadata("kt49384_getSame.kt") + public void testKt49384_getSame() { + runTest("compiler/testData/codegen/box/funInterface/kt49384_getSame.kt"); + } + @Test @TestMetadata("multimodule.kt") public void testMultimodule() { @@ -20417,6 +21971,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/funInterface/nonAbstractMethod.kt"); } + @Test + @TestMetadata("nonTrivialProjectionInSuperType.kt") + public void testNonTrivialProjectionInSuperType() { + runTest("compiler/testData/codegen/box/funInterface/nonTrivialProjectionInSuperType.kt"); + } + @Test @TestMetadata("nullableSam.kt") public void testNullableSam() { @@ -20506,6 +22066,232 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes } } + @Nested + @TestMetadata("compiler/testData/codegen/box/function") + @TestDataPath("$PROJECT_ROOT") + public class Function { + @Test + public void testAllFilesPresentInFunction() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/function"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("arithmetic.kt") + public void testArithmetic() { + runTest("compiler/testData/codegen/box/function/arithmetic.kt"); + } + + @Test + @TestMetadata("boolean.kt") + public void testBoolean() { + runTest("compiler/testData/codegen/box/function/boolean.kt"); + } + + @Test + @TestMetadata("defaults.kt") + public void testDefaults() { + runTest("compiler/testData/codegen/box/function/defaults.kt"); + } + + @Test + @TestMetadata("defaults1.kt") + public void testDefaults1() { + runTest("compiler/testData/codegen/box/function/defaults1.kt"); + } + + @Test + @TestMetadata("defaults10.kt") + public void testDefaults10() { + runTest("compiler/testData/codegen/box/function/defaults10.kt"); + } + + @Test + @TestMetadata("defaults2.kt") + public void testDefaults2() { + runTest("compiler/testData/codegen/box/function/defaults2.kt"); + } + + @Test + @TestMetadata("defaults3.kt") + public void testDefaults3() { + runTest("compiler/testData/codegen/box/function/defaults3.kt"); + } + + @Test + @TestMetadata("defaults4.kt") + public void testDefaults4() { + runTest("compiler/testData/codegen/box/function/defaults4.kt"); + } + + @Test + @TestMetadata("defaults5.kt") + public void testDefaults5() { + runTest("compiler/testData/codegen/box/function/defaults5.kt"); + } + + @Test + @TestMetadata("defaults6.kt") + public void testDefaults6() { + runTest("compiler/testData/codegen/box/function/defaults6.kt"); + } + + @Test + @TestMetadata("defaults7.kt") + public void testDefaults7() { + runTest("compiler/testData/codegen/box/function/defaults7.kt"); + } + + @Test + @TestMetadata("defaults8.kt") + public void testDefaults8() { + runTest("compiler/testData/codegen/box/function/defaults8.kt"); + } + + @Test + @TestMetadata("defaults9.kt") + public void testDefaults9() { + runTest("compiler/testData/codegen/box/function/defaults9.kt"); + } + + @Test + @TestMetadata("defaultsFromFakeOverride.kt") + public void testDefaultsFromFakeOverride() { + runTest("compiler/testData/codegen/box/function/defaultsFromFakeOverride.kt"); + } + + @Test + @TestMetadata("defaultsWithInlineClasses.kt") + public void testDefaultsWithInlineClasses() { + runTest("compiler/testData/codegen/box/function/defaultsWithInlineClasses.kt"); + } + + @Test + @TestMetadata("defaultsWithVarArg1.kt") + public void testDefaultsWithVarArg1() { + runTest("compiler/testData/codegen/box/function/defaultsWithVarArg1.kt"); + } + + @Test + @TestMetadata("defaultsWithVarArg2.kt") + public void testDefaultsWithVarArg2() { + runTest("compiler/testData/codegen/box/function/defaultsWithVarArg2.kt"); + } + + @Test + @TestMetadata("eqeq.kt") + public void testEqeq() { + runTest("compiler/testData/codegen/box/function/eqeq.kt"); + } + + @Test + @TestMetadata("extension.kt") + public void testExtension() { + runTest("compiler/testData/codegen/box/function/extension.kt"); + } + + @Test + @TestMetadata("intrinsic.kt") + public void testIntrinsic() { + runTest("compiler/testData/codegen/box/function/intrinsic.kt"); + } + + @Test + @TestMetadata("localFunction.kt") + public void testLocalFunction() { + runTest("compiler/testData/codegen/box/function/localFunction.kt"); + } + + @Test + @TestMetadata("localFunction2.kt") + public void testLocalFunction2() { + runTest("compiler/testData/codegen/box/function/localFunction2.kt"); + } + + @Test + @TestMetadata("localFunction3.kt") + public void testLocalFunction3() { + runTest("compiler/testData/codegen/box/function/localFunction3.kt"); + } + + @Test + @TestMetadata("minus_eq.kt") + public void testMinus_eq() { + runTest("compiler/testData/codegen/box/function/minus_eq.kt"); + } + + @Test + @TestMetadata("named.kt") + public void testNamed() { + runTest("compiler/testData/codegen/box/function/named.kt"); + } + + @Test + @TestMetadata("nothingNReturningSafeCall.kt") + public void testNothingNReturningSafeCall() { + runTest("compiler/testData/codegen/box/function/nothingNReturningSafeCall.kt"); + } + + @Test + @TestMetadata("plus_eq.kt") + public void testPlus_eq() { + runTest("compiler/testData/codegen/box/function/plus_eq.kt"); + } + + @Test + @TestMetadata("referenceBigArity.kt") + public void testReferenceBigArity() { + runTest("compiler/testData/codegen/box/function/referenceBigArity.kt"); + } + + @Test + @TestMetadata("sum.kt") + public void testSum() { + runTest("compiler/testData/codegen/box/function/sum.kt"); + } + + @Test + @TestMetadata("sum_3const.kt") + public void testSum_3const() { + runTest("compiler/testData/codegen/box/function/sum_3const.kt"); + } + + @Test + @TestMetadata("sum_foo_bar.kt") + public void testSum_foo_bar() { + runTest("compiler/testData/codegen/box/function/sum_foo_bar.kt"); + } + + @Test + @TestMetadata("sum_func.kt") + public void testSum_func() { + runTest("compiler/testData/codegen/box/function/sum_func.kt"); + } + + @Test + @TestMetadata("sum_imm.kt") + public void testSum_imm() { + runTest("compiler/testData/codegen/box/function/sum_imm.kt"); + } + + @Test + @TestMetadata("sum_mixed.kt") + public void testSum_mixed() { + runTest("compiler/testData/codegen/box/function/sum_mixed.kt"); + } + + @Test + @TestMetadata("sum_silly.kt") + public void testSum_silly() { + runTest("compiler/testData/codegen/box/function/sum_silly.kt"); + } + + @Test + @TestMetadata("unreachableStatementAfterReturn.kt") + public void testUnreachableStatementAfterReturn() { + runTest("compiler/testData/codegen/box/function/unreachableStatementAfterReturn.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/functions") @TestDataPath("$PROJECT_ROOT") @@ -22408,6 +24194,474 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes } } + @Nested + @TestMetadata("compiler/testData/codegen/box/initializers") + @TestDataPath("$PROJECT_ROOT") + public class Initializers { + @Test + public void testAllFilesPresentInInitializers() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/initializers"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("correctOrder1.kt") + public void testCorrectOrder1() { + runTest("compiler/testData/codegen/box/initializers/correctOrder1.kt"); + } + + @Test + @TestMetadata("correctOrder2.kt") + public void testCorrectOrder2() { + runTest("compiler/testData/codegen/box/initializers/correctOrder2.kt"); + } + + @Test + @TestMetadata("initializers0.kt") + public void testInitializers0() { + runTest("compiler/testData/codegen/box/initializers/initializers0.kt"); + } + + @Test + @TestMetadata("initializers1.kt") + public void testInitializers1() { + runTest("compiler/testData/codegen/box/initializers/initializers1.kt"); + } + + @Test + @TestMetadata("initializers2.kt") + public void testInitializers2() { + runTest("compiler/testData/codegen/box/initializers/initializers2.kt"); + } + + @Test + @TestMetadata("initializers3.kt") + public void testInitializers3() { + runTest("compiler/testData/codegen/box/initializers/initializers3.kt"); + } + + @Test + @TestMetadata("initializers4.kt") + public void testInitializers4() { + runTest("compiler/testData/codegen/box/initializers/initializers4.kt"); + } + + @Test + @TestMetadata("initializers5.kt") + public void testInitializers5() { + runTest("compiler/testData/codegen/box/initializers/initializers5.kt"); + } + + @Test + @TestMetadata("initializers7.kt") + public void testInitializers7() { + runTest("compiler/testData/codegen/box/initializers/initializers7.kt"); + } + + @Test + @TestMetadata("initializers8.kt") + public void testInitializers8() { + runTest("compiler/testData/codegen/box/initializers/initializers8.kt"); + } + + @Test + @TestMetadata("multipleModules1.kt") + public void testMultipleModules1() { + runTest("compiler/testData/codegen/box/initializers/multipleModules1.kt"); + } + + @Test + @TestMetadata("object.kt") + public void testObject() { + runTest("compiler/testData/codegen/box/initializers/object.kt"); + } + + @Test + @TestMetadata("sharedVarInInitBlock.kt") + public void testSharedVarInInitBlock() { + runTest("compiler/testData/codegen/box/initializers/sharedVarInInitBlock.kt"); + } + + @Test + @TestMetadata("static_arrays.kt") + public void testStatic_arrays() { + runTest("compiler/testData/codegen/box/initializers/static_arrays.kt"); + } + + @Test + @TestMetadata("static_list.kt") + public void testStatic_list() { + runTest("compiler/testData/codegen/box/initializers/static_list.kt"); + } + + @Test + @TestMetadata("static_smallIntIdentity.kt") + public void testStatic_smallIntIdentity() { + runTest("compiler/testData/codegen/box/initializers/static_smallIntIdentity.kt"); + } + + @Test + @TestMetadata("static_varargChange.kt") + public void testStatic_varargChange() { + runTest("compiler/testData/codegen/box/initializers/static_varargChange.kt"); + } + + @Test + @TestMetadata("throw1.kt") + public void testThrow1() { + runTest("compiler/testData/codegen/box/initializers/throw1.kt"); + } + + @Test + @TestMetadata("throw2.kt") + public void testThrow2() { + runTest("compiler/testData/codegen/box/initializers/throw2.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/initializers/files") + @TestDataPath("$PROJECT_ROOT") + public class Files { + @Test + public void testAllFilesPresentInFiles() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/initializers/files"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("globalInitedAfterAccessingFile.kt") + public void testGlobalInitedAfterAccessingFile() { + runTest("compiler/testData/codegen/box/initializers/files/globalInitedAfterAccessingFile.kt"); + } + + @Test + @TestMetadata("globalNotInitedAfterAccessingClassInternals.kt") + public void testGlobalNotInitedAfterAccessingClassInternals() { + runTest("compiler/testData/codegen/box/initializers/files/globalNotInitedAfterAccessingClassInternals.kt"); + } + + @Test + @TestMetadata("simple.kt") + public void testSimple() { + runTest("compiler/testData/codegen/box/initializers/files/simple.kt"); + } + + @Test + @TestMetadata("simpleMultiModule.kt") + public void testSimpleMultiModule() { + runTest("compiler/testData/codegen/box/initializers/files/simpleMultiModule.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/inline") + @TestDataPath("$PROJECT_ROOT") + public class Inline { + @Test + public void testAllFilesPresentInInline() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inline"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("changingCapturedLocal.kt") + public void testChangingCapturedLocal() { + runTest("compiler/testData/codegen/box/inline/changingCapturedLocal.kt"); + } + + @Test + @TestMetadata("classDeclarationInsideInline.kt") + public void testClassDeclarationInsideInline() { + runTest("compiler/testData/codegen/box/inline/classDeclarationInsideInline.kt"); + } + + @Test + @TestMetadata("coercionToUnit.kt") + public void testCoercionToUnit() { + runTest("compiler/testData/codegen/box/inline/coercionToUnit.kt"); + } + + @Test + @TestMetadata("correctOrderFunctionReference.kt") + public void testCorrectOrderFunctionReference() { + runTest("compiler/testData/codegen/box/inline/correctOrderFunctionReference.kt"); + } + + @Test + @TestMetadata("defaultArgs.kt") + public void testDefaultArgs() { + runTest("compiler/testData/codegen/box/inline/defaultArgs.kt"); + } + + @Test + @TestMetadata("defaultArgsMultipleModules.kt") + public void testDefaultArgsMultipleModules() { + runTest("compiler/testData/codegen/box/inline/defaultArgsMultipleModules.kt"); + } + + @Test + @TestMetadata("genericFunctionReference.kt") + public void testGenericFunctionReference() { + runTest("compiler/testData/codegen/box/inline/genericFunctionReference.kt"); + } + + @Test + @TestMetadata("getClass.kt") + public void testGetClass() { + runTest("compiler/testData/codegen/box/inline/getClass.kt"); + } + + @Test + @TestMetadata("inline0.kt") + public void testInline0() { + runTest("compiler/testData/codegen/box/inline/inline0.kt"); + } + + @Test + @TestMetadata("inline1.kt") + public void testInline1() { + runTest("compiler/testData/codegen/box/inline/inline1.kt"); + } + + @Test + @TestMetadata("inline10.kt") + public void testInline10() { + runTest("compiler/testData/codegen/box/inline/inline10.kt"); + } + + @Test + @TestMetadata("inline11.kt") + public void testInline11() { + runTest("compiler/testData/codegen/box/inline/inline11.kt"); + } + + @Test + @TestMetadata("inline12.kt") + public void testInline12() { + runTest("compiler/testData/codegen/box/inline/inline12.kt"); + } + + @Test + @TestMetadata("inline13.kt") + public void testInline13() { + runTest("compiler/testData/codegen/box/inline/inline13.kt"); + } + + @Test + @TestMetadata("inline14.kt") + public void testInline14() { + runTest("compiler/testData/codegen/box/inline/inline14.kt"); + } + + @Test + @TestMetadata("inline15.kt") + public void testInline15() { + runTest("compiler/testData/codegen/box/inline/inline15.kt"); + } + + @Test + @TestMetadata("inline16.kt") + public void testInline16() { + runTest("compiler/testData/codegen/box/inline/inline16.kt"); + } + + @Test + @TestMetadata("inline17.kt") + public void testInline17() { + runTest("compiler/testData/codegen/box/inline/inline17.kt"); + } + + @Test + @TestMetadata("inline19.kt") + public void testInline19() { + runTest("compiler/testData/codegen/box/inline/inline19.kt"); + } + + @Test + @TestMetadata("inline2.kt") + public void testInline2() { + runTest("compiler/testData/codegen/box/inline/inline2.kt"); + } + + @Test + @TestMetadata("inline20.kt") + public void testInline20() { + runTest("compiler/testData/codegen/box/inline/inline20.kt"); + } + + @Test + @TestMetadata("inline21.kt") + public void testInline21() { + runTest("compiler/testData/codegen/box/inline/inline21.kt"); + } + + @Test + @TestMetadata("inline22.kt") + public void testInline22() { + runTest("compiler/testData/codegen/box/inline/inline22.kt"); + } + + @Test + @TestMetadata("inline23.kt") + public void testInline23() { + runTest("compiler/testData/codegen/box/inline/inline23.kt"); + } + + @Test + @TestMetadata("inline24.kt") + public void testInline24() { + runTest("compiler/testData/codegen/box/inline/inline24.kt"); + } + + @Test + @TestMetadata("inline25.kt") + public void testInline25() { + runTest("compiler/testData/codegen/box/inline/inline25.kt"); + } + + @Test + @TestMetadata("inline26.kt") + public void testInline26() { + runTest("compiler/testData/codegen/box/inline/inline26.kt"); + } + + @Test + @TestMetadata("inline3.kt") + public void testInline3() { + runTest("compiler/testData/codegen/box/inline/inline3.kt"); + } + + @Test + @TestMetadata("inline4.kt") + public void testInline4() { + runTest("compiler/testData/codegen/box/inline/inline4.kt"); + } + + @Test + @TestMetadata("inline5.kt") + public void testInline5() { + runTest("compiler/testData/codegen/box/inline/inline5.kt"); + } + + @Test + @TestMetadata("inline6.kt") + public void testInline6() { + runTest("compiler/testData/codegen/box/inline/inline6.kt"); + } + + @Test + @TestMetadata("inline7.kt") + public void testInline7() { + runTest("compiler/testData/codegen/box/inline/inline7.kt"); + } + + @Test + @TestMetadata("inline8.kt") + public void testInline8() { + runTest("compiler/testData/codegen/box/inline/inline8.kt"); + } + + @Test + @TestMetadata("inline9.kt") + public void testInline9() { + runTest("compiler/testData/codegen/box/inline/inline9.kt"); + } + + @Test + @TestMetadata("inlineCtor.kt") + public void testInlineCtor() { + runTest("compiler/testData/codegen/box/inline/inlineCtor.kt"); + } + + @Test + @TestMetadata("innerInlineFunCapturesOuter.kt") + public void testInnerInlineFunCapturesOuter() { + runTest("compiler/testData/codegen/box/inline/innerInlineFunCapturesOuter.kt"); + } + + @Test + @TestMetadata("lambdaAsAny.kt") + public void testLambdaAsAny() { + runTest("compiler/testData/codegen/box/inline/lambdaAsAny.kt"); + } + + @Test + @TestMetadata("lambdaInDefaultValue.kt") + public void testLambdaInDefaultValue() { + runTest("compiler/testData/codegen/box/inline/lambdaInDefaultValue.kt"); + } + + @Test + @TestMetadata("lateinitProperty.kt") + public void testLateinitProperty() { + runTest("compiler/testData/codegen/box/inline/lateinitProperty.kt"); + } + + @Test + @TestMetadata("localFunctionInInitializerBlock.kt") + public void testLocalFunctionInInitializerBlock() { + runTest("compiler/testData/codegen/box/inline/localFunctionInInitializerBlock.kt"); + } + + @Test + @TestMetadata("localObjectReturnedFromWhen.kt") + public void testLocalObjectReturnedFromWhen() { + runTest("compiler/testData/codegen/box/inline/localObjectReturnedFromWhen.kt"); + } + + @Test + @TestMetadata("propertyAccessorInline.kt") + public void testPropertyAccessorInline() { + runTest("compiler/testData/codegen/box/inline/propertyAccessorInline.kt"); + } + + @Test + @TestMetadata("redundantCoercionsCleaner.kt") + public void testRedundantCoercionsCleaner() { + runTest("compiler/testData/codegen/box/inline/redundantCoercionsCleaner.kt"); + } + + @Test + @TestMetadata("redundantCoercionsCleanerKT48876.kt") + public void testRedundantCoercionsCleanerKT48876() { + runTest("compiler/testData/codegen/box/inline/redundantCoercionsCleanerKT48876.kt"); + } + + @Test + @TestMetadata("redundantCoercionsCleanerKT49356.kt") + public void testRedundantCoercionsCleanerKT49356() { + runTest("compiler/testData/codegen/box/inline/redundantCoercionsCleanerKT49356.kt"); + } + + @Test + @TestMetadata("returnLocalClassFromBlock.kt") + public void testReturnLocalClassFromBlock() { + runTest("compiler/testData/codegen/box/inline/returnLocalClassFromBlock.kt"); + } + + @Test + @TestMetadata("sharedVar.kt") + public void testSharedVar() { + runTest("compiler/testData/codegen/box/inline/sharedVar.kt"); + } + + @Test + @TestMetadata("statementAsLastExprInBlock.kt") + public void testStatementAsLastExprInBlock() { + runTest("compiler/testData/codegen/box/inline/statementAsLastExprInBlock.kt"); + } + + @Test + @TestMetadata("twiceInlinedObject.kt") + public void testTwiceInlinedObject() { + runTest("compiler/testData/codegen/box/inline/twiceInlinedObject.kt"); + } + + @Test + @TestMetadata("typeSubstitutionInFakeOverride.kt") + public void testTypeSubstitutionInFakeOverride() { + runTest("compiler/testData/codegen/box/inline/typeSubstitutionInFakeOverride.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/inlineArgsInPlace") @TestDataPath("$PROJECT_ROOT") @@ -22490,6 +24744,40 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes } } + @Nested + @TestMetadata("compiler/testData/codegen/box/inlineClass") + @TestDataPath("$PROJECT_ROOT") + public class InlineClass { + @Test + public void testAllFilesPresentInInlineClass() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineClass"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("customEquals.kt") + public void testCustomEquals() { + runTest("compiler/testData/codegen/box/inlineClass/customEquals.kt"); + } + + @Test + @TestMetadata("defaultEquals.kt") + public void testDefaultEquals() { + runTest("compiler/testData/codegen/box/inlineClass/defaultEquals.kt"); + } + + @Test + @TestMetadata("nestedInlineClasses.kt") + public void testNestedInlineClasses() { + runTest("compiler/testData/codegen/box/inlineClass/nestedInlineClasses.kt"); + } + + @Test + @TestMetadata("secondaryConstructorWithGenerics.kt") + public void testSecondaryConstructorWithGenerics() { + runTest("compiler/testData/codegen/box/inlineClass/secondaryConstructorWithGenerics.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/inlineClasses") @TestDataPath("$PROJECT_ROOT") @@ -28126,6 +30414,88 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes } } + @Nested + @TestMetadata("compiler/testData/codegen/box/innerClass") + @TestDataPath("$PROJECT_ROOT") + public class InnerClass { + @Test + public void testAllFilesPresentInInnerClass() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/innerClass"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("doubleInner.kt") + public void testDoubleInner() { + runTest("compiler/testData/codegen/box/innerClass/doubleInner.kt"); + } + + @Test + @TestMetadata("generic.kt") + public void testGeneric() { + runTest("compiler/testData/codegen/box/innerClass/generic.kt"); + } + + @Test + @TestMetadata("getOuterVal.kt") + public void testGetOuterVal() { + runTest("compiler/testData/codegen/box/innerClass/getOuterVal.kt"); + } + + @Test + @TestMetadata("inheritanceMultipleModules1.kt") + public void testInheritanceMultipleModules1() { + runTest("compiler/testData/codegen/box/innerClass/inheritanceMultipleModules1.kt"); + } + + @Test + @TestMetadata("inheritanceMultipleModules2.kt") + public void testInheritanceMultipleModules2() { + runTest("compiler/testData/codegen/box/innerClass/inheritanceMultipleModules2.kt"); + } + + @Test + @TestMetadata("inheritanceMultipleModules3.kt") + public void testInheritanceMultipleModules3() { + runTest("compiler/testData/codegen/box/innerClass/inheritanceMultipleModules3.kt"); + } + + @Test + @TestMetadata("multipleModules.kt") + public void testMultipleModules() { + runTest("compiler/testData/codegen/box/innerClass/multipleModules.kt"); + } + + @Test + @TestMetadata("noPrimaryConstructor.kt") + public void testNoPrimaryConstructor() { + runTest("compiler/testData/codegen/box/innerClass/noPrimaryConstructor.kt"); + } + + @Test + @TestMetadata("qualifiedThis.kt") + public void testQualifiedThis() { + runTest("compiler/testData/codegen/box/innerClass/qualifiedThis.kt"); + } + + @Test + @TestMetadata("secondaryConstructor.kt") + public void testSecondaryConstructor() { + runTest("compiler/testData/codegen/box/innerClass/secondaryConstructor.kt"); + } + + @Test + @TestMetadata("simple.kt") + public void testSimple() { + runTest("compiler/testData/codegen/box/innerClass/simple.kt"); + } + + @Test + @TestMetadata("superOuter.kt") + public void testSuperOuter() { + runTest("compiler/testData/codegen/box/innerClass/superOuter.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/innerNested") @TestDataPath("$PROJECT_ROOT") @@ -28526,6 +30896,40 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes } } + @Nested + @TestMetadata("compiler/testData/codegen/box/interfaceCallsNCasts") + @TestDataPath("$PROJECT_ROOT") + public class InterfaceCallsNCasts { + @Test + public void testAllFilesPresentInInterfaceCallsNCasts() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/interfaceCallsNCasts"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("conservativeItable.kt") + public void testConservativeItable() { + runTest("compiler/testData/codegen/box/interfaceCallsNCasts/conservativeItable.kt"); + } + + @Test + @TestMetadata("diamond.kt") + public void testDiamond() { + runTest("compiler/testData/codegen/box/interfaceCallsNCasts/diamond.kt"); + } + + @Test + @TestMetadata("finalMethod.kt") + public void testFinalMethod() { + runTest("compiler/testData/codegen/box/interfaceCallsNCasts/finalMethod.kt"); + } + + @Test + @TestMetadata("interface0.kt") + public void testInterface0() { + runTest("compiler/testData/codegen/box/interfaceCallsNCasts/interface0.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/intrinsics") @TestDataPath("$PROJECT_ROOT") @@ -33676,6 +36080,80 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes } } + @Nested + @TestMetadata("compiler/testData/codegen/box/kclass") + @TestDataPath("$PROJECT_ROOT") + public class Kclass { + @Test + public void testAllFilesPresentInKclass() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/kclass"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("kClassEnumArgument.kt") + public void testKClassEnumArgument() { + runTest("compiler/testData/codegen/box/kclass/kClassEnumArgument.kt"); + } + + @Test + @TestMetadata("kclass1.kt") + public void testKclass1() { + runTest("compiler/testData/codegen/box/kclass/kclass1.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/ktype") + @TestDataPath("$PROJECT_ROOT") + public class Ktype { + @Test + public void testAllFilesPresentInKtype() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ktype"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("ktype1_basics1.kt") + public void testKtype1_basics1() { + runTest("compiler/testData/codegen/box/ktype/ktype1_basics1.kt"); + } + + @Test + @TestMetadata("ktype1_inner.kt") + public void testKtype1_inner() { + runTest("compiler/testData/codegen/box/ktype/ktype1_inner.kt"); + } + + @Test + @TestMetadata("nonReified_class.kt") + public void testNonReified_class() { + runTest("compiler/testData/codegen/box/ktype/nonReified_class.kt"); + } + + @Test + @TestMetadata("nonReified_equality.kt") + public void testNonReified_equality() { + runTest("compiler/testData/codegen/box/ktype/nonReified_equality.kt"); + } + + @Test + @TestMetadata("nonReified_fun.kt") + public void testNonReified_fun() { + runTest("compiler/testData/codegen/box/ktype/nonReified_fun.kt"); + } + + @Test + @TestMetadata("nonReified_recursionInReified.kt") + public void testNonReified_recursionInReified() { + runTest("compiler/testData/codegen/box/ktype/nonReified_recursionInReified.kt"); + } + + @Test + @TestMetadata("nonReified_reifiedUpperBound.kt") + public void testNonReified_reifiedUpperBound() { + runTest("compiler/testData/codegen/box/ktype/nonReified_reifiedUpperBound.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/labels") @TestDataPath("$PROJECT_ROOT") @@ -33734,6 +36212,188 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes } } + @Nested + @TestMetadata("compiler/testData/codegen/box/lambda") + @TestDataPath("$PROJECT_ROOT") + public class Lambda { + @Test + public void testAllFilesPresentInLambda() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/lambda"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("lambda1.kt") + public void testLambda1() { + runTest("compiler/testData/codegen/box/lambda/lambda1.kt"); + } + + @Test + @TestMetadata("lambda10.kt") + public void testLambda10() { + runTest("compiler/testData/codegen/box/lambda/lambda10.kt"); + } + + @Test + @TestMetadata("lambda11.kt") + public void testLambda11() { + runTest("compiler/testData/codegen/box/lambda/lambda11.kt"); + } + + @Test + @TestMetadata("lambda12.kt") + public void testLambda12() { + runTest("compiler/testData/codegen/box/lambda/lambda12.kt"); + } + + @Test + @TestMetadata("lambda13.kt") + public void testLambda13() { + runTest("compiler/testData/codegen/box/lambda/lambda13.kt"); + } + + @Test + @TestMetadata("lambda14.kt") + public void testLambda14() { + runTest("compiler/testData/codegen/box/lambda/lambda14.kt"); + } + + @Test + @TestMetadata("lambda2.kt") + public void testLambda2() { + runTest("compiler/testData/codegen/box/lambda/lambda2.kt"); + } + + @Test + @TestMetadata("lambda3.kt") + public void testLambda3() { + runTest("compiler/testData/codegen/box/lambda/lambda3.kt"); + } + + @Test + @TestMetadata("lambda4.kt") + public void testLambda4() { + runTest("compiler/testData/codegen/box/lambda/lambda4.kt"); + } + + @Test + @TestMetadata("lambda5.kt") + public void testLambda5() { + runTest("compiler/testData/codegen/box/lambda/lambda5.kt"); + } + + @Test + @TestMetadata("lambda6.kt") + public void testLambda6() { + runTest("compiler/testData/codegen/box/lambda/lambda6.kt"); + } + + @Test + @TestMetadata("lambda7.kt") + public void testLambda7() { + runTest("compiler/testData/codegen/box/lambda/lambda7.kt"); + } + + @Test + @TestMetadata("lambda8.kt") + public void testLambda8() { + runTest("compiler/testData/codegen/box/lambda/lambda8.kt"); + } + + @Test + @TestMetadata("lambda9.kt") + public void testLambda9() { + runTest("compiler/testData/codegen/box/lambda/lambda9.kt"); + } + + @Test + @TestMetadata("lambda_kt49360_trivial.kt") + public void testLambda_kt49360_trivial() { + runTest("compiler/testData/codegen/box/lambda/lambda_kt49360_trivial.kt"); + } + + @Test + @TestMetadata("lambda_kt49360_withFlow.kt") + public void testLambda_kt49360_withFlow() { + runTest("compiler/testData/codegen/box/lambda/lambda_kt49360_withFlow.kt"); + } + + @Test + @TestMetadata("lambda_kt49360_wrapBlock.kt") + public void testLambda_kt49360_wrapBlock() { + runTest("compiler/testData/codegen/box/lambda/lambda_kt49360_wrapBlock.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/lateinit") + @TestDataPath("$PROJECT_ROOT") + public class Lateinit { + @Test + public void testAllFilesPresentInLateinit() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/lateinit"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("globalIsInitialized.kt") + public void testGlobalIsInitialized() { + runTest("compiler/testData/codegen/box/lateinit/globalIsInitialized.kt"); + } + + @Test + @TestMetadata("inBaseClass.kt") + public void testInBaseClass() { + runTest("compiler/testData/codegen/box/lateinit/inBaseClass.kt"); + } + + @Test + @TestMetadata("initialized.kt") + public void testInitialized() { + runTest("compiler/testData/codegen/box/lateinit/initialized.kt"); + } + + @Test + @TestMetadata("innerIsInitialized.kt") + public void testInnerIsInitialized() { + runTest("compiler/testData/codegen/box/lateinit/innerIsInitialized.kt"); + } + + @Test + @TestMetadata("isInitialized.kt") + public void testIsInitialized() { + runTest("compiler/testData/codegen/box/lateinit/isInitialized.kt"); + } + + @Test + @TestMetadata("localCapturedInitialized.kt") + public void testLocalCapturedInitialized() { + runTest("compiler/testData/codegen/box/lateinit/localCapturedInitialized.kt"); + } + + @Test + @TestMetadata("localCapturedNotInitialized.kt") + public void testLocalCapturedNotInitialized() { + runTest("compiler/testData/codegen/box/lateinit/localCapturedNotInitialized.kt"); + } + + @Test + @TestMetadata("localInitialized.kt") + public void testLocalInitialized() { + runTest("compiler/testData/codegen/box/lateinit/localInitialized.kt"); + } + + @Test + @TestMetadata("localNotInitialized.kt") + public void testLocalNotInitialized() { + runTest("compiler/testData/codegen/box/lateinit/localNotInitialized.kt"); + } + + @Test + @TestMetadata("notInitialized.kt") + public void testNotInitialized() { + runTest("compiler/testData/codegen/box/lateinit/notInitialized.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/lazyCodegen") @TestDataPath("$PROJECT_ROOT") @@ -33862,6 +36522,98 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes } } + @Nested + @TestMetadata("compiler/testData/codegen/box/literals") + @TestDataPath("$PROJECT_ROOT") + public class Literals { + @Test + public void testAllFilesPresentInLiterals() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/literals"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("listof1.kt") + public void testListof1() { + runTest("compiler/testData/codegen/box/literals/listof1.kt"); + } + + @Test + @TestMetadata("strdedup1.kt") + public void testStrdedup1() { + runTest("compiler/testData/codegen/box/literals/strdedup1.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/localClass") + @TestDataPath("$PROJECT_ROOT") + public class LocalClass { + @Test + public void testAllFilesPresentInLocalClass() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/localClass"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("innerTakesCapturedFromOuter.kt") + public void testInnerTakesCapturedFromOuter() { + runTest("compiler/testData/codegen/box/localClass/innerTakesCapturedFromOuter.kt"); + } + + @Test + @TestMetadata("innerWithCapture.kt") + public void testInnerWithCapture() { + runTest("compiler/testData/codegen/box/localClass/innerWithCapture.kt"); + } + + @Test + @TestMetadata("localFunctionCallFromLocalClass.kt") + public void testLocalFunctionCallFromLocalClass() { + runTest("compiler/testData/codegen/box/localClass/localFunctionCallFromLocalClass.kt"); + } + + @Test + @TestMetadata("localFunctionInLocalClass.kt") + public void testLocalFunctionInLocalClass() { + runTest("compiler/testData/codegen/box/localClass/localFunctionInLocalClass.kt"); + } + + @Test + @TestMetadata("localHierarchy.kt") + public void testLocalHierarchy() { + runTest("compiler/testData/codegen/box/localClass/localHierarchy.kt"); + } + + @Test + @TestMetadata("noPrimaryConstructor.kt") + public void testNoPrimaryConstructor() { + runTest("compiler/testData/codegen/box/localClass/noPrimaryConstructor.kt"); + } + + @Test + @TestMetadata("objectExpressionInInitializer.kt") + public void testObjectExpressionInInitializer() { + runTest("compiler/testData/codegen/box/localClass/objectExpressionInInitializer.kt"); + } + + @Test + @TestMetadata("objectExpressionInProperty.kt") + public void testObjectExpressionInProperty() { + runTest("compiler/testData/codegen/box/localClass/objectExpressionInProperty.kt"); + } + + @Test + @TestMetadata("tryCatch.kt") + public void testTryCatch() { + runTest("compiler/testData/codegen/box/localClass/tryCatch.kt"); + } + + @Test + @TestMetadata("virtualCallFromConstructor.kt") + public void testVirtualCallFromConstructor() { + runTest("compiler/testData/codegen/box/localClass/virtualCallFromConstructor.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/localClasses") @TestDataPath("$PROJECT_ROOT") @@ -34112,6 +36864,38 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes } } + @Nested + @TestMetadata("compiler/testData/codegen/box/localEscapeAnalysis") + @TestDataPath("$PROJECT_ROOT") + public class LocalEscapeAnalysis { + @Test + public void testAllFilesPresentInLocalEscapeAnalysis() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/localEscapeAnalysis"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("arraysFieldWrite.kt") + public void testArraysFieldWrite() { + runTest("compiler/testData/codegen/box/localEscapeAnalysis/arraysFieldWrite.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/lower") + @TestDataPath("$PROJECT_ROOT") + public class Lower { + @Test + public void testAllFilesPresentInLower() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/lower"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("localDelegatedProperty.kt") + public void testLocalDelegatedProperty() { + runTest("compiler/testData/codegen/box/lower/localDelegatedProperty.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/mangling") @TestDataPath("$PROJECT_ROOT") @@ -34151,6 +36935,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/mangling/internalOverrideSuperCall.kt"); } + @Test + @TestMetadata("multipleConstructors.kt") + public void testMultipleConstructors() { + runTest("compiler/testData/codegen/box/mangling/multipleConstructors.kt"); + } + @Test @TestMetadata("noOverrideWithJava.kt") public void testNoOverrideWithJava() { @@ -35492,6 +38282,98 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes } } + @Nested + @TestMetadata("compiler/testData/codegen/box/object") + @TestDataPath("$PROJECT_ROOT") + public class Object { + @Test + public void testAllFilesPresentInObject() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/object"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("constructor0.kt") + public void testConstructor0() { + runTest("compiler/testData/codegen/box/object/constructor0.kt"); + } + + @Test + @TestMetadata("fields.kt") + public void testFields() { + runTest("compiler/testData/codegen/box/object/fields.kt"); + } + + @Test + @TestMetadata("fields1.kt") + public void testFields1() { + runTest("compiler/testData/codegen/box/object/fields1.kt"); + } + + @Test + @TestMetadata("fields2.kt") + public void testFields2() { + runTest("compiler/testData/codegen/box/object/fields2.kt"); + } + + @Test + @TestMetadata("globalInitializer.kt") + public void testGlobalInitializer() { + runTest("compiler/testData/codegen/box/object/globalInitializer.kt"); + } + + @Test + @TestMetadata("init0.kt") + public void testInit0() { + runTest("compiler/testData/codegen/box/object/init0.kt"); + } + + @Test + @TestMetadata("initialization.kt") + public void testInitialization() { + runTest("compiler/testData/codegen/box/object/initialization.kt"); + } + + @Test + @TestMetadata("initialization1.kt") + public void testInitialization1() { + runTest("compiler/testData/codegen/box/object/initialization1.kt"); + } + + @Test + @TestMetadata("method_call.kt") + public void testMethod_call() { + runTest("compiler/testData/codegen/box/object/method_call.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/objectExpression") + @TestDataPath("$PROJECT_ROOT") + public class ObjectExpression { + @Test + public void testAllFilesPresentInObjectExpression() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/objectExpression"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("expr1.kt") + public void testExpr1() { + runTest("compiler/testData/codegen/box/objectExpression/expr1.kt"); + } + + @Test + @TestMetadata("expr2.kt") + public void testExpr2() { + runTest("compiler/testData/codegen/box/objectExpression/expr2.kt"); + } + + @Test + @TestMetadata("expr3.kt") + public void testExpr3() { + runTest("compiler/testData/codegen/box/objectExpression/expr3.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/objectIntrinsics") @TestDataPath("$PROJECT_ROOT") @@ -38788,6 +41670,64 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes } } + @Nested + @TestMetadata("compiler/testData/codegen/box/propertyCallableReference") + @TestDataPath("$PROJECT_ROOT") + public class PropertyCallableReference { + @Test + public void testAllFilesPresentInPropertyCallableReference() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/propertyCallableReference"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("dynamicReceiver.kt") + public void testDynamicReceiver() { + runTest("compiler/testData/codegen/box/propertyCallableReference/dynamicReceiver.kt"); + } + + @Test + @TestMetadata("multipleModules.kt") + public void testMultipleModules() { + runTest("compiler/testData/codegen/box/propertyCallableReference/multipleModules.kt"); + } + + @Test + @TestMetadata("valClass.kt") + public void testValClass() { + runTest("compiler/testData/codegen/box/propertyCallableReference/valClass.kt"); + } + + @Test + @TestMetadata("valExtension.kt") + public void testValExtension() { + runTest("compiler/testData/codegen/box/propertyCallableReference/valExtension.kt"); + } + + @Test + @TestMetadata("valModule.kt") + public void testValModule() { + runTest("compiler/testData/codegen/box/propertyCallableReference/valModule.kt"); + } + + @Test + @TestMetadata("varClass.kt") + public void testVarClass() { + runTest("compiler/testData/codegen/box/propertyCallableReference/varClass.kt"); + } + + @Test + @TestMetadata("varExtension.kt") + public void testVarExtension() { + runTest("compiler/testData/codegen/box/propertyCallableReference/varExtension.kt"); + } + + @Test + @TestMetadata("varModule.kt") + public void testVarModule() { + runTest("compiler/testData/codegen/box/propertyCallableReference/varModule.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/publishedApi") @TestDataPath("$PROJECT_ROOT") @@ -51034,6 +53974,58 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes } } + @Nested + @TestMetadata("compiler/testData/codegen/box/serialization") + @TestDataPath("$PROJECT_ROOT") + public class Serialization { + @Test + public void testAllFilesPresentInSerialization() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/serialization"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("deserializedMembers.kt") + public void testDeserializedMembers() { + runTest("compiler/testData/codegen/box/serialization/deserializedMembers.kt"); + } + + @Test + @TestMetadata("serializedCatch.kt") + public void testSerializedCatch() { + runTest("compiler/testData/codegen/box/serialization/serializedCatch.kt"); + } + + @Test + @TestMetadata("serializedCharConstant.kt") + public void testSerializedCharConstant() { + runTest("compiler/testData/codegen/box/serialization/serializedCharConstant.kt"); + } + + @Test + @TestMetadata("serializedDefaultArgs.kt") + public void testSerializedDefaultArgs() { + runTest("compiler/testData/codegen/box/serialization/serializedDefaultArgs.kt"); + } + + @Test + @TestMetadata("serializedDoWhile.kt") + public void testSerializedDoWhile() { + runTest("compiler/testData/codegen/box/serialization/serializedDoWhile.kt"); + } + + @Test + @TestMetadata("serializedEnumOrdinal.kt") + public void testSerializedEnumOrdinal() { + runTest("compiler/testData/codegen/box/serialization/serializedEnumOrdinal.kt"); + } + + @Test + @TestMetadata("serializedVararg.kt") + public void testSerializedVararg() { + runTest("compiler/testData/codegen/box/serialization/serializedVararg.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/size") @TestDataPath("$PROJECT_ROOT") @@ -51706,6 +54698,22 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes } } + @Nested + @TestMetadata("compiler/testData/codegen/box/stringTrim") + @TestDataPath("$PROJECT_ROOT") + public class StringTrim { + @Test + public void testAllFilesPresentInStringTrim() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/stringTrim"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("stringTrim.kt") + public void testStringTrim() { + runTest("compiler/testData/codegen/box/stringTrim/stringTrim.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/strings") @TestDataPath("$PROJECT_ROOT") @@ -53234,6 +56242,142 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes } } + @Nested + @TestMetadata("compiler/testData/codegen/box/try") + @TestDataPath("$PROJECT_ROOT") + public class Try { + @Test + public void testAllFilesPresentInTry() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/try"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("catch3.kt") + public void testCatch3() { + runTest("compiler/testData/codegen/box/try/catch3.kt"); + } + + @Test + @TestMetadata("catch4.kt") + public void testCatch4() { + runTest("compiler/testData/codegen/box/try/catch4.kt"); + } + + @Test + @TestMetadata("catch5.kt") + public void testCatch5() { + runTest("compiler/testData/codegen/box/try/catch5.kt"); + } + + @Test + @TestMetadata("catch6.kt") + public void testCatch6() { + runTest("compiler/testData/codegen/box/try/catch6.kt"); + } + + @Test + @TestMetadata("catch8.kt") + public void testCatch8() { + runTest("compiler/testData/codegen/box/try/catch8.kt"); + } + + @Test + @TestMetadata("finally1.kt") + public void testFinally1() { + runTest("compiler/testData/codegen/box/try/finally1.kt"); + } + + @Test + @TestMetadata("finally10.kt") + public void testFinally10() { + runTest("compiler/testData/codegen/box/try/finally10.kt"); + } + + @Test + @TestMetadata("finally11.kt") + public void testFinally11() { + runTest("compiler/testData/codegen/box/try/finally11.kt"); + } + + @Test + @TestMetadata("finally2.kt") + public void testFinally2() { + runTest("compiler/testData/codegen/box/try/finally2.kt"); + } + + @Test + @TestMetadata("finally3.kt") + public void testFinally3() { + runTest("compiler/testData/codegen/box/try/finally3.kt"); + } + + @Test + @TestMetadata("finally4.kt") + public void testFinally4() { + runTest("compiler/testData/codegen/box/try/finally4.kt"); + } + + @Test + @TestMetadata("finally5.kt") + public void testFinally5() { + runTest("compiler/testData/codegen/box/try/finally5.kt"); + } + + @Test + @TestMetadata("finally6.kt") + public void testFinally6() { + runTest("compiler/testData/codegen/box/try/finally6.kt"); + } + + @Test + @TestMetadata("finally7.kt") + public void testFinally7() { + runTest("compiler/testData/codegen/box/try/finally7.kt"); + } + + @Test + @TestMetadata("finally8.kt") + public void testFinally8() { + runTest("compiler/testData/codegen/box/try/finally8.kt"); + } + + @Test + @TestMetadata("finally9.kt") + public void testFinally9() { + runTest("compiler/testData/codegen/box/try/finally9.kt"); + } + + @Test + @TestMetadata("returnsDifferentTypes.kt") + public void testReturnsDifferentTypes() { + runTest("compiler/testData/codegen/box/try/returnsDifferentTypes.kt"); + } + + @Test + @TestMetadata("try1.kt") + public void testTry1() { + runTest("compiler/testData/codegen/box/try/try1.kt"); + } + + @Test + @TestMetadata("try2.kt") + public void testTry2() { + runTest("compiler/testData/codegen/box/try/try2.kt"); + } + + @Test + @TestMetadata("try3.kt") + public void testTry3() { + runTest("compiler/testData/codegen/box/try/try3.kt"); + } + + @Test + @TestMetadata("try4.kt") + public void testTry4() { + runTest("compiler/testData/codegen/box/try/try4.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/typeInfo") @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 1f3a2c61d46..cd5ea962a95 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 @@ -107,6 +107,12 @@ public class IrBlackBoxCodegenWithIrInlinerTestGenerated extends AbstractIrBlack runTest("compiler/testData/codegen/box/annotations/annotationWithVarargAsDefaultValue.kt"); } + @Test + @TestMetadata("annotations0.kt") + public void testAnnotations0() { + runTest("compiler/testData/codegen/box/annotations/annotations0.kt"); + } + @Test @TestMetadata("annotationsOnDefault.kt") public void testAnnotationsOnDefault() { @@ -936,6 +942,82 @@ public class IrBlackBoxCodegenWithIrInlinerTestGenerated extends AbstractIrBlack } } + @Nested + @TestMetadata("compiler/testData/codegen/box/arithmetic") + @TestDataPath("$PROJECT_ROOT") + public class Arithmetic { + @Test + public void testAllFilesPresentInArithmetic() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/arithmetic"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("basic_charConversions.kt") + public void testBasic_charConversions() { + runTest("compiler/testData/codegen/box/arithmetic/basic_charConversions.kt"); + } + + @Test + @TestMetadata("basic_charCornerCases.kt") + public void testBasic_charCornerCases() { + runTest("compiler/testData/codegen/box/arithmetic/basic_charCornerCases.kt"); + } + + @Test + @TestMetadata("basic_compareIntToFloat.kt") + public void testBasic_compareIntToFloat() { + runTest("compiler/testData/codegen/box/arithmetic/basic_compareIntToFloat.kt"); + } + + @Test + @TestMetadata("basic_doubleBasic.kt") + public void testBasic_doubleBasic() { + runTest("compiler/testData/codegen/box/arithmetic/basic_doubleBasic.kt"); + } + + @Test + @TestMetadata("basic_integralToFloat.kt") + public void testBasic_integralToFloat() { + runTest("compiler/testData/codegen/box/arithmetic/basic_integralToFloat.kt"); + } + + @Test + @TestMetadata("basic_kt37412.kt") + public void testBasic_kt37412() { + runTest("compiler/testData/codegen/box/arithmetic/basic_kt37412.kt"); + } + + @Test + @TestMetadata("basic_selfComparison.kt") + public void testBasic_selfComparison() { + runTest("compiler/testData/codegen/box/arithmetic/basic_selfComparison.kt"); + } + + @Test + @TestMetadata("basic_shifts.kt") + public void testBasic_shifts() { + runTest("compiler/testData/codegen/box/arithmetic/basic_shifts.kt"); + } + + @Test + @TestMetadata("basic_uintTests.kt") + public void testBasic_uintTests() { + runTest("compiler/testData/codegen/box/arithmetic/basic_uintTests.kt"); + } + + @Test + @TestMetadata("division.kt") + public void testDivision() { + runTest("compiler/testData/codegen/box/arithmetic/division.kt"); + } + + @Test + @TestMetadata("github1856.kt") + public void testGithub1856() { + runTest("compiler/testData/codegen/box/arithmetic/github1856.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/arrays") @TestDataPath("$PROJECT_ROOT") @@ -1788,6 +1870,302 @@ public class IrBlackBoxCodegenWithIrInlinerTestGenerated extends AbstractIrBlack } } + @Nested + @TestMetadata("compiler/testData/codegen/box/basics") + @TestDataPath("$PROJECT_ROOT") + public class Basics { + @Test + public void testAllFilesPresentInBasics() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/basics"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("array_to_any.kt") + public void testArray_to_any() { + runTest("compiler/testData/codegen/box/basics/array_to_any.kt"); + } + + @Test + @TestMetadata("canonical_name.kt") + public void testCanonical_name() { + runTest("compiler/testData/codegen/box/basics/canonical_name.kt"); + } + + @Test + @TestMetadata("cast_null.kt") + public void testCast_null() { + runTest("compiler/testData/codegen/box/basics/cast_null.kt"); + } + + @Test + @TestMetadata("cast_simple.kt") + public void testCast_simple() { + runTest("compiler/testData/codegen/box/basics/cast_simple.kt"); + } + + @Test + @TestMetadata("check_type.kt") + public void testCheck_type() { + runTest("compiler/testData/codegen/box/basics/check_type.kt"); + } + + @Test + @TestMetadata("companion.kt") + public void testCompanion() { + runTest("compiler/testData/codegen/box/basics/companion.kt"); + } + + @Test + @TestMetadata("concatenation.kt") + public void testConcatenation() { + runTest("compiler/testData/codegen/box/basics/concatenation.kt"); + } + + @Test + @TestMetadata("const_infinity.kt") + public void testConst_infinity() { + runTest("compiler/testData/codegen/box/basics/const_infinity.kt"); + } + + @Test + @TestMetadata("expression_as_statement.kt") + public void testExpression_as_statement() { + runTest("compiler/testData/codegen/box/basics/expression_as_statement.kt"); + } + + @Test + @TestMetadata("k42000_1.kt") + public void testK42000_1() { + runTest("compiler/testData/codegen/box/basics/k42000_1.kt"); + } + + @Test + @TestMetadata("k42000_2.kt") + public void testK42000_2() { + runTest("compiler/testData/codegen/box/basics/k42000_2.kt"); + } + + @Test + @TestMetadata("local_variable.kt") + public void testLocal_variable() { + runTest("compiler/testData/codegen/box/basics/local_variable.kt"); + } + + @Test + @TestMetadata("null_check.kt") + public void testNull_check() { + runTest("compiler/testData/codegen/box/basics/null_check.kt"); + } + + @Test + @TestMetadata("safe_cast.kt") + public void testSafe_cast() { + runTest("compiler/testData/codegen/box/basics/safe_cast.kt"); + } + + @Test + @TestMetadata("spread_operator_0.kt") + public void testSpread_operator_0() { + runTest("compiler/testData/codegen/box/basics/spread_operator_0.kt"); + } + + @Test + @TestMetadata("statements0.kt") + public void testStatements0() { + runTest("compiler/testData/codegen/box/basics/statements0.kt"); + } + + @Test + @TestMetadata("superFunCall.kt") + public void testSuperFunCall() { + runTest("compiler/testData/codegen/box/basics/superFunCall.kt"); + } + + @Test + @TestMetadata("superGetterCall.kt") + public void testSuperGetterCall() { + runTest("compiler/testData/codegen/box/basics/superGetterCall.kt"); + } + + @Test + @TestMetadata("superSetterCall.kt") + public void testSuperSetterCall() { + runTest("compiler/testData/codegen/box/basics/superSetterCall.kt"); + } + + @Test + @TestMetadata("typealias1.kt") + public void testTypealias1() { + runTest("compiler/testData/codegen/box/basics/typealias1.kt"); + } + + @Test + @TestMetadata("unchecked_cast1.kt") + public void testUnchecked_cast1() { + runTest("compiler/testData/codegen/box/basics/unchecked_cast1.kt"); + } + + @Test + @TestMetadata("unchecked_cast2.kt") + public void testUnchecked_cast2() { + runTest("compiler/testData/codegen/box/basics/unchecked_cast2.kt"); + } + + @Test + @TestMetadata("unchecked_cast3.kt") + public void testUnchecked_cast3() { + runTest("compiler/testData/codegen/box/basics/unchecked_cast3.kt"); + } + + @Test + @TestMetadata("unchecked_cast4.kt") + public void testUnchecked_cast4() { + runTest("compiler/testData/codegen/box/basics/unchecked_cast4.kt"); + } + + @Test + @TestMetadata("unit1.kt") + public void testUnit1() { + runTest("compiler/testData/codegen/box/basics/unit1.kt"); + } + + @Test + @TestMetadata("unit2.kt") + public void testUnit2() { + runTest("compiler/testData/codegen/box/basics/unit2.kt"); + } + + @Test + @TestMetadata("unit3.kt") + public void testUnit3() { + runTest("compiler/testData/codegen/box/basics/unit3.kt"); + } + + @Test + @TestMetadata("unit4.kt") + public void testUnit4() { + runTest("compiler/testData/codegen/box/basics/unit4.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/bce") + @TestDataPath("$PROJECT_ROOT") + public class Bce { + @Test + public void testAllFilesPresentInBce() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/bce"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("bceCases.kt") + public void testBceCases() { + runTest("compiler/testData/codegen/box/bce/bceCases.kt"); + } + + @Test + @TestMetadata("customGetter.kt") + public void testCustomGetter() { + runTest("compiler/testData/codegen/box/bce/customGetter.kt"); + } + + @Test + @TestMetadata("delegatedProperty.kt") + public void testDelegatedProperty() { + runTest("compiler/testData/codegen/box/bce/delegatedProperty.kt"); + } + + @Test + @TestMetadata("differentArrays.kt") + public void testDifferentArrays() { + runTest("compiler/testData/codegen/box/bce/differentArrays.kt"); + } + + @Test + @TestMetadata("differentObjects.kt") + public void testDifferentObjects() { + runTest("compiler/testData/codegen/box/bce/differentObjects.kt"); + } + + @Test + @TestMetadata("forDownToSize.kt") + public void testForDownToSize() { + runTest("compiler/testData/codegen/box/bce/forDownToSize.kt"); + } + + @Test + @TestMetadata("forDownToWithStep.kt") + public void testForDownToWithStep() { + runTest("compiler/testData/codegen/box/bce/forDownToWithStep.kt"); + } + + @Test + @TestMetadata("forEachIndexedTest.kt") + public void testForEachIndexedTest() { + runTest("compiler/testData/codegen/box/bce/forEachIndexedTest.kt"); + } + + @Test + @TestMetadata("forEachIndicies.kt") + public void testForEachIndicies() { + runTest("compiler/testData/codegen/box/bce/forEachIndicies.kt"); + } + + @Test + @TestMetadata("forIndiciesWithStep.kt") + public void testForIndiciesWithStep() { + runTest("compiler/testData/codegen/box/bce/forIndiciesWithStep.kt"); + } + + @Test + @TestMetadata("forRangeToSize.kt") + public void testForRangeToSize() { + runTest("compiler/testData/codegen/box/bce/forRangeToSize.kt"); + } + + @Test + @TestMetadata("forRangeToWithStep.kt") + public void testForRangeToWithStep() { + runTest("compiler/testData/codegen/box/bce/forRangeToWithStep.kt"); + } + + @Test + @TestMetadata("forReversed.kt") + public void testForReversed() { + runTest("compiler/testData/codegen/box/bce/forReversed.kt"); + } + + @Test + @TestMetadata("forUntilSize.kt") + public void testForUntilSize() { + runTest("compiler/testData/codegen/box/bce/forUntilSize.kt"); + } + + @Test + @TestMetadata("forUntilWithStep.kt") + public void testForUntilWithStep() { + runTest("compiler/testData/codegen/box/bce/forUntilWithStep.kt"); + } + + @Test + @TestMetadata("forWithIndex.kt") + public void testForWithIndex() { + runTest("compiler/testData/codegen/box/bce/forWithIndex.kt"); + } + + @Test + @TestMetadata("inheritance.kt") + public void testInheritance() { + runTest("compiler/testData/codegen/box/bce/inheritance.kt"); + } + + @Test + @TestMetadata("withGetter.kt") + public void testWithGetter() { + runTest("compiler/testData/codegen/box/bce/withGetter.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/binaryOp") @TestDataPath("$PROJECT_ROOT") @@ -1984,6 +2362,124 @@ public class IrBlackBoxCodegenWithIrInlinerTestGenerated extends AbstractIrBlack } } + @Nested + @TestMetadata("compiler/testData/codegen/box/boxing") + @TestDataPath("$PROJECT_ROOT") + public class Boxing { + @Test + public void testAllFilesPresentInBoxing() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/boxing"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("box_cache0.kt") + public void testBox_cache0() { + runTest("compiler/testData/codegen/box/boxing/box_cache0.kt"); + } + + @Test + @TestMetadata("boxing0.kt") + public void testBoxing0() { + runTest("compiler/testData/codegen/box/boxing/boxing0.kt"); + } + + @Test + @TestMetadata("boxing1.kt") + public void testBoxing1() { + runTest("compiler/testData/codegen/box/boxing/boxing1.kt"); + } + + @Test + @TestMetadata("boxing10.kt") + public void testBoxing10() { + runTest("compiler/testData/codegen/box/boxing/boxing10.kt"); + } + + @Test + @TestMetadata("boxing11.kt") + public void testBoxing11() { + runTest("compiler/testData/codegen/box/boxing/boxing11.kt"); + } + + @Test + @TestMetadata("boxing12.kt") + public void testBoxing12() { + runTest("compiler/testData/codegen/box/boxing/boxing12.kt"); + } + + @Test + @TestMetadata("boxing13.kt") + public void testBoxing13() { + runTest("compiler/testData/codegen/box/boxing/boxing13.kt"); + } + + @Test + @TestMetadata("boxing14.kt") + public void testBoxing14() { + runTest("compiler/testData/codegen/box/boxing/boxing14.kt"); + } + + @Test + @TestMetadata("boxing15.kt") + public void testBoxing15() { + runTest("compiler/testData/codegen/box/boxing/boxing15.kt"); + } + + @Test + @TestMetadata("boxing2.kt") + public void testBoxing2() { + runTest("compiler/testData/codegen/box/boxing/boxing2.kt"); + } + + @Test + @TestMetadata("boxing3.kt") + public void testBoxing3() { + runTest("compiler/testData/codegen/box/boxing/boxing3.kt"); + } + + @Test + @TestMetadata("boxing4.kt") + public void testBoxing4() { + runTest("compiler/testData/codegen/box/boxing/boxing4.kt"); + } + + @Test + @TestMetadata("boxing5.kt") + public void testBoxing5() { + runTest("compiler/testData/codegen/box/boxing/boxing5.kt"); + } + + @Test + @TestMetadata("boxing6.kt") + public void testBoxing6() { + runTest("compiler/testData/codegen/box/boxing/boxing6.kt"); + } + + @Test + @TestMetadata("boxing7.kt") + public void testBoxing7() { + runTest("compiler/testData/codegen/box/boxing/boxing7.kt"); + } + + @Test + @TestMetadata("boxing8.kt") + public void testBoxing8() { + runTest("compiler/testData/codegen/box/boxing/boxing8.kt"); + } + + @Test + @TestMetadata("boxing9.kt") + public void testBoxing9() { + runTest("compiler/testData/codegen/box/boxing/boxing9.kt"); + } + + @Test + @TestMetadata("kt53100_casts.kt") + public void testKt53100_casts() { + runTest("compiler/testData/codegen/box/boxing/kt53100_casts.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/boxingOptimization") @TestDataPath("$PROJECT_ROOT") @@ -2264,6 +2760,88 @@ public class IrBlackBoxCodegenWithIrInlinerTestGenerated extends AbstractIrBlack } } + @Nested + @TestMetadata("compiler/testData/codegen/box/branching") + @TestDataPath("$PROJECT_ROOT") + public class Branching { + @Test + @TestMetadata("advanced_when2.kt") + public void testAdvanced_when2() { + runTest("compiler/testData/codegen/box/branching/advanced_when2.kt"); + } + + @Test + @TestMetadata("advanced_when5.kt") + public void testAdvanced_when5() { + runTest("compiler/testData/codegen/box/branching/advanced_when5.kt"); + } + + @Test + public void testAllFilesPresentInBranching() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/branching"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("if_else.kt") + public void testIf_else() { + runTest("compiler/testData/codegen/box/branching/if_else.kt"); + } + + @Test + @TestMetadata("when2.kt") + public void testWhen2() { + runTest("compiler/testData/codegen/box/branching/when2.kt"); + } + + @Test + @TestMetadata("when4.kt") + public void testWhen4() { + runTest("compiler/testData/codegen/box/branching/when4.kt"); + } + + @Test + @TestMetadata("when5.kt") + public void testWhen5() { + runTest("compiler/testData/codegen/box/branching/when5.kt"); + } + + @Test + @TestMetadata("when6.kt") + public void testWhen6() { + runTest("compiler/testData/codegen/box/branching/when6.kt"); + } + + @Test + @TestMetadata("when7.kt") + public void testWhen7() { + runTest("compiler/testData/codegen/box/branching/when7.kt"); + } + + @Test + @TestMetadata("when8.kt") + public void testWhen8() { + runTest("compiler/testData/codegen/box/branching/when8.kt"); + } + + @Test + @TestMetadata("when9.kt") + public void testWhen9() { + runTest("compiler/testData/codegen/box/branching/when9.kt"); + } + + @Test + @TestMetadata("when_through.kt") + public void testWhen_through() { + runTest("compiler/testData/codegen/box/branching/when_through.kt"); + } + + @Test + @TestMetadata("when_with_try1.kt") + public void testWhen_with_try1() { + runTest("compiler/testData/codegen/box/branching/when_with_try1.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/bridges") @TestDataPath("$PROJECT_ROOT") @@ -2525,6 +3103,18 @@ public class IrBlackBoxCodegenWithIrInlinerTestGenerated extends AbstractIrBlack runTest("compiler/testData/codegen/box/bridges/methodWithDefaultParameter.kt"); } + @Test + @TestMetadata("multipleModules1.kt") + public void testMultipleModules1() { + runTest("compiler/testData/codegen/box/bridges/multipleModules1.kt"); + } + + @Test + @TestMetadata("multipleModules2.kt") + public void testMultipleModules2() { + runTest("compiler/testData/codegen/box/bridges/multipleModules2.kt"); + } + @Test @TestMetadata("nestedClassTypeParameters.kt") public void testNestedClassTypeParameters() { @@ -2591,6 +3181,12 @@ public class IrBlackBoxCodegenWithIrInlinerTestGenerated extends AbstractIrBlack runTest("compiler/testData/codegen/box/bridges/propertySetter.kt"); } + @Test + @TestMetadata("returnTypeSignature.kt") + public void testReturnTypeSignature() { + runTest("compiler/testData/codegen/box/bridges/returnTypeSignature.kt"); + } + @Test @TestMetadata("simple.kt") public void testSimple() { @@ -2633,6 +3229,18 @@ public class IrBlackBoxCodegenWithIrInlinerTestGenerated extends AbstractIrBlack runTest("compiler/testData/codegen/box/bridges/simpleUpperBound.kt"); } + @Test + @TestMetadata("special.kt") + public void testSpecial() { + runTest("compiler/testData/codegen/box/bridges/special.kt"); + } + + @Test + @TestMetadata("specialGeneric.kt") + public void testSpecialGeneric() { + runTest("compiler/testData/codegen/box/bridges/specialGeneric.kt"); + } + @Test @TestMetadata("strListContains.kt") public void testStrListContains() { @@ -2645,6 +3253,120 @@ public class IrBlackBoxCodegenWithIrInlinerTestGenerated extends AbstractIrBlack runTest("compiler/testData/codegen/box/bridges/strListRemove.kt"); } + @Test + @TestMetadata("test0.kt") + public void testTest0() { + runTest("compiler/testData/codegen/box/bridges/test0.kt"); + } + + @Test + @TestMetadata("test1.kt") + public void testTest1() { + runTest("compiler/testData/codegen/box/bridges/test1.kt"); + } + + @Test + @TestMetadata("test10.kt") + public void testTest10() { + runTest("compiler/testData/codegen/box/bridges/test10.kt"); + } + + @Test + @TestMetadata("test11.kt") + public void testTest11() { + runTest("compiler/testData/codegen/box/bridges/test11.kt"); + } + + @Test + @TestMetadata("test12.kt") + public void testTest12() { + runTest("compiler/testData/codegen/box/bridges/test12.kt"); + } + + @Test + @TestMetadata("test13.kt") + public void testTest13() { + runTest("compiler/testData/codegen/box/bridges/test13.kt"); + } + + @Test + @TestMetadata("test14.kt") + public void testTest14() { + runTest("compiler/testData/codegen/box/bridges/test14.kt"); + } + + @Test + @TestMetadata("test15.kt") + public void testTest15() { + runTest("compiler/testData/codegen/box/bridges/test15.kt"); + } + + @Test + @TestMetadata("test16.kt") + public void testTest16() { + runTest("compiler/testData/codegen/box/bridges/test16.kt"); + } + + @Test + @TestMetadata("test17.kt") + public void testTest17() { + runTest("compiler/testData/codegen/box/bridges/test17.kt"); + } + + @Test + @TestMetadata("test18.kt") + public void testTest18() { + runTest("compiler/testData/codegen/box/bridges/test18.kt"); + } + + @Test + @TestMetadata("test2.kt") + public void testTest2() { + runTest("compiler/testData/codegen/box/bridges/test2.kt"); + } + + @Test + @TestMetadata("test3.kt") + public void testTest3() { + runTest("compiler/testData/codegen/box/bridges/test3.kt"); + } + + @Test + @TestMetadata("test4.kt") + public void testTest4() { + runTest("compiler/testData/codegen/box/bridges/test4.kt"); + } + + @Test + @TestMetadata("test5.kt") + public void testTest5() { + runTest("compiler/testData/codegen/box/bridges/test5.kt"); + } + + @Test + @TestMetadata("test6.kt") + public void testTest6() { + runTest("compiler/testData/codegen/box/bridges/test6.kt"); + } + + @Test + @TestMetadata("test7.kt") + public void testTest7() { + runTest("compiler/testData/codegen/box/bridges/test7.kt"); + } + + @Test + @TestMetadata("test8.kt") + public void testTest8() { + runTest("compiler/testData/codegen/box/bridges/test8.kt"); + } + + @Test + @TestMetadata("test9.kt") + public void testTest9() { + runTest("compiler/testData/codegen/box/bridges/test9.kt"); + } + @Test @TestMetadata("traitImplInheritsTraitImpl.kt") public void testTraitImplInheritsTraitImpl() { @@ -6324,6 +7046,46 @@ public class IrBlackBoxCodegenWithIrInlinerTestGenerated extends AbstractIrBlack } } + @Nested + @TestMetadata("compiler/testData/codegen/box/classDelegation") + @TestDataPath("$PROJECT_ROOT") + public class ClassDelegation { + @Test + public void testAllFilesPresentInClassDelegation() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/classDelegation"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("generic.kt") + public void testGeneric() { + runTest("compiler/testData/codegen/box/classDelegation/generic.kt"); + } + + @Test + @TestMetadata("method.kt") + public void testMethod() { + runTest("compiler/testData/codegen/box/classDelegation/method.kt"); + } + + @Test + @TestMetadata("multipleModules.kt") + public void testMultipleModules() { + runTest("compiler/testData/codegen/box/classDelegation/multipleModules.kt"); + } + + @Test + @TestMetadata("property.kt") + public void testProperty() { + runTest("compiler/testData/codegen/box/classDelegation/property.kt"); + } + + @Test + @TestMetadata("withBridge.kt") + public void testWithBridge() { + runTest("compiler/testData/codegen/box/classDelegation/withBridge.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/classLiteral") @TestDataPath("$PROJECT_ROOT") @@ -9551,6 +10313,12 @@ public class IrBlackBoxCodegenWithIrInlinerTestGenerated extends AbstractIrBlack runTest("compiler/testData/codegen/box/contracts/constructorArgument.kt"); } + @Test + @TestMetadata("contractForCast.kt") + public void testContractForCast() { + runTest("compiler/testData/codegen/box/contracts/contractForCast.kt"); + } + @Test @TestMetadata("destructuredVariable.kt") public void testDestructuredVariable() { @@ -9593,6 +10361,12 @@ public class IrBlackBoxCodegenWithIrInlinerTestGenerated extends AbstractIrBlack runTest("compiler/testData/codegen/box/contracts/functionParameter.kt"); } + @Test + @TestMetadata("isNullString.kt") + public void testIsNullString() { + runTest("compiler/testData/codegen/box/contracts/isNullString.kt"); + } + @Test @TestMetadata("kt39374.kt") public void testKt39374() { @@ -9635,6 +10409,24 @@ public class IrBlackBoxCodegenWithIrInlinerTestGenerated extends AbstractIrBlack runTest("compiler/testData/codegen/box/contracts/nestedLambdaInNonInlineCallExactlyOnce.kt"); } + @Test + @TestMetadata("nonNullSmartCast.kt") + public void testNonNullSmartCast() { + runTest("compiler/testData/codegen/box/contracts/nonNullSmartCast.kt"); + } + + @Test + @TestMetadata("require.kt") + public void testRequire() { + runTest("compiler/testData/codegen/box/contracts/require.kt"); + } + + @Test + @TestMetadata("runLambdaForVal.kt") + public void testRunLambdaForVal() { + runTest("compiler/testData/codegen/box/contracts/runLambdaForVal.kt"); + } + @Test @TestMetadata("valInWhen.kt") public void testValInWhen() { @@ -11082,6 +11874,124 @@ public class IrBlackBoxCodegenWithIrInlinerTestGenerated extends AbstractIrBlack } } + @Nested + @TestMetadata("compiler/testData/codegen/box/controlflow") + @TestDataPath("$PROJECT_ROOT") + public class Controlflow { + @Test + public void testAllFilesPresentInControlflow() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/controlflow"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("break.kt") + public void testBreak() { + runTest("compiler/testData/codegen/box/controlflow/break.kt"); + } + + @Test + @TestMetadata("break1.kt") + public void testBreak1() { + runTest("compiler/testData/codegen/box/controlflow/break1.kt"); + } + + @Test + @TestMetadata("for_loops.kt") + public void testFor_loops() { + runTest("compiler/testData/codegen/box/controlflow/for_loops.kt"); + } + + @Test + @TestMetadata("for_loops_array_break_continue.kt") + public void testFor_loops_array_break_continue() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_array_break_continue.kt"); + } + + @Test + @TestMetadata("for_loops_array_indices.kt") + public void testFor_loops_array_indices() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_array_indices.kt"); + } + + @Test + @TestMetadata("for_loops_array_mutation.kt") + public void testFor_loops_array_mutation() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_array_mutation.kt"); + } + + @Test + @TestMetadata("for_loops_array_nested.kt") + public void testFor_loops_array_nested() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_array_nested.kt"); + } + + @Test + @TestMetadata("for_loops_array_nullable.kt") + public void testFor_loops_array_nullable() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_array_nullable.kt"); + } + + @Test + @TestMetadata("for_loops_array_side_effects.kt") + public void testFor_loops_array_side_effects() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_array_side_effects.kt"); + } + + @Test + @TestMetadata("for_loops_call_order.kt") + public void testFor_loops_call_order() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_call_order.kt"); + } + + @Test + @TestMetadata("for_loops_coroutines.kt") + public void testFor_loops_coroutines() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_coroutines.kt"); + } + + @Test + @TestMetadata("for_loops_empty_range.kt") + public void testFor_loops_empty_range() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_empty_range.kt"); + } + + @Test + @TestMetadata("for_loops_errors.kt") + public void testFor_loops_errors() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_errors.kt"); + } + + @Test + @TestMetadata("for_loops_let_with_nullable.kt") + public void testFor_loops_let_with_nullable() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_let_with_nullable.kt"); + } + + @Test + @TestMetadata("for_loops_nested.kt") + public void testFor_loops_nested() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_nested.kt"); + } + + @Test + @TestMetadata("for_loops_overflow.kt") + public void testFor_loops_overflow() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_overflow.kt"); + } + + @Test + @TestMetadata("for_loops_types.kt") + public void testFor_loops_types() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_types.kt"); + } + + @Test + @TestMetadata("unreachable1.kt") + public void testUnreachable1() { + runTest("compiler/testData/codegen/box/controlflow/unreachable1.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/coroutines") @TestDataPath("$PROJECT_ROOT") @@ -11103,6 +12013,12 @@ public class IrBlackBoxCodegenWithIrInlinerTestGenerated extends AbstractIrBlack KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test + @TestMetadata("anonymousObject.kt") + public void testAnonymousObject() { + runTest("compiler/testData/codegen/box/coroutines/anonymousObject.kt"); + } + @Test @TestMetadata("async.kt") public void testAsync() { @@ -11199,12 +12115,144 @@ public class IrBlackBoxCodegenWithIrInlinerTestGenerated extends AbstractIrBlack runTest("compiler/testData/codegen/box/coroutines/coercionToUnit.kt"); } + @Test + @TestMetadata("controlFlow_chain.kt") + public void testControlFlow_chain() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_chain.kt"); + } + + @Test + @TestMetadata("controlFlow_finally1.kt") + public void testControlFlow_finally1() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally1.kt"); + } + + @Test + @TestMetadata("controlFlow_finally2.kt") + public void testControlFlow_finally2() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally2.kt"); + } + + @Test + @TestMetadata("controlFlow_finally3.kt") + public void testControlFlow_finally3() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally3.kt"); + } + + @Test + @TestMetadata("controlFlow_finally4.kt") + public void testControlFlow_finally4() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally4.kt"); + } + + @Test + @TestMetadata("controlFlow_finally5.kt") + public void testControlFlow_finally5() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally5.kt"); + } + + @Test + @TestMetadata("controlFlow_finally6.kt") + public void testControlFlow_finally6() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally6.kt"); + } + + @Test + @TestMetadata("controlFlow_finally7.kt") + public void testControlFlow_finally7() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally7.kt"); + } + + @Test + @TestMetadata("controlFlow_if1.kt") + public void testControlFlow_if1() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_if1.kt"); + } + + @Test + @TestMetadata("controlFlow_if2.kt") + public void testControlFlow_if2() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_if2.kt"); + } + + @Test + @TestMetadata("controlFlow_inline1.kt") + public void testControlFlow_inline1() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_inline1.kt"); + } + + @Test + @TestMetadata("controlFlow_inline2.kt") + public void testControlFlow_inline2() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_inline2.kt"); + } + + @Test + @TestMetadata("controlFlow_inline3.kt") + public void testControlFlow_inline3() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_inline3.kt"); + } + + @Test + @TestMetadata("controlFlow_tryCatch1.kt") + public void testControlFlow_tryCatch1() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_tryCatch1.kt"); + } + + @Test + @TestMetadata("controlFlow_tryCatch2.kt") + public void testControlFlow_tryCatch2() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_tryCatch2.kt"); + } + + @Test + @TestMetadata("controlFlow_tryCatch3.kt") + public void testControlFlow_tryCatch3() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_tryCatch3.kt"); + } + + @Test + @TestMetadata("controlFlow_tryCatch4.kt") + public void testControlFlow_tryCatch4() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_tryCatch4.kt"); + } + + @Test + @TestMetadata("controlFlow_tryCatch5.kt") + public void testControlFlow_tryCatch5() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_tryCatch5.kt"); + } + + @Test + @TestMetadata("controlFlow_while1.kt") + public void testControlFlow_while1() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_while1.kt"); + } + + @Test + @TestMetadata("controlFlow_while2.kt") + public void testControlFlow_while2() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_while2.kt"); + } + @Test @TestMetadata("controllerAccessFromInnerLambda.kt") public void testControllerAccessFromInnerLambda() { runTest("compiler/testData/codegen/box/coroutines/controllerAccessFromInnerLambda.kt"); } + @Test + @TestMetadata("coroutineContext1.kt") + public void testCoroutineContext1() { + runTest("compiler/testData/codegen/box/coroutines/coroutineContext1.kt"); + } + + @Test + @TestMetadata("coroutineContext2.kt") + public void testCoroutineContext2() { + runTest("compiler/testData/codegen/box/coroutines/coroutineContext2.kt"); + } + @Test @TestMetadata("coroutineContextInInlinedLambda.kt") public void testCoroutineContextInInlinedLambda() { @@ -11217,6 +12265,12 @@ public class IrBlackBoxCodegenWithIrInlinerTestGenerated extends AbstractIrBlack runTest("compiler/testData/codegen/box/coroutines/coroutineToString.kt"); } + @Test + @TestMetadata("correctOrder1.kt") + public void testCorrectOrder1() { + runTest("compiler/testData/codegen/box/coroutines/correctOrder1.kt"); + } + @Test @TestMetadata("createCoroutineSafe.kt") public void testCreateCoroutineSafe() { @@ -11253,6 +12307,18 @@ public class IrBlackBoxCodegenWithIrInlinerTestGenerated extends AbstractIrBlack runTest("compiler/testData/codegen/box/coroutines/defaultParametersInSuspendWithJvmOverloads.kt"); } + @Test + @TestMetadata("degenerate1.kt") + public void testDegenerate1() { + runTest("compiler/testData/codegen/box/coroutines/degenerate1.kt"); + } + + @Test + @TestMetadata("degenerate2.kt") + public void testDegenerate2() { + runTest("compiler/testData/codegen/box/coroutines/degenerate2.kt"); + } + @Test @TestMetadata("delegatedSuspendMember.kt") public void testDelegatedSuspendMember() { @@ -11301,6 +12367,30 @@ public class IrBlackBoxCodegenWithIrInlinerTestGenerated extends AbstractIrBlack runTest("compiler/testData/codegen/box/coroutines/falseUnitCoercion.kt"); } + @Test + @TestMetadata("functionReference_eqeq_name.kt") + public void testFunctionReference_eqeq_name() { + runTest("compiler/testData/codegen/box/coroutines/functionReference_eqeq_name.kt"); + } + + @Test + @TestMetadata("functionReference_invokeAsFunction.kt") + public void testFunctionReference_invokeAsFunction() { + runTest("compiler/testData/codegen/box/coroutines/functionReference_invokeAsFunction.kt"); + } + + @Test + @TestMetadata("functionReference_lambdaAsSuspendLambda.kt") + public void testFunctionReference_lambdaAsSuspendLambda() { + runTest("compiler/testData/codegen/box/coroutines/functionReference_lambdaAsSuspendLambda.kt"); + } + + @Test + @TestMetadata("functionReference_simple.kt") + public void testFunctionReference_simple() { + runTest("compiler/testData/codegen/box/coroutines/functionReference_simple.kt"); + } + @Test @TestMetadata("generate.kt") public void testGenerate() { @@ -11511,6 +12601,12 @@ public class IrBlackBoxCodegenWithIrInlinerTestGenerated extends AbstractIrBlack runTest("compiler/testData/codegen/box/coroutines/kt38099.kt"); } + @Test + @TestMetadata("kt41394.kt") + public void testKt41394() { + runTest("compiler/testData/codegen/box/coroutines/kt41394.kt"); + } + @Test @TestMetadata("kt42028.kt") public void testKt42028() { @@ -11757,12 +12853,30 @@ public class IrBlackBoxCodegenWithIrInlinerTestGenerated extends AbstractIrBlack runTest("compiler/testData/codegen/box/coroutines/returnByLabel.kt"); } + @Test + @TestMetadata("returnsNothing1.kt") + public void testReturnsNothing1() { + runTest("compiler/testData/codegen/box/coroutines/returnsNothing1.kt"); + } + + @Test + @TestMetadata("returnsUnit1.kt") + public void testReturnsUnit1() { + runTest("compiler/testData/codegen/box/coroutines/returnsUnit1.kt"); + } + @Test @TestMetadata("simple.kt") public void testSimple() { runTest("compiler/testData/codegen/box/coroutines/simple.kt"); } + @Test + @TestMetadata("simple2.kt") + public void testSimple2() { + runTest("compiler/testData/codegen/box/coroutines/simple2.kt"); + } + @Test @TestMetadata("simpleException.kt") public void testSimpleException() { @@ -11811,6 +12925,12 @@ public class IrBlackBoxCodegenWithIrInlinerTestGenerated extends AbstractIrBlack runTest("compiler/testData/codegen/box/coroutines/suspendCallsInArguments.kt"); } + @Test + @TestMetadata("suspendConversion.kt") + public void testSuspendConversion() { + runTest("compiler/testData/codegen/box/coroutines/suspendConversion.kt"); + } + @Test @TestMetadata("suspendCoroutineFromStateMachine.kt") public void testSuspendCoroutineFromStateMachine() { @@ -12003,6 +13123,12 @@ public class IrBlackBoxCodegenWithIrInlinerTestGenerated extends AbstractIrBlack runTest("compiler/testData/codegen/box/coroutines/varargCallFromSuspend.kt"); } + @Test + @TestMetadata("withReceiver.kt") + public void testWithReceiver() { + runTest("compiler/testData/codegen/box/coroutines/withReceiver.kt"); + } + @Nested @TestMetadata("compiler/testData/codegen/box/coroutines/bridges") @TestDataPath("$PROJECT_ROOT") @@ -14686,6 +15812,34 @@ public class IrBlackBoxCodegenWithIrInlinerTestGenerated extends AbstractIrBlack } } + @Nested + @TestMetadata("compiler/testData/codegen/box/cycles") + @TestDataPath("$PROJECT_ROOT") + public class Cycles { + @Test + public void testAllFilesPresentInCycles() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cycles"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("cycle.kt") + public void testCycle() { + runTest("compiler/testData/codegen/box/cycles/cycle.kt"); + } + + @Test + @TestMetadata("cycle_do.kt") + public void testCycle_do() { + runTest("compiler/testData/codegen/box/cycles/cycle_do.kt"); + } + + @Test + @TestMetadata("cycle_for.kt") + public void testCycle_for() { + runTest("compiler/testData/codegen/box/cycles/cycle_for.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/dataClasses") @TestDataPath("$PROJECT_ROOT") @@ -15140,6 +16294,28 @@ public class IrBlackBoxCodegenWithIrInlinerTestGenerated extends AbstractIrBlack } } + @Nested + @TestMetadata("compiler/testData/codegen/box/dataflow") + @TestDataPath("$PROJECT_ROOT") + public class Dataflow { + @Test + public void testAllFilesPresentInDataflow() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/dataflow"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("scope1.kt") + public void testScope1() { + runTest("compiler/testData/codegen/box/dataflow/scope1.kt"); + } + + @Test + @TestMetadata("uninitialized_val.kt") + public void testUninitialized_val() { + runTest("compiler/testData/codegen/box/dataflow/uninitialized_val.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/deadCodeElimination") @TestDataPath("$PROJECT_ROOT") @@ -15801,6 +16977,12 @@ public class IrBlackBoxCodegenWithIrInlinerTestGenerated extends AbstractIrBlack runTest("compiler/testData/codegen/box/delegatedProperty/castSetParameter.kt"); } + @Test + @TestMetadata("correctFieldsOrder.kt") + public void testCorrectFieldsOrder() { + runTest("compiler/testData/codegen/box/delegatedProperty/correctFieldsOrder.kt"); + } + @Test @TestMetadata("delegateAsInnerClass.kt") public void testDelegateAsInnerClass() { @@ -15861,6 +17043,12 @@ public class IrBlackBoxCodegenWithIrInlinerTestGenerated extends AbstractIrBlack runTest("compiler/testData/codegen/box/delegatedProperty/delegateWithPrivateSet.kt"); } + @Test + @TestMetadata("delegatedOverride.kt") + public void testDelegatedOverride() { + runTest("compiler/testData/codegen/box/delegatedProperty/delegatedOverride.kt"); + } + @Test @TestMetadata("delegatedPropertyInEnum.kt") public void testDelegatedPropertyInEnum() { @@ -16005,12 +17193,42 @@ public class IrBlackBoxCodegenWithIrInlinerTestGenerated extends AbstractIrBlack runTest("compiler/testData/codegen/box/delegatedProperty/kt9712.kt"); } + @Test + @TestMetadata("lazy.kt") + public void testLazy() { + runTest("compiler/testData/codegen/box/delegatedProperty/lazy.kt"); + } + + @Test + @TestMetadata("local.kt") + public void testLocal() { + runTest("compiler/testData/codegen/box/delegatedProperty/local.kt"); + } + + @Test + @TestMetadata("map.kt") + public void testMap() { + runTest("compiler/testData/codegen/box/delegatedProperty/map.kt"); + } + @Test @TestMetadata("noTypeVariablesLeft.kt") public void testNoTypeVariablesLeft() { runTest("compiler/testData/codegen/box/delegatedProperty/noTypeVariablesLeft.kt"); } + @Test + @TestMetadata("observable.kt") + public void testObservable() { + runTest("compiler/testData/codegen/box/delegatedProperty/observable.kt"); + } + + @Test + @TestMetadata("packageLevel.kt") + public void testPackageLevel() { + runTest("compiler/testData/codegen/box/delegatedProperty/packageLevel.kt"); + } + @Test @TestMetadata("privateInSubClass.kt") public void testPrivateInSubClass() { @@ -16071,6 +17289,18 @@ public class IrBlackBoxCodegenWithIrInlinerTestGenerated extends AbstractIrBlack runTest("compiler/testData/codegen/box/delegatedProperty/setAsExtensionFunInClass.kt"); } + @Test + @TestMetadata("simpleVal.kt") + public void testSimpleVal() { + runTest("compiler/testData/codegen/box/delegatedProperty/simpleVal.kt"); + } + + @Test + @TestMetadata("simpleVar.kt") + public void testSimpleVar() { + runTest("compiler/testData/codegen/box/delegatedProperty/simpleVar.kt"); + } + @Test @TestMetadata("stackOverflowOnCallFromGetValue.kt") public void testStackOverflowOnCallFromGetValue() { @@ -17040,6 +18270,40 @@ public class IrBlackBoxCodegenWithIrInlinerTestGenerated extends AbstractIrBlack } } + @Nested + @TestMetadata("compiler/testData/codegen/box/devirtualization") + @TestDataPath("$PROJECT_ROOT") + public class Devirtualization { + @Test + public void testAllFilesPresentInDevirtualization() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/devirtualization"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("anonymousObject.kt") + public void testAnonymousObject() { + runTest("compiler/testData/codegen/box/devirtualization/anonymousObject.kt"); + } + + @Test + @TestMetadata("getter_looking_as_box_function.kt") + public void testGetter_looking_as_box_function() { + runTest("compiler/testData/codegen/box/devirtualization/getter_looking_as_box_function.kt"); + } + + @Test + @TestMetadata("inline_getter.kt") + public void testInline_getter() { + runTest("compiler/testData/codegen/box/devirtualization/inline_getter.kt"); + } + + @Test + @TestMetadata("lateinitInterface.kt") + public void testLateinitInterface() { + runTest("compiler/testData/codegen/box/devirtualization/lateinitInterface.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/diagnostics") @TestDataPath("$PROJECT_ROOT") @@ -17701,6 +18965,12 @@ public class IrBlackBoxCodegenWithIrInlinerTestGenerated extends AbstractIrBlack runTest("compiler/testData/codegen/box/enum/companionAccessingEnumValue.kt"); } + @Test + @TestMetadata("companionObject.kt") + public void testCompanionObject() { + runTest("compiler/testData/codegen/box/enum/companionObject.kt"); + } + @Test @TestMetadata("companionObjectInEnum.kt") public void testCompanionObjectInEnum() { @@ -17887,6 +19157,12 @@ public class IrBlackBoxCodegenWithIrInlinerTestGenerated extends AbstractIrBlack runTest("compiler/testData/codegen/box/enum/enumWithLambdaParameter.kt"); } + @Test + @TestMetadata("enum_equals.kt") + public void testEnum_equals() { + runTest("compiler/testData/codegen/box/enum/enum_equals.kt"); + } + @Test @TestMetadata("getEnumEntityByOrdinal.kt") public void testGetEnumEntityByOrdinal() { @@ -17959,6 +19235,18 @@ public class IrBlackBoxCodegenWithIrInlinerTestGenerated extends AbstractIrBlack runTest("compiler/testData/codegen/box/enum/innerWithExistingClassObject.kt"); } + @Test + @TestMetadata("interfaceCallNoEntryClass.kt") + public void testInterfaceCallNoEntryClass() { + runTest("compiler/testData/codegen/box/enum/interfaceCallNoEntryClass.kt"); + } + + @Test + @TestMetadata("interfaceCallWithEntryClass.kt") + public void testInterfaceCallWithEntryClass() { + runTest("compiler/testData/codegen/box/enum/interfaceCallWithEntryClass.kt"); + } + @Test @TestMetadata("javaClassWithNestedEnum.kt") public void testJavaClassWithNestedEnum() { @@ -18049,6 +19337,12 @@ public class IrBlackBoxCodegenWithIrInlinerTestGenerated extends AbstractIrBlack runTest("compiler/testData/codegen/box/enum/kt2350.kt"); } + @Test + @TestMetadata("kt38540.kt") + public void testKt38540() { + runTest("compiler/testData/codegen/box/enum/kt38540.kt"); + } + @Test @TestMetadata("kt38996.kt") public void testKt38996() { @@ -18145,6 +19439,18 @@ public class IrBlackBoxCodegenWithIrInlinerTestGenerated extends AbstractIrBlack runTest("compiler/testData/codegen/box/enum/kt9711_2.kt"); } + @Test + @TestMetadata("lambdaInDefault.kt") + public void testLambdaInDefault() { + runTest("compiler/testData/codegen/box/enum/lambdaInDefault.kt"); + } + + @Test + @TestMetadata("loop.kt") + public void testLoop() { + runTest("compiler/testData/codegen/box/enum/loop.kt"); + } + @Test @TestMetadata("manyDefaultParameters.kt") public void testManyDefaultParameters() { @@ -18157,6 +19463,12 @@ public class IrBlackBoxCodegenWithIrInlinerTestGenerated extends AbstractIrBlack runTest("compiler/testData/codegen/box/enum/modifierFlags.kt"); } + @Test + @TestMetadata("multipleModules.kt") + public void testMultipleModules() { + runTest("compiler/testData/codegen/box/enum/multipleModules.kt"); + } + @Test @TestMetadata("nameClashWithCompanion.kt") public void testNameClashWithCompanion() { @@ -18169,12 +19481,24 @@ public class IrBlackBoxCodegenWithIrInlinerTestGenerated extends AbstractIrBlack runTest("compiler/testData/codegen/box/enum/nameConflict.kt"); } + @Test + @TestMetadata("nested.kt") + public void testNested() { + runTest("compiler/testData/codegen/box/enum/nested.kt"); + } + @Test @TestMetadata("noClassForSimpleEnum.kt") public void testNoClassForSimpleEnum() { runTest("compiler/testData/codegen/box/enum/noClassForSimpleEnum.kt"); } + @Test + @TestMetadata("openMethodNoOverrides.kt") + public void testOpenMethodNoOverrides() { + runTest("compiler/testData/codegen/box/enum/openMethodNoOverrides.kt"); + } + @Test @TestMetadata("ordinal.kt") public void testOrdinal() { @@ -18205,6 +19529,12 @@ public class IrBlackBoxCodegenWithIrInlinerTestGenerated extends AbstractIrBlack runTest("compiler/testData/codegen/box/enum/refToThis.kt"); } + @Test + @TestMetadata("reorderedArguments.kt") + public void testReorderedArguments() { + runTest("compiler/testData/codegen/box/enum/reorderedArguments.kt"); + } + @Test @TestMetadata("simple.kt") public void testSimple() { @@ -18259,18 +19589,66 @@ public class IrBlackBoxCodegenWithIrInlinerTestGenerated extends AbstractIrBlack runTest("compiler/testData/codegen/box/enum/superCallInEnumLiteral.kt"); } + @Test + @TestMetadata("switchLowering.kt") + public void testSwitchLowering() { + runTest("compiler/testData/codegen/box/enum/switchLowering.kt"); + } + + @Test + @TestMetadata("test0.kt") + public void testTest0() { + runTest("compiler/testData/codegen/box/enum/test0.kt"); + } + + @Test + @TestMetadata("test1.kt") + public void testTest1() { + runTest("compiler/testData/codegen/box/enum/test1.kt"); + } + @Test @TestMetadata("toString.kt") public void testToString() { runTest("compiler/testData/codegen/box/enum/toString.kt"); } + @Test + @TestMetadata("vCallNoEntryClass.kt") + public void testVCallNoEntryClass() { + runTest("compiler/testData/codegen/box/enum/vCallNoEntryClass.kt"); + } + + @Test + @TestMetadata("vCallWithEntryClass.kt") + public void testVCallWithEntryClass() { + runTest("compiler/testData/codegen/box/enum/vCallWithEntryClass.kt"); + } + + @Test + @TestMetadata("valueOf2.kt") + public void testValueOf2() { + runTest("compiler/testData/codegen/box/enum/valueOf2.kt"); + } + @Test @TestMetadata("valueof.kt") public void testValueof() { runTest("compiler/testData/codegen/box/enum/valueof.kt"); } + @Test + @TestMetadata("values.kt") + public void testValues() { + runTest("compiler/testData/codegen/box/enum/values.kt"); + } + + @Test + @TestMetadata("varargParam.kt") + public void testVarargParam() { + runTest("compiler/testData/codegen/box/enum/varargParam.kt"); + } + @Test @TestMetadata("whenInObject.kt") public void testWhenInObject() { @@ -18346,6 +19724,112 @@ public class IrBlackBoxCodegenWithIrInlinerTestGenerated extends AbstractIrBlack } } + @Nested + @TestMetadata("compiler/testData/codegen/box/escapeAnalysis") + @TestDataPath("$PROJECT_ROOT") + public class EscapeAnalysis { + @Test + public void testAllFilesPresentInEscapeAnalysis() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/escapeAnalysis"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("recursion.kt") + public void testRecursion() { + runTest("compiler/testData/codegen/box/escapeAnalysis/recursion.kt"); + } + + @Test + @TestMetadata("stack_array.kt") + public void testStack_array() { + runTest("compiler/testData/codegen/box/escapeAnalysis/stack_array.kt"); + } + + @Test + @TestMetadata("test1.kt") + public void testTest1() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test1.kt"); + } + + @Test + @TestMetadata("test10.kt") + public void testTest10() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test10.kt"); + } + + @Test + @TestMetadata("test11.kt") + public void testTest11() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test11.kt"); + } + + @Test + @TestMetadata("test12.kt") + public void testTest12() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test12.kt"); + } + + @Test + @TestMetadata("test13.kt") + public void testTest13() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test13.kt"); + } + + @Test + @TestMetadata("test2.kt") + public void testTest2() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test2.kt"); + } + + @Test + @TestMetadata("test3.kt") + public void testTest3() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test3.kt"); + } + + @Test + @TestMetadata("test4.kt") + public void testTest4() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test4.kt"); + } + + @Test + @TestMetadata("test5.kt") + public void testTest5() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test5.kt"); + } + + @Test + @TestMetadata("test6.kt") + public void testTest6() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test6.kt"); + } + + @Test + @TestMetadata("test7.kt") + public void testTest7() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test7.kt"); + } + + @Test + @TestMetadata("test8.kt") + public void testTest8() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test8.kt"); + } + + @Test + @TestMetadata("test9.kt") + public void testTest9() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test9.kt"); + } + + @Test + @TestMetadata("zeroOutObjectOnAlloc.kt") + public void testZeroOutObjectOnAlloc() { + runTest("compiler/testData/codegen/box/escapeAnalysis/zeroOutObjectOnAlloc.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/evaluate") @TestDataPath("$PROJECT_ROOT") @@ -18458,6 +19942,58 @@ public class IrBlackBoxCodegenWithIrInlinerTestGenerated extends AbstractIrBlack } } + @Nested + @TestMetadata("compiler/testData/codegen/box/exceptions") + @TestDataPath("$PROJECT_ROOT") + public class Exceptions { + @Test + public void testAllFilesPresentInExceptions() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/exceptions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("catch1.kt") + public void testCatch1() { + runTest("compiler/testData/codegen/box/exceptions/catch1.kt"); + } + + @Test + @TestMetadata("catch2.kt") + public void testCatch2() { + runTest("compiler/testData/codegen/box/exceptions/catch2.kt"); + } + + @Test + @TestMetadata("catch7.kt") + public void testCatch7() { + runTest("compiler/testData/codegen/box/exceptions/catch7.kt"); + } + + @Test + @TestMetadata("extend0.kt") + public void testExtend0() { + runTest("compiler/testData/codegen/box/exceptions/extend0.kt"); + } + + @Test + @TestMetadata("rethrow.kt") + public void testRethrow() { + runTest("compiler/testData/codegen/box/exceptions/rethrow.kt"); + } + + @Test + @TestMetadata("throw0.kt") + public void testThrow0() { + runTest("compiler/testData/codegen/box/exceptions/throw0.kt"); + } + + @Test + @TestMetadata("throw_from_catch.kt") + public void testThrow_from_catch() { + runTest("compiler/testData/codegen/box/exceptions/throw_from_catch.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/exclExcl") @TestDataPath("$PROJECT_ROOT") @@ -20351,6 +21887,12 @@ public class IrBlackBoxCodegenWithIrInlinerTestGenerated extends AbstractIrBlack runTest("compiler/testData/codegen/box/funInterface/funInterfaceWithReceiver.kt"); } + @Test + @TestMetadata("implIsNotFunction.kt") + public void testImplIsNotFunction() { + runTest("compiler/testData/codegen/box/funInterface/implIsNotFunction.kt"); + } + @Test @TestMetadata("inlinedSamWrapper.kt") public void testInlinedSamWrapper() { @@ -20399,6 +21941,18 @@ public class IrBlackBoxCodegenWithIrInlinerTestGenerated extends AbstractIrBlack runTest("compiler/testData/codegen/box/funInterface/kt46908_functionSupertype.kt"); } + @Test + @TestMetadata("kt49384.kt") + public void testKt49384() { + runTest("compiler/testData/codegen/box/funInterface/kt49384.kt"); + } + + @Test + @TestMetadata("kt49384_getSame.kt") + public void testKt49384_getSame() { + runTest("compiler/testData/codegen/box/funInterface/kt49384_getSame.kt"); + } + @Test @TestMetadata("multimodule.kt") public void testMultimodule() { @@ -20417,6 +21971,12 @@ public class IrBlackBoxCodegenWithIrInlinerTestGenerated extends AbstractIrBlack runTest("compiler/testData/codegen/box/funInterface/nonAbstractMethod.kt"); } + @Test + @TestMetadata("nonTrivialProjectionInSuperType.kt") + public void testNonTrivialProjectionInSuperType() { + runTest("compiler/testData/codegen/box/funInterface/nonTrivialProjectionInSuperType.kt"); + } + @Test @TestMetadata("nullableSam.kt") public void testNullableSam() { @@ -20506,6 +22066,232 @@ public class IrBlackBoxCodegenWithIrInlinerTestGenerated extends AbstractIrBlack } } + @Nested + @TestMetadata("compiler/testData/codegen/box/function") + @TestDataPath("$PROJECT_ROOT") + public class Function { + @Test + public void testAllFilesPresentInFunction() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/function"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("arithmetic.kt") + public void testArithmetic() { + runTest("compiler/testData/codegen/box/function/arithmetic.kt"); + } + + @Test + @TestMetadata("boolean.kt") + public void testBoolean() { + runTest("compiler/testData/codegen/box/function/boolean.kt"); + } + + @Test + @TestMetadata("defaults.kt") + public void testDefaults() { + runTest("compiler/testData/codegen/box/function/defaults.kt"); + } + + @Test + @TestMetadata("defaults1.kt") + public void testDefaults1() { + runTest("compiler/testData/codegen/box/function/defaults1.kt"); + } + + @Test + @TestMetadata("defaults10.kt") + public void testDefaults10() { + runTest("compiler/testData/codegen/box/function/defaults10.kt"); + } + + @Test + @TestMetadata("defaults2.kt") + public void testDefaults2() { + runTest("compiler/testData/codegen/box/function/defaults2.kt"); + } + + @Test + @TestMetadata("defaults3.kt") + public void testDefaults3() { + runTest("compiler/testData/codegen/box/function/defaults3.kt"); + } + + @Test + @TestMetadata("defaults4.kt") + public void testDefaults4() { + runTest("compiler/testData/codegen/box/function/defaults4.kt"); + } + + @Test + @TestMetadata("defaults5.kt") + public void testDefaults5() { + runTest("compiler/testData/codegen/box/function/defaults5.kt"); + } + + @Test + @TestMetadata("defaults6.kt") + public void testDefaults6() { + runTest("compiler/testData/codegen/box/function/defaults6.kt"); + } + + @Test + @TestMetadata("defaults7.kt") + public void testDefaults7() { + runTest("compiler/testData/codegen/box/function/defaults7.kt"); + } + + @Test + @TestMetadata("defaults8.kt") + public void testDefaults8() { + runTest("compiler/testData/codegen/box/function/defaults8.kt"); + } + + @Test + @TestMetadata("defaults9.kt") + public void testDefaults9() { + runTest("compiler/testData/codegen/box/function/defaults9.kt"); + } + + @Test + @TestMetadata("defaultsFromFakeOverride.kt") + public void testDefaultsFromFakeOverride() { + runTest("compiler/testData/codegen/box/function/defaultsFromFakeOverride.kt"); + } + + @Test + @TestMetadata("defaultsWithInlineClasses.kt") + public void testDefaultsWithInlineClasses() { + runTest("compiler/testData/codegen/box/function/defaultsWithInlineClasses.kt"); + } + + @Test + @TestMetadata("defaultsWithVarArg1.kt") + public void testDefaultsWithVarArg1() { + runTest("compiler/testData/codegen/box/function/defaultsWithVarArg1.kt"); + } + + @Test + @TestMetadata("defaultsWithVarArg2.kt") + public void testDefaultsWithVarArg2() { + runTest("compiler/testData/codegen/box/function/defaultsWithVarArg2.kt"); + } + + @Test + @TestMetadata("eqeq.kt") + public void testEqeq() { + runTest("compiler/testData/codegen/box/function/eqeq.kt"); + } + + @Test + @TestMetadata("extension.kt") + public void testExtension() { + runTest("compiler/testData/codegen/box/function/extension.kt"); + } + + @Test + @TestMetadata("intrinsic.kt") + public void testIntrinsic() { + runTest("compiler/testData/codegen/box/function/intrinsic.kt"); + } + + @Test + @TestMetadata("localFunction.kt") + public void testLocalFunction() { + runTest("compiler/testData/codegen/box/function/localFunction.kt"); + } + + @Test + @TestMetadata("localFunction2.kt") + public void testLocalFunction2() { + runTest("compiler/testData/codegen/box/function/localFunction2.kt"); + } + + @Test + @TestMetadata("localFunction3.kt") + public void testLocalFunction3() { + runTest("compiler/testData/codegen/box/function/localFunction3.kt"); + } + + @Test + @TestMetadata("minus_eq.kt") + public void testMinus_eq() { + runTest("compiler/testData/codegen/box/function/minus_eq.kt"); + } + + @Test + @TestMetadata("named.kt") + public void testNamed() { + runTest("compiler/testData/codegen/box/function/named.kt"); + } + + @Test + @TestMetadata("nothingNReturningSafeCall.kt") + public void testNothingNReturningSafeCall() { + runTest("compiler/testData/codegen/box/function/nothingNReturningSafeCall.kt"); + } + + @Test + @TestMetadata("plus_eq.kt") + public void testPlus_eq() { + runTest("compiler/testData/codegen/box/function/plus_eq.kt"); + } + + @Test + @TestMetadata("referenceBigArity.kt") + public void testReferenceBigArity() { + runTest("compiler/testData/codegen/box/function/referenceBigArity.kt"); + } + + @Test + @TestMetadata("sum.kt") + public void testSum() { + runTest("compiler/testData/codegen/box/function/sum.kt"); + } + + @Test + @TestMetadata("sum_3const.kt") + public void testSum_3const() { + runTest("compiler/testData/codegen/box/function/sum_3const.kt"); + } + + @Test + @TestMetadata("sum_foo_bar.kt") + public void testSum_foo_bar() { + runTest("compiler/testData/codegen/box/function/sum_foo_bar.kt"); + } + + @Test + @TestMetadata("sum_func.kt") + public void testSum_func() { + runTest("compiler/testData/codegen/box/function/sum_func.kt"); + } + + @Test + @TestMetadata("sum_imm.kt") + public void testSum_imm() { + runTest("compiler/testData/codegen/box/function/sum_imm.kt"); + } + + @Test + @TestMetadata("sum_mixed.kt") + public void testSum_mixed() { + runTest("compiler/testData/codegen/box/function/sum_mixed.kt"); + } + + @Test + @TestMetadata("sum_silly.kt") + public void testSum_silly() { + runTest("compiler/testData/codegen/box/function/sum_silly.kt"); + } + + @Test + @TestMetadata("unreachableStatementAfterReturn.kt") + public void testUnreachableStatementAfterReturn() { + runTest("compiler/testData/codegen/box/function/unreachableStatementAfterReturn.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/functions") @TestDataPath("$PROJECT_ROOT") @@ -22408,6 +24194,474 @@ public class IrBlackBoxCodegenWithIrInlinerTestGenerated extends AbstractIrBlack } } + @Nested + @TestMetadata("compiler/testData/codegen/box/initializers") + @TestDataPath("$PROJECT_ROOT") + public class Initializers { + @Test + public void testAllFilesPresentInInitializers() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/initializers"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("correctOrder1.kt") + public void testCorrectOrder1() { + runTest("compiler/testData/codegen/box/initializers/correctOrder1.kt"); + } + + @Test + @TestMetadata("correctOrder2.kt") + public void testCorrectOrder2() { + runTest("compiler/testData/codegen/box/initializers/correctOrder2.kt"); + } + + @Test + @TestMetadata("initializers0.kt") + public void testInitializers0() { + runTest("compiler/testData/codegen/box/initializers/initializers0.kt"); + } + + @Test + @TestMetadata("initializers1.kt") + public void testInitializers1() { + runTest("compiler/testData/codegen/box/initializers/initializers1.kt"); + } + + @Test + @TestMetadata("initializers2.kt") + public void testInitializers2() { + runTest("compiler/testData/codegen/box/initializers/initializers2.kt"); + } + + @Test + @TestMetadata("initializers3.kt") + public void testInitializers3() { + runTest("compiler/testData/codegen/box/initializers/initializers3.kt"); + } + + @Test + @TestMetadata("initializers4.kt") + public void testInitializers4() { + runTest("compiler/testData/codegen/box/initializers/initializers4.kt"); + } + + @Test + @TestMetadata("initializers5.kt") + public void testInitializers5() { + runTest("compiler/testData/codegen/box/initializers/initializers5.kt"); + } + + @Test + @TestMetadata("initializers7.kt") + public void testInitializers7() { + runTest("compiler/testData/codegen/box/initializers/initializers7.kt"); + } + + @Test + @TestMetadata("initializers8.kt") + public void testInitializers8() { + runTest("compiler/testData/codegen/box/initializers/initializers8.kt"); + } + + @Test + @TestMetadata("multipleModules1.kt") + public void testMultipleModules1() { + runTest("compiler/testData/codegen/box/initializers/multipleModules1.kt"); + } + + @Test + @TestMetadata("object.kt") + public void testObject() { + runTest("compiler/testData/codegen/box/initializers/object.kt"); + } + + @Test + @TestMetadata("sharedVarInInitBlock.kt") + public void testSharedVarInInitBlock() { + runTest("compiler/testData/codegen/box/initializers/sharedVarInInitBlock.kt"); + } + + @Test + @TestMetadata("static_arrays.kt") + public void testStatic_arrays() { + runTest("compiler/testData/codegen/box/initializers/static_arrays.kt"); + } + + @Test + @TestMetadata("static_list.kt") + public void testStatic_list() { + runTest("compiler/testData/codegen/box/initializers/static_list.kt"); + } + + @Test + @TestMetadata("static_smallIntIdentity.kt") + public void testStatic_smallIntIdentity() { + runTest("compiler/testData/codegen/box/initializers/static_smallIntIdentity.kt"); + } + + @Test + @TestMetadata("static_varargChange.kt") + public void testStatic_varargChange() { + runTest("compiler/testData/codegen/box/initializers/static_varargChange.kt"); + } + + @Test + @TestMetadata("throw1.kt") + public void testThrow1() { + runTest("compiler/testData/codegen/box/initializers/throw1.kt"); + } + + @Test + @TestMetadata("throw2.kt") + public void testThrow2() { + runTest("compiler/testData/codegen/box/initializers/throw2.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/initializers/files") + @TestDataPath("$PROJECT_ROOT") + public class Files { + @Test + public void testAllFilesPresentInFiles() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/initializers/files"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("globalInitedAfterAccessingFile.kt") + public void testGlobalInitedAfterAccessingFile() { + runTest("compiler/testData/codegen/box/initializers/files/globalInitedAfterAccessingFile.kt"); + } + + @Test + @TestMetadata("globalNotInitedAfterAccessingClassInternals.kt") + public void testGlobalNotInitedAfterAccessingClassInternals() { + runTest("compiler/testData/codegen/box/initializers/files/globalNotInitedAfterAccessingClassInternals.kt"); + } + + @Test + @TestMetadata("simple.kt") + public void testSimple() { + runTest("compiler/testData/codegen/box/initializers/files/simple.kt"); + } + + @Test + @TestMetadata("simpleMultiModule.kt") + public void testSimpleMultiModule() { + runTest("compiler/testData/codegen/box/initializers/files/simpleMultiModule.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/inline") + @TestDataPath("$PROJECT_ROOT") + public class Inline { + @Test + public void testAllFilesPresentInInline() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inline"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("changingCapturedLocal.kt") + public void testChangingCapturedLocal() { + runTest("compiler/testData/codegen/box/inline/changingCapturedLocal.kt"); + } + + @Test + @TestMetadata("classDeclarationInsideInline.kt") + public void testClassDeclarationInsideInline() { + runTest("compiler/testData/codegen/box/inline/classDeclarationInsideInline.kt"); + } + + @Test + @TestMetadata("coercionToUnit.kt") + public void testCoercionToUnit() { + runTest("compiler/testData/codegen/box/inline/coercionToUnit.kt"); + } + + @Test + @TestMetadata("correctOrderFunctionReference.kt") + public void testCorrectOrderFunctionReference() { + runTest("compiler/testData/codegen/box/inline/correctOrderFunctionReference.kt"); + } + + @Test + @TestMetadata("defaultArgs.kt") + public void testDefaultArgs() { + runTest("compiler/testData/codegen/box/inline/defaultArgs.kt"); + } + + @Test + @TestMetadata("defaultArgsMultipleModules.kt") + public void testDefaultArgsMultipleModules() { + runTest("compiler/testData/codegen/box/inline/defaultArgsMultipleModules.kt"); + } + + @Test + @TestMetadata("genericFunctionReference.kt") + public void testGenericFunctionReference() { + runTest("compiler/testData/codegen/box/inline/genericFunctionReference.kt"); + } + + @Test + @TestMetadata("getClass.kt") + public void testGetClass() { + runTest("compiler/testData/codegen/box/inline/getClass.kt"); + } + + @Test + @TestMetadata("inline0.kt") + public void testInline0() { + runTest("compiler/testData/codegen/box/inline/inline0.kt"); + } + + @Test + @TestMetadata("inline1.kt") + public void testInline1() { + runTest("compiler/testData/codegen/box/inline/inline1.kt"); + } + + @Test + @TestMetadata("inline10.kt") + public void testInline10() { + runTest("compiler/testData/codegen/box/inline/inline10.kt"); + } + + @Test + @TestMetadata("inline11.kt") + public void testInline11() { + runTest("compiler/testData/codegen/box/inline/inline11.kt"); + } + + @Test + @TestMetadata("inline12.kt") + public void testInline12() { + runTest("compiler/testData/codegen/box/inline/inline12.kt"); + } + + @Test + @TestMetadata("inline13.kt") + public void testInline13() { + runTest("compiler/testData/codegen/box/inline/inline13.kt"); + } + + @Test + @TestMetadata("inline14.kt") + public void testInline14() { + runTest("compiler/testData/codegen/box/inline/inline14.kt"); + } + + @Test + @TestMetadata("inline15.kt") + public void testInline15() { + runTest("compiler/testData/codegen/box/inline/inline15.kt"); + } + + @Test + @TestMetadata("inline16.kt") + public void testInline16() { + runTest("compiler/testData/codegen/box/inline/inline16.kt"); + } + + @Test + @TestMetadata("inline17.kt") + public void testInline17() { + runTest("compiler/testData/codegen/box/inline/inline17.kt"); + } + + @Test + @TestMetadata("inline19.kt") + public void testInline19() { + runTest("compiler/testData/codegen/box/inline/inline19.kt"); + } + + @Test + @TestMetadata("inline2.kt") + public void testInline2() { + runTest("compiler/testData/codegen/box/inline/inline2.kt"); + } + + @Test + @TestMetadata("inline20.kt") + public void testInline20() { + runTest("compiler/testData/codegen/box/inline/inline20.kt"); + } + + @Test + @TestMetadata("inline21.kt") + public void testInline21() { + runTest("compiler/testData/codegen/box/inline/inline21.kt"); + } + + @Test + @TestMetadata("inline22.kt") + public void testInline22() { + runTest("compiler/testData/codegen/box/inline/inline22.kt"); + } + + @Test + @TestMetadata("inline23.kt") + public void testInline23() { + runTest("compiler/testData/codegen/box/inline/inline23.kt"); + } + + @Test + @TestMetadata("inline24.kt") + public void testInline24() { + runTest("compiler/testData/codegen/box/inline/inline24.kt"); + } + + @Test + @TestMetadata("inline25.kt") + public void testInline25() { + runTest("compiler/testData/codegen/box/inline/inline25.kt"); + } + + @Test + @TestMetadata("inline26.kt") + public void testInline26() { + runTest("compiler/testData/codegen/box/inline/inline26.kt"); + } + + @Test + @TestMetadata("inline3.kt") + public void testInline3() { + runTest("compiler/testData/codegen/box/inline/inline3.kt"); + } + + @Test + @TestMetadata("inline4.kt") + public void testInline4() { + runTest("compiler/testData/codegen/box/inline/inline4.kt"); + } + + @Test + @TestMetadata("inline5.kt") + public void testInline5() { + runTest("compiler/testData/codegen/box/inline/inline5.kt"); + } + + @Test + @TestMetadata("inline6.kt") + public void testInline6() { + runTest("compiler/testData/codegen/box/inline/inline6.kt"); + } + + @Test + @TestMetadata("inline7.kt") + public void testInline7() { + runTest("compiler/testData/codegen/box/inline/inline7.kt"); + } + + @Test + @TestMetadata("inline8.kt") + public void testInline8() { + runTest("compiler/testData/codegen/box/inline/inline8.kt"); + } + + @Test + @TestMetadata("inline9.kt") + public void testInline9() { + runTest("compiler/testData/codegen/box/inline/inline9.kt"); + } + + @Test + @TestMetadata("inlineCtor.kt") + public void testInlineCtor() { + runTest("compiler/testData/codegen/box/inline/inlineCtor.kt"); + } + + @Test + @TestMetadata("innerInlineFunCapturesOuter.kt") + public void testInnerInlineFunCapturesOuter() { + runTest("compiler/testData/codegen/box/inline/innerInlineFunCapturesOuter.kt"); + } + + @Test + @TestMetadata("lambdaAsAny.kt") + public void testLambdaAsAny() { + runTest("compiler/testData/codegen/box/inline/lambdaAsAny.kt"); + } + + @Test + @TestMetadata("lambdaInDefaultValue.kt") + public void testLambdaInDefaultValue() { + runTest("compiler/testData/codegen/box/inline/lambdaInDefaultValue.kt"); + } + + @Test + @TestMetadata("lateinitProperty.kt") + public void testLateinitProperty() { + runTest("compiler/testData/codegen/box/inline/lateinitProperty.kt"); + } + + @Test + @TestMetadata("localFunctionInInitializerBlock.kt") + public void testLocalFunctionInInitializerBlock() { + runTest("compiler/testData/codegen/box/inline/localFunctionInInitializerBlock.kt"); + } + + @Test + @TestMetadata("localObjectReturnedFromWhen.kt") + public void testLocalObjectReturnedFromWhen() { + runTest("compiler/testData/codegen/box/inline/localObjectReturnedFromWhen.kt"); + } + + @Test + @TestMetadata("propertyAccessorInline.kt") + public void testPropertyAccessorInline() { + runTest("compiler/testData/codegen/box/inline/propertyAccessorInline.kt"); + } + + @Test + @TestMetadata("redundantCoercionsCleaner.kt") + public void testRedundantCoercionsCleaner() { + runTest("compiler/testData/codegen/box/inline/redundantCoercionsCleaner.kt"); + } + + @Test + @TestMetadata("redundantCoercionsCleanerKT48876.kt") + public void testRedundantCoercionsCleanerKT48876() { + runTest("compiler/testData/codegen/box/inline/redundantCoercionsCleanerKT48876.kt"); + } + + @Test + @TestMetadata("redundantCoercionsCleanerKT49356.kt") + public void testRedundantCoercionsCleanerKT49356() { + runTest("compiler/testData/codegen/box/inline/redundantCoercionsCleanerKT49356.kt"); + } + + @Test + @TestMetadata("returnLocalClassFromBlock.kt") + public void testReturnLocalClassFromBlock() { + runTest("compiler/testData/codegen/box/inline/returnLocalClassFromBlock.kt"); + } + + @Test + @TestMetadata("sharedVar.kt") + public void testSharedVar() { + runTest("compiler/testData/codegen/box/inline/sharedVar.kt"); + } + + @Test + @TestMetadata("statementAsLastExprInBlock.kt") + public void testStatementAsLastExprInBlock() { + runTest("compiler/testData/codegen/box/inline/statementAsLastExprInBlock.kt"); + } + + @Test + @TestMetadata("twiceInlinedObject.kt") + public void testTwiceInlinedObject() { + runTest("compiler/testData/codegen/box/inline/twiceInlinedObject.kt"); + } + + @Test + @TestMetadata("typeSubstitutionInFakeOverride.kt") + public void testTypeSubstitutionInFakeOverride() { + runTest("compiler/testData/codegen/box/inline/typeSubstitutionInFakeOverride.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/inlineArgsInPlace") @TestDataPath("$PROJECT_ROOT") @@ -22490,6 +24744,40 @@ public class IrBlackBoxCodegenWithIrInlinerTestGenerated extends AbstractIrBlack } } + @Nested + @TestMetadata("compiler/testData/codegen/box/inlineClass") + @TestDataPath("$PROJECT_ROOT") + public class InlineClass { + @Test + public void testAllFilesPresentInInlineClass() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineClass"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("customEquals.kt") + public void testCustomEquals() { + runTest("compiler/testData/codegen/box/inlineClass/customEquals.kt"); + } + + @Test + @TestMetadata("defaultEquals.kt") + public void testDefaultEquals() { + runTest("compiler/testData/codegen/box/inlineClass/defaultEquals.kt"); + } + + @Test + @TestMetadata("nestedInlineClasses.kt") + public void testNestedInlineClasses() { + runTest("compiler/testData/codegen/box/inlineClass/nestedInlineClasses.kt"); + } + + @Test + @TestMetadata("secondaryConstructorWithGenerics.kt") + public void testSecondaryConstructorWithGenerics() { + runTest("compiler/testData/codegen/box/inlineClass/secondaryConstructorWithGenerics.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/inlineClasses") @TestDataPath("$PROJECT_ROOT") @@ -28126,6 +30414,88 @@ public class IrBlackBoxCodegenWithIrInlinerTestGenerated extends AbstractIrBlack } } + @Nested + @TestMetadata("compiler/testData/codegen/box/innerClass") + @TestDataPath("$PROJECT_ROOT") + public class InnerClass { + @Test + public void testAllFilesPresentInInnerClass() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/innerClass"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("doubleInner.kt") + public void testDoubleInner() { + runTest("compiler/testData/codegen/box/innerClass/doubleInner.kt"); + } + + @Test + @TestMetadata("generic.kt") + public void testGeneric() { + runTest("compiler/testData/codegen/box/innerClass/generic.kt"); + } + + @Test + @TestMetadata("getOuterVal.kt") + public void testGetOuterVal() { + runTest("compiler/testData/codegen/box/innerClass/getOuterVal.kt"); + } + + @Test + @TestMetadata("inheritanceMultipleModules1.kt") + public void testInheritanceMultipleModules1() { + runTest("compiler/testData/codegen/box/innerClass/inheritanceMultipleModules1.kt"); + } + + @Test + @TestMetadata("inheritanceMultipleModules2.kt") + public void testInheritanceMultipleModules2() { + runTest("compiler/testData/codegen/box/innerClass/inheritanceMultipleModules2.kt"); + } + + @Test + @TestMetadata("inheritanceMultipleModules3.kt") + public void testInheritanceMultipleModules3() { + runTest("compiler/testData/codegen/box/innerClass/inheritanceMultipleModules3.kt"); + } + + @Test + @TestMetadata("multipleModules.kt") + public void testMultipleModules() { + runTest("compiler/testData/codegen/box/innerClass/multipleModules.kt"); + } + + @Test + @TestMetadata("noPrimaryConstructor.kt") + public void testNoPrimaryConstructor() { + runTest("compiler/testData/codegen/box/innerClass/noPrimaryConstructor.kt"); + } + + @Test + @TestMetadata("qualifiedThis.kt") + public void testQualifiedThis() { + runTest("compiler/testData/codegen/box/innerClass/qualifiedThis.kt"); + } + + @Test + @TestMetadata("secondaryConstructor.kt") + public void testSecondaryConstructor() { + runTest("compiler/testData/codegen/box/innerClass/secondaryConstructor.kt"); + } + + @Test + @TestMetadata("simple.kt") + public void testSimple() { + runTest("compiler/testData/codegen/box/innerClass/simple.kt"); + } + + @Test + @TestMetadata("superOuter.kt") + public void testSuperOuter() { + runTest("compiler/testData/codegen/box/innerClass/superOuter.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/innerNested") @TestDataPath("$PROJECT_ROOT") @@ -28526,6 +30896,40 @@ public class IrBlackBoxCodegenWithIrInlinerTestGenerated extends AbstractIrBlack } } + @Nested + @TestMetadata("compiler/testData/codegen/box/interfaceCallsNCasts") + @TestDataPath("$PROJECT_ROOT") + public class InterfaceCallsNCasts { + @Test + public void testAllFilesPresentInInterfaceCallsNCasts() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/interfaceCallsNCasts"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("conservativeItable.kt") + public void testConservativeItable() { + runTest("compiler/testData/codegen/box/interfaceCallsNCasts/conservativeItable.kt"); + } + + @Test + @TestMetadata("diamond.kt") + public void testDiamond() { + runTest("compiler/testData/codegen/box/interfaceCallsNCasts/diamond.kt"); + } + + @Test + @TestMetadata("finalMethod.kt") + public void testFinalMethod() { + runTest("compiler/testData/codegen/box/interfaceCallsNCasts/finalMethod.kt"); + } + + @Test + @TestMetadata("interface0.kt") + public void testInterface0() { + runTest("compiler/testData/codegen/box/interfaceCallsNCasts/interface0.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/intrinsics") @TestDataPath("$PROJECT_ROOT") @@ -33676,6 +36080,80 @@ public class IrBlackBoxCodegenWithIrInlinerTestGenerated extends AbstractIrBlack } } + @Nested + @TestMetadata("compiler/testData/codegen/box/kclass") + @TestDataPath("$PROJECT_ROOT") + public class Kclass { + @Test + public void testAllFilesPresentInKclass() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/kclass"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("kClassEnumArgument.kt") + public void testKClassEnumArgument() { + runTest("compiler/testData/codegen/box/kclass/kClassEnumArgument.kt"); + } + + @Test + @TestMetadata("kclass1.kt") + public void testKclass1() { + runTest("compiler/testData/codegen/box/kclass/kclass1.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/ktype") + @TestDataPath("$PROJECT_ROOT") + public class Ktype { + @Test + public void testAllFilesPresentInKtype() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ktype"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("ktype1_basics1.kt") + public void testKtype1_basics1() { + runTest("compiler/testData/codegen/box/ktype/ktype1_basics1.kt"); + } + + @Test + @TestMetadata("ktype1_inner.kt") + public void testKtype1_inner() { + runTest("compiler/testData/codegen/box/ktype/ktype1_inner.kt"); + } + + @Test + @TestMetadata("nonReified_class.kt") + public void testNonReified_class() { + runTest("compiler/testData/codegen/box/ktype/nonReified_class.kt"); + } + + @Test + @TestMetadata("nonReified_equality.kt") + public void testNonReified_equality() { + runTest("compiler/testData/codegen/box/ktype/nonReified_equality.kt"); + } + + @Test + @TestMetadata("nonReified_fun.kt") + public void testNonReified_fun() { + runTest("compiler/testData/codegen/box/ktype/nonReified_fun.kt"); + } + + @Test + @TestMetadata("nonReified_recursionInReified.kt") + public void testNonReified_recursionInReified() { + runTest("compiler/testData/codegen/box/ktype/nonReified_recursionInReified.kt"); + } + + @Test + @TestMetadata("nonReified_reifiedUpperBound.kt") + public void testNonReified_reifiedUpperBound() { + runTest("compiler/testData/codegen/box/ktype/nonReified_reifiedUpperBound.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/labels") @TestDataPath("$PROJECT_ROOT") @@ -33734,6 +36212,188 @@ public class IrBlackBoxCodegenWithIrInlinerTestGenerated extends AbstractIrBlack } } + @Nested + @TestMetadata("compiler/testData/codegen/box/lambda") + @TestDataPath("$PROJECT_ROOT") + public class Lambda { + @Test + public void testAllFilesPresentInLambda() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/lambda"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("lambda1.kt") + public void testLambda1() { + runTest("compiler/testData/codegen/box/lambda/lambda1.kt"); + } + + @Test + @TestMetadata("lambda10.kt") + public void testLambda10() { + runTest("compiler/testData/codegen/box/lambda/lambda10.kt"); + } + + @Test + @TestMetadata("lambda11.kt") + public void testLambda11() { + runTest("compiler/testData/codegen/box/lambda/lambda11.kt"); + } + + @Test + @TestMetadata("lambda12.kt") + public void testLambda12() { + runTest("compiler/testData/codegen/box/lambda/lambda12.kt"); + } + + @Test + @TestMetadata("lambda13.kt") + public void testLambda13() { + runTest("compiler/testData/codegen/box/lambda/lambda13.kt"); + } + + @Test + @TestMetadata("lambda14.kt") + public void testLambda14() { + runTest("compiler/testData/codegen/box/lambda/lambda14.kt"); + } + + @Test + @TestMetadata("lambda2.kt") + public void testLambda2() { + runTest("compiler/testData/codegen/box/lambda/lambda2.kt"); + } + + @Test + @TestMetadata("lambda3.kt") + public void testLambda3() { + runTest("compiler/testData/codegen/box/lambda/lambda3.kt"); + } + + @Test + @TestMetadata("lambda4.kt") + public void testLambda4() { + runTest("compiler/testData/codegen/box/lambda/lambda4.kt"); + } + + @Test + @TestMetadata("lambda5.kt") + public void testLambda5() { + runTest("compiler/testData/codegen/box/lambda/lambda5.kt"); + } + + @Test + @TestMetadata("lambda6.kt") + public void testLambda6() { + runTest("compiler/testData/codegen/box/lambda/lambda6.kt"); + } + + @Test + @TestMetadata("lambda7.kt") + public void testLambda7() { + runTest("compiler/testData/codegen/box/lambda/lambda7.kt"); + } + + @Test + @TestMetadata("lambda8.kt") + public void testLambda8() { + runTest("compiler/testData/codegen/box/lambda/lambda8.kt"); + } + + @Test + @TestMetadata("lambda9.kt") + public void testLambda9() { + runTest("compiler/testData/codegen/box/lambda/lambda9.kt"); + } + + @Test + @TestMetadata("lambda_kt49360_trivial.kt") + public void testLambda_kt49360_trivial() { + runTest("compiler/testData/codegen/box/lambda/lambda_kt49360_trivial.kt"); + } + + @Test + @TestMetadata("lambda_kt49360_withFlow.kt") + public void testLambda_kt49360_withFlow() { + runTest("compiler/testData/codegen/box/lambda/lambda_kt49360_withFlow.kt"); + } + + @Test + @TestMetadata("lambda_kt49360_wrapBlock.kt") + public void testLambda_kt49360_wrapBlock() { + runTest("compiler/testData/codegen/box/lambda/lambda_kt49360_wrapBlock.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/lateinit") + @TestDataPath("$PROJECT_ROOT") + public class Lateinit { + @Test + public void testAllFilesPresentInLateinit() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/lateinit"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("globalIsInitialized.kt") + public void testGlobalIsInitialized() { + runTest("compiler/testData/codegen/box/lateinit/globalIsInitialized.kt"); + } + + @Test + @TestMetadata("inBaseClass.kt") + public void testInBaseClass() { + runTest("compiler/testData/codegen/box/lateinit/inBaseClass.kt"); + } + + @Test + @TestMetadata("initialized.kt") + public void testInitialized() { + runTest("compiler/testData/codegen/box/lateinit/initialized.kt"); + } + + @Test + @TestMetadata("innerIsInitialized.kt") + public void testInnerIsInitialized() { + runTest("compiler/testData/codegen/box/lateinit/innerIsInitialized.kt"); + } + + @Test + @TestMetadata("isInitialized.kt") + public void testIsInitialized() { + runTest("compiler/testData/codegen/box/lateinit/isInitialized.kt"); + } + + @Test + @TestMetadata("localCapturedInitialized.kt") + public void testLocalCapturedInitialized() { + runTest("compiler/testData/codegen/box/lateinit/localCapturedInitialized.kt"); + } + + @Test + @TestMetadata("localCapturedNotInitialized.kt") + public void testLocalCapturedNotInitialized() { + runTest("compiler/testData/codegen/box/lateinit/localCapturedNotInitialized.kt"); + } + + @Test + @TestMetadata("localInitialized.kt") + public void testLocalInitialized() { + runTest("compiler/testData/codegen/box/lateinit/localInitialized.kt"); + } + + @Test + @TestMetadata("localNotInitialized.kt") + public void testLocalNotInitialized() { + runTest("compiler/testData/codegen/box/lateinit/localNotInitialized.kt"); + } + + @Test + @TestMetadata("notInitialized.kt") + public void testNotInitialized() { + runTest("compiler/testData/codegen/box/lateinit/notInitialized.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/lazyCodegen") @TestDataPath("$PROJECT_ROOT") @@ -33862,6 +36522,98 @@ public class IrBlackBoxCodegenWithIrInlinerTestGenerated extends AbstractIrBlack } } + @Nested + @TestMetadata("compiler/testData/codegen/box/literals") + @TestDataPath("$PROJECT_ROOT") + public class Literals { + @Test + public void testAllFilesPresentInLiterals() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/literals"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("listof1.kt") + public void testListof1() { + runTest("compiler/testData/codegen/box/literals/listof1.kt"); + } + + @Test + @TestMetadata("strdedup1.kt") + public void testStrdedup1() { + runTest("compiler/testData/codegen/box/literals/strdedup1.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/localClass") + @TestDataPath("$PROJECT_ROOT") + public class LocalClass { + @Test + public void testAllFilesPresentInLocalClass() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/localClass"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("innerTakesCapturedFromOuter.kt") + public void testInnerTakesCapturedFromOuter() { + runTest("compiler/testData/codegen/box/localClass/innerTakesCapturedFromOuter.kt"); + } + + @Test + @TestMetadata("innerWithCapture.kt") + public void testInnerWithCapture() { + runTest("compiler/testData/codegen/box/localClass/innerWithCapture.kt"); + } + + @Test + @TestMetadata("localFunctionCallFromLocalClass.kt") + public void testLocalFunctionCallFromLocalClass() { + runTest("compiler/testData/codegen/box/localClass/localFunctionCallFromLocalClass.kt"); + } + + @Test + @TestMetadata("localFunctionInLocalClass.kt") + public void testLocalFunctionInLocalClass() { + runTest("compiler/testData/codegen/box/localClass/localFunctionInLocalClass.kt"); + } + + @Test + @TestMetadata("localHierarchy.kt") + public void testLocalHierarchy() { + runTest("compiler/testData/codegen/box/localClass/localHierarchy.kt"); + } + + @Test + @TestMetadata("noPrimaryConstructor.kt") + public void testNoPrimaryConstructor() { + runTest("compiler/testData/codegen/box/localClass/noPrimaryConstructor.kt"); + } + + @Test + @TestMetadata("objectExpressionInInitializer.kt") + public void testObjectExpressionInInitializer() { + runTest("compiler/testData/codegen/box/localClass/objectExpressionInInitializer.kt"); + } + + @Test + @TestMetadata("objectExpressionInProperty.kt") + public void testObjectExpressionInProperty() { + runTest("compiler/testData/codegen/box/localClass/objectExpressionInProperty.kt"); + } + + @Test + @TestMetadata("tryCatch.kt") + public void testTryCatch() { + runTest("compiler/testData/codegen/box/localClass/tryCatch.kt"); + } + + @Test + @TestMetadata("virtualCallFromConstructor.kt") + public void testVirtualCallFromConstructor() { + runTest("compiler/testData/codegen/box/localClass/virtualCallFromConstructor.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/localClasses") @TestDataPath("$PROJECT_ROOT") @@ -34112,6 +36864,38 @@ public class IrBlackBoxCodegenWithIrInlinerTestGenerated extends AbstractIrBlack } } + @Nested + @TestMetadata("compiler/testData/codegen/box/localEscapeAnalysis") + @TestDataPath("$PROJECT_ROOT") + public class LocalEscapeAnalysis { + @Test + public void testAllFilesPresentInLocalEscapeAnalysis() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/localEscapeAnalysis"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("arraysFieldWrite.kt") + public void testArraysFieldWrite() { + runTest("compiler/testData/codegen/box/localEscapeAnalysis/arraysFieldWrite.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/lower") + @TestDataPath("$PROJECT_ROOT") + public class Lower { + @Test + public void testAllFilesPresentInLower() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/lower"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("localDelegatedProperty.kt") + public void testLocalDelegatedProperty() { + runTest("compiler/testData/codegen/box/lower/localDelegatedProperty.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/mangling") @TestDataPath("$PROJECT_ROOT") @@ -34151,6 +36935,12 @@ public class IrBlackBoxCodegenWithIrInlinerTestGenerated extends AbstractIrBlack runTest("compiler/testData/codegen/box/mangling/internalOverrideSuperCall.kt"); } + @Test + @TestMetadata("multipleConstructors.kt") + public void testMultipleConstructors() { + runTest("compiler/testData/codegen/box/mangling/multipleConstructors.kt"); + } + @Test @TestMetadata("noOverrideWithJava.kt") public void testNoOverrideWithJava() { @@ -35492,6 +38282,98 @@ public class IrBlackBoxCodegenWithIrInlinerTestGenerated extends AbstractIrBlack } } + @Nested + @TestMetadata("compiler/testData/codegen/box/object") + @TestDataPath("$PROJECT_ROOT") + public class Object { + @Test + public void testAllFilesPresentInObject() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/object"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("constructor0.kt") + public void testConstructor0() { + runTest("compiler/testData/codegen/box/object/constructor0.kt"); + } + + @Test + @TestMetadata("fields.kt") + public void testFields() { + runTest("compiler/testData/codegen/box/object/fields.kt"); + } + + @Test + @TestMetadata("fields1.kt") + public void testFields1() { + runTest("compiler/testData/codegen/box/object/fields1.kt"); + } + + @Test + @TestMetadata("fields2.kt") + public void testFields2() { + runTest("compiler/testData/codegen/box/object/fields2.kt"); + } + + @Test + @TestMetadata("globalInitializer.kt") + public void testGlobalInitializer() { + runTest("compiler/testData/codegen/box/object/globalInitializer.kt"); + } + + @Test + @TestMetadata("init0.kt") + public void testInit0() { + runTest("compiler/testData/codegen/box/object/init0.kt"); + } + + @Test + @TestMetadata("initialization.kt") + public void testInitialization() { + runTest("compiler/testData/codegen/box/object/initialization.kt"); + } + + @Test + @TestMetadata("initialization1.kt") + public void testInitialization1() { + runTest("compiler/testData/codegen/box/object/initialization1.kt"); + } + + @Test + @TestMetadata("method_call.kt") + public void testMethod_call() { + runTest("compiler/testData/codegen/box/object/method_call.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/objectExpression") + @TestDataPath("$PROJECT_ROOT") + public class ObjectExpression { + @Test + public void testAllFilesPresentInObjectExpression() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/objectExpression"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("expr1.kt") + public void testExpr1() { + runTest("compiler/testData/codegen/box/objectExpression/expr1.kt"); + } + + @Test + @TestMetadata("expr2.kt") + public void testExpr2() { + runTest("compiler/testData/codegen/box/objectExpression/expr2.kt"); + } + + @Test + @TestMetadata("expr3.kt") + public void testExpr3() { + runTest("compiler/testData/codegen/box/objectExpression/expr3.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/objectIntrinsics") @TestDataPath("$PROJECT_ROOT") @@ -38788,6 +41670,64 @@ public class IrBlackBoxCodegenWithIrInlinerTestGenerated extends AbstractIrBlack } } + @Nested + @TestMetadata("compiler/testData/codegen/box/propertyCallableReference") + @TestDataPath("$PROJECT_ROOT") + public class PropertyCallableReference { + @Test + public void testAllFilesPresentInPropertyCallableReference() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/propertyCallableReference"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("dynamicReceiver.kt") + public void testDynamicReceiver() { + runTest("compiler/testData/codegen/box/propertyCallableReference/dynamicReceiver.kt"); + } + + @Test + @TestMetadata("multipleModules.kt") + public void testMultipleModules() { + runTest("compiler/testData/codegen/box/propertyCallableReference/multipleModules.kt"); + } + + @Test + @TestMetadata("valClass.kt") + public void testValClass() { + runTest("compiler/testData/codegen/box/propertyCallableReference/valClass.kt"); + } + + @Test + @TestMetadata("valExtension.kt") + public void testValExtension() { + runTest("compiler/testData/codegen/box/propertyCallableReference/valExtension.kt"); + } + + @Test + @TestMetadata("valModule.kt") + public void testValModule() { + runTest("compiler/testData/codegen/box/propertyCallableReference/valModule.kt"); + } + + @Test + @TestMetadata("varClass.kt") + public void testVarClass() { + runTest("compiler/testData/codegen/box/propertyCallableReference/varClass.kt"); + } + + @Test + @TestMetadata("varExtension.kt") + public void testVarExtension() { + runTest("compiler/testData/codegen/box/propertyCallableReference/varExtension.kt"); + } + + @Test + @TestMetadata("varModule.kt") + public void testVarModule() { + runTest("compiler/testData/codegen/box/propertyCallableReference/varModule.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/publishedApi") @TestDataPath("$PROJECT_ROOT") @@ -51034,6 +53974,58 @@ public class IrBlackBoxCodegenWithIrInlinerTestGenerated extends AbstractIrBlack } } + @Nested + @TestMetadata("compiler/testData/codegen/box/serialization") + @TestDataPath("$PROJECT_ROOT") + public class Serialization { + @Test + public void testAllFilesPresentInSerialization() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/serialization"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("deserializedMembers.kt") + public void testDeserializedMembers() { + runTest("compiler/testData/codegen/box/serialization/deserializedMembers.kt"); + } + + @Test + @TestMetadata("serializedCatch.kt") + public void testSerializedCatch() { + runTest("compiler/testData/codegen/box/serialization/serializedCatch.kt"); + } + + @Test + @TestMetadata("serializedCharConstant.kt") + public void testSerializedCharConstant() { + runTest("compiler/testData/codegen/box/serialization/serializedCharConstant.kt"); + } + + @Test + @TestMetadata("serializedDefaultArgs.kt") + public void testSerializedDefaultArgs() { + runTest("compiler/testData/codegen/box/serialization/serializedDefaultArgs.kt"); + } + + @Test + @TestMetadata("serializedDoWhile.kt") + public void testSerializedDoWhile() { + runTest("compiler/testData/codegen/box/serialization/serializedDoWhile.kt"); + } + + @Test + @TestMetadata("serializedEnumOrdinal.kt") + public void testSerializedEnumOrdinal() { + runTest("compiler/testData/codegen/box/serialization/serializedEnumOrdinal.kt"); + } + + @Test + @TestMetadata("serializedVararg.kt") + public void testSerializedVararg() { + runTest("compiler/testData/codegen/box/serialization/serializedVararg.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/size") @TestDataPath("$PROJECT_ROOT") @@ -51706,6 +54698,22 @@ public class IrBlackBoxCodegenWithIrInlinerTestGenerated extends AbstractIrBlack } } + @Nested + @TestMetadata("compiler/testData/codegen/box/stringTrim") + @TestDataPath("$PROJECT_ROOT") + public class StringTrim { + @Test + public void testAllFilesPresentInStringTrim() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/stringTrim"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("stringTrim.kt") + public void testStringTrim() { + runTest("compiler/testData/codegen/box/stringTrim/stringTrim.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/strings") @TestDataPath("$PROJECT_ROOT") @@ -53234,6 +56242,142 @@ public class IrBlackBoxCodegenWithIrInlinerTestGenerated extends AbstractIrBlack } } + @Nested + @TestMetadata("compiler/testData/codegen/box/try") + @TestDataPath("$PROJECT_ROOT") + public class Try { + @Test + public void testAllFilesPresentInTry() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/try"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("catch3.kt") + public void testCatch3() { + runTest("compiler/testData/codegen/box/try/catch3.kt"); + } + + @Test + @TestMetadata("catch4.kt") + public void testCatch4() { + runTest("compiler/testData/codegen/box/try/catch4.kt"); + } + + @Test + @TestMetadata("catch5.kt") + public void testCatch5() { + runTest("compiler/testData/codegen/box/try/catch5.kt"); + } + + @Test + @TestMetadata("catch6.kt") + public void testCatch6() { + runTest("compiler/testData/codegen/box/try/catch6.kt"); + } + + @Test + @TestMetadata("catch8.kt") + public void testCatch8() { + runTest("compiler/testData/codegen/box/try/catch8.kt"); + } + + @Test + @TestMetadata("finally1.kt") + public void testFinally1() { + runTest("compiler/testData/codegen/box/try/finally1.kt"); + } + + @Test + @TestMetadata("finally10.kt") + public void testFinally10() { + runTest("compiler/testData/codegen/box/try/finally10.kt"); + } + + @Test + @TestMetadata("finally11.kt") + public void testFinally11() { + runTest("compiler/testData/codegen/box/try/finally11.kt"); + } + + @Test + @TestMetadata("finally2.kt") + public void testFinally2() { + runTest("compiler/testData/codegen/box/try/finally2.kt"); + } + + @Test + @TestMetadata("finally3.kt") + public void testFinally3() { + runTest("compiler/testData/codegen/box/try/finally3.kt"); + } + + @Test + @TestMetadata("finally4.kt") + public void testFinally4() { + runTest("compiler/testData/codegen/box/try/finally4.kt"); + } + + @Test + @TestMetadata("finally5.kt") + public void testFinally5() { + runTest("compiler/testData/codegen/box/try/finally5.kt"); + } + + @Test + @TestMetadata("finally6.kt") + public void testFinally6() { + runTest("compiler/testData/codegen/box/try/finally6.kt"); + } + + @Test + @TestMetadata("finally7.kt") + public void testFinally7() { + runTest("compiler/testData/codegen/box/try/finally7.kt"); + } + + @Test + @TestMetadata("finally8.kt") + public void testFinally8() { + runTest("compiler/testData/codegen/box/try/finally8.kt"); + } + + @Test + @TestMetadata("finally9.kt") + public void testFinally9() { + runTest("compiler/testData/codegen/box/try/finally9.kt"); + } + + @Test + @TestMetadata("returnsDifferentTypes.kt") + public void testReturnsDifferentTypes() { + runTest("compiler/testData/codegen/box/try/returnsDifferentTypes.kt"); + } + + @Test + @TestMetadata("try1.kt") + public void testTry1() { + runTest("compiler/testData/codegen/box/try/try1.kt"); + } + + @Test + @TestMetadata("try2.kt") + public void testTry2() { + runTest("compiler/testData/codegen/box/try/try2.kt"); + } + + @Test + @TestMetadata("try3.kt") + public void testTry3() { + runTest("compiler/testData/codegen/box/try/try3.kt"); + } + + @Test + @TestMetadata("try4.kt") + public void testTry4() { + runTest("compiler/testData/codegen/box/try/try4.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/typeInfo") @TestDataPath("$PROJECT_ROOT") diff --git a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/inlineScopes/FirBlackBoxCodegenTestWithInlineScopesGenerated.java b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/inlineScopes/FirBlackBoxCodegenTestWithInlineScopesGenerated.java index 6e241b668d6..0f6a7e8e9b9 100644 --- a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/inlineScopes/FirBlackBoxCodegenTestWithInlineScopesGenerated.java +++ b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/inlineScopes/FirBlackBoxCodegenTestWithInlineScopesGenerated.java @@ -107,6 +107,12 @@ public class FirBlackBoxCodegenTestWithInlineScopesGenerated extends AbstractFir runTest("compiler/testData/codegen/box/annotations/annotationWithVarargAsDefaultValue.kt"); } + @Test + @TestMetadata("annotations0.kt") + public void testAnnotations0() { + runTest("compiler/testData/codegen/box/annotations/annotations0.kt"); + } + @Test @TestMetadata("annotationsOnDefault.kt") public void testAnnotationsOnDefault() { @@ -936,6 +942,82 @@ public class FirBlackBoxCodegenTestWithInlineScopesGenerated extends AbstractFir } } + @Nested + @TestMetadata("compiler/testData/codegen/box/arithmetic") + @TestDataPath("$PROJECT_ROOT") + public class Arithmetic { + @Test + public void testAllFilesPresentInArithmetic() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/arithmetic"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("basic_charConversions.kt") + public void testBasic_charConversions() { + runTest("compiler/testData/codegen/box/arithmetic/basic_charConversions.kt"); + } + + @Test + @TestMetadata("basic_charCornerCases.kt") + public void testBasic_charCornerCases() { + runTest("compiler/testData/codegen/box/arithmetic/basic_charCornerCases.kt"); + } + + @Test + @TestMetadata("basic_compareIntToFloat.kt") + public void testBasic_compareIntToFloat() { + runTest("compiler/testData/codegen/box/arithmetic/basic_compareIntToFloat.kt"); + } + + @Test + @TestMetadata("basic_doubleBasic.kt") + public void testBasic_doubleBasic() { + runTest("compiler/testData/codegen/box/arithmetic/basic_doubleBasic.kt"); + } + + @Test + @TestMetadata("basic_integralToFloat.kt") + public void testBasic_integralToFloat() { + runTest("compiler/testData/codegen/box/arithmetic/basic_integralToFloat.kt"); + } + + @Test + @TestMetadata("basic_kt37412.kt") + public void testBasic_kt37412() { + runTest("compiler/testData/codegen/box/arithmetic/basic_kt37412.kt"); + } + + @Test + @TestMetadata("basic_selfComparison.kt") + public void testBasic_selfComparison() { + runTest("compiler/testData/codegen/box/arithmetic/basic_selfComparison.kt"); + } + + @Test + @TestMetadata("basic_shifts.kt") + public void testBasic_shifts() { + runTest("compiler/testData/codegen/box/arithmetic/basic_shifts.kt"); + } + + @Test + @TestMetadata("basic_uintTests.kt") + public void testBasic_uintTests() { + runTest("compiler/testData/codegen/box/arithmetic/basic_uintTests.kt"); + } + + @Test + @TestMetadata("division.kt") + public void testDivision() { + runTest("compiler/testData/codegen/box/arithmetic/division.kt"); + } + + @Test + @TestMetadata("github1856.kt") + public void testGithub1856() { + runTest("compiler/testData/codegen/box/arithmetic/github1856.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/arrays") @TestDataPath("$PROJECT_ROOT") @@ -1788,6 +1870,302 @@ public class FirBlackBoxCodegenTestWithInlineScopesGenerated extends AbstractFir } } + @Nested + @TestMetadata("compiler/testData/codegen/box/basics") + @TestDataPath("$PROJECT_ROOT") + public class Basics { + @Test + public void testAllFilesPresentInBasics() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/basics"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("array_to_any.kt") + public void testArray_to_any() { + runTest("compiler/testData/codegen/box/basics/array_to_any.kt"); + } + + @Test + @TestMetadata("canonical_name.kt") + public void testCanonical_name() { + runTest("compiler/testData/codegen/box/basics/canonical_name.kt"); + } + + @Test + @TestMetadata("cast_null.kt") + public void testCast_null() { + runTest("compiler/testData/codegen/box/basics/cast_null.kt"); + } + + @Test + @TestMetadata("cast_simple.kt") + public void testCast_simple() { + runTest("compiler/testData/codegen/box/basics/cast_simple.kt"); + } + + @Test + @TestMetadata("check_type.kt") + public void testCheck_type() { + runTest("compiler/testData/codegen/box/basics/check_type.kt"); + } + + @Test + @TestMetadata("companion.kt") + public void testCompanion() { + runTest("compiler/testData/codegen/box/basics/companion.kt"); + } + + @Test + @TestMetadata("concatenation.kt") + public void testConcatenation() { + runTest("compiler/testData/codegen/box/basics/concatenation.kt"); + } + + @Test + @TestMetadata("const_infinity.kt") + public void testConst_infinity() { + runTest("compiler/testData/codegen/box/basics/const_infinity.kt"); + } + + @Test + @TestMetadata("expression_as_statement.kt") + public void testExpression_as_statement() { + runTest("compiler/testData/codegen/box/basics/expression_as_statement.kt"); + } + + @Test + @TestMetadata("k42000_1.kt") + public void testK42000_1() { + runTest("compiler/testData/codegen/box/basics/k42000_1.kt"); + } + + @Test + @TestMetadata("k42000_2.kt") + public void testK42000_2() { + runTest("compiler/testData/codegen/box/basics/k42000_2.kt"); + } + + @Test + @TestMetadata("local_variable.kt") + public void testLocal_variable() { + runTest("compiler/testData/codegen/box/basics/local_variable.kt"); + } + + @Test + @TestMetadata("null_check.kt") + public void testNull_check() { + runTest("compiler/testData/codegen/box/basics/null_check.kt"); + } + + @Test + @TestMetadata("safe_cast.kt") + public void testSafe_cast() { + runTest("compiler/testData/codegen/box/basics/safe_cast.kt"); + } + + @Test + @TestMetadata("spread_operator_0.kt") + public void testSpread_operator_0() { + runTest("compiler/testData/codegen/box/basics/spread_operator_0.kt"); + } + + @Test + @TestMetadata("statements0.kt") + public void testStatements0() { + runTest("compiler/testData/codegen/box/basics/statements0.kt"); + } + + @Test + @TestMetadata("superFunCall.kt") + public void testSuperFunCall() { + runTest("compiler/testData/codegen/box/basics/superFunCall.kt"); + } + + @Test + @TestMetadata("superGetterCall.kt") + public void testSuperGetterCall() { + runTest("compiler/testData/codegen/box/basics/superGetterCall.kt"); + } + + @Test + @TestMetadata("superSetterCall.kt") + public void testSuperSetterCall() { + runTest("compiler/testData/codegen/box/basics/superSetterCall.kt"); + } + + @Test + @TestMetadata("typealias1.kt") + public void testTypealias1() { + runTest("compiler/testData/codegen/box/basics/typealias1.kt"); + } + + @Test + @TestMetadata("unchecked_cast1.kt") + public void testUnchecked_cast1() { + runTest("compiler/testData/codegen/box/basics/unchecked_cast1.kt"); + } + + @Test + @TestMetadata("unchecked_cast2.kt") + public void testUnchecked_cast2() { + runTest("compiler/testData/codegen/box/basics/unchecked_cast2.kt"); + } + + @Test + @TestMetadata("unchecked_cast3.kt") + public void testUnchecked_cast3() { + runTest("compiler/testData/codegen/box/basics/unchecked_cast3.kt"); + } + + @Test + @TestMetadata("unchecked_cast4.kt") + public void testUnchecked_cast4() { + runTest("compiler/testData/codegen/box/basics/unchecked_cast4.kt"); + } + + @Test + @TestMetadata("unit1.kt") + public void testUnit1() { + runTest("compiler/testData/codegen/box/basics/unit1.kt"); + } + + @Test + @TestMetadata("unit2.kt") + public void testUnit2() { + runTest("compiler/testData/codegen/box/basics/unit2.kt"); + } + + @Test + @TestMetadata("unit3.kt") + public void testUnit3() { + runTest("compiler/testData/codegen/box/basics/unit3.kt"); + } + + @Test + @TestMetadata("unit4.kt") + public void testUnit4() { + runTest("compiler/testData/codegen/box/basics/unit4.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/bce") + @TestDataPath("$PROJECT_ROOT") + public class Bce { + @Test + public void testAllFilesPresentInBce() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/bce"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("bceCases.kt") + public void testBceCases() { + runTest("compiler/testData/codegen/box/bce/bceCases.kt"); + } + + @Test + @TestMetadata("customGetter.kt") + public void testCustomGetter() { + runTest("compiler/testData/codegen/box/bce/customGetter.kt"); + } + + @Test + @TestMetadata("delegatedProperty.kt") + public void testDelegatedProperty() { + runTest("compiler/testData/codegen/box/bce/delegatedProperty.kt"); + } + + @Test + @TestMetadata("differentArrays.kt") + public void testDifferentArrays() { + runTest("compiler/testData/codegen/box/bce/differentArrays.kt"); + } + + @Test + @TestMetadata("differentObjects.kt") + public void testDifferentObjects() { + runTest("compiler/testData/codegen/box/bce/differentObjects.kt"); + } + + @Test + @TestMetadata("forDownToSize.kt") + public void testForDownToSize() { + runTest("compiler/testData/codegen/box/bce/forDownToSize.kt"); + } + + @Test + @TestMetadata("forDownToWithStep.kt") + public void testForDownToWithStep() { + runTest("compiler/testData/codegen/box/bce/forDownToWithStep.kt"); + } + + @Test + @TestMetadata("forEachIndexedTest.kt") + public void testForEachIndexedTest() { + runTest("compiler/testData/codegen/box/bce/forEachIndexedTest.kt"); + } + + @Test + @TestMetadata("forEachIndicies.kt") + public void testForEachIndicies() { + runTest("compiler/testData/codegen/box/bce/forEachIndicies.kt"); + } + + @Test + @TestMetadata("forIndiciesWithStep.kt") + public void testForIndiciesWithStep() { + runTest("compiler/testData/codegen/box/bce/forIndiciesWithStep.kt"); + } + + @Test + @TestMetadata("forRangeToSize.kt") + public void testForRangeToSize() { + runTest("compiler/testData/codegen/box/bce/forRangeToSize.kt"); + } + + @Test + @TestMetadata("forRangeToWithStep.kt") + public void testForRangeToWithStep() { + runTest("compiler/testData/codegen/box/bce/forRangeToWithStep.kt"); + } + + @Test + @TestMetadata("forReversed.kt") + public void testForReversed() { + runTest("compiler/testData/codegen/box/bce/forReversed.kt"); + } + + @Test + @TestMetadata("forUntilSize.kt") + public void testForUntilSize() { + runTest("compiler/testData/codegen/box/bce/forUntilSize.kt"); + } + + @Test + @TestMetadata("forUntilWithStep.kt") + public void testForUntilWithStep() { + runTest("compiler/testData/codegen/box/bce/forUntilWithStep.kt"); + } + + @Test + @TestMetadata("forWithIndex.kt") + public void testForWithIndex() { + runTest("compiler/testData/codegen/box/bce/forWithIndex.kt"); + } + + @Test + @TestMetadata("inheritance.kt") + public void testInheritance() { + runTest("compiler/testData/codegen/box/bce/inheritance.kt"); + } + + @Test + @TestMetadata("withGetter.kt") + public void testWithGetter() { + runTest("compiler/testData/codegen/box/bce/withGetter.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/binaryOp") @TestDataPath("$PROJECT_ROOT") @@ -1984,6 +2362,124 @@ public class FirBlackBoxCodegenTestWithInlineScopesGenerated extends AbstractFir } } + @Nested + @TestMetadata("compiler/testData/codegen/box/boxing") + @TestDataPath("$PROJECT_ROOT") + public class Boxing { + @Test + public void testAllFilesPresentInBoxing() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/boxing"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("box_cache0.kt") + public void testBox_cache0() { + runTest("compiler/testData/codegen/box/boxing/box_cache0.kt"); + } + + @Test + @TestMetadata("boxing0.kt") + public void testBoxing0() { + runTest("compiler/testData/codegen/box/boxing/boxing0.kt"); + } + + @Test + @TestMetadata("boxing1.kt") + public void testBoxing1() { + runTest("compiler/testData/codegen/box/boxing/boxing1.kt"); + } + + @Test + @TestMetadata("boxing10.kt") + public void testBoxing10() { + runTest("compiler/testData/codegen/box/boxing/boxing10.kt"); + } + + @Test + @TestMetadata("boxing11.kt") + public void testBoxing11() { + runTest("compiler/testData/codegen/box/boxing/boxing11.kt"); + } + + @Test + @TestMetadata("boxing12.kt") + public void testBoxing12() { + runTest("compiler/testData/codegen/box/boxing/boxing12.kt"); + } + + @Test + @TestMetadata("boxing13.kt") + public void testBoxing13() { + runTest("compiler/testData/codegen/box/boxing/boxing13.kt"); + } + + @Test + @TestMetadata("boxing14.kt") + public void testBoxing14() { + runTest("compiler/testData/codegen/box/boxing/boxing14.kt"); + } + + @Test + @TestMetadata("boxing15.kt") + public void testBoxing15() { + runTest("compiler/testData/codegen/box/boxing/boxing15.kt"); + } + + @Test + @TestMetadata("boxing2.kt") + public void testBoxing2() { + runTest("compiler/testData/codegen/box/boxing/boxing2.kt"); + } + + @Test + @TestMetadata("boxing3.kt") + public void testBoxing3() { + runTest("compiler/testData/codegen/box/boxing/boxing3.kt"); + } + + @Test + @TestMetadata("boxing4.kt") + public void testBoxing4() { + runTest("compiler/testData/codegen/box/boxing/boxing4.kt"); + } + + @Test + @TestMetadata("boxing5.kt") + public void testBoxing5() { + runTest("compiler/testData/codegen/box/boxing/boxing5.kt"); + } + + @Test + @TestMetadata("boxing6.kt") + public void testBoxing6() { + runTest("compiler/testData/codegen/box/boxing/boxing6.kt"); + } + + @Test + @TestMetadata("boxing7.kt") + public void testBoxing7() { + runTest("compiler/testData/codegen/box/boxing/boxing7.kt"); + } + + @Test + @TestMetadata("boxing8.kt") + public void testBoxing8() { + runTest("compiler/testData/codegen/box/boxing/boxing8.kt"); + } + + @Test + @TestMetadata("boxing9.kt") + public void testBoxing9() { + runTest("compiler/testData/codegen/box/boxing/boxing9.kt"); + } + + @Test + @TestMetadata("kt53100_casts.kt") + public void testKt53100_casts() { + runTest("compiler/testData/codegen/box/boxing/kt53100_casts.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/boxingOptimization") @TestDataPath("$PROJECT_ROOT") @@ -2264,6 +2760,88 @@ public class FirBlackBoxCodegenTestWithInlineScopesGenerated extends AbstractFir } } + @Nested + @TestMetadata("compiler/testData/codegen/box/branching") + @TestDataPath("$PROJECT_ROOT") + public class Branching { + @Test + @TestMetadata("advanced_when2.kt") + public void testAdvanced_when2() { + runTest("compiler/testData/codegen/box/branching/advanced_when2.kt"); + } + + @Test + @TestMetadata("advanced_when5.kt") + public void testAdvanced_when5() { + runTest("compiler/testData/codegen/box/branching/advanced_when5.kt"); + } + + @Test + public void testAllFilesPresentInBranching() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/branching"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("if_else.kt") + public void testIf_else() { + runTest("compiler/testData/codegen/box/branching/if_else.kt"); + } + + @Test + @TestMetadata("when2.kt") + public void testWhen2() { + runTest("compiler/testData/codegen/box/branching/when2.kt"); + } + + @Test + @TestMetadata("when4.kt") + public void testWhen4() { + runTest("compiler/testData/codegen/box/branching/when4.kt"); + } + + @Test + @TestMetadata("when5.kt") + public void testWhen5() { + runTest("compiler/testData/codegen/box/branching/when5.kt"); + } + + @Test + @TestMetadata("when6.kt") + public void testWhen6() { + runTest("compiler/testData/codegen/box/branching/when6.kt"); + } + + @Test + @TestMetadata("when7.kt") + public void testWhen7() { + runTest("compiler/testData/codegen/box/branching/when7.kt"); + } + + @Test + @TestMetadata("when8.kt") + public void testWhen8() { + runTest("compiler/testData/codegen/box/branching/when8.kt"); + } + + @Test + @TestMetadata("when9.kt") + public void testWhen9() { + runTest("compiler/testData/codegen/box/branching/when9.kt"); + } + + @Test + @TestMetadata("when_through.kt") + public void testWhen_through() { + runTest("compiler/testData/codegen/box/branching/when_through.kt"); + } + + @Test + @TestMetadata("when_with_try1.kt") + public void testWhen_with_try1() { + runTest("compiler/testData/codegen/box/branching/when_with_try1.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/bridges") @TestDataPath("$PROJECT_ROOT") @@ -2525,6 +3103,18 @@ public class FirBlackBoxCodegenTestWithInlineScopesGenerated extends AbstractFir runTest("compiler/testData/codegen/box/bridges/methodWithDefaultParameter.kt"); } + @Test + @TestMetadata("multipleModules1.kt") + public void testMultipleModules1() { + runTest("compiler/testData/codegen/box/bridges/multipleModules1.kt"); + } + + @Test + @TestMetadata("multipleModules2.kt") + public void testMultipleModules2() { + runTest("compiler/testData/codegen/box/bridges/multipleModules2.kt"); + } + @Test @TestMetadata("nestedClassTypeParameters.kt") public void testNestedClassTypeParameters() { @@ -2591,6 +3181,12 @@ public class FirBlackBoxCodegenTestWithInlineScopesGenerated extends AbstractFir runTest("compiler/testData/codegen/box/bridges/propertySetter.kt"); } + @Test + @TestMetadata("returnTypeSignature.kt") + public void testReturnTypeSignature() { + runTest("compiler/testData/codegen/box/bridges/returnTypeSignature.kt"); + } + @Test @TestMetadata("simple.kt") public void testSimple() { @@ -2633,6 +3229,18 @@ public class FirBlackBoxCodegenTestWithInlineScopesGenerated extends AbstractFir runTest("compiler/testData/codegen/box/bridges/simpleUpperBound.kt"); } + @Test + @TestMetadata("special.kt") + public void testSpecial() { + runTest("compiler/testData/codegen/box/bridges/special.kt"); + } + + @Test + @TestMetadata("specialGeneric.kt") + public void testSpecialGeneric() { + runTest("compiler/testData/codegen/box/bridges/specialGeneric.kt"); + } + @Test @TestMetadata("strListContains.kt") public void testStrListContains() { @@ -2645,6 +3253,120 @@ public class FirBlackBoxCodegenTestWithInlineScopesGenerated extends AbstractFir runTest("compiler/testData/codegen/box/bridges/strListRemove.kt"); } + @Test + @TestMetadata("test0.kt") + public void testTest0() { + runTest("compiler/testData/codegen/box/bridges/test0.kt"); + } + + @Test + @TestMetadata("test1.kt") + public void testTest1() { + runTest("compiler/testData/codegen/box/bridges/test1.kt"); + } + + @Test + @TestMetadata("test10.kt") + public void testTest10() { + runTest("compiler/testData/codegen/box/bridges/test10.kt"); + } + + @Test + @TestMetadata("test11.kt") + public void testTest11() { + runTest("compiler/testData/codegen/box/bridges/test11.kt"); + } + + @Test + @TestMetadata("test12.kt") + public void testTest12() { + runTest("compiler/testData/codegen/box/bridges/test12.kt"); + } + + @Test + @TestMetadata("test13.kt") + public void testTest13() { + runTest("compiler/testData/codegen/box/bridges/test13.kt"); + } + + @Test + @TestMetadata("test14.kt") + public void testTest14() { + runTest("compiler/testData/codegen/box/bridges/test14.kt"); + } + + @Test + @TestMetadata("test15.kt") + public void testTest15() { + runTest("compiler/testData/codegen/box/bridges/test15.kt"); + } + + @Test + @TestMetadata("test16.kt") + public void testTest16() { + runTest("compiler/testData/codegen/box/bridges/test16.kt"); + } + + @Test + @TestMetadata("test17.kt") + public void testTest17() { + runTest("compiler/testData/codegen/box/bridges/test17.kt"); + } + + @Test + @TestMetadata("test18.kt") + public void testTest18() { + runTest("compiler/testData/codegen/box/bridges/test18.kt"); + } + + @Test + @TestMetadata("test2.kt") + public void testTest2() { + runTest("compiler/testData/codegen/box/bridges/test2.kt"); + } + + @Test + @TestMetadata("test3.kt") + public void testTest3() { + runTest("compiler/testData/codegen/box/bridges/test3.kt"); + } + + @Test + @TestMetadata("test4.kt") + public void testTest4() { + runTest("compiler/testData/codegen/box/bridges/test4.kt"); + } + + @Test + @TestMetadata("test5.kt") + public void testTest5() { + runTest("compiler/testData/codegen/box/bridges/test5.kt"); + } + + @Test + @TestMetadata("test6.kt") + public void testTest6() { + runTest("compiler/testData/codegen/box/bridges/test6.kt"); + } + + @Test + @TestMetadata("test7.kt") + public void testTest7() { + runTest("compiler/testData/codegen/box/bridges/test7.kt"); + } + + @Test + @TestMetadata("test8.kt") + public void testTest8() { + runTest("compiler/testData/codegen/box/bridges/test8.kt"); + } + + @Test + @TestMetadata("test9.kt") + public void testTest9() { + runTest("compiler/testData/codegen/box/bridges/test9.kt"); + } + @Test @TestMetadata("traitImplInheritsTraitImpl.kt") public void testTraitImplInheritsTraitImpl() { @@ -6324,6 +7046,46 @@ public class FirBlackBoxCodegenTestWithInlineScopesGenerated extends AbstractFir } } + @Nested + @TestMetadata("compiler/testData/codegen/box/classDelegation") + @TestDataPath("$PROJECT_ROOT") + public class ClassDelegation { + @Test + public void testAllFilesPresentInClassDelegation() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/classDelegation"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("generic.kt") + public void testGeneric() { + runTest("compiler/testData/codegen/box/classDelegation/generic.kt"); + } + + @Test + @TestMetadata("method.kt") + public void testMethod() { + runTest("compiler/testData/codegen/box/classDelegation/method.kt"); + } + + @Test + @TestMetadata("multipleModules.kt") + public void testMultipleModules() { + runTest("compiler/testData/codegen/box/classDelegation/multipleModules.kt"); + } + + @Test + @TestMetadata("property.kt") + public void testProperty() { + runTest("compiler/testData/codegen/box/classDelegation/property.kt"); + } + + @Test + @TestMetadata("withBridge.kt") + public void testWithBridge() { + runTest("compiler/testData/codegen/box/classDelegation/withBridge.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/classLiteral") @TestDataPath("$PROJECT_ROOT") @@ -9551,6 +10313,12 @@ public class FirBlackBoxCodegenTestWithInlineScopesGenerated extends AbstractFir runTest("compiler/testData/codegen/box/contracts/constructorArgument.kt"); } + @Test + @TestMetadata("contractForCast.kt") + public void testContractForCast() { + runTest("compiler/testData/codegen/box/contracts/contractForCast.kt"); + } + @Test @TestMetadata("destructuredVariable.kt") public void testDestructuredVariable() { @@ -9593,6 +10361,12 @@ public class FirBlackBoxCodegenTestWithInlineScopesGenerated extends AbstractFir runTest("compiler/testData/codegen/box/contracts/functionParameter.kt"); } + @Test + @TestMetadata("isNullString.kt") + public void testIsNullString() { + runTest("compiler/testData/codegen/box/contracts/isNullString.kt"); + } + @Test @TestMetadata("kt39374.kt") public void testKt39374() { @@ -9635,6 +10409,24 @@ public class FirBlackBoxCodegenTestWithInlineScopesGenerated extends AbstractFir runTest("compiler/testData/codegen/box/contracts/nestedLambdaInNonInlineCallExactlyOnce.kt"); } + @Test + @TestMetadata("nonNullSmartCast.kt") + public void testNonNullSmartCast() { + runTest("compiler/testData/codegen/box/contracts/nonNullSmartCast.kt"); + } + + @Test + @TestMetadata("require.kt") + public void testRequire() { + runTest("compiler/testData/codegen/box/contracts/require.kt"); + } + + @Test + @TestMetadata("runLambdaForVal.kt") + public void testRunLambdaForVal() { + runTest("compiler/testData/codegen/box/contracts/runLambdaForVal.kt"); + } + @Test @TestMetadata("valInWhen.kt") public void testValInWhen() { @@ -11082,6 +11874,124 @@ public class FirBlackBoxCodegenTestWithInlineScopesGenerated extends AbstractFir } } + @Nested + @TestMetadata("compiler/testData/codegen/box/controlflow") + @TestDataPath("$PROJECT_ROOT") + public class Controlflow { + @Test + public void testAllFilesPresentInControlflow() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/controlflow"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("break.kt") + public void testBreak() { + runTest("compiler/testData/codegen/box/controlflow/break.kt"); + } + + @Test + @TestMetadata("break1.kt") + public void testBreak1() { + runTest("compiler/testData/codegen/box/controlflow/break1.kt"); + } + + @Test + @TestMetadata("for_loops.kt") + public void testFor_loops() { + runTest("compiler/testData/codegen/box/controlflow/for_loops.kt"); + } + + @Test + @TestMetadata("for_loops_array_break_continue.kt") + public void testFor_loops_array_break_continue() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_array_break_continue.kt"); + } + + @Test + @TestMetadata("for_loops_array_indices.kt") + public void testFor_loops_array_indices() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_array_indices.kt"); + } + + @Test + @TestMetadata("for_loops_array_mutation.kt") + public void testFor_loops_array_mutation() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_array_mutation.kt"); + } + + @Test + @TestMetadata("for_loops_array_nested.kt") + public void testFor_loops_array_nested() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_array_nested.kt"); + } + + @Test + @TestMetadata("for_loops_array_nullable.kt") + public void testFor_loops_array_nullable() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_array_nullable.kt"); + } + + @Test + @TestMetadata("for_loops_array_side_effects.kt") + public void testFor_loops_array_side_effects() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_array_side_effects.kt"); + } + + @Test + @TestMetadata("for_loops_call_order.kt") + public void testFor_loops_call_order() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_call_order.kt"); + } + + @Test + @TestMetadata("for_loops_coroutines.kt") + public void testFor_loops_coroutines() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_coroutines.kt"); + } + + @Test + @TestMetadata("for_loops_empty_range.kt") + public void testFor_loops_empty_range() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_empty_range.kt"); + } + + @Test + @TestMetadata("for_loops_errors.kt") + public void testFor_loops_errors() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_errors.kt"); + } + + @Test + @TestMetadata("for_loops_let_with_nullable.kt") + public void testFor_loops_let_with_nullable() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_let_with_nullable.kt"); + } + + @Test + @TestMetadata("for_loops_nested.kt") + public void testFor_loops_nested() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_nested.kt"); + } + + @Test + @TestMetadata("for_loops_overflow.kt") + public void testFor_loops_overflow() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_overflow.kt"); + } + + @Test + @TestMetadata("for_loops_types.kt") + public void testFor_loops_types() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_types.kt"); + } + + @Test + @TestMetadata("unreachable1.kt") + public void testUnreachable1() { + runTest("compiler/testData/codegen/box/controlflow/unreachable1.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/coroutines") @TestDataPath("$PROJECT_ROOT") @@ -11103,6 +12013,12 @@ public class FirBlackBoxCodegenTestWithInlineScopesGenerated extends AbstractFir KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test + @TestMetadata("anonymousObject.kt") + public void testAnonymousObject() { + runTest("compiler/testData/codegen/box/coroutines/anonymousObject.kt"); + } + @Test @TestMetadata("async.kt") public void testAsync() { @@ -11199,12 +12115,144 @@ public class FirBlackBoxCodegenTestWithInlineScopesGenerated extends AbstractFir runTest("compiler/testData/codegen/box/coroutines/coercionToUnit.kt"); } + @Test + @TestMetadata("controlFlow_chain.kt") + public void testControlFlow_chain() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_chain.kt"); + } + + @Test + @TestMetadata("controlFlow_finally1.kt") + public void testControlFlow_finally1() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally1.kt"); + } + + @Test + @TestMetadata("controlFlow_finally2.kt") + public void testControlFlow_finally2() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally2.kt"); + } + + @Test + @TestMetadata("controlFlow_finally3.kt") + public void testControlFlow_finally3() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally3.kt"); + } + + @Test + @TestMetadata("controlFlow_finally4.kt") + public void testControlFlow_finally4() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally4.kt"); + } + + @Test + @TestMetadata("controlFlow_finally5.kt") + public void testControlFlow_finally5() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally5.kt"); + } + + @Test + @TestMetadata("controlFlow_finally6.kt") + public void testControlFlow_finally6() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally6.kt"); + } + + @Test + @TestMetadata("controlFlow_finally7.kt") + public void testControlFlow_finally7() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally7.kt"); + } + + @Test + @TestMetadata("controlFlow_if1.kt") + public void testControlFlow_if1() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_if1.kt"); + } + + @Test + @TestMetadata("controlFlow_if2.kt") + public void testControlFlow_if2() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_if2.kt"); + } + + @Test + @TestMetadata("controlFlow_inline1.kt") + public void testControlFlow_inline1() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_inline1.kt"); + } + + @Test + @TestMetadata("controlFlow_inline2.kt") + public void testControlFlow_inline2() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_inline2.kt"); + } + + @Test + @TestMetadata("controlFlow_inline3.kt") + public void testControlFlow_inline3() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_inline3.kt"); + } + + @Test + @TestMetadata("controlFlow_tryCatch1.kt") + public void testControlFlow_tryCatch1() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_tryCatch1.kt"); + } + + @Test + @TestMetadata("controlFlow_tryCatch2.kt") + public void testControlFlow_tryCatch2() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_tryCatch2.kt"); + } + + @Test + @TestMetadata("controlFlow_tryCatch3.kt") + public void testControlFlow_tryCatch3() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_tryCatch3.kt"); + } + + @Test + @TestMetadata("controlFlow_tryCatch4.kt") + public void testControlFlow_tryCatch4() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_tryCatch4.kt"); + } + + @Test + @TestMetadata("controlFlow_tryCatch5.kt") + public void testControlFlow_tryCatch5() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_tryCatch5.kt"); + } + + @Test + @TestMetadata("controlFlow_while1.kt") + public void testControlFlow_while1() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_while1.kt"); + } + + @Test + @TestMetadata("controlFlow_while2.kt") + public void testControlFlow_while2() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_while2.kt"); + } + @Test @TestMetadata("controllerAccessFromInnerLambda.kt") public void testControllerAccessFromInnerLambda() { runTest("compiler/testData/codegen/box/coroutines/controllerAccessFromInnerLambda.kt"); } + @Test + @TestMetadata("coroutineContext1.kt") + public void testCoroutineContext1() { + runTest("compiler/testData/codegen/box/coroutines/coroutineContext1.kt"); + } + + @Test + @TestMetadata("coroutineContext2.kt") + public void testCoroutineContext2() { + runTest("compiler/testData/codegen/box/coroutines/coroutineContext2.kt"); + } + @Test @TestMetadata("coroutineContextInInlinedLambda.kt") public void testCoroutineContextInInlinedLambda() { @@ -11217,6 +12265,12 @@ public class FirBlackBoxCodegenTestWithInlineScopesGenerated extends AbstractFir runTest("compiler/testData/codegen/box/coroutines/coroutineToString.kt"); } + @Test + @TestMetadata("correctOrder1.kt") + public void testCorrectOrder1() { + runTest("compiler/testData/codegen/box/coroutines/correctOrder1.kt"); + } + @Test @TestMetadata("createCoroutineSafe.kt") public void testCreateCoroutineSafe() { @@ -11253,6 +12307,18 @@ public class FirBlackBoxCodegenTestWithInlineScopesGenerated extends AbstractFir runTest("compiler/testData/codegen/box/coroutines/defaultParametersInSuspendWithJvmOverloads.kt"); } + @Test + @TestMetadata("degenerate1.kt") + public void testDegenerate1() { + runTest("compiler/testData/codegen/box/coroutines/degenerate1.kt"); + } + + @Test + @TestMetadata("degenerate2.kt") + public void testDegenerate2() { + runTest("compiler/testData/codegen/box/coroutines/degenerate2.kt"); + } + @Test @TestMetadata("delegatedSuspendMember.kt") public void testDelegatedSuspendMember() { @@ -11301,6 +12367,30 @@ public class FirBlackBoxCodegenTestWithInlineScopesGenerated extends AbstractFir runTest("compiler/testData/codegen/box/coroutines/falseUnitCoercion.kt"); } + @Test + @TestMetadata("functionReference_eqeq_name.kt") + public void testFunctionReference_eqeq_name() { + runTest("compiler/testData/codegen/box/coroutines/functionReference_eqeq_name.kt"); + } + + @Test + @TestMetadata("functionReference_invokeAsFunction.kt") + public void testFunctionReference_invokeAsFunction() { + runTest("compiler/testData/codegen/box/coroutines/functionReference_invokeAsFunction.kt"); + } + + @Test + @TestMetadata("functionReference_lambdaAsSuspendLambda.kt") + public void testFunctionReference_lambdaAsSuspendLambda() { + runTest("compiler/testData/codegen/box/coroutines/functionReference_lambdaAsSuspendLambda.kt"); + } + + @Test + @TestMetadata("functionReference_simple.kt") + public void testFunctionReference_simple() { + runTest("compiler/testData/codegen/box/coroutines/functionReference_simple.kt"); + } + @Test @TestMetadata("generate.kt") public void testGenerate() { @@ -11511,6 +12601,12 @@ public class FirBlackBoxCodegenTestWithInlineScopesGenerated extends AbstractFir runTest("compiler/testData/codegen/box/coroutines/kt38099.kt"); } + @Test + @TestMetadata("kt41394.kt") + public void testKt41394() { + runTest("compiler/testData/codegen/box/coroutines/kt41394.kt"); + } + @Test @TestMetadata("kt42028.kt") public void testKt42028() { @@ -11757,12 +12853,30 @@ public class FirBlackBoxCodegenTestWithInlineScopesGenerated extends AbstractFir runTest("compiler/testData/codegen/box/coroutines/returnByLabel.kt"); } + @Test + @TestMetadata("returnsNothing1.kt") + public void testReturnsNothing1() { + runTest("compiler/testData/codegen/box/coroutines/returnsNothing1.kt"); + } + + @Test + @TestMetadata("returnsUnit1.kt") + public void testReturnsUnit1() { + runTest("compiler/testData/codegen/box/coroutines/returnsUnit1.kt"); + } + @Test @TestMetadata("simple.kt") public void testSimple() { runTest("compiler/testData/codegen/box/coroutines/simple.kt"); } + @Test + @TestMetadata("simple2.kt") + public void testSimple2() { + runTest("compiler/testData/codegen/box/coroutines/simple2.kt"); + } + @Test @TestMetadata("simpleException.kt") public void testSimpleException() { @@ -11811,6 +12925,12 @@ public class FirBlackBoxCodegenTestWithInlineScopesGenerated extends AbstractFir runTest("compiler/testData/codegen/box/coroutines/suspendCallsInArguments.kt"); } + @Test + @TestMetadata("suspendConversion.kt") + public void testSuspendConversion() { + runTest("compiler/testData/codegen/box/coroutines/suspendConversion.kt"); + } + @Test @TestMetadata("suspendCoroutineFromStateMachine.kt") public void testSuspendCoroutineFromStateMachine() { @@ -12003,6 +13123,12 @@ public class FirBlackBoxCodegenTestWithInlineScopesGenerated extends AbstractFir runTest("compiler/testData/codegen/box/coroutines/varargCallFromSuspend.kt"); } + @Test + @TestMetadata("withReceiver.kt") + public void testWithReceiver() { + runTest("compiler/testData/codegen/box/coroutines/withReceiver.kt"); + } + @Nested @TestMetadata("compiler/testData/codegen/box/coroutines/bridges") @TestDataPath("$PROJECT_ROOT") @@ -14686,6 +15812,34 @@ public class FirBlackBoxCodegenTestWithInlineScopesGenerated extends AbstractFir } } + @Nested + @TestMetadata("compiler/testData/codegen/box/cycles") + @TestDataPath("$PROJECT_ROOT") + public class Cycles { + @Test + public void testAllFilesPresentInCycles() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cycles"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("cycle.kt") + public void testCycle() { + runTest("compiler/testData/codegen/box/cycles/cycle.kt"); + } + + @Test + @TestMetadata("cycle_do.kt") + public void testCycle_do() { + runTest("compiler/testData/codegen/box/cycles/cycle_do.kt"); + } + + @Test + @TestMetadata("cycle_for.kt") + public void testCycle_for() { + runTest("compiler/testData/codegen/box/cycles/cycle_for.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/dataClasses") @TestDataPath("$PROJECT_ROOT") @@ -15140,6 +16294,28 @@ public class FirBlackBoxCodegenTestWithInlineScopesGenerated extends AbstractFir } } + @Nested + @TestMetadata("compiler/testData/codegen/box/dataflow") + @TestDataPath("$PROJECT_ROOT") + public class Dataflow { + @Test + public void testAllFilesPresentInDataflow() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/dataflow"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("scope1.kt") + public void testScope1() { + runTest("compiler/testData/codegen/box/dataflow/scope1.kt"); + } + + @Test + @TestMetadata("uninitialized_val.kt") + public void testUninitialized_val() { + runTest("compiler/testData/codegen/box/dataflow/uninitialized_val.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/deadCodeElimination") @TestDataPath("$PROJECT_ROOT") @@ -15801,6 +16977,12 @@ public class FirBlackBoxCodegenTestWithInlineScopesGenerated extends AbstractFir runTest("compiler/testData/codegen/box/delegatedProperty/castSetParameter.kt"); } + @Test + @TestMetadata("correctFieldsOrder.kt") + public void testCorrectFieldsOrder() { + runTest("compiler/testData/codegen/box/delegatedProperty/correctFieldsOrder.kt"); + } + @Test @TestMetadata("delegateAsInnerClass.kt") public void testDelegateAsInnerClass() { @@ -15861,6 +17043,12 @@ public class FirBlackBoxCodegenTestWithInlineScopesGenerated extends AbstractFir runTest("compiler/testData/codegen/box/delegatedProperty/delegateWithPrivateSet.kt"); } + @Test + @TestMetadata("delegatedOverride.kt") + public void testDelegatedOverride() { + runTest("compiler/testData/codegen/box/delegatedProperty/delegatedOverride.kt"); + } + @Test @TestMetadata("delegatedPropertyInEnum.kt") public void testDelegatedPropertyInEnum() { @@ -16005,12 +17193,42 @@ public class FirBlackBoxCodegenTestWithInlineScopesGenerated extends AbstractFir runTest("compiler/testData/codegen/box/delegatedProperty/kt9712.kt"); } + @Test + @TestMetadata("lazy.kt") + public void testLazy() { + runTest("compiler/testData/codegen/box/delegatedProperty/lazy.kt"); + } + + @Test + @TestMetadata("local.kt") + public void testLocal() { + runTest("compiler/testData/codegen/box/delegatedProperty/local.kt"); + } + + @Test + @TestMetadata("map.kt") + public void testMap() { + runTest("compiler/testData/codegen/box/delegatedProperty/map.kt"); + } + @Test @TestMetadata("noTypeVariablesLeft.kt") public void testNoTypeVariablesLeft() { runTest("compiler/testData/codegen/box/delegatedProperty/noTypeVariablesLeft.kt"); } + @Test + @TestMetadata("observable.kt") + public void testObservable() { + runTest("compiler/testData/codegen/box/delegatedProperty/observable.kt"); + } + + @Test + @TestMetadata("packageLevel.kt") + public void testPackageLevel() { + runTest("compiler/testData/codegen/box/delegatedProperty/packageLevel.kt"); + } + @Test @TestMetadata("privateInSubClass.kt") public void testPrivateInSubClass() { @@ -16071,6 +17289,18 @@ public class FirBlackBoxCodegenTestWithInlineScopesGenerated extends AbstractFir runTest("compiler/testData/codegen/box/delegatedProperty/setAsExtensionFunInClass.kt"); } + @Test + @TestMetadata("simpleVal.kt") + public void testSimpleVal() { + runTest("compiler/testData/codegen/box/delegatedProperty/simpleVal.kt"); + } + + @Test + @TestMetadata("simpleVar.kt") + public void testSimpleVar() { + runTest("compiler/testData/codegen/box/delegatedProperty/simpleVar.kt"); + } + @Test @TestMetadata("stackOverflowOnCallFromGetValue.kt") public void testStackOverflowOnCallFromGetValue() { @@ -17040,6 +18270,40 @@ public class FirBlackBoxCodegenTestWithInlineScopesGenerated extends AbstractFir } } + @Nested + @TestMetadata("compiler/testData/codegen/box/devirtualization") + @TestDataPath("$PROJECT_ROOT") + public class Devirtualization { + @Test + public void testAllFilesPresentInDevirtualization() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/devirtualization"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("anonymousObject.kt") + public void testAnonymousObject() { + runTest("compiler/testData/codegen/box/devirtualization/anonymousObject.kt"); + } + + @Test + @TestMetadata("getter_looking_as_box_function.kt") + public void testGetter_looking_as_box_function() { + runTest("compiler/testData/codegen/box/devirtualization/getter_looking_as_box_function.kt"); + } + + @Test + @TestMetadata("inline_getter.kt") + public void testInline_getter() { + runTest("compiler/testData/codegen/box/devirtualization/inline_getter.kt"); + } + + @Test + @TestMetadata("lateinitInterface.kt") + public void testLateinitInterface() { + runTest("compiler/testData/codegen/box/devirtualization/lateinitInterface.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/diagnostics") @TestDataPath("$PROJECT_ROOT") @@ -17701,6 +18965,12 @@ public class FirBlackBoxCodegenTestWithInlineScopesGenerated extends AbstractFir runTest("compiler/testData/codegen/box/enum/companionAccessingEnumValue.kt"); } + @Test + @TestMetadata("companionObject.kt") + public void testCompanionObject() { + runTest("compiler/testData/codegen/box/enum/companionObject.kt"); + } + @Test @TestMetadata("companionObjectInEnum.kt") public void testCompanionObjectInEnum() { @@ -17887,6 +19157,12 @@ public class FirBlackBoxCodegenTestWithInlineScopesGenerated extends AbstractFir runTest("compiler/testData/codegen/box/enum/enumWithLambdaParameter.kt"); } + @Test + @TestMetadata("enum_equals.kt") + public void testEnum_equals() { + runTest("compiler/testData/codegen/box/enum/enum_equals.kt"); + } + @Test @TestMetadata("getEnumEntityByOrdinal.kt") public void testGetEnumEntityByOrdinal() { @@ -17959,6 +19235,18 @@ public class FirBlackBoxCodegenTestWithInlineScopesGenerated extends AbstractFir runTest("compiler/testData/codegen/box/enum/innerWithExistingClassObject.kt"); } + @Test + @TestMetadata("interfaceCallNoEntryClass.kt") + public void testInterfaceCallNoEntryClass() { + runTest("compiler/testData/codegen/box/enum/interfaceCallNoEntryClass.kt"); + } + + @Test + @TestMetadata("interfaceCallWithEntryClass.kt") + public void testInterfaceCallWithEntryClass() { + runTest("compiler/testData/codegen/box/enum/interfaceCallWithEntryClass.kt"); + } + @Test @TestMetadata("javaClassWithNestedEnum.kt") public void testJavaClassWithNestedEnum() { @@ -18049,6 +19337,12 @@ public class FirBlackBoxCodegenTestWithInlineScopesGenerated extends AbstractFir runTest("compiler/testData/codegen/box/enum/kt2350.kt"); } + @Test + @TestMetadata("kt38540.kt") + public void testKt38540() { + runTest("compiler/testData/codegen/box/enum/kt38540.kt"); + } + @Test @TestMetadata("kt38996.kt") public void testKt38996() { @@ -18145,6 +19439,18 @@ public class FirBlackBoxCodegenTestWithInlineScopesGenerated extends AbstractFir runTest("compiler/testData/codegen/box/enum/kt9711_2.kt"); } + @Test + @TestMetadata("lambdaInDefault.kt") + public void testLambdaInDefault() { + runTest("compiler/testData/codegen/box/enum/lambdaInDefault.kt"); + } + + @Test + @TestMetadata("loop.kt") + public void testLoop() { + runTest("compiler/testData/codegen/box/enum/loop.kt"); + } + @Test @TestMetadata("manyDefaultParameters.kt") public void testManyDefaultParameters() { @@ -18157,6 +19463,12 @@ public class FirBlackBoxCodegenTestWithInlineScopesGenerated extends AbstractFir runTest("compiler/testData/codegen/box/enum/modifierFlags.kt"); } + @Test + @TestMetadata("multipleModules.kt") + public void testMultipleModules() { + runTest("compiler/testData/codegen/box/enum/multipleModules.kt"); + } + @Test @TestMetadata("nameClashWithCompanion.kt") public void testNameClashWithCompanion() { @@ -18169,12 +19481,24 @@ public class FirBlackBoxCodegenTestWithInlineScopesGenerated extends AbstractFir runTest("compiler/testData/codegen/box/enum/nameConflict.kt"); } + @Test + @TestMetadata("nested.kt") + public void testNested() { + runTest("compiler/testData/codegen/box/enum/nested.kt"); + } + @Test @TestMetadata("noClassForSimpleEnum.kt") public void testNoClassForSimpleEnum() { runTest("compiler/testData/codegen/box/enum/noClassForSimpleEnum.kt"); } + @Test + @TestMetadata("openMethodNoOverrides.kt") + public void testOpenMethodNoOverrides() { + runTest("compiler/testData/codegen/box/enum/openMethodNoOverrides.kt"); + } + @Test @TestMetadata("ordinal.kt") public void testOrdinal() { @@ -18205,6 +19529,12 @@ public class FirBlackBoxCodegenTestWithInlineScopesGenerated extends AbstractFir runTest("compiler/testData/codegen/box/enum/refToThis.kt"); } + @Test + @TestMetadata("reorderedArguments.kt") + public void testReorderedArguments() { + runTest("compiler/testData/codegen/box/enum/reorderedArguments.kt"); + } + @Test @TestMetadata("simple.kt") public void testSimple() { @@ -18259,18 +19589,66 @@ public class FirBlackBoxCodegenTestWithInlineScopesGenerated extends AbstractFir runTest("compiler/testData/codegen/box/enum/superCallInEnumLiteral.kt"); } + @Test + @TestMetadata("switchLowering.kt") + public void testSwitchLowering() { + runTest("compiler/testData/codegen/box/enum/switchLowering.kt"); + } + + @Test + @TestMetadata("test0.kt") + public void testTest0() { + runTest("compiler/testData/codegen/box/enum/test0.kt"); + } + + @Test + @TestMetadata("test1.kt") + public void testTest1() { + runTest("compiler/testData/codegen/box/enum/test1.kt"); + } + @Test @TestMetadata("toString.kt") public void testToString() { runTest("compiler/testData/codegen/box/enum/toString.kt"); } + @Test + @TestMetadata("vCallNoEntryClass.kt") + public void testVCallNoEntryClass() { + runTest("compiler/testData/codegen/box/enum/vCallNoEntryClass.kt"); + } + + @Test + @TestMetadata("vCallWithEntryClass.kt") + public void testVCallWithEntryClass() { + runTest("compiler/testData/codegen/box/enum/vCallWithEntryClass.kt"); + } + + @Test + @TestMetadata("valueOf2.kt") + public void testValueOf2() { + runTest("compiler/testData/codegen/box/enum/valueOf2.kt"); + } + @Test @TestMetadata("valueof.kt") public void testValueof() { runTest("compiler/testData/codegen/box/enum/valueof.kt"); } + @Test + @TestMetadata("values.kt") + public void testValues() { + runTest("compiler/testData/codegen/box/enum/values.kt"); + } + + @Test + @TestMetadata("varargParam.kt") + public void testVarargParam() { + runTest("compiler/testData/codegen/box/enum/varargParam.kt"); + } + @Test @TestMetadata("whenInObject.kt") public void testWhenInObject() { @@ -18346,6 +19724,112 @@ public class FirBlackBoxCodegenTestWithInlineScopesGenerated extends AbstractFir } } + @Nested + @TestMetadata("compiler/testData/codegen/box/escapeAnalysis") + @TestDataPath("$PROJECT_ROOT") + public class EscapeAnalysis { + @Test + public void testAllFilesPresentInEscapeAnalysis() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/escapeAnalysis"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("recursion.kt") + public void testRecursion() { + runTest("compiler/testData/codegen/box/escapeAnalysis/recursion.kt"); + } + + @Test + @TestMetadata("stack_array.kt") + public void testStack_array() { + runTest("compiler/testData/codegen/box/escapeAnalysis/stack_array.kt"); + } + + @Test + @TestMetadata("test1.kt") + public void testTest1() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test1.kt"); + } + + @Test + @TestMetadata("test10.kt") + public void testTest10() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test10.kt"); + } + + @Test + @TestMetadata("test11.kt") + public void testTest11() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test11.kt"); + } + + @Test + @TestMetadata("test12.kt") + public void testTest12() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test12.kt"); + } + + @Test + @TestMetadata("test13.kt") + public void testTest13() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test13.kt"); + } + + @Test + @TestMetadata("test2.kt") + public void testTest2() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test2.kt"); + } + + @Test + @TestMetadata("test3.kt") + public void testTest3() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test3.kt"); + } + + @Test + @TestMetadata("test4.kt") + public void testTest4() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test4.kt"); + } + + @Test + @TestMetadata("test5.kt") + public void testTest5() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test5.kt"); + } + + @Test + @TestMetadata("test6.kt") + public void testTest6() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test6.kt"); + } + + @Test + @TestMetadata("test7.kt") + public void testTest7() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test7.kt"); + } + + @Test + @TestMetadata("test8.kt") + public void testTest8() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test8.kt"); + } + + @Test + @TestMetadata("test9.kt") + public void testTest9() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test9.kt"); + } + + @Test + @TestMetadata("zeroOutObjectOnAlloc.kt") + public void testZeroOutObjectOnAlloc() { + runTest("compiler/testData/codegen/box/escapeAnalysis/zeroOutObjectOnAlloc.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/evaluate") @TestDataPath("$PROJECT_ROOT") @@ -18458,6 +19942,58 @@ public class FirBlackBoxCodegenTestWithInlineScopesGenerated extends AbstractFir } } + @Nested + @TestMetadata("compiler/testData/codegen/box/exceptions") + @TestDataPath("$PROJECT_ROOT") + public class Exceptions { + @Test + public void testAllFilesPresentInExceptions() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/exceptions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("catch1.kt") + public void testCatch1() { + runTest("compiler/testData/codegen/box/exceptions/catch1.kt"); + } + + @Test + @TestMetadata("catch2.kt") + public void testCatch2() { + runTest("compiler/testData/codegen/box/exceptions/catch2.kt"); + } + + @Test + @TestMetadata("catch7.kt") + public void testCatch7() { + runTest("compiler/testData/codegen/box/exceptions/catch7.kt"); + } + + @Test + @TestMetadata("extend0.kt") + public void testExtend0() { + runTest("compiler/testData/codegen/box/exceptions/extend0.kt"); + } + + @Test + @TestMetadata("rethrow.kt") + public void testRethrow() { + runTest("compiler/testData/codegen/box/exceptions/rethrow.kt"); + } + + @Test + @TestMetadata("throw0.kt") + public void testThrow0() { + runTest("compiler/testData/codegen/box/exceptions/throw0.kt"); + } + + @Test + @TestMetadata("throw_from_catch.kt") + public void testThrow_from_catch() { + runTest("compiler/testData/codegen/box/exceptions/throw_from_catch.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/exclExcl") @TestDataPath("$PROJECT_ROOT") @@ -20351,6 +21887,12 @@ public class FirBlackBoxCodegenTestWithInlineScopesGenerated extends AbstractFir runTest("compiler/testData/codegen/box/funInterface/funInterfaceWithReceiver.kt"); } + @Test + @TestMetadata("implIsNotFunction.kt") + public void testImplIsNotFunction() { + runTest("compiler/testData/codegen/box/funInterface/implIsNotFunction.kt"); + } + @Test @TestMetadata("inlinedSamWrapper.kt") public void testInlinedSamWrapper() { @@ -20399,6 +21941,18 @@ public class FirBlackBoxCodegenTestWithInlineScopesGenerated extends AbstractFir runTest("compiler/testData/codegen/box/funInterface/kt46908_functionSupertype.kt"); } + @Test + @TestMetadata("kt49384.kt") + public void testKt49384() { + runTest("compiler/testData/codegen/box/funInterface/kt49384.kt"); + } + + @Test + @TestMetadata("kt49384_getSame.kt") + public void testKt49384_getSame() { + runTest("compiler/testData/codegen/box/funInterface/kt49384_getSame.kt"); + } + @Test @TestMetadata("multimodule.kt") public void testMultimodule() { @@ -20417,6 +21971,12 @@ public class FirBlackBoxCodegenTestWithInlineScopesGenerated extends AbstractFir runTest("compiler/testData/codegen/box/funInterface/nonAbstractMethod.kt"); } + @Test + @TestMetadata("nonTrivialProjectionInSuperType.kt") + public void testNonTrivialProjectionInSuperType() { + runTest("compiler/testData/codegen/box/funInterface/nonTrivialProjectionInSuperType.kt"); + } + @Test @TestMetadata("nullableSam.kt") public void testNullableSam() { @@ -20506,6 +22066,232 @@ public class FirBlackBoxCodegenTestWithInlineScopesGenerated extends AbstractFir } } + @Nested + @TestMetadata("compiler/testData/codegen/box/function") + @TestDataPath("$PROJECT_ROOT") + public class Function { + @Test + public void testAllFilesPresentInFunction() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/function"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("arithmetic.kt") + public void testArithmetic() { + runTest("compiler/testData/codegen/box/function/arithmetic.kt"); + } + + @Test + @TestMetadata("boolean.kt") + public void testBoolean() { + runTest("compiler/testData/codegen/box/function/boolean.kt"); + } + + @Test + @TestMetadata("defaults.kt") + public void testDefaults() { + runTest("compiler/testData/codegen/box/function/defaults.kt"); + } + + @Test + @TestMetadata("defaults1.kt") + public void testDefaults1() { + runTest("compiler/testData/codegen/box/function/defaults1.kt"); + } + + @Test + @TestMetadata("defaults10.kt") + public void testDefaults10() { + runTest("compiler/testData/codegen/box/function/defaults10.kt"); + } + + @Test + @TestMetadata("defaults2.kt") + public void testDefaults2() { + runTest("compiler/testData/codegen/box/function/defaults2.kt"); + } + + @Test + @TestMetadata("defaults3.kt") + public void testDefaults3() { + runTest("compiler/testData/codegen/box/function/defaults3.kt"); + } + + @Test + @TestMetadata("defaults4.kt") + public void testDefaults4() { + runTest("compiler/testData/codegen/box/function/defaults4.kt"); + } + + @Test + @TestMetadata("defaults5.kt") + public void testDefaults5() { + runTest("compiler/testData/codegen/box/function/defaults5.kt"); + } + + @Test + @TestMetadata("defaults6.kt") + public void testDefaults6() { + runTest("compiler/testData/codegen/box/function/defaults6.kt"); + } + + @Test + @TestMetadata("defaults7.kt") + public void testDefaults7() { + runTest("compiler/testData/codegen/box/function/defaults7.kt"); + } + + @Test + @TestMetadata("defaults8.kt") + public void testDefaults8() { + runTest("compiler/testData/codegen/box/function/defaults8.kt"); + } + + @Test + @TestMetadata("defaults9.kt") + public void testDefaults9() { + runTest("compiler/testData/codegen/box/function/defaults9.kt"); + } + + @Test + @TestMetadata("defaultsFromFakeOverride.kt") + public void testDefaultsFromFakeOverride() { + runTest("compiler/testData/codegen/box/function/defaultsFromFakeOverride.kt"); + } + + @Test + @TestMetadata("defaultsWithInlineClasses.kt") + public void testDefaultsWithInlineClasses() { + runTest("compiler/testData/codegen/box/function/defaultsWithInlineClasses.kt"); + } + + @Test + @TestMetadata("defaultsWithVarArg1.kt") + public void testDefaultsWithVarArg1() { + runTest("compiler/testData/codegen/box/function/defaultsWithVarArg1.kt"); + } + + @Test + @TestMetadata("defaultsWithVarArg2.kt") + public void testDefaultsWithVarArg2() { + runTest("compiler/testData/codegen/box/function/defaultsWithVarArg2.kt"); + } + + @Test + @TestMetadata("eqeq.kt") + public void testEqeq() { + runTest("compiler/testData/codegen/box/function/eqeq.kt"); + } + + @Test + @TestMetadata("extension.kt") + public void testExtension() { + runTest("compiler/testData/codegen/box/function/extension.kt"); + } + + @Test + @TestMetadata("intrinsic.kt") + public void testIntrinsic() { + runTest("compiler/testData/codegen/box/function/intrinsic.kt"); + } + + @Test + @TestMetadata("localFunction.kt") + public void testLocalFunction() { + runTest("compiler/testData/codegen/box/function/localFunction.kt"); + } + + @Test + @TestMetadata("localFunction2.kt") + public void testLocalFunction2() { + runTest("compiler/testData/codegen/box/function/localFunction2.kt"); + } + + @Test + @TestMetadata("localFunction3.kt") + public void testLocalFunction3() { + runTest("compiler/testData/codegen/box/function/localFunction3.kt"); + } + + @Test + @TestMetadata("minus_eq.kt") + public void testMinus_eq() { + runTest("compiler/testData/codegen/box/function/minus_eq.kt"); + } + + @Test + @TestMetadata("named.kt") + public void testNamed() { + runTest("compiler/testData/codegen/box/function/named.kt"); + } + + @Test + @TestMetadata("nothingNReturningSafeCall.kt") + public void testNothingNReturningSafeCall() { + runTest("compiler/testData/codegen/box/function/nothingNReturningSafeCall.kt"); + } + + @Test + @TestMetadata("plus_eq.kt") + public void testPlus_eq() { + runTest("compiler/testData/codegen/box/function/plus_eq.kt"); + } + + @Test + @TestMetadata("referenceBigArity.kt") + public void testReferenceBigArity() { + runTest("compiler/testData/codegen/box/function/referenceBigArity.kt"); + } + + @Test + @TestMetadata("sum.kt") + public void testSum() { + runTest("compiler/testData/codegen/box/function/sum.kt"); + } + + @Test + @TestMetadata("sum_3const.kt") + public void testSum_3const() { + runTest("compiler/testData/codegen/box/function/sum_3const.kt"); + } + + @Test + @TestMetadata("sum_foo_bar.kt") + public void testSum_foo_bar() { + runTest("compiler/testData/codegen/box/function/sum_foo_bar.kt"); + } + + @Test + @TestMetadata("sum_func.kt") + public void testSum_func() { + runTest("compiler/testData/codegen/box/function/sum_func.kt"); + } + + @Test + @TestMetadata("sum_imm.kt") + public void testSum_imm() { + runTest("compiler/testData/codegen/box/function/sum_imm.kt"); + } + + @Test + @TestMetadata("sum_mixed.kt") + public void testSum_mixed() { + runTest("compiler/testData/codegen/box/function/sum_mixed.kt"); + } + + @Test + @TestMetadata("sum_silly.kt") + public void testSum_silly() { + runTest("compiler/testData/codegen/box/function/sum_silly.kt"); + } + + @Test + @TestMetadata("unreachableStatementAfterReturn.kt") + public void testUnreachableStatementAfterReturn() { + runTest("compiler/testData/codegen/box/function/unreachableStatementAfterReturn.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/functions") @TestDataPath("$PROJECT_ROOT") @@ -22408,6 +24194,474 @@ public class FirBlackBoxCodegenTestWithInlineScopesGenerated extends AbstractFir } } + @Nested + @TestMetadata("compiler/testData/codegen/box/initializers") + @TestDataPath("$PROJECT_ROOT") + public class Initializers { + @Test + public void testAllFilesPresentInInitializers() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/initializers"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("correctOrder1.kt") + public void testCorrectOrder1() { + runTest("compiler/testData/codegen/box/initializers/correctOrder1.kt"); + } + + @Test + @TestMetadata("correctOrder2.kt") + public void testCorrectOrder2() { + runTest("compiler/testData/codegen/box/initializers/correctOrder2.kt"); + } + + @Test + @TestMetadata("initializers0.kt") + public void testInitializers0() { + runTest("compiler/testData/codegen/box/initializers/initializers0.kt"); + } + + @Test + @TestMetadata("initializers1.kt") + public void testInitializers1() { + runTest("compiler/testData/codegen/box/initializers/initializers1.kt"); + } + + @Test + @TestMetadata("initializers2.kt") + public void testInitializers2() { + runTest("compiler/testData/codegen/box/initializers/initializers2.kt"); + } + + @Test + @TestMetadata("initializers3.kt") + public void testInitializers3() { + runTest("compiler/testData/codegen/box/initializers/initializers3.kt"); + } + + @Test + @TestMetadata("initializers4.kt") + public void testInitializers4() { + runTest("compiler/testData/codegen/box/initializers/initializers4.kt"); + } + + @Test + @TestMetadata("initializers5.kt") + public void testInitializers5() { + runTest("compiler/testData/codegen/box/initializers/initializers5.kt"); + } + + @Test + @TestMetadata("initializers7.kt") + public void testInitializers7() { + runTest("compiler/testData/codegen/box/initializers/initializers7.kt"); + } + + @Test + @TestMetadata("initializers8.kt") + public void testInitializers8() { + runTest("compiler/testData/codegen/box/initializers/initializers8.kt"); + } + + @Test + @TestMetadata("multipleModules1.kt") + public void testMultipleModules1() { + runTest("compiler/testData/codegen/box/initializers/multipleModules1.kt"); + } + + @Test + @TestMetadata("object.kt") + public void testObject() { + runTest("compiler/testData/codegen/box/initializers/object.kt"); + } + + @Test + @TestMetadata("sharedVarInInitBlock.kt") + public void testSharedVarInInitBlock() { + runTest("compiler/testData/codegen/box/initializers/sharedVarInInitBlock.kt"); + } + + @Test + @TestMetadata("static_arrays.kt") + public void testStatic_arrays() { + runTest("compiler/testData/codegen/box/initializers/static_arrays.kt"); + } + + @Test + @TestMetadata("static_list.kt") + public void testStatic_list() { + runTest("compiler/testData/codegen/box/initializers/static_list.kt"); + } + + @Test + @TestMetadata("static_smallIntIdentity.kt") + public void testStatic_smallIntIdentity() { + runTest("compiler/testData/codegen/box/initializers/static_smallIntIdentity.kt"); + } + + @Test + @TestMetadata("static_varargChange.kt") + public void testStatic_varargChange() { + runTest("compiler/testData/codegen/box/initializers/static_varargChange.kt"); + } + + @Test + @TestMetadata("throw1.kt") + public void testThrow1() { + runTest("compiler/testData/codegen/box/initializers/throw1.kt"); + } + + @Test + @TestMetadata("throw2.kt") + public void testThrow2() { + runTest("compiler/testData/codegen/box/initializers/throw2.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/initializers/files") + @TestDataPath("$PROJECT_ROOT") + public class Files { + @Test + public void testAllFilesPresentInFiles() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/initializers/files"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("globalInitedAfterAccessingFile.kt") + public void testGlobalInitedAfterAccessingFile() { + runTest("compiler/testData/codegen/box/initializers/files/globalInitedAfterAccessingFile.kt"); + } + + @Test + @TestMetadata("globalNotInitedAfterAccessingClassInternals.kt") + public void testGlobalNotInitedAfterAccessingClassInternals() { + runTest("compiler/testData/codegen/box/initializers/files/globalNotInitedAfterAccessingClassInternals.kt"); + } + + @Test + @TestMetadata("simple.kt") + public void testSimple() { + runTest("compiler/testData/codegen/box/initializers/files/simple.kt"); + } + + @Test + @TestMetadata("simpleMultiModule.kt") + public void testSimpleMultiModule() { + runTest("compiler/testData/codegen/box/initializers/files/simpleMultiModule.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/inline") + @TestDataPath("$PROJECT_ROOT") + public class Inline { + @Test + public void testAllFilesPresentInInline() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inline"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("changingCapturedLocal.kt") + public void testChangingCapturedLocal() { + runTest("compiler/testData/codegen/box/inline/changingCapturedLocal.kt"); + } + + @Test + @TestMetadata("classDeclarationInsideInline.kt") + public void testClassDeclarationInsideInline() { + runTest("compiler/testData/codegen/box/inline/classDeclarationInsideInline.kt"); + } + + @Test + @TestMetadata("coercionToUnit.kt") + public void testCoercionToUnit() { + runTest("compiler/testData/codegen/box/inline/coercionToUnit.kt"); + } + + @Test + @TestMetadata("correctOrderFunctionReference.kt") + public void testCorrectOrderFunctionReference() { + runTest("compiler/testData/codegen/box/inline/correctOrderFunctionReference.kt"); + } + + @Test + @TestMetadata("defaultArgs.kt") + public void testDefaultArgs() { + runTest("compiler/testData/codegen/box/inline/defaultArgs.kt"); + } + + @Test + @TestMetadata("defaultArgsMultipleModules.kt") + public void testDefaultArgsMultipleModules() { + runTest("compiler/testData/codegen/box/inline/defaultArgsMultipleModules.kt"); + } + + @Test + @TestMetadata("genericFunctionReference.kt") + public void testGenericFunctionReference() { + runTest("compiler/testData/codegen/box/inline/genericFunctionReference.kt"); + } + + @Test + @TestMetadata("getClass.kt") + public void testGetClass() { + runTest("compiler/testData/codegen/box/inline/getClass.kt"); + } + + @Test + @TestMetadata("inline0.kt") + public void testInline0() { + runTest("compiler/testData/codegen/box/inline/inline0.kt"); + } + + @Test + @TestMetadata("inline1.kt") + public void testInline1() { + runTest("compiler/testData/codegen/box/inline/inline1.kt"); + } + + @Test + @TestMetadata("inline10.kt") + public void testInline10() { + runTest("compiler/testData/codegen/box/inline/inline10.kt"); + } + + @Test + @TestMetadata("inline11.kt") + public void testInline11() { + runTest("compiler/testData/codegen/box/inline/inline11.kt"); + } + + @Test + @TestMetadata("inline12.kt") + public void testInline12() { + runTest("compiler/testData/codegen/box/inline/inline12.kt"); + } + + @Test + @TestMetadata("inline13.kt") + public void testInline13() { + runTest("compiler/testData/codegen/box/inline/inline13.kt"); + } + + @Test + @TestMetadata("inline14.kt") + public void testInline14() { + runTest("compiler/testData/codegen/box/inline/inline14.kt"); + } + + @Test + @TestMetadata("inline15.kt") + public void testInline15() { + runTest("compiler/testData/codegen/box/inline/inline15.kt"); + } + + @Test + @TestMetadata("inline16.kt") + public void testInline16() { + runTest("compiler/testData/codegen/box/inline/inline16.kt"); + } + + @Test + @TestMetadata("inline17.kt") + public void testInline17() { + runTest("compiler/testData/codegen/box/inline/inline17.kt"); + } + + @Test + @TestMetadata("inline19.kt") + public void testInline19() { + runTest("compiler/testData/codegen/box/inline/inline19.kt"); + } + + @Test + @TestMetadata("inline2.kt") + public void testInline2() { + runTest("compiler/testData/codegen/box/inline/inline2.kt"); + } + + @Test + @TestMetadata("inline20.kt") + public void testInline20() { + runTest("compiler/testData/codegen/box/inline/inline20.kt"); + } + + @Test + @TestMetadata("inline21.kt") + public void testInline21() { + runTest("compiler/testData/codegen/box/inline/inline21.kt"); + } + + @Test + @TestMetadata("inline22.kt") + public void testInline22() { + runTest("compiler/testData/codegen/box/inline/inline22.kt"); + } + + @Test + @TestMetadata("inline23.kt") + public void testInline23() { + runTest("compiler/testData/codegen/box/inline/inline23.kt"); + } + + @Test + @TestMetadata("inline24.kt") + public void testInline24() { + runTest("compiler/testData/codegen/box/inline/inline24.kt"); + } + + @Test + @TestMetadata("inline25.kt") + public void testInline25() { + runTest("compiler/testData/codegen/box/inline/inline25.kt"); + } + + @Test + @TestMetadata("inline26.kt") + public void testInline26() { + runTest("compiler/testData/codegen/box/inline/inline26.kt"); + } + + @Test + @TestMetadata("inline3.kt") + public void testInline3() { + runTest("compiler/testData/codegen/box/inline/inline3.kt"); + } + + @Test + @TestMetadata("inline4.kt") + public void testInline4() { + runTest("compiler/testData/codegen/box/inline/inline4.kt"); + } + + @Test + @TestMetadata("inline5.kt") + public void testInline5() { + runTest("compiler/testData/codegen/box/inline/inline5.kt"); + } + + @Test + @TestMetadata("inline6.kt") + public void testInline6() { + runTest("compiler/testData/codegen/box/inline/inline6.kt"); + } + + @Test + @TestMetadata("inline7.kt") + public void testInline7() { + runTest("compiler/testData/codegen/box/inline/inline7.kt"); + } + + @Test + @TestMetadata("inline8.kt") + public void testInline8() { + runTest("compiler/testData/codegen/box/inline/inline8.kt"); + } + + @Test + @TestMetadata("inline9.kt") + public void testInline9() { + runTest("compiler/testData/codegen/box/inline/inline9.kt"); + } + + @Test + @TestMetadata("inlineCtor.kt") + public void testInlineCtor() { + runTest("compiler/testData/codegen/box/inline/inlineCtor.kt"); + } + + @Test + @TestMetadata("innerInlineFunCapturesOuter.kt") + public void testInnerInlineFunCapturesOuter() { + runTest("compiler/testData/codegen/box/inline/innerInlineFunCapturesOuter.kt"); + } + + @Test + @TestMetadata("lambdaAsAny.kt") + public void testLambdaAsAny() { + runTest("compiler/testData/codegen/box/inline/lambdaAsAny.kt"); + } + + @Test + @TestMetadata("lambdaInDefaultValue.kt") + public void testLambdaInDefaultValue() { + runTest("compiler/testData/codegen/box/inline/lambdaInDefaultValue.kt"); + } + + @Test + @TestMetadata("lateinitProperty.kt") + public void testLateinitProperty() { + runTest("compiler/testData/codegen/box/inline/lateinitProperty.kt"); + } + + @Test + @TestMetadata("localFunctionInInitializerBlock.kt") + public void testLocalFunctionInInitializerBlock() { + runTest("compiler/testData/codegen/box/inline/localFunctionInInitializerBlock.kt"); + } + + @Test + @TestMetadata("localObjectReturnedFromWhen.kt") + public void testLocalObjectReturnedFromWhen() { + runTest("compiler/testData/codegen/box/inline/localObjectReturnedFromWhen.kt"); + } + + @Test + @TestMetadata("propertyAccessorInline.kt") + public void testPropertyAccessorInline() { + runTest("compiler/testData/codegen/box/inline/propertyAccessorInline.kt"); + } + + @Test + @TestMetadata("redundantCoercionsCleaner.kt") + public void testRedundantCoercionsCleaner() { + runTest("compiler/testData/codegen/box/inline/redundantCoercionsCleaner.kt"); + } + + @Test + @TestMetadata("redundantCoercionsCleanerKT48876.kt") + public void testRedundantCoercionsCleanerKT48876() { + runTest("compiler/testData/codegen/box/inline/redundantCoercionsCleanerKT48876.kt"); + } + + @Test + @TestMetadata("redundantCoercionsCleanerKT49356.kt") + public void testRedundantCoercionsCleanerKT49356() { + runTest("compiler/testData/codegen/box/inline/redundantCoercionsCleanerKT49356.kt"); + } + + @Test + @TestMetadata("returnLocalClassFromBlock.kt") + public void testReturnLocalClassFromBlock() { + runTest("compiler/testData/codegen/box/inline/returnLocalClassFromBlock.kt"); + } + + @Test + @TestMetadata("sharedVar.kt") + public void testSharedVar() { + runTest("compiler/testData/codegen/box/inline/sharedVar.kt"); + } + + @Test + @TestMetadata("statementAsLastExprInBlock.kt") + public void testStatementAsLastExprInBlock() { + runTest("compiler/testData/codegen/box/inline/statementAsLastExprInBlock.kt"); + } + + @Test + @TestMetadata("twiceInlinedObject.kt") + public void testTwiceInlinedObject() { + runTest("compiler/testData/codegen/box/inline/twiceInlinedObject.kt"); + } + + @Test + @TestMetadata("typeSubstitutionInFakeOverride.kt") + public void testTypeSubstitutionInFakeOverride() { + runTest("compiler/testData/codegen/box/inline/typeSubstitutionInFakeOverride.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/inlineArgsInPlace") @TestDataPath("$PROJECT_ROOT") @@ -22490,6 +24744,40 @@ public class FirBlackBoxCodegenTestWithInlineScopesGenerated extends AbstractFir } } + @Nested + @TestMetadata("compiler/testData/codegen/box/inlineClass") + @TestDataPath("$PROJECT_ROOT") + public class InlineClass { + @Test + public void testAllFilesPresentInInlineClass() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineClass"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("customEquals.kt") + public void testCustomEquals() { + runTest("compiler/testData/codegen/box/inlineClass/customEquals.kt"); + } + + @Test + @TestMetadata("defaultEquals.kt") + public void testDefaultEquals() { + runTest("compiler/testData/codegen/box/inlineClass/defaultEquals.kt"); + } + + @Test + @TestMetadata("nestedInlineClasses.kt") + public void testNestedInlineClasses() { + runTest("compiler/testData/codegen/box/inlineClass/nestedInlineClasses.kt"); + } + + @Test + @TestMetadata("secondaryConstructorWithGenerics.kt") + public void testSecondaryConstructorWithGenerics() { + runTest("compiler/testData/codegen/box/inlineClass/secondaryConstructorWithGenerics.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/inlineClasses") @TestDataPath("$PROJECT_ROOT") @@ -28126,6 +30414,88 @@ public class FirBlackBoxCodegenTestWithInlineScopesGenerated extends AbstractFir } } + @Nested + @TestMetadata("compiler/testData/codegen/box/innerClass") + @TestDataPath("$PROJECT_ROOT") + public class InnerClass { + @Test + public void testAllFilesPresentInInnerClass() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/innerClass"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("doubleInner.kt") + public void testDoubleInner() { + runTest("compiler/testData/codegen/box/innerClass/doubleInner.kt"); + } + + @Test + @TestMetadata("generic.kt") + public void testGeneric() { + runTest("compiler/testData/codegen/box/innerClass/generic.kt"); + } + + @Test + @TestMetadata("getOuterVal.kt") + public void testGetOuterVal() { + runTest("compiler/testData/codegen/box/innerClass/getOuterVal.kt"); + } + + @Test + @TestMetadata("inheritanceMultipleModules1.kt") + public void testInheritanceMultipleModules1() { + runTest("compiler/testData/codegen/box/innerClass/inheritanceMultipleModules1.kt"); + } + + @Test + @TestMetadata("inheritanceMultipleModules2.kt") + public void testInheritanceMultipleModules2() { + runTest("compiler/testData/codegen/box/innerClass/inheritanceMultipleModules2.kt"); + } + + @Test + @TestMetadata("inheritanceMultipleModules3.kt") + public void testInheritanceMultipleModules3() { + runTest("compiler/testData/codegen/box/innerClass/inheritanceMultipleModules3.kt"); + } + + @Test + @TestMetadata("multipleModules.kt") + public void testMultipleModules() { + runTest("compiler/testData/codegen/box/innerClass/multipleModules.kt"); + } + + @Test + @TestMetadata("noPrimaryConstructor.kt") + public void testNoPrimaryConstructor() { + runTest("compiler/testData/codegen/box/innerClass/noPrimaryConstructor.kt"); + } + + @Test + @TestMetadata("qualifiedThis.kt") + public void testQualifiedThis() { + runTest("compiler/testData/codegen/box/innerClass/qualifiedThis.kt"); + } + + @Test + @TestMetadata("secondaryConstructor.kt") + public void testSecondaryConstructor() { + runTest("compiler/testData/codegen/box/innerClass/secondaryConstructor.kt"); + } + + @Test + @TestMetadata("simple.kt") + public void testSimple() { + runTest("compiler/testData/codegen/box/innerClass/simple.kt"); + } + + @Test + @TestMetadata("superOuter.kt") + public void testSuperOuter() { + runTest("compiler/testData/codegen/box/innerClass/superOuter.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/innerNested") @TestDataPath("$PROJECT_ROOT") @@ -28526,6 +30896,40 @@ public class FirBlackBoxCodegenTestWithInlineScopesGenerated extends AbstractFir } } + @Nested + @TestMetadata("compiler/testData/codegen/box/interfaceCallsNCasts") + @TestDataPath("$PROJECT_ROOT") + public class InterfaceCallsNCasts { + @Test + public void testAllFilesPresentInInterfaceCallsNCasts() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/interfaceCallsNCasts"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("conservativeItable.kt") + public void testConservativeItable() { + runTest("compiler/testData/codegen/box/interfaceCallsNCasts/conservativeItable.kt"); + } + + @Test + @TestMetadata("diamond.kt") + public void testDiamond() { + runTest("compiler/testData/codegen/box/interfaceCallsNCasts/diamond.kt"); + } + + @Test + @TestMetadata("finalMethod.kt") + public void testFinalMethod() { + runTest("compiler/testData/codegen/box/interfaceCallsNCasts/finalMethod.kt"); + } + + @Test + @TestMetadata("interface0.kt") + public void testInterface0() { + runTest("compiler/testData/codegen/box/interfaceCallsNCasts/interface0.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/intrinsics") @TestDataPath("$PROJECT_ROOT") @@ -33676,6 +36080,80 @@ public class FirBlackBoxCodegenTestWithInlineScopesGenerated extends AbstractFir } } + @Nested + @TestMetadata("compiler/testData/codegen/box/kclass") + @TestDataPath("$PROJECT_ROOT") + public class Kclass { + @Test + public void testAllFilesPresentInKclass() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/kclass"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("kClassEnumArgument.kt") + public void testKClassEnumArgument() { + runTest("compiler/testData/codegen/box/kclass/kClassEnumArgument.kt"); + } + + @Test + @TestMetadata("kclass1.kt") + public void testKclass1() { + runTest("compiler/testData/codegen/box/kclass/kclass1.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/ktype") + @TestDataPath("$PROJECT_ROOT") + public class Ktype { + @Test + public void testAllFilesPresentInKtype() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ktype"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("ktype1_basics1.kt") + public void testKtype1_basics1() { + runTest("compiler/testData/codegen/box/ktype/ktype1_basics1.kt"); + } + + @Test + @TestMetadata("ktype1_inner.kt") + public void testKtype1_inner() { + runTest("compiler/testData/codegen/box/ktype/ktype1_inner.kt"); + } + + @Test + @TestMetadata("nonReified_class.kt") + public void testNonReified_class() { + runTest("compiler/testData/codegen/box/ktype/nonReified_class.kt"); + } + + @Test + @TestMetadata("nonReified_equality.kt") + public void testNonReified_equality() { + runTest("compiler/testData/codegen/box/ktype/nonReified_equality.kt"); + } + + @Test + @TestMetadata("nonReified_fun.kt") + public void testNonReified_fun() { + runTest("compiler/testData/codegen/box/ktype/nonReified_fun.kt"); + } + + @Test + @TestMetadata("nonReified_recursionInReified.kt") + public void testNonReified_recursionInReified() { + runTest("compiler/testData/codegen/box/ktype/nonReified_recursionInReified.kt"); + } + + @Test + @TestMetadata("nonReified_reifiedUpperBound.kt") + public void testNonReified_reifiedUpperBound() { + runTest("compiler/testData/codegen/box/ktype/nonReified_reifiedUpperBound.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/labels") @TestDataPath("$PROJECT_ROOT") @@ -33734,6 +36212,188 @@ public class FirBlackBoxCodegenTestWithInlineScopesGenerated extends AbstractFir } } + @Nested + @TestMetadata("compiler/testData/codegen/box/lambda") + @TestDataPath("$PROJECT_ROOT") + public class Lambda { + @Test + public void testAllFilesPresentInLambda() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/lambda"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("lambda1.kt") + public void testLambda1() { + runTest("compiler/testData/codegen/box/lambda/lambda1.kt"); + } + + @Test + @TestMetadata("lambda10.kt") + public void testLambda10() { + runTest("compiler/testData/codegen/box/lambda/lambda10.kt"); + } + + @Test + @TestMetadata("lambda11.kt") + public void testLambda11() { + runTest("compiler/testData/codegen/box/lambda/lambda11.kt"); + } + + @Test + @TestMetadata("lambda12.kt") + public void testLambda12() { + runTest("compiler/testData/codegen/box/lambda/lambda12.kt"); + } + + @Test + @TestMetadata("lambda13.kt") + public void testLambda13() { + runTest("compiler/testData/codegen/box/lambda/lambda13.kt"); + } + + @Test + @TestMetadata("lambda14.kt") + public void testLambda14() { + runTest("compiler/testData/codegen/box/lambda/lambda14.kt"); + } + + @Test + @TestMetadata("lambda2.kt") + public void testLambda2() { + runTest("compiler/testData/codegen/box/lambda/lambda2.kt"); + } + + @Test + @TestMetadata("lambda3.kt") + public void testLambda3() { + runTest("compiler/testData/codegen/box/lambda/lambda3.kt"); + } + + @Test + @TestMetadata("lambda4.kt") + public void testLambda4() { + runTest("compiler/testData/codegen/box/lambda/lambda4.kt"); + } + + @Test + @TestMetadata("lambda5.kt") + public void testLambda5() { + runTest("compiler/testData/codegen/box/lambda/lambda5.kt"); + } + + @Test + @TestMetadata("lambda6.kt") + public void testLambda6() { + runTest("compiler/testData/codegen/box/lambda/lambda6.kt"); + } + + @Test + @TestMetadata("lambda7.kt") + public void testLambda7() { + runTest("compiler/testData/codegen/box/lambda/lambda7.kt"); + } + + @Test + @TestMetadata("lambda8.kt") + public void testLambda8() { + runTest("compiler/testData/codegen/box/lambda/lambda8.kt"); + } + + @Test + @TestMetadata("lambda9.kt") + public void testLambda9() { + runTest("compiler/testData/codegen/box/lambda/lambda9.kt"); + } + + @Test + @TestMetadata("lambda_kt49360_trivial.kt") + public void testLambda_kt49360_trivial() { + runTest("compiler/testData/codegen/box/lambda/lambda_kt49360_trivial.kt"); + } + + @Test + @TestMetadata("lambda_kt49360_withFlow.kt") + public void testLambda_kt49360_withFlow() { + runTest("compiler/testData/codegen/box/lambda/lambda_kt49360_withFlow.kt"); + } + + @Test + @TestMetadata("lambda_kt49360_wrapBlock.kt") + public void testLambda_kt49360_wrapBlock() { + runTest("compiler/testData/codegen/box/lambda/lambda_kt49360_wrapBlock.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/lateinit") + @TestDataPath("$PROJECT_ROOT") + public class Lateinit { + @Test + public void testAllFilesPresentInLateinit() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/lateinit"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("globalIsInitialized.kt") + public void testGlobalIsInitialized() { + runTest("compiler/testData/codegen/box/lateinit/globalIsInitialized.kt"); + } + + @Test + @TestMetadata("inBaseClass.kt") + public void testInBaseClass() { + runTest("compiler/testData/codegen/box/lateinit/inBaseClass.kt"); + } + + @Test + @TestMetadata("initialized.kt") + public void testInitialized() { + runTest("compiler/testData/codegen/box/lateinit/initialized.kt"); + } + + @Test + @TestMetadata("innerIsInitialized.kt") + public void testInnerIsInitialized() { + runTest("compiler/testData/codegen/box/lateinit/innerIsInitialized.kt"); + } + + @Test + @TestMetadata("isInitialized.kt") + public void testIsInitialized() { + runTest("compiler/testData/codegen/box/lateinit/isInitialized.kt"); + } + + @Test + @TestMetadata("localCapturedInitialized.kt") + public void testLocalCapturedInitialized() { + runTest("compiler/testData/codegen/box/lateinit/localCapturedInitialized.kt"); + } + + @Test + @TestMetadata("localCapturedNotInitialized.kt") + public void testLocalCapturedNotInitialized() { + runTest("compiler/testData/codegen/box/lateinit/localCapturedNotInitialized.kt"); + } + + @Test + @TestMetadata("localInitialized.kt") + public void testLocalInitialized() { + runTest("compiler/testData/codegen/box/lateinit/localInitialized.kt"); + } + + @Test + @TestMetadata("localNotInitialized.kt") + public void testLocalNotInitialized() { + runTest("compiler/testData/codegen/box/lateinit/localNotInitialized.kt"); + } + + @Test + @TestMetadata("notInitialized.kt") + public void testNotInitialized() { + runTest("compiler/testData/codegen/box/lateinit/notInitialized.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/lazyCodegen") @TestDataPath("$PROJECT_ROOT") @@ -33862,6 +36522,98 @@ public class FirBlackBoxCodegenTestWithInlineScopesGenerated extends AbstractFir } } + @Nested + @TestMetadata("compiler/testData/codegen/box/literals") + @TestDataPath("$PROJECT_ROOT") + public class Literals { + @Test + public void testAllFilesPresentInLiterals() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/literals"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("listof1.kt") + public void testListof1() { + runTest("compiler/testData/codegen/box/literals/listof1.kt"); + } + + @Test + @TestMetadata("strdedup1.kt") + public void testStrdedup1() { + runTest("compiler/testData/codegen/box/literals/strdedup1.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/localClass") + @TestDataPath("$PROJECT_ROOT") + public class LocalClass { + @Test + public void testAllFilesPresentInLocalClass() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/localClass"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("innerTakesCapturedFromOuter.kt") + public void testInnerTakesCapturedFromOuter() { + runTest("compiler/testData/codegen/box/localClass/innerTakesCapturedFromOuter.kt"); + } + + @Test + @TestMetadata("innerWithCapture.kt") + public void testInnerWithCapture() { + runTest("compiler/testData/codegen/box/localClass/innerWithCapture.kt"); + } + + @Test + @TestMetadata("localFunctionCallFromLocalClass.kt") + public void testLocalFunctionCallFromLocalClass() { + runTest("compiler/testData/codegen/box/localClass/localFunctionCallFromLocalClass.kt"); + } + + @Test + @TestMetadata("localFunctionInLocalClass.kt") + public void testLocalFunctionInLocalClass() { + runTest("compiler/testData/codegen/box/localClass/localFunctionInLocalClass.kt"); + } + + @Test + @TestMetadata("localHierarchy.kt") + public void testLocalHierarchy() { + runTest("compiler/testData/codegen/box/localClass/localHierarchy.kt"); + } + + @Test + @TestMetadata("noPrimaryConstructor.kt") + public void testNoPrimaryConstructor() { + runTest("compiler/testData/codegen/box/localClass/noPrimaryConstructor.kt"); + } + + @Test + @TestMetadata("objectExpressionInInitializer.kt") + public void testObjectExpressionInInitializer() { + runTest("compiler/testData/codegen/box/localClass/objectExpressionInInitializer.kt"); + } + + @Test + @TestMetadata("objectExpressionInProperty.kt") + public void testObjectExpressionInProperty() { + runTest("compiler/testData/codegen/box/localClass/objectExpressionInProperty.kt"); + } + + @Test + @TestMetadata("tryCatch.kt") + public void testTryCatch() { + runTest("compiler/testData/codegen/box/localClass/tryCatch.kt"); + } + + @Test + @TestMetadata("virtualCallFromConstructor.kt") + public void testVirtualCallFromConstructor() { + runTest("compiler/testData/codegen/box/localClass/virtualCallFromConstructor.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/localClasses") @TestDataPath("$PROJECT_ROOT") @@ -34112,6 +36864,38 @@ public class FirBlackBoxCodegenTestWithInlineScopesGenerated extends AbstractFir } } + @Nested + @TestMetadata("compiler/testData/codegen/box/localEscapeAnalysis") + @TestDataPath("$PROJECT_ROOT") + public class LocalEscapeAnalysis { + @Test + public void testAllFilesPresentInLocalEscapeAnalysis() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/localEscapeAnalysis"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("arraysFieldWrite.kt") + public void testArraysFieldWrite() { + runTest("compiler/testData/codegen/box/localEscapeAnalysis/arraysFieldWrite.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/lower") + @TestDataPath("$PROJECT_ROOT") + public class Lower { + @Test + public void testAllFilesPresentInLower() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/lower"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("localDelegatedProperty.kt") + public void testLocalDelegatedProperty() { + runTest("compiler/testData/codegen/box/lower/localDelegatedProperty.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/mangling") @TestDataPath("$PROJECT_ROOT") @@ -34151,6 +36935,12 @@ public class FirBlackBoxCodegenTestWithInlineScopesGenerated extends AbstractFir runTest("compiler/testData/codegen/box/mangling/internalOverrideSuperCall.kt"); } + @Test + @TestMetadata("multipleConstructors.kt") + public void testMultipleConstructors() { + runTest("compiler/testData/codegen/box/mangling/multipleConstructors.kt"); + } + @Test @TestMetadata("noOverrideWithJava.kt") public void testNoOverrideWithJava() { @@ -35492,6 +38282,98 @@ public class FirBlackBoxCodegenTestWithInlineScopesGenerated extends AbstractFir } } + @Nested + @TestMetadata("compiler/testData/codegen/box/object") + @TestDataPath("$PROJECT_ROOT") + public class Object { + @Test + public void testAllFilesPresentInObject() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/object"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("constructor0.kt") + public void testConstructor0() { + runTest("compiler/testData/codegen/box/object/constructor0.kt"); + } + + @Test + @TestMetadata("fields.kt") + public void testFields() { + runTest("compiler/testData/codegen/box/object/fields.kt"); + } + + @Test + @TestMetadata("fields1.kt") + public void testFields1() { + runTest("compiler/testData/codegen/box/object/fields1.kt"); + } + + @Test + @TestMetadata("fields2.kt") + public void testFields2() { + runTest("compiler/testData/codegen/box/object/fields2.kt"); + } + + @Test + @TestMetadata("globalInitializer.kt") + public void testGlobalInitializer() { + runTest("compiler/testData/codegen/box/object/globalInitializer.kt"); + } + + @Test + @TestMetadata("init0.kt") + public void testInit0() { + runTest("compiler/testData/codegen/box/object/init0.kt"); + } + + @Test + @TestMetadata("initialization.kt") + public void testInitialization() { + runTest("compiler/testData/codegen/box/object/initialization.kt"); + } + + @Test + @TestMetadata("initialization1.kt") + public void testInitialization1() { + runTest("compiler/testData/codegen/box/object/initialization1.kt"); + } + + @Test + @TestMetadata("method_call.kt") + public void testMethod_call() { + runTest("compiler/testData/codegen/box/object/method_call.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/objectExpression") + @TestDataPath("$PROJECT_ROOT") + public class ObjectExpression { + @Test + public void testAllFilesPresentInObjectExpression() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/objectExpression"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("expr1.kt") + public void testExpr1() { + runTest("compiler/testData/codegen/box/objectExpression/expr1.kt"); + } + + @Test + @TestMetadata("expr2.kt") + public void testExpr2() { + runTest("compiler/testData/codegen/box/objectExpression/expr2.kt"); + } + + @Test + @TestMetadata("expr3.kt") + public void testExpr3() { + runTest("compiler/testData/codegen/box/objectExpression/expr3.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/objectIntrinsics") @TestDataPath("$PROJECT_ROOT") @@ -38788,6 +41670,64 @@ public class FirBlackBoxCodegenTestWithInlineScopesGenerated extends AbstractFir } } + @Nested + @TestMetadata("compiler/testData/codegen/box/propertyCallableReference") + @TestDataPath("$PROJECT_ROOT") + public class PropertyCallableReference { + @Test + public void testAllFilesPresentInPropertyCallableReference() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/propertyCallableReference"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("dynamicReceiver.kt") + public void testDynamicReceiver() { + runTest("compiler/testData/codegen/box/propertyCallableReference/dynamicReceiver.kt"); + } + + @Test + @TestMetadata("multipleModules.kt") + public void testMultipleModules() { + runTest("compiler/testData/codegen/box/propertyCallableReference/multipleModules.kt"); + } + + @Test + @TestMetadata("valClass.kt") + public void testValClass() { + runTest("compiler/testData/codegen/box/propertyCallableReference/valClass.kt"); + } + + @Test + @TestMetadata("valExtension.kt") + public void testValExtension() { + runTest("compiler/testData/codegen/box/propertyCallableReference/valExtension.kt"); + } + + @Test + @TestMetadata("valModule.kt") + public void testValModule() { + runTest("compiler/testData/codegen/box/propertyCallableReference/valModule.kt"); + } + + @Test + @TestMetadata("varClass.kt") + public void testVarClass() { + runTest("compiler/testData/codegen/box/propertyCallableReference/varClass.kt"); + } + + @Test + @TestMetadata("varExtension.kt") + public void testVarExtension() { + runTest("compiler/testData/codegen/box/propertyCallableReference/varExtension.kt"); + } + + @Test + @TestMetadata("varModule.kt") + public void testVarModule() { + runTest("compiler/testData/codegen/box/propertyCallableReference/varModule.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/publishedApi") @TestDataPath("$PROJECT_ROOT") @@ -50976,6 +53916,58 @@ public class FirBlackBoxCodegenTestWithInlineScopesGenerated extends AbstractFir } } + @Nested + @TestMetadata("compiler/testData/codegen/box/serialization") + @TestDataPath("$PROJECT_ROOT") + public class Serialization { + @Test + public void testAllFilesPresentInSerialization() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/serialization"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("deserializedMembers.kt") + public void testDeserializedMembers() { + runTest("compiler/testData/codegen/box/serialization/deserializedMembers.kt"); + } + + @Test + @TestMetadata("serializedCatch.kt") + public void testSerializedCatch() { + runTest("compiler/testData/codegen/box/serialization/serializedCatch.kt"); + } + + @Test + @TestMetadata("serializedCharConstant.kt") + public void testSerializedCharConstant() { + runTest("compiler/testData/codegen/box/serialization/serializedCharConstant.kt"); + } + + @Test + @TestMetadata("serializedDefaultArgs.kt") + public void testSerializedDefaultArgs() { + runTest("compiler/testData/codegen/box/serialization/serializedDefaultArgs.kt"); + } + + @Test + @TestMetadata("serializedDoWhile.kt") + public void testSerializedDoWhile() { + runTest("compiler/testData/codegen/box/serialization/serializedDoWhile.kt"); + } + + @Test + @TestMetadata("serializedEnumOrdinal.kt") + public void testSerializedEnumOrdinal() { + runTest("compiler/testData/codegen/box/serialization/serializedEnumOrdinal.kt"); + } + + @Test + @TestMetadata("serializedVararg.kt") + public void testSerializedVararg() { + runTest("compiler/testData/codegen/box/serialization/serializedVararg.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/size") @TestDataPath("$PROJECT_ROOT") @@ -51648,6 +54640,22 @@ public class FirBlackBoxCodegenTestWithInlineScopesGenerated extends AbstractFir } } + @Nested + @TestMetadata("compiler/testData/codegen/box/stringTrim") + @TestDataPath("$PROJECT_ROOT") + public class StringTrim { + @Test + public void testAllFilesPresentInStringTrim() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/stringTrim"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("stringTrim.kt") + public void testStringTrim() { + runTest("compiler/testData/codegen/box/stringTrim/stringTrim.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/strings") @TestDataPath("$PROJECT_ROOT") @@ -53176,6 +56184,142 @@ public class FirBlackBoxCodegenTestWithInlineScopesGenerated extends AbstractFir } } + @Nested + @TestMetadata("compiler/testData/codegen/box/try") + @TestDataPath("$PROJECT_ROOT") + public class Try { + @Test + public void testAllFilesPresentInTry() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/try"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @Test + @TestMetadata("catch3.kt") + public void testCatch3() { + runTest("compiler/testData/codegen/box/try/catch3.kt"); + } + + @Test + @TestMetadata("catch4.kt") + public void testCatch4() { + runTest("compiler/testData/codegen/box/try/catch4.kt"); + } + + @Test + @TestMetadata("catch5.kt") + public void testCatch5() { + runTest("compiler/testData/codegen/box/try/catch5.kt"); + } + + @Test + @TestMetadata("catch6.kt") + public void testCatch6() { + runTest("compiler/testData/codegen/box/try/catch6.kt"); + } + + @Test + @TestMetadata("catch8.kt") + public void testCatch8() { + runTest("compiler/testData/codegen/box/try/catch8.kt"); + } + + @Test + @TestMetadata("finally1.kt") + public void testFinally1() { + runTest("compiler/testData/codegen/box/try/finally1.kt"); + } + + @Test + @TestMetadata("finally10.kt") + public void testFinally10() { + runTest("compiler/testData/codegen/box/try/finally10.kt"); + } + + @Test + @TestMetadata("finally11.kt") + public void testFinally11() { + runTest("compiler/testData/codegen/box/try/finally11.kt"); + } + + @Test + @TestMetadata("finally2.kt") + public void testFinally2() { + runTest("compiler/testData/codegen/box/try/finally2.kt"); + } + + @Test + @TestMetadata("finally3.kt") + public void testFinally3() { + runTest("compiler/testData/codegen/box/try/finally3.kt"); + } + + @Test + @TestMetadata("finally4.kt") + public void testFinally4() { + runTest("compiler/testData/codegen/box/try/finally4.kt"); + } + + @Test + @TestMetadata("finally5.kt") + public void testFinally5() { + runTest("compiler/testData/codegen/box/try/finally5.kt"); + } + + @Test + @TestMetadata("finally6.kt") + public void testFinally6() { + runTest("compiler/testData/codegen/box/try/finally6.kt"); + } + + @Test + @TestMetadata("finally7.kt") + public void testFinally7() { + runTest("compiler/testData/codegen/box/try/finally7.kt"); + } + + @Test + @TestMetadata("finally8.kt") + public void testFinally8() { + runTest("compiler/testData/codegen/box/try/finally8.kt"); + } + + @Test + @TestMetadata("finally9.kt") + public void testFinally9() { + runTest("compiler/testData/codegen/box/try/finally9.kt"); + } + + @Test + @TestMetadata("returnsDifferentTypes.kt") + public void testReturnsDifferentTypes() { + runTest("compiler/testData/codegen/box/try/returnsDifferentTypes.kt"); + } + + @Test + @TestMetadata("try1.kt") + public void testTry1() { + runTest("compiler/testData/codegen/box/try/try1.kt"); + } + + @Test + @TestMetadata("try2.kt") + public void testTry2() { + runTest("compiler/testData/codegen/box/try/try2.kt"); + } + + @Test + @TestMetadata("try3.kt") + public void testTry3() { + runTest("compiler/testData/codegen/box/try/try3.kt"); + } + + @Test + @TestMetadata("try4.kt") + public void testTry4() { + runTest("compiler/testData/codegen/box/try/try4.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/typeInfo") @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 d721716c30a..acd8c0bd8ba 100644 --- a/compiler/tests-gen/org/jetbrains/kotlin/codegen/LightAnalysisModeTestGenerated.java +++ b/compiler/tests-gen/org/jetbrains/kotlin/codegen/LightAnalysisModeTestGenerated.java @@ -103,6 +103,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/annotations/annotationWithVarargAsDefaultValue.kt"); } + @TestMetadata("annotations0.kt") + public void testAnnotations0() { + runTest("compiler/testData/codegen/box/annotations/annotations0.kt"); + } + @TestMetadata("annotationsOnDefault.kt") public void testAnnotationsOnDefault() { runTest("compiler/testData/codegen/box/annotations/annotationsOnDefault.kt"); @@ -822,6 +827,74 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes } } + @TestMetadata("compiler/testData/codegen/box/arithmetic") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Arithmetic extends AbstractLightAnalysisModeTest { + private void runTest(String testDataFilePath) { + KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); + } + + public void testAllFilesPresentInArithmetic() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/arithmetic"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @TestMetadata("basic_charConversions.kt") + public void testBasic_charConversions() { + runTest("compiler/testData/codegen/box/arithmetic/basic_charConversions.kt"); + } + + @TestMetadata("basic_charCornerCases.kt") + public void testBasic_charCornerCases() { + runTest("compiler/testData/codegen/box/arithmetic/basic_charCornerCases.kt"); + } + + @TestMetadata("basic_compareIntToFloat.kt") + public void testBasic_compareIntToFloat() { + runTest("compiler/testData/codegen/box/arithmetic/basic_compareIntToFloat.kt"); + } + + @TestMetadata("basic_doubleBasic.kt") + public void testBasic_doubleBasic() { + runTest("compiler/testData/codegen/box/arithmetic/basic_doubleBasic.kt"); + } + + @TestMetadata("basic_integralToFloat.kt") + public void testBasic_integralToFloat() { + runTest("compiler/testData/codegen/box/arithmetic/basic_integralToFloat.kt"); + } + + @TestMetadata("basic_kt37412.kt") + public void testBasic_kt37412() { + runTest("compiler/testData/codegen/box/arithmetic/basic_kt37412.kt"); + } + + @TestMetadata("basic_selfComparison.kt") + public void testBasic_selfComparison() { + runTest("compiler/testData/codegen/box/arithmetic/basic_selfComparison.kt"); + } + + @TestMetadata("basic_shifts.kt") + public void testBasic_shifts() { + runTest("compiler/testData/codegen/box/arithmetic/basic_shifts.kt"); + } + + @TestMetadata("basic_uintTests.kt") + public void testBasic_uintTests() { + runTest("compiler/testData/codegen/box/arithmetic/basic_uintTests.kt"); + } + + @TestMetadata("division.kt") + public void testDivision() { + runTest("compiler/testData/codegen/box/arithmetic/division.kt"); + } + + @TestMetadata("github1856.kt") + public void testGithub1856() { + runTest("compiler/testData/codegen/box/arithmetic/github1856.kt"); + } + } + @TestMetadata("compiler/testData/codegen/box/arrays") @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) @@ -1574,6 +1647,262 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes } } + @TestMetadata("compiler/testData/codegen/box/basics") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Basics extends AbstractLightAnalysisModeTest { + private void runTest(String testDataFilePath) { + KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); + } + + public void testAllFilesPresentInBasics() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/basics"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @TestMetadata("array_to_any.kt") + public void testArray_to_any() { + runTest("compiler/testData/codegen/box/basics/array_to_any.kt"); + } + + @TestMetadata("canonical_name.kt") + public void testCanonical_name() { + runTest("compiler/testData/codegen/box/basics/canonical_name.kt"); + } + + @TestMetadata("cast_null.kt") + public void testCast_null() { + runTest("compiler/testData/codegen/box/basics/cast_null.kt"); + } + + @TestMetadata("cast_simple.kt") + public void testCast_simple() { + runTest("compiler/testData/codegen/box/basics/cast_simple.kt"); + } + + @TestMetadata("check_type.kt") + public void testCheck_type() { + runTest("compiler/testData/codegen/box/basics/check_type.kt"); + } + + @TestMetadata("companion.kt") + public void testCompanion() { + runTest("compiler/testData/codegen/box/basics/companion.kt"); + } + + @TestMetadata("concatenation.kt") + public void testConcatenation() { + runTest("compiler/testData/codegen/box/basics/concatenation.kt"); + } + + @TestMetadata("const_infinity.kt") + public void testConst_infinity() { + runTest("compiler/testData/codegen/box/basics/const_infinity.kt"); + } + + @TestMetadata("expression_as_statement.kt") + public void testExpression_as_statement() { + runTest("compiler/testData/codegen/box/basics/expression_as_statement.kt"); + } + + @TestMetadata("k42000_1.kt") + public void testK42000_1() { + runTest("compiler/testData/codegen/box/basics/k42000_1.kt"); + } + + @TestMetadata("k42000_2.kt") + public void testK42000_2() { + runTest("compiler/testData/codegen/box/basics/k42000_2.kt"); + } + + @TestMetadata("local_variable.kt") + public void testLocal_variable() { + runTest("compiler/testData/codegen/box/basics/local_variable.kt"); + } + + @TestMetadata("null_check.kt") + public void testNull_check() { + runTest("compiler/testData/codegen/box/basics/null_check.kt"); + } + + @TestMetadata("safe_cast.kt") + public void testSafe_cast() { + runTest("compiler/testData/codegen/box/basics/safe_cast.kt"); + } + + @TestMetadata("spread_operator_0.kt") + public void testSpread_operator_0() { + runTest("compiler/testData/codegen/box/basics/spread_operator_0.kt"); + } + + @TestMetadata("statements0.kt") + public void testStatements0() { + runTest("compiler/testData/codegen/box/basics/statements0.kt"); + } + + @TestMetadata("superFunCall.kt") + public void testSuperFunCall() { + runTest("compiler/testData/codegen/box/basics/superFunCall.kt"); + } + + @TestMetadata("superGetterCall.kt") + public void testSuperGetterCall() { + runTest("compiler/testData/codegen/box/basics/superGetterCall.kt"); + } + + @TestMetadata("superSetterCall.kt") + public void testSuperSetterCall() { + runTest("compiler/testData/codegen/box/basics/superSetterCall.kt"); + } + + @TestMetadata("typealias1.kt") + public void testTypealias1() { + runTest("compiler/testData/codegen/box/basics/typealias1.kt"); + } + + @TestMetadata("unchecked_cast1.kt") + public void testUnchecked_cast1() { + runTest("compiler/testData/codegen/box/basics/unchecked_cast1.kt"); + } + + @TestMetadata("unchecked_cast2.kt") + public void testUnchecked_cast2() { + runTest("compiler/testData/codegen/box/basics/unchecked_cast2.kt"); + } + + @TestMetadata("unchecked_cast3.kt") + public void testUnchecked_cast3() { + runTest("compiler/testData/codegen/box/basics/unchecked_cast3.kt"); + } + + @TestMetadata("unchecked_cast4.kt") + public void testUnchecked_cast4() { + runTest("compiler/testData/codegen/box/basics/unchecked_cast4.kt"); + } + + @TestMetadata("unit1.kt") + public void testUnit1() { + runTest("compiler/testData/codegen/box/basics/unit1.kt"); + } + + @TestMetadata("unit2.kt") + public void testUnit2() { + runTest("compiler/testData/codegen/box/basics/unit2.kt"); + } + + @TestMetadata("unit3.kt") + public void testUnit3() { + runTest("compiler/testData/codegen/box/basics/unit3.kt"); + } + + @TestMetadata("unit4.kt") + public void testUnit4() { + runTest("compiler/testData/codegen/box/basics/unit4.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/bce") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Bce extends AbstractLightAnalysisModeTest { + private void runTest(String testDataFilePath) { + KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); + } + + public void testAllFilesPresentInBce() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/bce"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @TestMetadata("bceCases.kt") + public void testBceCases() { + runTest("compiler/testData/codegen/box/bce/bceCases.kt"); + } + + @TestMetadata("customGetter.kt") + public void testCustomGetter() { + runTest("compiler/testData/codegen/box/bce/customGetter.kt"); + } + + @TestMetadata("delegatedProperty.kt") + public void testDelegatedProperty() { + runTest("compiler/testData/codegen/box/bce/delegatedProperty.kt"); + } + + @TestMetadata("differentArrays.kt") + public void testDifferentArrays() { + runTest("compiler/testData/codegen/box/bce/differentArrays.kt"); + } + + @TestMetadata("differentObjects.kt") + public void testDifferentObjects() { + runTest("compiler/testData/codegen/box/bce/differentObjects.kt"); + } + + @TestMetadata("forDownToSize.kt") + public void testForDownToSize() { + runTest("compiler/testData/codegen/box/bce/forDownToSize.kt"); + } + + @TestMetadata("forDownToWithStep.kt") + public void testForDownToWithStep() { + runTest("compiler/testData/codegen/box/bce/forDownToWithStep.kt"); + } + + @TestMetadata("forEachIndexedTest.kt") + public void testForEachIndexedTest() { + runTest("compiler/testData/codegen/box/bce/forEachIndexedTest.kt"); + } + + @TestMetadata("forEachIndicies.kt") + public void testForEachIndicies() { + runTest("compiler/testData/codegen/box/bce/forEachIndicies.kt"); + } + + @TestMetadata("forIndiciesWithStep.kt") + public void testForIndiciesWithStep() { + runTest("compiler/testData/codegen/box/bce/forIndiciesWithStep.kt"); + } + + @TestMetadata("forRangeToSize.kt") + public void testForRangeToSize() { + runTest("compiler/testData/codegen/box/bce/forRangeToSize.kt"); + } + + @TestMetadata("forRangeToWithStep.kt") + public void testForRangeToWithStep() { + runTest("compiler/testData/codegen/box/bce/forRangeToWithStep.kt"); + } + + @TestMetadata("forReversed.kt") + public void testForReversed() { + runTest("compiler/testData/codegen/box/bce/forReversed.kt"); + } + + @TestMetadata("forUntilSize.kt") + public void testForUntilSize() { + runTest("compiler/testData/codegen/box/bce/forUntilSize.kt"); + } + + @TestMetadata("forUntilWithStep.kt") + public void testForUntilWithStep() { + runTest("compiler/testData/codegen/box/bce/forUntilWithStep.kt"); + } + + @TestMetadata("forWithIndex.kt") + public void testForWithIndex() { + runTest("compiler/testData/codegen/box/bce/forWithIndex.kt"); + } + + @TestMetadata("inheritance.kt") + public void testInheritance() { + runTest("compiler/testData/codegen/box/bce/inheritance.kt"); + } + + @TestMetadata("withGetter.kt") + public void testWithGetter() { + runTest("compiler/testData/codegen/box/bce/withGetter.kt"); + } + } + @TestMetadata("compiler/testData/codegen/box/binaryOp") @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) @@ -1742,6 +2071,109 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes } } + @TestMetadata("compiler/testData/codegen/box/boxing") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Boxing extends AbstractLightAnalysisModeTest { + private void runTest(String testDataFilePath) { + KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); + } + + public void testAllFilesPresentInBoxing() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/boxing"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @TestMetadata("box_cache0.kt") + public void testBox_cache0() { + runTest("compiler/testData/codegen/box/boxing/box_cache0.kt"); + } + + @TestMetadata("boxing0.kt") + public void testBoxing0() { + runTest("compiler/testData/codegen/box/boxing/boxing0.kt"); + } + + @TestMetadata("boxing1.kt") + public void testBoxing1() { + runTest("compiler/testData/codegen/box/boxing/boxing1.kt"); + } + + @TestMetadata("boxing10.kt") + public void testBoxing10() { + runTest("compiler/testData/codegen/box/boxing/boxing10.kt"); + } + + @TestMetadata("boxing11.kt") + public void testBoxing11() { + runTest("compiler/testData/codegen/box/boxing/boxing11.kt"); + } + + @TestMetadata("boxing12.kt") + public void testBoxing12() { + runTest("compiler/testData/codegen/box/boxing/boxing12.kt"); + } + + @TestMetadata("boxing13.kt") + public void testBoxing13() { + runTest("compiler/testData/codegen/box/boxing/boxing13.kt"); + } + + @TestMetadata("boxing14.kt") + public void testBoxing14() { + runTest("compiler/testData/codegen/box/boxing/boxing14.kt"); + } + + @TestMetadata("boxing15.kt") + public void testBoxing15() { + runTest("compiler/testData/codegen/box/boxing/boxing15.kt"); + } + + @TestMetadata("boxing2.kt") + public void testBoxing2() { + runTest("compiler/testData/codegen/box/boxing/boxing2.kt"); + } + + @TestMetadata("boxing3.kt") + public void testBoxing3() { + runTest("compiler/testData/codegen/box/boxing/boxing3.kt"); + } + + @TestMetadata("boxing4.kt") + public void testBoxing4() { + runTest("compiler/testData/codegen/box/boxing/boxing4.kt"); + } + + @TestMetadata("boxing5.kt") + public void testBoxing5() { + runTest("compiler/testData/codegen/box/boxing/boxing5.kt"); + } + + @TestMetadata("boxing6.kt") + public void testBoxing6() { + runTest("compiler/testData/codegen/box/boxing/boxing6.kt"); + } + + @TestMetadata("boxing7.kt") + public void testBoxing7() { + runTest("compiler/testData/codegen/box/boxing/boxing7.kt"); + } + + @TestMetadata("boxing8.kt") + public void testBoxing8() { + runTest("compiler/testData/codegen/box/boxing/boxing8.kt"); + } + + @TestMetadata("boxing9.kt") + public void testBoxing9() { + runTest("compiler/testData/codegen/box/boxing/boxing9.kt"); + } + + @TestMetadata("kt53100_casts.kt") + public void testKt53100_casts() { + runTest("compiler/testData/codegen/box/boxing/kt53100_casts.kt"); + } + } + @TestMetadata("compiler/testData/codegen/box/boxingOptimization") @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) @@ -1980,6 +2412,79 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes } } + @TestMetadata("compiler/testData/codegen/box/branching") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Branching extends AbstractLightAnalysisModeTest { + private void runTest(String testDataFilePath) { + KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); + } + + @TestMetadata("advanced_when2.kt") + public void testAdvanced_when2() { + runTest("compiler/testData/codegen/box/branching/advanced_when2.kt"); + } + + @TestMetadata("advanced_when5.kt") + public void testAdvanced_when5() { + runTest("compiler/testData/codegen/box/branching/advanced_when5.kt"); + } + + public void testAllFilesPresentInBranching() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/branching"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @TestMetadata("if_else.kt") + public void testIf_else() { + runTest("compiler/testData/codegen/box/branching/if_else.kt"); + } + + @TestMetadata("when2.kt") + public void testWhen2() { + runTest("compiler/testData/codegen/box/branching/when2.kt"); + } + + @TestMetadata("when4.kt") + public void testWhen4() { + runTest("compiler/testData/codegen/box/branching/when4.kt"); + } + + @TestMetadata("when5.kt") + public void testWhen5() { + runTest("compiler/testData/codegen/box/branching/when5.kt"); + } + + @TestMetadata("when6.kt") + public void testWhen6() { + runTest("compiler/testData/codegen/box/branching/when6.kt"); + } + + @TestMetadata("when7.kt") + public void testWhen7() { + runTest("compiler/testData/codegen/box/branching/when7.kt"); + } + + @TestMetadata("when8.kt") + public void testWhen8() { + runTest("compiler/testData/codegen/box/branching/when8.kt"); + } + + @TestMetadata("when9.kt") + public void testWhen9() { + runTest("compiler/testData/codegen/box/branching/when9.kt"); + } + + @TestMetadata("when_through.kt") + public void testWhen_through() { + runTest("compiler/testData/codegen/box/branching/when_through.kt"); + } + + @TestMetadata("when_with_try1.kt") + public void testWhen_with_try1() { + runTest("compiler/testData/codegen/box/branching/when_with_try1.kt"); + } + } + @TestMetadata("compiler/testData/codegen/box/bridges") @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) @@ -2202,6 +2707,16 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/bridges/methodWithDefaultParameter.kt"); } + @TestMetadata("multipleModules1.kt") + public void testMultipleModules1() { + runTest("compiler/testData/codegen/box/bridges/multipleModules1.kt"); + } + + @TestMetadata("multipleModules2.kt") + public void testMultipleModules2() { + runTest("compiler/testData/codegen/box/bridges/multipleModules2.kt"); + } + @TestMetadata("nestedClassTypeParameters.kt") public void testNestedClassTypeParameters() { runTest("compiler/testData/codegen/box/bridges/nestedClassTypeParameters.kt"); @@ -2257,6 +2772,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/bridges/propertySetter.kt"); } + @TestMetadata("returnTypeSignature.kt") + public void testReturnTypeSignature() { + runTest("compiler/testData/codegen/box/bridges/returnTypeSignature.kt"); + } + @TestMetadata("simple.kt") public void testSimple() { runTest("compiler/testData/codegen/box/bridges/simple.kt"); @@ -2292,6 +2812,16 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/bridges/simpleUpperBound.kt"); } + @TestMetadata("special.kt") + public void testSpecial() { + runTest("compiler/testData/codegen/box/bridges/special.kt"); + } + + @TestMetadata("specialGeneric.kt") + public void testSpecialGeneric() { + runTest("compiler/testData/codegen/box/bridges/specialGeneric.kt"); + } + @TestMetadata("strListContains.kt") public void testStrListContains() { runTest("compiler/testData/codegen/box/bridges/strListContains.kt"); @@ -2302,6 +2832,101 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/bridges/strListRemove.kt"); } + @TestMetadata("test0.kt") + public void testTest0() { + runTest("compiler/testData/codegen/box/bridges/test0.kt"); + } + + @TestMetadata("test1.kt") + public void testTest1() { + runTest("compiler/testData/codegen/box/bridges/test1.kt"); + } + + @TestMetadata("test10.kt") + public void testTest10() { + runTest("compiler/testData/codegen/box/bridges/test10.kt"); + } + + @TestMetadata("test11.kt") + public void testTest11() { + runTest("compiler/testData/codegen/box/bridges/test11.kt"); + } + + @TestMetadata("test12.kt") + public void testTest12() { + runTest("compiler/testData/codegen/box/bridges/test12.kt"); + } + + @TestMetadata("test13.kt") + public void testTest13() { + runTest("compiler/testData/codegen/box/bridges/test13.kt"); + } + + @TestMetadata("test14.kt") + public void testTest14() { + runTest("compiler/testData/codegen/box/bridges/test14.kt"); + } + + @TestMetadata("test15.kt") + public void testTest15() { + runTest("compiler/testData/codegen/box/bridges/test15.kt"); + } + + @TestMetadata("test16.kt") + public void testTest16() { + runTest("compiler/testData/codegen/box/bridges/test16.kt"); + } + + @TestMetadata("test17.kt") + public void testTest17() { + runTest("compiler/testData/codegen/box/bridges/test17.kt"); + } + + @TestMetadata("test18.kt") + public void testTest18() { + runTest("compiler/testData/codegen/box/bridges/test18.kt"); + } + + @TestMetadata("test2.kt") + public void testTest2() { + runTest("compiler/testData/codegen/box/bridges/test2.kt"); + } + + @TestMetadata("test3.kt") + public void testTest3() { + runTest("compiler/testData/codegen/box/bridges/test3.kt"); + } + + @TestMetadata("test4.kt") + public void testTest4() { + runTest("compiler/testData/codegen/box/bridges/test4.kt"); + } + + @TestMetadata("test5.kt") + public void testTest5() { + runTest("compiler/testData/codegen/box/bridges/test5.kt"); + } + + @TestMetadata("test6.kt") + public void testTest6() { + runTest("compiler/testData/codegen/box/bridges/test6.kt"); + } + + @TestMetadata("test7.kt") + public void testTest7() { + runTest("compiler/testData/codegen/box/bridges/test7.kt"); + } + + @TestMetadata("test8.kt") + public void testTest8() { + runTest("compiler/testData/codegen/box/bridges/test8.kt"); + } + + @TestMetadata("test9.kt") + public void testTest9() { + runTest("compiler/testData/codegen/box/bridges/test9.kt"); + } + @TestMetadata("traitImplInheritsTraitImpl.kt") public void testTraitImplInheritsTraitImpl() { runTest("compiler/testData/codegen/box/bridges/traitImplInheritsTraitImpl.kt"); @@ -5522,6 +6147,44 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes } } + @TestMetadata("compiler/testData/codegen/box/classDelegation") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class ClassDelegation extends AbstractLightAnalysisModeTest { + private void runTest(String testDataFilePath) { + KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); + } + + public void testAllFilesPresentInClassDelegation() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/classDelegation"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @TestMetadata("generic.kt") + public void testGeneric() { + runTest("compiler/testData/codegen/box/classDelegation/generic.kt"); + } + + @TestMetadata("method.kt") + public void testMethod() { + runTest("compiler/testData/codegen/box/classDelegation/method.kt"); + } + + @TestMetadata("multipleModules.kt") + public void testMultipleModules() { + runTest("compiler/testData/codegen/box/classDelegation/multipleModules.kt"); + } + + @TestMetadata("property.kt") + public void testProperty() { + runTest("compiler/testData/codegen/box/classDelegation/property.kt"); + } + + @TestMetadata("withBridge.kt") + public void testWithBridge() { + runTest("compiler/testData/codegen/box/classDelegation/withBridge.kt"); + } + } + @TestMetadata("compiler/testData/codegen/box/classLiteral") @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) @@ -7475,6 +8138,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/contracts/constructorArgument.kt"); } + @TestMetadata("contractForCast.kt") + public void testContractForCast() { + runTest("compiler/testData/codegen/box/contracts/contractForCast.kt"); + } + @TestMetadata("destructuredVariable.kt") public void testDestructuredVariable() { runTest("compiler/testData/codegen/box/contracts/destructuredVariable.kt"); @@ -7510,6 +8178,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/contracts/functionParameter.kt"); } + @TestMetadata("isNullString.kt") + public void testIsNullString() { + runTest("compiler/testData/codegen/box/contracts/isNullString.kt"); + } + @TestMetadata("kt39374.kt") public void testKt39374() { runTest("compiler/testData/codegen/box/contracts/kt39374.kt"); @@ -7545,6 +8218,21 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/contracts/nestedLambdaInNonInlineCallExactlyOnce.kt"); } + @TestMetadata("nonNullSmartCast.kt") + public void testNonNullSmartCast() { + runTest("compiler/testData/codegen/box/contracts/nonNullSmartCast.kt"); + } + + @TestMetadata("require.kt") + public void testRequire() { + runTest("compiler/testData/codegen/box/contracts/require.kt"); + } + + @TestMetadata("runLambdaForVal.kt") + public void testRunLambdaForVal() { + runTest("compiler/testData/codegen/box/contracts/runLambdaForVal.kt"); + } + @TestMetadata("valInWhen.kt") public void testValInWhen() { runTest("compiler/testData/codegen/box/contracts/valInWhen.kt"); @@ -8807,6 +9495,109 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes } } + @TestMetadata("compiler/testData/codegen/box/controlflow") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Controlflow extends AbstractLightAnalysisModeTest { + private void runTest(String testDataFilePath) { + KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); + } + + public void testAllFilesPresentInControlflow() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/controlflow"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @TestMetadata("break.kt") + public void testBreak() { + runTest("compiler/testData/codegen/box/controlflow/break.kt"); + } + + @TestMetadata("break1.kt") + public void testBreak1() { + runTest("compiler/testData/codegen/box/controlflow/break1.kt"); + } + + @TestMetadata("for_loops.kt") + public void testFor_loops() { + runTest("compiler/testData/codegen/box/controlflow/for_loops.kt"); + } + + @TestMetadata("for_loops_array_break_continue.kt") + public void testFor_loops_array_break_continue() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_array_break_continue.kt"); + } + + @TestMetadata("for_loops_array_indices.kt") + public void testFor_loops_array_indices() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_array_indices.kt"); + } + + @TestMetadata("for_loops_array_mutation.kt") + public void testFor_loops_array_mutation() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_array_mutation.kt"); + } + + @TestMetadata("for_loops_array_nested.kt") + public void testFor_loops_array_nested() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_array_nested.kt"); + } + + @TestMetadata("for_loops_array_nullable.kt") + public void testFor_loops_array_nullable() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_array_nullable.kt"); + } + + @TestMetadata("for_loops_array_side_effects.kt") + public void testFor_loops_array_side_effects() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_array_side_effects.kt"); + } + + @TestMetadata("for_loops_call_order.kt") + public void testFor_loops_call_order() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_call_order.kt"); + } + + @TestMetadata("for_loops_coroutines.kt") + public void testFor_loops_coroutines() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_coroutines.kt"); + } + + @TestMetadata("for_loops_empty_range.kt") + public void testFor_loops_empty_range() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_empty_range.kt"); + } + + @TestMetadata("for_loops_errors.kt") + public void testFor_loops_errors() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_errors.kt"); + } + + @TestMetadata("for_loops_let_with_nullable.kt") + public void testFor_loops_let_with_nullable() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_let_with_nullable.kt"); + } + + @TestMetadata("for_loops_nested.kt") + public void testFor_loops_nested() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_nested.kt"); + } + + @TestMetadata("for_loops_overflow.kt") + public void testFor_loops_overflow() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_overflow.kt"); + } + + @TestMetadata("for_loops_types.kt") + public void testFor_loops_types() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_types.kt"); + } + + @TestMetadata("unreachable1.kt") + public void testUnreachable1() { + runTest("compiler/testData/codegen/box/controlflow/unreachable1.kt"); + } + } + @TestMetadata("compiler/testData/codegen/box/coroutines") @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) @@ -8829,6 +9620,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @TestMetadata("anonymousObject.kt") + public void testAnonymousObject() { + runTest("compiler/testData/codegen/box/coroutines/anonymousObject.kt"); + } + @TestMetadata("async.kt") public void testAsync() { runTest("compiler/testData/codegen/box/coroutines/async.kt"); @@ -8909,11 +9705,121 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/coroutines/coercionToUnit.kt"); } + @TestMetadata("controlFlow_chain.kt") + public void testControlFlow_chain() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_chain.kt"); + } + + @TestMetadata("controlFlow_finally1.kt") + public void testControlFlow_finally1() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally1.kt"); + } + + @TestMetadata("controlFlow_finally2.kt") + public void testControlFlow_finally2() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally2.kt"); + } + + @TestMetadata("controlFlow_finally3.kt") + public void testControlFlow_finally3() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally3.kt"); + } + + @TestMetadata("controlFlow_finally4.kt") + public void testControlFlow_finally4() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally4.kt"); + } + + @TestMetadata("controlFlow_finally5.kt") + public void testControlFlow_finally5() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally5.kt"); + } + + @TestMetadata("controlFlow_finally6.kt") + public void testControlFlow_finally6() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally6.kt"); + } + + @TestMetadata("controlFlow_finally7.kt") + public void testControlFlow_finally7() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally7.kt"); + } + + @TestMetadata("controlFlow_if1.kt") + public void testControlFlow_if1() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_if1.kt"); + } + + @TestMetadata("controlFlow_if2.kt") + public void testControlFlow_if2() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_if2.kt"); + } + + @TestMetadata("controlFlow_inline1.kt") + public void testControlFlow_inline1() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_inline1.kt"); + } + + @TestMetadata("controlFlow_inline2.kt") + public void testControlFlow_inline2() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_inline2.kt"); + } + + @TestMetadata("controlFlow_inline3.kt") + public void testControlFlow_inline3() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_inline3.kt"); + } + + @TestMetadata("controlFlow_tryCatch1.kt") + public void testControlFlow_tryCatch1() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_tryCatch1.kt"); + } + + @TestMetadata("controlFlow_tryCatch2.kt") + public void testControlFlow_tryCatch2() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_tryCatch2.kt"); + } + + @TestMetadata("controlFlow_tryCatch3.kt") + public void testControlFlow_tryCatch3() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_tryCatch3.kt"); + } + + @TestMetadata("controlFlow_tryCatch4.kt") + public void testControlFlow_tryCatch4() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_tryCatch4.kt"); + } + + @TestMetadata("controlFlow_tryCatch5.kt") + public void testControlFlow_tryCatch5() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_tryCatch5.kt"); + } + + @TestMetadata("controlFlow_while1.kt") + public void testControlFlow_while1() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_while1.kt"); + } + + @TestMetadata("controlFlow_while2.kt") + public void testControlFlow_while2() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_while2.kt"); + } + @TestMetadata("controllerAccessFromInnerLambda.kt") public void testControllerAccessFromInnerLambda() { runTest("compiler/testData/codegen/box/coroutines/controllerAccessFromInnerLambda.kt"); } + @TestMetadata("coroutineContext1.kt") + public void testCoroutineContext1() { + runTest("compiler/testData/codegen/box/coroutines/coroutineContext1.kt"); + } + + @TestMetadata("coroutineContext2.kt") + public void testCoroutineContext2() { + runTest("compiler/testData/codegen/box/coroutines/coroutineContext2.kt"); + } + @TestMetadata("coroutineContextInInlinedLambda.kt") public void testCoroutineContextInInlinedLambda() { runTest("compiler/testData/codegen/box/coroutines/coroutineContextInInlinedLambda.kt"); @@ -8924,6 +9830,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/coroutines/coroutineToString.kt"); } + @TestMetadata("correctOrder1.kt") + public void testCorrectOrder1() { + runTest("compiler/testData/codegen/box/coroutines/correctOrder1.kt"); + } + @TestMetadata("createCoroutineSafe.kt") public void testCreateCoroutineSafe() { runTest("compiler/testData/codegen/box/coroutines/createCoroutineSafe.kt"); @@ -8954,6 +9865,16 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/coroutines/defaultParametersInSuspendWithJvmOverloads.kt"); } + @TestMetadata("degenerate1.kt") + public void testDegenerate1() { + runTest("compiler/testData/codegen/box/coroutines/degenerate1.kt"); + } + + @TestMetadata("degenerate2.kt") + public void testDegenerate2() { + runTest("compiler/testData/codegen/box/coroutines/degenerate2.kt"); + } + @TestMetadata("delegatedSuspendMember.kt") public void testDelegatedSuspendMember() { runTest("compiler/testData/codegen/box/coroutines/delegatedSuspendMember.kt"); @@ -8994,6 +9915,26 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/coroutines/falseUnitCoercion.kt"); } + @TestMetadata("functionReference_eqeq_name.kt") + public void testFunctionReference_eqeq_name() { + runTest("compiler/testData/codegen/box/coroutines/functionReference_eqeq_name.kt"); + } + + @TestMetadata("functionReference_invokeAsFunction.kt") + public void testFunctionReference_invokeAsFunction() { + runTest("compiler/testData/codegen/box/coroutines/functionReference_invokeAsFunction.kt"); + } + + @TestMetadata("functionReference_lambdaAsSuspendLambda.kt") + public void testFunctionReference_lambdaAsSuspendLambda() { + runTest("compiler/testData/codegen/box/coroutines/functionReference_lambdaAsSuspendLambda.kt"); + } + + @TestMetadata("functionReference_simple.kt") + public void testFunctionReference_simple() { + runTest("compiler/testData/codegen/box/coroutines/functionReference_simple.kt"); + } + @TestMetadata("generate.kt") public void testGenerate() { runTest("compiler/testData/codegen/box/coroutines/generate.kt"); @@ -9169,6 +10110,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/coroutines/kt38099.kt"); } + @TestMetadata("kt41394.kt") + public void testKt41394() { + runTest("compiler/testData/codegen/box/coroutines/kt41394.kt"); + } + @TestMetadata("kt42028.kt") public void testKt42028() { runTest("compiler/testData/codegen/box/coroutines/kt42028.kt"); @@ -9374,11 +10320,26 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/coroutines/returnByLabel.kt"); } + @TestMetadata("returnsNothing1.kt") + public void testReturnsNothing1() { + runTest("compiler/testData/codegen/box/coroutines/returnsNothing1.kt"); + } + + @TestMetadata("returnsUnit1.kt") + public void testReturnsUnit1() { + runTest("compiler/testData/codegen/box/coroutines/returnsUnit1.kt"); + } + @TestMetadata("simple.kt") public void testSimple() { runTest("compiler/testData/codegen/box/coroutines/simple.kt"); } + @TestMetadata("simple2.kt") + public void testSimple2() { + runTest("compiler/testData/codegen/box/coroutines/simple2.kt"); + } + @TestMetadata("simpleException.kt") public void testSimpleException() { runTest("compiler/testData/codegen/box/coroutines/simpleException.kt"); @@ -9419,6 +10380,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/coroutines/suspendCallsInArguments.kt"); } + @TestMetadata("suspendConversion.kt") + public void testSuspendConversion() { + runTest("compiler/testData/codegen/box/coroutines/suspendConversion.kt"); + } + @TestMetadata("suspendCoroutineFromStateMachine.kt") public void testSuspendCoroutineFromStateMachine() { runTest("compiler/testData/codegen/box/coroutines/suspendCoroutineFromStateMachine.kt"); @@ -9579,6 +10545,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/coroutines/varargCallFromSuspend.kt"); } + @TestMetadata("withReceiver.kt") + public void testWithReceiver() { + runTest("compiler/testData/codegen/box/coroutines/withReceiver.kt"); + } + @TestMetadata("compiler/testData/codegen/box/coroutines/bridges") @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) @@ -11983,6 +12954,34 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes } } + @TestMetadata("compiler/testData/codegen/box/cycles") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Cycles extends AbstractLightAnalysisModeTest { + private void runTest(String testDataFilePath) { + KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); + } + + public void testAllFilesPresentInCycles() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cycles"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @TestMetadata("cycle.kt") + public void testCycle() { + runTest("compiler/testData/codegen/box/cycles/cycle.kt"); + } + + @TestMetadata("cycle_do.kt") + public void testCycle_do() { + runTest("compiler/testData/codegen/box/cycles/cycle_do.kt"); + } + + @TestMetadata("cycle_for.kt") + public void testCycle_for() { + runTest("compiler/testData/codegen/box/cycles/cycle_for.kt"); + } + } + @TestMetadata("compiler/testData/codegen/box/dataClasses") @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) @@ -12394,6 +13393,29 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes } } + @TestMetadata("compiler/testData/codegen/box/dataflow") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Dataflow extends AbstractLightAnalysisModeTest { + private void runTest(String testDataFilePath) { + KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); + } + + public void testAllFilesPresentInDataflow() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/dataflow"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @TestMetadata("scope1.kt") + public void testScope1() { + runTest("compiler/testData/codegen/box/dataflow/scope1.kt"); + } + + @TestMetadata("uninitialized_val.kt") + public void testUninitialized_val() { + runTest("compiler/testData/codegen/box/dataflow/uninitialized_val.kt"); + } + } + @TestMetadata("compiler/testData/codegen/box/deadCodeElimination") @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) @@ -12987,6 +14009,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/delegatedProperty/castSetParameter.kt"); } + @TestMetadata("correctFieldsOrder.kt") + public void testCorrectFieldsOrder() { + runTest("compiler/testData/codegen/box/delegatedProperty/correctFieldsOrder.kt"); + } + @TestMetadata("delegateAsInnerClass.kt") public void testDelegateAsInnerClass() { runTest("compiler/testData/codegen/box/delegatedProperty/delegateAsInnerClass.kt"); @@ -13037,6 +14064,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/delegatedProperty/delegateWithPrivateSet.kt"); } + @TestMetadata("delegatedOverride.kt") + public void testDelegatedOverride() { + runTest("compiler/testData/codegen/box/delegatedProperty/delegatedOverride.kt"); + } + @TestMetadata("delegatedPropertyInEnum.kt") public void testDelegatedPropertyInEnum() { runTest("compiler/testData/codegen/box/delegatedProperty/delegatedPropertyInEnum.kt"); @@ -13152,11 +14184,36 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/delegatedProperty/kt9712.kt"); } + @TestMetadata("lazy.kt") + public void testLazy() { + runTest("compiler/testData/codegen/box/delegatedProperty/lazy.kt"); + } + + @TestMetadata("local.kt") + public void testLocal() { + runTest("compiler/testData/codegen/box/delegatedProperty/local.kt"); + } + + @TestMetadata("map.kt") + public void testMap() { + runTest("compiler/testData/codegen/box/delegatedProperty/map.kt"); + } + @TestMetadata("noTypeVariablesLeft.kt") public void testNoTypeVariablesLeft() { runTest("compiler/testData/codegen/box/delegatedProperty/noTypeVariablesLeft.kt"); } + @TestMetadata("observable.kt") + public void testObservable() { + runTest("compiler/testData/codegen/box/delegatedProperty/observable.kt"); + } + + @TestMetadata("packageLevel.kt") + public void testPackageLevel() { + runTest("compiler/testData/codegen/box/delegatedProperty/packageLevel.kt"); + } + @TestMetadata("privateInSubClass.kt") public void testPrivateInSubClass() { runTest("compiler/testData/codegen/box/delegatedProperty/privateInSubClass.kt"); @@ -13207,6 +14264,16 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/delegatedProperty/setAsExtensionFunInClass.kt"); } + @TestMetadata("simpleVal.kt") + public void testSimpleVal() { + runTest("compiler/testData/codegen/box/delegatedProperty/simpleVal.kt"); + } + + @TestMetadata("simpleVar.kt") + public void testSimpleVar() { + runTest("compiler/testData/codegen/box/delegatedProperty/simpleVar.kt"); + } + @TestMetadata("stackOverflowOnCallFromGetValue.kt") public void testStackOverflowOnCallFromGetValue() { runTest("compiler/testData/codegen/box/delegatedProperty/stackOverflowOnCallFromGetValue.kt"); @@ -14066,6 +15133,39 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes } } + @TestMetadata("compiler/testData/codegen/box/devirtualization") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Devirtualization extends AbstractLightAnalysisModeTest { + private void runTest(String testDataFilePath) { + KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); + } + + public void testAllFilesPresentInDevirtualization() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/devirtualization"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @TestMetadata("anonymousObject.kt") + public void testAnonymousObject() { + runTest("compiler/testData/codegen/box/devirtualization/anonymousObject.kt"); + } + + @TestMetadata("getter_looking_as_box_function.kt") + public void testGetter_looking_as_box_function() { + runTest("compiler/testData/codegen/box/devirtualization/getter_looking_as_box_function.kt"); + } + + @TestMetadata("inline_getter.kt") + public void testInline_getter() { + runTest("compiler/testData/codegen/box/devirtualization/inline_getter.kt"); + } + + @TestMetadata("lateinitInterface.kt") + public void testLateinitInterface() { + runTest("compiler/testData/codegen/box/devirtualization/lateinitInterface.kt"); + } + } + @TestMetadata("compiler/testData/codegen/box/diagnostics") @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) @@ -14668,6 +15768,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/enum/companionAccessingEnumValue.kt"); } + @TestMetadata("companionObject.kt") + public void testCompanionObject() { + runTest("compiler/testData/codegen/box/enum/companionObject.kt"); + } + @TestMetadata("companionObjectInEnum.kt") public void testCompanionObjectInEnum() { runTest("compiler/testData/codegen/box/enum/companionObjectInEnum.kt"); @@ -14823,6 +15928,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/enum/enumWithLambdaParameter.kt"); } + @TestMetadata("enum_equals.kt") + public void testEnum_equals() { + runTest("compiler/testData/codegen/box/enum/enum_equals.kt"); + } + @TestMetadata("getEnumEntityByOrdinal.kt") public void testGetEnumEntityByOrdinal() { runTest("compiler/testData/codegen/box/enum/getEnumEntityByOrdinal.kt"); @@ -14883,6 +15993,16 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/enum/innerWithExistingClassObject.kt"); } + @TestMetadata("interfaceCallNoEntryClass.kt") + public void testInterfaceCallNoEntryClass() { + runTest("compiler/testData/codegen/box/enum/interfaceCallNoEntryClass.kt"); + } + + @TestMetadata("interfaceCallWithEntryClass.kt") + public void testInterfaceCallWithEntryClass() { + runTest("compiler/testData/codegen/box/enum/interfaceCallWithEntryClass.kt"); + } + @TestMetadata("javaClassWithNestedEnum.kt") public void testJavaClassWithNestedEnum() { runTest("compiler/testData/codegen/box/enum/javaClassWithNestedEnum.kt"); @@ -14958,6 +16078,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/enum/kt2350.kt"); } + @TestMetadata("kt38540.kt") + public void testKt38540() { + runTest("compiler/testData/codegen/box/enum/kt38540.kt"); + } + @TestMetadata("kt38996.kt") public void testKt38996() { runTest("compiler/testData/codegen/box/enum/kt38996.kt"); @@ -15038,6 +16163,16 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/enum/kt9711_2.kt"); } + @TestMetadata("lambdaInDefault.kt") + public void testLambdaInDefault() { + runTest("compiler/testData/codegen/box/enum/lambdaInDefault.kt"); + } + + @TestMetadata("loop.kt") + public void testLoop() { + runTest("compiler/testData/codegen/box/enum/loop.kt"); + } + @TestMetadata("manyDefaultParameters.kt") public void testManyDefaultParameters() { runTest("compiler/testData/codegen/box/enum/manyDefaultParameters.kt"); @@ -15048,6 +16183,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/enum/modifierFlags.kt"); } + @TestMetadata("multipleModules.kt") + public void testMultipleModules() { + runTest("compiler/testData/codegen/box/enum/multipleModules.kt"); + } + @TestMetadata("nameClashWithCompanion.kt") public void testNameClashWithCompanion() { runTest("compiler/testData/codegen/box/enum/nameClashWithCompanion.kt"); @@ -15058,11 +16198,21 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/enum/nameConflict.kt"); } + @TestMetadata("nested.kt") + public void testNested() { + runTest("compiler/testData/codegen/box/enum/nested.kt"); + } + @TestMetadata("noClassForSimpleEnum.kt") public void testNoClassForSimpleEnum() { runTest("compiler/testData/codegen/box/enum/noClassForSimpleEnum.kt"); } + @TestMetadata("openMethodNoOverrides.kt") + public void testOpenMethodNoOverrides() { + runTest("compiler/testData/codegen/box/enum/openMethodNoOverrides.kt"); + } + @TestMetadata("ordinal.kt") public void testOrdinal() { runTest("compiler/testData/codegen/box/enum/ordinal.kt"); @@ -15088,6 +16238,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/enum/refToThis.kt"); } + @TestMetadata("reorderedArguments.kt") + public void testReorderedArguments() { + runTest("compiler/testData/codegen/box/enum/reorderedArguments.kt"); + } + @TestMetadata("simple.kt") public void testSimple() { runTest("compiler/testData/codegen/box/enum/simple.kt"); @@ -15133,16 +16288,56 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/enum/superCallInEnumLiteral.kt"); } + @TestMetadata("switchLowering.kt") + public void testSwitchLowering() { + runTest("compiler/testData/codegen/box/enum/switchLowering.kt"); + } + + @TestMetadata("test0.kt") + public void testTest0() { + runTest("compiler/testData/codegen/box/enum/test0.kt"); + } + + @TestMetadata("test1.kt") + public void testTest1() { + runTest("compiler/testData/codegen/box/enum/test1.kt"); + } + @TestMetadata("toString.kt") public void testToString() { runTest("compiler/testData/codegen/box/enum/toString.kt"); } + @TestMetadata("vCallNoEntryClass.kt") + public void testVCallNoEntryClass() { + runTest("compiler/testData/codegen/box/enum/vCallNoEntryClass.kt"); + } + + @TestMetadata("vCallWithEntryClass.kt") + public void testVCallWithEntryClass() { + runTest("compiler/testData/codegen/box/enum/vCallWithEntryClass.kt"); + } + + @TestMetadata("valueOf2.kt") + public void testValueOf2() { + runTest("compiler/testData/codegen/box/enum/valueOf2.kt"); + } + @TestMetadata("valueof.kt") public void testValueof() { runTest("compiler/testData/codegen/box/enum/valueof.kt"); } + @TestMetadata("values.kt") + public void testValues() { + runTest("compiler/testData/codegen/box/enum/values.kt"); + } + + @TestMetadata("varargParam.kt") + public void testVarargParam() { + runTest("compiler/testData/codegen/box/enum/varargParam.kt"); + } + @TestMetadata("whenInObject.kt") public void testWhenInObject() { runTest("compiler/testData/codegen/box/enum/whenInObject.kt"); @@ -15215,6 +16410,99 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes } } + @TestMetadata("compiler/testData/codegen/box/escapeAnalysis") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class EscapeAnalysis extends AbstractLightAnalysisModeTest { + private void runTest(String testDataFilePath) { + KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); + } + + public void testAllFilesPresentInEscapeAnalysis() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/escapeAnalysis"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @TestMetadata("recursion.kt") + public void testRecursion() { + runTest("compiler/testData/codegen/box/escapeAnalysis/recursion.kt"); + } + + @TestMetadata("stack_array.kt") + public void testStack_array() { + runTest("compiler/testData/codegen/box/escapeAnalysis/stack_array.kt"); + } + + @TestMetadata("test1.kt") + public void testTest1() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test1.kt"); + } + + @TestMetadata("test10.kt") + public void testTest10() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test10.kt"); + } + + @TestMetadata("test11.kt") + public void testTest11() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test11.kt"); + } + + @TestMetadata("test12.kt") + public void testTest12() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test12.kt"); + } + + @TestMetadata("test13.kt") + public void testTest13() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test13.kt"); + } + + @TestMetadata("test2.kt") + public void testTest2() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test2.kt"); + } + + @TestMetadata("test3.kt") + public void testTest3() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test3.kt"); + } + + @TestMetadata("test4.kt") + public void testTest4() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test4.kt"); + } + + @TestMetadata("test5.kt") + public void testTest5() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test5.kt"); + } + + @TestMetadata("test6.kt") + public void testTest6() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test6.kt"); + } + + @TestMetadata("test7.kt") + public void testTest7() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test7.kt"); + } + + @TestMetadata("test8.kt") + public void testTest8() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test8.kt"); + } + + @TestMetadata("test9.kt") + public void testTest9() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test9.kt"); + } + + @TestMetadata("zeroOutObjectOnAlloc.kt") + public void testZeroOutObjectOnAlloc() { + runTest("compiler/testData/codegen/box/escapeAnalysis/zeroOutObjectOnAlloc.kt"); + } + } + @TestMetadata("compiler/testData/codegen/box/evaluate") @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) @@ -15313,6 +16601,54 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes } } + @TestMetadata("compiler/testData/codegen/box/exceptions") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Exceptions extends AbstractLightAnalysisModeTest { + private void runTest(String testDataFilePath) { + KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); + } + + public void testAllFilesPresentInExceptions() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/exceptions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @TestMetadata("catch1.kt") + public void testCatch1() { + runTest("compiler/testData/codegen/box/exceptions/catch1.kt"); + } + + @TestMetadata("catch2.kt") + public void testCatch2() { + runTest("compiler/testData/codegen/box/exceptions/catch2.kt"); + } + + @TestMetadata("catch7.kt") + public void testCatch7() { + runTest("compiler/testData/codegen/box/exceptions/catch7.kt"); + } + + @TestMetadata("extend0.kt") + public void testExtend0() { + runTest("compiler/testData/codegen/box/exceptions/extend0.kt"); + } + + @TestMetadata("rethrow.kt") + public void testRethrow() { + runTest("compiler/testData/codegen/box/exceptions/rethrow.kt"); + } + + @TestMetadata("throw0.kt") + public void testThrow0() { + runTest("compiler/testData/codegen/box/exceptions/throw0.kt"); + } + + @TestMetadata("throw_from_catch.kt") + public void testThrow_from_catch() { + runTest("compiler/testData/codegen/box/exceptions/throw_from_catch.kt"); + } + } + @TestMetadata("compiler/testData/codegen/box/exclExcl") @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) @@ -16965,6 +18301,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/funInterface/funInterfaceWithReceiver.kt"); } + @TestMetadata("implIsNotFunction.kt") + public void testImplIsNotFunction() { + runTest("compiler/testData/codegen/box/funInterface/implIsNotFunction.kt"); + } + @TestMetadata("inlinedSamWrapper.kt") public void testInlinedSamWrapper() { runTest("compiler/testData/codegen/box/funInterface/inlinedSamWrapper.kt"); @@ -17005,6 +18346,16 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/funInterface/kt46908_functionSupertype.kt"); } + @TestMetadata("kt49384.kt") + public void testKt49384() { + runTest("compiler/testData/codegen/box/funInterface/kt49384.kt"); + } + + @TestMetadata("kt49384_getSame.kt") + public void testKt49384_getSame() { + runTest("compiler/testData/codegen/box/funInterface/kt49384_getSame.kt"); + } + @TestMetadata("multimodule.kt") public void testMultimodule() { runTest("compiler/testData/codegen/box/funInterface/multimodule.kt"); @@ -17020,6 +18371,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/funInterface/nonAbstractMethod.kt"); } + @TestMetadata("nonTrivialProjectionInSuperType.kt") + public void testNonTrivialProjectionInSuperType() { + runTest("compiler/testData/codegen/box/funInterface/nonTrivialProjectionInSuperType.kt"); + } + @TestMetadata("nullableSam.kt") public void testNullableSam() { runTest("compiler/testData/codegen/box/funInterface/nullableSam.kt"); @@ -17099,6 +18455,199 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes } } + @TestMetadata("compiler/testData/codegen/box/function") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Function extends AbstractLightAnalysisModeTest { + private void runTest(String testDataFilePath) { + KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); + } + + public void testAllFilesPresentInFunction() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/function"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @TestMetadata("arithmetic.kt") + public void testArithmetic() { + runTest("compiler/testData/codegen/box/function/arithmetic.kt"); + } + + @TestMetadata("boolean.kt") + public void testBoolean() { + runTest("compiler/testData/codegen/box/function/boolean.kt"); + } + + @TestMetadata("defaults.kt") + public void testDefaults() { + runTest("compiler/testData/codegen/box/function/defaults.kt"); + } + + @TestMetadata("defaults1.kt") + public void testDefaults1() { + runTest("compiler/testData/codegen/box/function/defaults1.kt"); + } + + @TestMetadata("defaults10.kt") + public void testDefaults10() { + runTest("compiler/testData/codegen/box/function/defaults10.kt"); + } + + @TestMetadata("defaults2.kt") + public void testDefaults2() { + runTest("compiler/testData/codegen/box/function/defaults2.kt"); + } + + @TestMetadata("defaults3.kt") + public void testDefaults3() { + runTest("compiler/testData/codegen/box/function/defaults3.kt"); + } + + @TestMetadata("defaults4.kt") + public void testDefaults4() { + runTest("compiler/testData/codegen/box/function/defaults4.kt"); + } + + @TestMetadata("defaults5.kt") + public void testDefaults5() { + runTest("compiler/testData/codegen/box/function/defaults5.kt"); + } + + @TestMetadata("defaults6.kt") + public void testDefaults6() { + runTest("compiler/testData/codegen/box/function/defaults6.kt"); + } + + @TestMetadata("defaults7.kt") + public void testDefaults7() { + runTest("compiler/testData/codegen/box/function/defaults7.kt"); + } + + @TestMetadata("defaults8.kt") + public void testDefaults8() { + runTest("compiler/testData/codegen/box/function/defaults8.kt"); + } + + @TestMetadata("defaults9.kt") + public void testDefaults9() { + runTest("compiler/testData/codegen/box/function/defaults9.kt"); + } + + @TestMetadata("defaultsFromFakeOverride.kt") + public void testDefaultsFromFakeOverride() { + runTest("compiler/testData/codegen/box/function/defaultsFromFakeOverride.kt"); + } + + @TestMetadata("defaultsWithInlineClasses.kt") + public void testDefaultsWithInlineClasses() { + runTest("compiler/testData/codegen/box/function/defaultsWithInlineClasses.kt"); + } + + @TestMetadata("defaultsWithVarArg1.kt") + public void testDefaultsWithVarArg1() { + runTest("compiler/testData/codegen/box/function/defaultsWithVarArg1.kt"); + } + + @TestMetadata("defaultsWithVarArg2.kt") + public void testDefaultsWithVarArg2() { + runTest("compiler/testData/codegen/box/function/defaultsWithVarArg2.kt"); + } + + @TestMetadata("eqeq.kt") + public void testEqeq() { + runTest("compiler/testData/codegen/box/function/eqeq.kt"); + } + + @TestMetadata("extension.kt") + public void testExtension() { + runTest("compiler/testData/codegen/box/function/extension.kt"); + } + + @TestMetadata("intrinsic.kt") + public void testIntrinsic() { + runTest("compiler/testData/codegen/box/function/intrinsic.kt"); + } + + @TestMetadata("localFunction.kt") + public void testLocalFunction() { + runTest("compiler/testData/codegen/box/function/localFunction.kt"); + } + + @TestMetadata("localFunction2.kt") + public void testLocalFunction2() { + runTest("compiler/testData/codegen/box/function/localFunction2.kt"); + } + + @TestMetadata("localFunction3.kt") + public void testLocalFunction3() { + runTest("compiler/testData/codegen/box/function/localFunction3.kt"); + } + + @TestMetadata("minus_eq.kt") + public void testMinus_eq() { + runTest("compiler/testData/codegen/box/function/minus_eq.kt"); + } + + @TestMetadata("named.kt") + public void testNamed() { + runTest("compiler/testData/codegen/box/function/named.kt"); + } + + @TestMetadata("nothingNReturningSafeCall.kt") + public void testNothingNReturningSafeCall() { + runTest("compiler/testData/codegen/box/function/nothingNReturningSafeCall.kt"); + } + + @TestMetadata("plus_eq.kt") + public void testPlus_eq() { + runTest("compiler/testData/codegen/box/function/plus_eq.kt"); + } + + @TestMetadata("referenceBigArity.kt") + public void testReferenceBigArity() { + runTest("compiler/testData/codegen/box/function/referenceBigArity.kt"); + } + + @TestMetadata("sum.kt") + public void testSum() { + runTest("compiler/testData/codegen/box/function/sum.kt"); + } + + @TestMetadata("sum_3const.kt") + public void testSum_3const() { + runTest("compiler/testData/codegen/box/function/sum_3const.kt"); + } + + @TestMetadata("sum_foo_bar.kt") + public void testSum_foo_bar() { + runTest("compiler/testData/codegen/box/function/sum_foo_bar.kt"); + } + + @TestMetadata("sum_func.kt") + public void testSum_func() { + runTest("compiler/testData/codegen/box/function/sum_func.kt"); + } + + @TestMetadata("sum_imm.kt") + public void testSum_imm() { + runTest("compiler/testData/codegen/box/function/sum_imm.kt"); + } + + @TestMetadata("sum_mixed.kt") + public void testSum_mixed() { + runTest("compiler/testData/codegen/box/function/sum_mixed.kt"); + } + + @TestMetadata("sum_silly.kt") + public void testSum_silly() { + runTest("compiler/testData/codegen/box/function/sum_silly.kt"); + } + + @TestMetadata("unreachableStatementAfterReturn.kt") + public void testUnreachableStatementAfterReturn() { + runTest("compiler/testData/codegen/box/function/unreachableStatementAfterReturn.kt"); + } + } + @TestMetadata("compiler/testData/codegen/box/functions") @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) @@ -18726,6 +20275,410 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes } } + @TestMetadata("compiler/testData/codegen/box/initializers") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Initializers extends AbstractLightAnalysisModeTest { + private void runTest(String testDataFilePath) { + KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); + } + + public void testAllFilesPresentInInitializers() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/initializers"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @TestMetadata("correctOrder1.kt") + public void testCorrectOrder1() { + runTest("compiler/testData/codegen/box/initializers/correctOrder1.kt"); + } + + @TestMetadata("correctOrder2.kt") + public void testCorrectOrder2() { + runTest("compiler/testData/codegen/box/initializers/correctOrder2.kt"); + } + + @TestMetadata("initializers0.kt") + public void testInitializers0() { + runTest("compiler/testData/codegen/box/initializers/initializers0.kt"); + } + + @TestMetadata("initializers1.kt") + public void testInitializers1() { + runTest("compiler/testData/codegen/box/initializers/initializers1.kt"); + } + + @TestMetadata("initializers2.kt") + public void testInitializers2() { + runTest("compiler/testData/codegen/box/initializers/initializers2.kt"); + } + + @TestMetadata("initializers3.kt") + public void testInitializers3() { + runTest("compiler/testData/codegen/box/initializers/initializers3.kt"); + } + + @TestMetadata("initializers4.kt") + public void testInitializers4() { + runTest("compiler/testData/codegen/box/initializers/initializers4.kt"); + } + + @TestMetadata("initializers5.kt") + public void testInitializers5() { + runTest("compiler/testData/codegen/box/initializers/initializers5.kt"); + } + + @TestMetadata("initializers7.kt") + public void testInitializers7() { + runTest("compiler/testData/codegen/box/initializers/initializers7.kt"); + } + + @TestMetadata("initializers8.kt") + public void testInitializers8() { + runTest("compiler/testData/codegen/box/initializers/initializers8.kt"); + } + + @TestMetadata("multipleModules1.kt") + public void testMultipleModules1() { + runTest("compiler/testData/codegen/box/initializers/multipleModules1.kt"); + } + + @TestMetadata("object.kt") + public void testObject() { + runTest("compiler/testData/codegen/box/initializers/object.kt"); + } + + @TestMetadata("sharedVarInInitBlock.kt") + public void testSharedVarInInitBlock() { + runTest("compiler/testData/codegen/box/initializers/sharedVarInInitBlock.kt"); + } + + @TestMetadata("static_arrays.kt") + public void testStatic_arrays() { + runTest("compiler/testData/codegen/box/initializers/static_arrays.kt"); + } + + @TestMetadata("static_list.kt") + public void testStatic_list() { + runTest("compiler/testData/codegen/box/initializers/static_list.kt"); + } + + @TestMetadata("static_smallIntIdentity.kt") + public void testStatic_smallIntIdentity() { + runTest("compiler/testData/codegen/box/initializers/static_smallIntIdentity.kt"); + } + + @TestMetadata("static_varargChange.kt") + public void testStatic_varargChange() { + runTest("compiler/testData/codegen/box/initializers/static_varargChange.kt"); + } + + @TestMetadata("throw1.kt") + public void testThrow1() { + runTest("compiler/testData/codegen/box/initializers/throw1.kt"); + } + + @TestMetadata("throw2.kt") + public void testThrow2() { + runTest("compiler/testData/codegen/box/initializers/throw2.kt"); + } + + @TestMetadata("compiler/testData/codegen/box/initializers/files") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Files extends AbstractLightAnalysisModeTest { + private void runTest(String testDataFilePath) { + KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); + } + + public void testAllFilesPresentInFiles() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/initializers/files"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @TestMetadata("globalInitedAfterAccessingFile.kt") + public void testGlobalInitedAfterAccessingFile() { + runTest("compiler/testData/codegen/box/initializers/files/globalInitedAfterAccessingFile.kt"); + } + + @TestMetadata("globalNotInitedAfterAccessingClassInternals.kt") + public void testGlobalNotInitedAfterAccessingClassInternals() { + runTest("compiler/testData/codegen/box/initializers/files/globalNotInitedAfterAccessingClassInternals.kt"); + } + + @TestMetadata("simple.kt") + public void testSimple() { + runTest("compiler/testData/codegen/box/initializers/files/simple.kt"); + } + + @TestMetadata("simpleMultiModule.kt") + public void testSimpleMultiModule() { + runTest("compiler/testData/codegen/box/initializers/files/simpleMultiModule.kt"); + } + } + } + + @TestMetadata("compiler/testData/codegen/box/inline") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Inline extends AbstractLightAnalysisModeTest { + private void runTest(String testDataFilePath) { + KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); + } + + public void testAllFilesPresentInInline() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inline"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @TestMetadata("changingCapturedLocal.kt") + public void testChangingCapturedLocal() { + runTest("compiler/testData/codegen/box/inline/changingCapturedLocal.kt"); + } + + @TestMetadata("classDeclarationInsideInline.kt") + public void testClassDeclarationInsideInline() { + runTest("compiler/testData/codegen/box/inline/classDeclarationInsideInline.kt"); + } + + @TestMetadata("coercionToUnit.kt") + public void testCoercionToUnit() { + runTest("compiler/testData/codegen/box/inline/coercionToUnit.kt"); + } + + @TestMetadata("correctOrderFunctionReference.kt") + public void testCorrectOrderFunctionReference() { + runTest("compiler/testData/codegen/box/inline/correctOrderFunctionReference.kt"); + } + + @TestMetadata("defaultArgs.kt") + public void testDefaultArgs() { + runTest("compiler/testData/codegen/box/inline/defaultArgs.kt"); + } + + @TestMetadata("defaultArgsMultipleModules.kt") + public void testDefaultArgsMultipleModules() { + runTest("compiler/testData/codegen/box/inline/defaultArgsMultipleModules.kt"); + } + + @TestMetadata("genericFunctionReference.kt") + public void testGenericFunctionReference() { + runTest("compiler/testData/codegen/box/inline/genericFunctionReference.kt"); + } + + @TestMetadata("getClass.kt") + public void testGetClass() { + runTest("compiler/testData/codegen/box/inline/getClass.kt"); + } + + @TestMetadata("inline0.kt") + public void testInline0() { + runTest("compiler/testData/codegen/box/inline/inline0.kt"); + } + + @TestMetadata("inline1.kt") + public void testInline1() { + runTest("compiler/testData/codegen/box/inline/inline1.kt"); + } + + @TestMetadata("inline10.kt") + public void testInline10() { + runTest("compiler/testData/codegen/box/inline/inline10.kt"); + } + + @TestMetadata("inline11.kt") + public void testInline11() { + runTest("compiler/testData/codegen/box/inline/inline11.kt"); + } + + @TestMetadata("inline12.kt") + public void testInline12() { + runTest("compiler/testData/codegen/box/inline/inline12.kt"); + } + + @TestMetadata("inline13.kt") + public void testInline13() { + runTest("compiler/testData/codegen/box/inline/inline13.kt"); + } + + @TestMetadata("inline14.kt") + public void testInline14() { + runTest("compiler/testData/codegen/box/inline/inline14.kt"); + } + + @TestMetadata("inline15.kt") + public void testInline15() { + runTest("compiler/testData/codegen/box/inline/inline15.kt"); + } + + @TestMetadata("inline16.kt") + public void testInline16() { + runTest("compiler/testData/codegen/box/inline/inline16.kt"); + } + + @TestMetadata("inline17.kt") + public void testInline17() { + runTest("compiler/testData/codegen/box/inline/inline17.kt"); + } + + @TestMetadata("inline19.kt") + public void testInline19() { + runTest("compiler/testData/codegen/box/inline/inline19.kt"); + } + + @TestMetadata("inline2.kt") + public void testInline2() { + runTest("compiler/testData/codegen/box/inline/inline2.kt"); + } + + @TestMetadata("inline20.kt") + public void testInline20() { + runTest("compiler/testData/codegen/box/inline/inline20.kt"); + } + + @TestMetadata("inline21.kt") + public void testInline21() { + runTest("compiler/testData/codegen/box/inline/inline21.kt"); + } + + @TestMetadata("inline22.kt") + public void testInline22() { + runTest("compiler/testData/codegen/box/inline/inline22.kt"); + } + + @TestMetadata("inline23.kt") + public void testInline23() { + runTest("compiler/testData/codegen/box/inline/inline23.kt"); + } + + @TestMetadata("inline24.kt") + public void testInline24() { + runTest("compiler/testData/codegen/box/inline/inline24.kt"); + } + + @TestMetadata("inline25.kt") + public void testInline25() { + runTest("compiler/testData/codegen/box/inline/inline25.kt"); + } + + @TestMetadata("inline26.kt") + public void testInline26() { + runTest("compiler/testData/codegen/box/inline/inline26.kt"); + } + + @TestMetadata("inline3.kt") + public void testInline3() { + runTest("compiler/testData/codegen/box/inline/inline3.kt"); + } + + @TestMetadata("inline4.kt") + public void testInline4() { + runTest("compiler/testData/codegen/box/inline/inline4.kt"); + } + + @TestMetadata("inline5.kt") + public void testInline5() { + runTest("compiler/testData/codegen/box/inline/inline5.kt"); + } + + @TestMetadata("inline6.kt") + public void testInline6() { + runTest("compiler/testData/codegen/box/inline/inline6.kt"); + } + + @TestMetadata("inline7.kt") + public void testInline7() { + runTest("compiler/testData/codegen/box/inline/inline7.kt"); + } + + @TestMetadata("inline8.kt") + public void testInline8() { + runTest("compiler/testData/codegen/box/inline/inline8.kt"); + } + + @TestMetadata("inline9.kt") + public void testInline9() { + runTest("compiler/testData/codegen/box/inline/inline9.kt"); + } + + @TestMetadata("inlineCtor.kt") + public void testInlineCtor() { + runTest("compiler/testData/codegen/box/inline/inlineCtor.kt"); + } + + @TestMetadata("innerInlineFunCapturesOuter.kt") + public void testInnerInlineFunCapturesOuter() { + runTest("compiler/testData/codegen/box/inline/innerInlineFunCapturesOuter.kt"); + } + + @TestMetadata("lambdaAsAny.kt") + public void testLambdaAsAny() { + runTest("compiler/testData/codegen/box/inline/lambdaAsAny.kt"); + } + + @TestMetadata("lambdaInDefaultValue.kt") + public void testLambdaInDefaultValue() { + runTest("compiler/testData/codegen/box/inline/lambdaInDefaultValue.kt"); + } + + @TestMetadata("lateinitProperty.kt") + public void testLateinitProperty() { + runTest("compiler/testData/codegen/box/inline/lateinitProperty.kt"); + } + + @TestMetadata("localFunctionInInitializerBlock.kt") + public void testLocalFunctionInInitializerBlock() { + runTest("compiler/testData/codegen/box/inline/localFunctionInInitializerBlock.kt"); + } + + @TestMetadata("localObjectReturnedFromWhen.kt") + public void testLocalObjectReturnedFromWhen() { + runTest("compiler/testData/codegen/box/inline/localObjectReturnedFromWhen.kt"); + } + + @TestMetadata("propertyAccessorInline.kt") + public void testPropertyAccessorInline() { + runTest("compiler/testData/codegen/box/inline/propertyAccessorInline.kt"); + } + + @TestMetadata("redundantCoercionsCleaner.kt") + public void testRedundantCoercionsCleaner() { + runTest("compiler/testData/codegen/box/inline/redundantCoercionsCleaner.kt"); + } + + @TestMetadata("redundantCoercionsCleanerKT48876.kt") + public void testRedundantCoercionsCleanerKT48876() { + runTest("compiler/testData/codegen/box/inline/redundantCoercionsCleanerKT48876.kt"); + } + + @TestMetadata("redundantCoercionsCleanerKT49356.kt") + public void testRedundantCoercionsCleanerKT49356() { + runTest("compiler/testData/codegen/box/inline/redundantCoercionsCleanerKT49356.kt"); + } + + @TestMetadata("returnLocalClassFromBlock.kt") + public void testReturnLocalClassFromBlock() { + runTest("compiler/testData/codegen/box/inline/returnLocalClassFromBlock.kt"); + } + + @TestMetadata("sharedVar.kt") + public void testSharedVar() { + runTest("compiler/testData/codegen/box/inline/sharedVar.kt"); + } + + @TestMetadata("statementAsLastExprInBlock.kt") + public void testStatementAsLastExprInBlock() { + runTest("compiler/testData/codegen/box/inline/statementAsLastExprInBlock.kt"); + } + + @TestMetadata("twiceInlinedObject.kt") + public void testTwiceInlinedObject() { + runTest("compiler/testData/codegen/box/inline/twiceInlinedObject.kt"); + } + + @TestMetadata("typeSubstitutionInFakeOverride.kt") + public void testTypeSubstitutionInFakeOverride() { + runTest("compiler/testData/codegen/box/inline/typeSubstitutionInFakeOverride.kt"); + } + } + @TestMetadata("compiler/testData/codegen/box/inlineArgsInPlace") @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) @@ -18799,6 +20752,39 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes } } + @TestMetadata("compiler/testData/codegen/box/inlineClass") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class InlineClass extends AbstractLightAnalysisModeTest { + private void runTest(String testDataFilePath) { + KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); + } + + public void testAllFilesPresentInInlineClass() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineClass"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @TestMetadata("customEquals.kt") + public void testCustomEquals() { + runTest("compiler/testData/codegen/box/inlineClass/customEquals.kt"); + } + + @TestMetadata("defaultEquals.kt") + public void testDefaultEquals() { + runTest("compiler/testData/codegen/box/inlineClass/defaultEquals.kt"); + } + + @TestMetadata("nestedInlineClasses.kt") + public void testNestedInlineClasses() { + runTest("compiler/testData/codegen/box/inlineClass/nestedInlineClasses.kt"); + } + + @TestMetadata("secondaryConstructorWithGenerics.kt") + public void testSecondaryConstructorWithGenerics() { + runTest("compiler/testData/codegen/box/inlineClass/secondaryConstructorWithGenerics.kt"); + } + } + @TestMetadata("compiler/testData/codegen/box/inlineClasses") @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) @@ -23697,6 +25683,79 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes } } + @TestMetadata("compiler/testData/codegen/box/innerClass") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class InnerClass extends AbstractLightAnalysisModeTest { + private void runTest(String testDataFilePath) { + KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); + } + + public void testAllFilesPresentInInnerClass() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/innerClass"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @TestMetadata("doubleInner.kt") + public void testDoubleInner() { + runTest("compiler/testData/codegen/box/innerClass/doubleInner.kt"); + } + + @TestMetadata("generic.kt") + public void testGeneric() { + runTest("compiler/testData/codegen/box/innerClass/generic.kt"); + } + + @TestMetadata("getOuterVal.kt") + public void testGetOuterVal() { + runTest("compiler/testData/codegen/box/innerClass/getOuterVal.kt"); + } + + @TestMetadata("inheritanceMultipleModules1.kt") + public void testInheritanceMultipleModules1() { + runTest("compiler/testData/codegen/box/innerClass/inheritanceMultipleModules1.kt"); + } + + @TestMetadata("inheritanceMultipleModules2.kt") + public void testInheritanceMultipleModules2() { + runTest("compiler/testData/codegen/box/innerClass/inheritanceMultipleModules2.kt"); + } + + @TestMetadata("inheritanceMultipleModules3.kt") + public void testInheritanceMultipleModules3() { + runTest("compiler/testData/codegen/box/innerClass/inheritanceMultipleModules3.kt"); + } + + @TestMetadata("multipleModules.kt") + public void testMultipleModules() { + runTest("compiler/testData/codegen/box/innerClass/multipleModules.kt"); + } + + @TestMetadata("noPrimaryConstructor.kt") + public void testNoPrimaryConstructor() { + runTest("compiler/testData/codegen/box/innerClass/noPrimaryConstructor.kt"); + } + + @TestMetadata("qualifiedThis.kt") + public void testQualifiedThis() { + runTest("compiler/testData/codegen/box/innerClass/qualifiedThis.kt"); + } + + @TestMetadata("secondaryConstructor.kt") + public void testSecondaryConstructor() { + runTest("compiler/testData/codegen/box/innerClass/secondaryConstructor.kt"); + } + + @TestMetadata("simple.kt") + public void testSimple() { + runTest("compiler/testData/codegen/box/innerClass/simple.kt"); + } + + @TestMetadata("superOuter.kt") + public void testSuperOuter() { + runTest("compiler/testData/codegen/box/innerClass/superOuter.kt"); + } + } + @TestMetadata("compiler/testData/codegen/box/innerNested") @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) @@ -24049,6 +26108,39 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes } } + @TestMetadata("compiler/testData/codegen/box/interfaceCallsNCasts") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class InterfaceCallsNCasts extends AbstractLightAnalysisModeTest { + private void runTest(String testDataFilePath) { + KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); + } + + public void testAllFilesPresentInInterfaceCallsNCasts() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/interfaceCallsNCasts"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @TestMetadata("conservativeItable.kt") + public void testConservativeItable() { + runTest("compiler/testData/codegen/box/interfaceCallsNCasts/conservativeItable.kt"); + } + + @TestMetadata("diamond.kt") + public void testDiamond() { + runTest("compiler/testData/codegen/box/interfaceCallsNCasts/diamond.kt"); + } + + @TestMetadata("finalMethod.kt") + public void testFinalMethod() { + runTest("compiler/testData/codegen/box/interfaceCallsNCasts/finalMethod.kt"); + } + + @TestMetadata("interface0.kt") + public void testInterface0() { + runTest("compiler/testData/codegen/box/interfaceCallsNCasts/interface0.kt"); + } + } + @TestMetadata("compiler/testData/codegen/box/intrinsics") @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) @@ -28616,6 +30708,77 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes } } + @TestMetadata("compiler/testData/codegen/box/kclass") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Kclass extends AbstractLightAnalysisModeTest { + private void runTest(String testDataFilePath) { + KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); + } + + public void testAllFilesPresentInKclass() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/kclass"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @TestMetadata("kClassEnumArgument.kt") + public void testKClassEnumArgument() { + runTest("compiler/testData/codegen/box/kclass/kClassEnumArgument.kt"); + } + + @TestMetadata("kclass1.kt") + public void testKclass1() { + runTest("compiler/testData/codegen/box/kclass/kclass1.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/ktype") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Ktype extends AbstractLightAnalysisModeTest { + private void runTest(String testDataFilePath) { + KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); + } + + public void testAllFilesPresentInKtype() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ktype"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @TestMetadata("ktype1_basics1.kt") + public void testKtype1_basics1() { + runTest("compiler/testData/codegen/box/ktype/ktype1_basics1.kt"); + } + + @TestMetadata("ktype1_inner.kt") + public void testKtype1_inner() { + runTest("compiler/testData/codegen/box/ktype/ktype1_inner.kt"); + } + + @TestMetadata("nonReified_class.kt") + public void testNonReified_class() { + runTest("compiler/testData/codegen/box/ktype/nonReified_class.kt"); + } + + @TestMetadata("nonReified_equality.kt") + public void testNonReified_equality() { + runTest("compiler/testData/codegen/box/ktype/nonReified_equality.kt"); + } + + @TestMetadata("nonReified_fun.kt") + public void testNonReified_fun() { + runTest("compiler/testData/codegen/box/ktype/nonReified_fun.kt"); + } + + @TestMetadata("nonReified_recursionInReified.kt") + public void testNonReified_recursionInReified() { + runTest("compiler/testData/codegen/box/ktype/nonReified_recursionInReified.kt"); + } + + @TestMetadata("nonReified_reifiedUpperBound.kt") + public void testNonReified_reifiedUpperBound() { + runTest("compiler/testData/codegen/box/ktype/nonReified_reifiedUpperBound.kt"); + } + } + @TestMetadata("compiler/testData/codegen/box/labels") @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) @@ -28669,6 +30832,167 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes } } + @TestMetadata("compiler/testData/codegen/box/lambda") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Lambda extends AbstractLightAnalysisModeTest { + private void runTest(String testDataFilePath) { + KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); + } + + public void testAllFilesPresentInLambda() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/lambda"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @TestMetadata("lambda1.kt") + public void testLambda1() { + runTest("compiler/testData/codegen/box/lambda/lambda1.kt"); + } + + @TestMetadata("lambda10.kt") + public void testLambda10() { + runTest("compiler/testData/codegen/box/lambda/lambda10.kt"); + } + + @TestMetadata("lambda11.kt") + public void testLambda11() { + runTest("compiler/testData/codegen/box/lambda/lambda11.kt"); + } + + @TestMetadata("lambda12.kt") + public void testLambda12() { + runTest("compiler/testData/codegen/box/lambda/lambda12.kt"); + } + + @TestMetadata("lambda13.kt") + public void testLambda13() { + runTest("compiler/testData/codegen/box/lambda/lambda13.kt"); + } + + @TestMetadata("lambda14.kt") + public void testLambda14() { + runTest("compiler/testData/codegen/box/lambda/lambda14.kt"); + } + + @TestMetadata("lambda2.kt") + public void testLambda2() { + runTest("compiler/testData/codegen/box/lambda/lambda2.kt"); + } + + @TestMetadata("lambda3.kt") + public void testLambda3() { + runTest("compiler/testData/codegen/box/lambda/lambda3.kt"); + } + + @TestMetadata("lambda4.kt") + public void testLambda4() { + runTest("compiler/testData/codegen/box/lambda/lambda4.kt"); + } + + @TestMetadata("lambda5.kt") + public void testLambda5() { + runTest("compiler/testData/codegen/box/lambda/lambda5.kt"); + } + + @TestMetadata("lambda6.kt") + public void testLambda6() { + runTest("compiler/testData/codegen/box/lambda/lambda6.kt"); + } + + @TestMetadata("lambda7.kt") + public void testLambda7() { + runTest("compiler/testData/codegen/box/lambda/lambda7.kt"); + } + + @TestMetadata("lambda8.kt") + public void testLambda8() { + runTest("compiler/testData/codegen/box/lambda/lambda8.kt"); + } + + @TestMetadata("lambda9.kt") + public void testLambda9() { + runTest("compiler/testData/codegen/box/lambda/lambda9.kt"); + } + + @TestMetadata("lambda_kt49360_trivial.kt") + public void testLambda_kt49360_trivial() { + runTest("compiler/testData/codegen/box/lambda/lambda_kt49360_trivial.kt"); + } + + @TestMetadata("lambda_kt49360_withFlow.kt") + public void testLambda_kt49360_withFlow() { + runTest("compiler/testData/codegen/box/lambda/lambda_kt49360_withFlow.kt"); + } + + @TestMetadata("lambda_kt49360_wrapBlock.kt") + public void testLambda_kt49360_wrapBlock() { + runTest("compiler/testData/codegen/box/lambda/lambda_kt49360_wrapBlock.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/lateinit") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Lateinit extends AbstractLightAnalysisModeTest { + private void runTest(String testDataFilePath) { + KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); + } + + public void testAllFilesPresentInLateinit() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/lateinit"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @TestMetadata("globalIsInitialized.kt") + public void testGlobalIsInitialized() { + runTest("compiler/testData/codegen/box/lateinit/globalIsInitialized.kt"); + } + + @TestMetadata("inBaseClass.kt") + public void testInBaseClass() { + runTest("compiler/testData/codegen/box/lateinit/inBaseClass.kt"); + } + + @TestMetadata("initialized.kt") + public void testInitialized() { + runTest("compiler/testData/codegen/box/lateinit/initialized.kt"); + } + + @TestMetadata("innerIsInitialized.kt") + public void testInnerIsInitialized() { + runTest("compiler/testData/codegen/box/lateinit/innerIsInitialized.kt"); + } + + @TestMetadata("isInitialized.kt") + public void testIsInitialized() { + runTest("compiler/testData/codegen/box/lateinit/isInitialized.kt"); + } + + @TestMetadata("localCapturedInitialized.kt") + public void testLocalCapturedInitialized() { + runTest("compiler/testData/codegen/box/lateinit/localCapturedInitialized.kt"); + } + + @TestMetadata("localCapturedNotInitialized.kt") + public void testLocalCapturedNotInitialized() { + runTest("compiler/testData/codegen/box/lateinit/localCapturedNotInitialized.kt"); + } + + @TestMetadata("localInitialized.kt") + public void testLocalInitialized() { + runTest("compiler/testData/codegen/box/lateinit/localInitialized.kt"); + } + + @TestMetadata("localNotInitialized.kt") + public void testLocalNotInitialized() { + runTest("compiler/testData/codegen/box/lateinit/localNotInitialized.kt"); + } + + @TestMetadata("notInitialized.kt") + public void testNotInitialized() { + runTest("compiler/testData/codegen/box/lateinit/notInitialized.kt"); + } + } + @TestMetadata("compiler/testData/codegen/box/lazyCodegen") @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) @@ -28785,6 +31109,92 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes } } + @TestMetadata("compiler/testData/codegen/box/literals") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Literals extends AbstractLightAnalysisModeTest { + private void runTest(String testDataFilePath) { + KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); + } + + public void testAllFilesPresentInLiterals() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/literals"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @TestMetadata("listof1.kt") + public void testListof1() { + runTest("compiler/testData/codegen/box/literals/listof1.kt"); + } + + @TestMetadata("strdedup1.kt") + public void testStrdedup1() { + runTest("compiler/testData/codegen/box/literals/strdedup1.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/localClass") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class LocalClass extends AbstractLightAnalysisModeTest { + private void runTest(String testDataFilePath) { + KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); + } + + public void testAllFilesPresentInLocalClass() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/localClass"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @TestMetadata("innerTakesCapturedFromOuter.kt") + public void testInnerTakesCapturedFromOuter() { + runTest("compiler/testData/codegen/box/localClass/innerTakesCapturedFromOuter.kt"); + } + + @TestMetadata("innerWithCapture.kt") + public void testInnerWithCapture() { + runTest("compiler/testData/codegen/box/localClass/innerWithCapture.kt"); + } + + @TestMetadata("localFunctionCallFromLocalClass.kt") + public void testLocalFunctionCallFromLocalClass() { + runTest("compiler/testData/codegen/box/localClass/localFunctionCallFromLocalClass.kt"); + } + + @TestMetadata("localFunctionInLocalClass.kt") + public void testLocalFunctionInLocalClass() { + runTest("compiler/testData/codegen/box/localClass/localFunctionInLocalClass.kt"); + } + + @TestMetadata("localHierarchy.kt") + public void testLocalHierarchy() { + runTest("compiler/testData/codegen/box/localClass/localHierarchy.kt"); + } + + @TestMetadata("noPrimaryConstructor.kt") + public void testNoPrimaryConstructor() { + runTest("compiler/testData/codegen/box/localClass/noPrimaryConstructor.kt"); + } + + @TestMetadata("objectExpressionInInitializer.kt") + public void testObjectExpressionInInitializer() { + runTest("compiler/testData/codegen/box/localClass/objectExpressionInInitializer.kt"); + } + + @TestMetadata("objectExpressionInProperty.kt") + public void testObjectExpressionInProperty() { + runTest("compiler/testData/codegen/box/localClass/objectExpressionInProperty.kt"); + } + + @TestMetadata("tryCatch.kt") + public void testTryCatch() { + runTest("compiler/testData/codegen/box/localClass/tryCatch.kt"); + } + + @TestMetadata("virtualCallFromConstructor.kt") + public void testVirtualCallFromConstructor() { + runTest("compiler/testData/codegen/box/localClass/virtualCallFromConstructor.kt"); + } + } + @TestMetadata("compiler/testData/codegen/box/localClasses") @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) @@ -28998,6 +31408,42 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes } } + @TestMetadata("compiler/testData/codegen/box/localEscapeAnalysis") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class LocalEscapeAnalysis extends AbstractLightAnalysisModeTest { + private void runTest(String testDataFilePath) { + KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); + } + + public void testAllFilesPresentInLocalEscapeAnalysis() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/localEscapeAnalysis"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @TestMetadata("arraysFieldWrite.kt") + public void testArraysFieldWrite() { + runTest("compiler/testData/codegen/box/localEscapeAnalysis/arraysFieldWrite.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/lower") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Lower extends AbstractLightAnalysisModeTest { + private void runTest(String testDataFilePath) { + KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); + } + + public void testAllFilesPresentInLower() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/lower"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @TestMetadata("localDelegatedProperty.kt") + public void testLocalDelegatedProperty() { + runTest("compiler/testData/codegen/box/lower/localDelegatedProperty.kt"); + } + } + @TestMetadata("compiler/testData/codegen/box/mangling") @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) @@ -29035,6 +31481,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/mangling/internalOverrideSuperCall.kt"); } + @TestMetadata("multipleConstructors.kt") + public void testMultipleConstructors() { + runTest("compiler/testData/codegen/box/mangling/multipleConstructors.kt"); + } + @TestMetadata("noOverrideWithJava.kt") public void testNoOverrideWithJava() { runTest("compiler/testData/codegen/box/mangling/noOverrideWithJava.kt"); @@ -30274,6 +32725,92 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes } } + @TestMetadata("compiler/testData/codegen/box/object") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Object extends AbstractLightAnalysisModeTest { + private void runTest(String testDataFilePath) { + KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); + } + + public void testAllFilesPresentInObject() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/object"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @TestMetadata("constructor0.kt") + public void testConstructor0() { + runTest("compiler/testData/codegen/box/object/constructor0.kt"); + } + + @TestMetadata("fields.kt") + public void testFields() { + runTest("compiler/testData/codegen/box/object/fields.kt"); + } + + @TestMetadata("fields1.kt") + public void testFields1() { + runTest("compiler/testData/codegen/box/object/fields1.kt"); + } + + @TestMetadata("fields2.kt") + public void testFields2() { + runTest("compiler/testData/codegen/box/object/fields2.kt"); + } + + @TestMetadata("globalInitializer.kt") + public void testGlobalInitializer() { + runTest("compiler/testData/codegen/box/object/globalInitializer.kt"); + } + + @TestMetadata("init0.kt") + public void testInit0() { + runTest("compiler/testData/codegen/box/object/init0.kt"); + } + + @TestMetadata("initialization.kt") + public void testInitialization() { + runTest("compiler/testData/codegen/box/object/initialization.kt"); + } + + @TestMetadata("initialization1.kt") + public void testInitialization1() { + runTest("compiler/testData/codegen/box/object/initialization1.kt"); + } + + @TestMetadata("method_call.kt") + public void testMethod_call() { + runTest("compiler/testData/codegen/box/object/method_call.kt"); + } + } + + @TestMetadata("compiler/testData/codegen/box/objectExpression") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class ObjectExpression extends AbstractLightAnalysisModeTest { + private void runTest(String testDataFilePath) { + KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); + } + + public void testAllFilesPresentInObjectExpression() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/objectExpression"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @TestMetadata("expr1.kt") + public void testExpr1() { + runTest("compiler/testData/codegen/box/objectExpression/expr1.kt"); + } + + @TestMetadata("expr2.kt") + public void testExpr2() { + runTest("compiler/testData/codegen/box/objectExpression/expr2.kt"); + } + + @TestMetadata("expr3.kt") + public void testExpr3() { + runTest("compiler/testData/codegen/box/objectExpression/expr3.kt"); + } + } + @TestMetadata("compiler/testData/codegen/box/objectIntrinsics") @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) @@ -33142,6 +35679,59 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes } } + @TestMetadata("compiler/testData/codegen/box/propertyCallableReference") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class PropertyCallableReference extends AbstractLightAnalysisModeTest { + private void runTest(String testDataFilePath) { + KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); + } + + public void testAllFilesPresentInPropertyCallableReference() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/propertyCallableReference"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @TestMetadata("dynamicReceiver.kt") + public void testDynamicReceiver() { + runTest("compiler/testData/codegen/box/propertyCallableReference/dynamicReceiver.kt"); + } + + @TestMetadata("multipleModules.kt") + public void testMultipleModules() { + runTest("compiler/testData/codegen/box/propertyCallableReference/multipleModules.kt"); + } + + @TestMetadata("valClass.kt") + public void testValClass() { + runTest("compiler/testData/codegen/box/propertyCallableReference/valClass.kt"); + } + + @TestMetadata("valExtension.kt") + public void testValExtension() { + runTest("compiler/testData/codegen/box/propertyCallableReference/valExtension.kt"); + } + + @TestMetadata("valModule.kt") + public void testValModule() { + runTest("compiler/testData/codegen/box/propertyCallableReference/valModule.kt"); + } + + @TestMetadata("varClass.kt") + public void testVarClass() { + runTest("compiler/testData/codegen/box/propertyCallableReference/varClass.kt"); + } + + @TestMetadata("varExtension.kt") + public void testVarExtension() { + runTest("compiler/testData/codegen/box/propertyCallableReference/varExtension.kt"); + } + + @TestMetadata("varModule.kt") + public void testVarModule() { + runTest("compiler/testData/codegen/box/propertyCallableReference/varModule.kt"); + } + } + @TestMetadata("compiler/testData/codegen/box/publishedApi") @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) @@ -41039,6 +43629,54 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes } } + @TestMetadata("compiler/testData/codegen/box/serialization") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Serialization extends AbstractLightAnalysisModeTest { + private void runTest(String testDataFilePath) { + KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); + } + + public void testAllFilesPresentInSerialization() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/serialization"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @TestMetadata("deserializedMembers.kt") + public void testDeserializedMembers() { + runTest("compiler/testData/codegen/box/serialization/deserializedMembers.kt"); + } + + @TestMetadata("serializedCatch.kt") + public void testSerializedCatch() { + runTest("compiler/testData/codegen/box/serialization/serializedCatch.kt"); + } + + @TestMetadata("serializedCharConstant.kt") + public void testSerializedCharConstant() { + runTest("compiler/testData/codegen/box/serialization/serializedCharConstant.kt"); + } + + @TestMetadata("serializedDefaultArgs.kt") + public void testSerializedDefaultArgs() { + runTest("compiler/testData/codegen/box/serialization/serializedDefaultArgs.kt"); + } + + @TestMetadata("serializedDoWhile.kt") + public void testSerializedDoWhile() { + runTest("compiler/testData/codegen/box/serialization/serializedDoWhile.kt"); + } + + @TestMetadata("serializedEnumOrdinal.kt") + public void testSerializedEnumOrdinal() { + runTest("compiler/testData/codegen/box/serialization/serializedEnumOrdinal.kt"); + } + + @TestMetadata("serializedVararg.kt") + public void testSerializedVararg() { + runTest("compiler/testData/codegen/box/serialization/serializedVararg.kt"); + } + } + @TestMetadata("compiler/testData/codegen/box/size") @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) @@ -41627,6 +44265,24 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes } } + @TestMetadata("compiler/testData/codegen/box/stringTrim") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class StringTrim extends AbstractLightAnalysisModeTest { + private void runTest(String testDataFilePath) { + KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); + } + + public void testAllFilesPresentInStringTrim() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/stringTrim"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @TestMetadata("stringTrim.kt") + public void testStringTrim() { + runTest("compiler/testData/codegen/box/stringTrim/stringTrim.kt"); + } + } + @TestMetadata("compiler/testData/codegen/box/strings") @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) @@ -42975,6 +45631,124 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes } } + @TestMetadata("compiler/testData/codegen/box/try") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Try extends AbstractLightAnalysisModeTest { + private void runTest(String testDataFilePath) { + KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); + } + + public void testAllFilesPresentInTry() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/try"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); + } + + @TestMetadata("catch3.kt") + public void testCatch3() { + runTest("compiler/testData/codegen/box/try/catch3.kt"); + } + + @TestMetadata("catch4.kt") + public void testCatch4() { + runTest("compiler/testData/codegen/box/try/catch4.kt"); + } + + @TestMetadata("catch5.kt") + public void testCatch5() { + runTest("compiler/testData/codegen/box/try/catch5.kt"); + } + + @TestMetadata("catch6.kt") + public void testCatch6() { + runTest("compiler/testData/codegen/box/try/catch6.kt"); + } + + @TestMetadata("catch8.kt") + public void testCatch8() { + runTest("compiler/testData/codegen/box/try/catch8.kt"); + } + + @TestMetadata("finally1.kt") + public void testFinally1() { + runTest("compiler/testData/codegen/box/try/finally1.kt"); + } + + @TestMetadata("finally10.kt") + public void testFinally10() { + runTest("compiler/testData/codegen/box/try/finally10.kt"); + } + + @TestMetadata("finally11.kt") + public void testFinally11() { + runTest("compiler/testData/codegen/box/try/finally11.kt"); + } + + @TestMetadata("finally2.kt") + public void testFinally2() { + runTest("compiler/testData/codegen/box/try/finally2.kt"); + } + + @TestMetadata("finally3.kt") + public void testFinally3() { + runTest("compiler/testData/codegen/box/try/finally3.kt"); + } + + @TestMetadata("finally4.kt") + public void testFinally4() { + runTest("compiler/testData/codegen/box/try/finally4.kt"); + } + + @TestMetadata("finally5.kt") + public void testFinally5() { + runTest("compiler/testData/codegen/box/try/finally5.kt"); + } + + @TestMetadata("finally6.kt") + public void testFinally6() { + runTest("compiler/testData/codegen/box/try/finally6.kt"); + } + + @TestMetadata("finally7.kt") + public void testFinally7() { + runTest("compiler/testData/codegen/box/try/finally7.kt"); + } + + @TestMetadata("finally8.kt") + public void testFinally8() { + runTest("compiler/testData/codegen/box/try/finally8.kt"); + } + + @TestMetadata("finally9.kt") + public void testFinally9() { + runTest("compiler/testData/codegen/box/try/finally9.kt"); + } + + @TestMetadata("returnsDifferentTypes.kt") + public void testReturnsDifferentTypes() { + runTest("compiler/testData/codegen/box/try/returnsDifferentTypes.kt"); + } + + @TestMetadata("try1.kt") + public void testTry1() { + runTest("compiler/testData/codegen/box/try/try1.kt"); + } + + @TestMetadata("try2.kt") + public void testTry2() { + runTest("compiler/testData/codegen/box/try/try2.kt"); + } + + @TestMetadata("try3.kt") + public void testTry3() { + runTest("compiler/testData/codegen/box/try/try3.kt"); + } + + @TestMetadata("try4.kt") + public void testTry4() { + runTest("compiler/testData/codegen/box/try/try4.kt"); + } + } + @TestMetadata("compiler/testData/codegen/box/typeInfo") @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) 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 9139cf20b70..2a1222cba30 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 @@ -41,6 +41,12 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest { runTest("compiler/testData/codegen/box/annotations/annotationWithDefaultArgInDifferentModule.kt"); } + @Test + @TestMetadata("annotations0.kt") + public void testAnnotations0() { + runTest("compiler/testData/codegen/box/annotations/annotations0.kt"); + } + @Test @TestMetadata("genericAnnotations.kt") public void testGenericAnnotations() { @@ -318,6 +324,82 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest { } } + @Nested + @TestMetadata("compiler/testData/codegen/box/arithmetic") + @TestDataPath("$PROJECT_ROOT") + public class Arithmetic { + @Test + public void testAllFilesPresentInArithmetic() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/arithmetic"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("basic_charConversions.kt") + public void testBasic_charConversions() { + runTest("compiler/testData/codegen/box/arithmetic/basic_charConversions.kt"); + } + + @Test + @TestMetadata("basic_charCornerCases.kt") + public void testBasic_charCornerCases() { + runTest("compiler/testData/codegen/box/arithmetic/basic_charCornerCases.kt"); + } + + @Test + @TestMetadata("basic_compareIntToFloat.kt") + public void testBasic_compareIntToFloat() { + runTest("compiler/testData/codegen/box/arithmetic/basic_compareIntToFloat.kt"); + } + + @Test + @TestMetadata("basic_doubleBasic.kt") + public void testBasic_doubleBasic() { + runTest("compiler/testData/codegen/box/arithmetic/basic_doubleBasic.kt"); + } + + @Test + @TestMetadata("basic_integralToFloat.kt") + public void testBasic_integralToFloat() { + runTest("compiler/testData/codegen/box/arithmetic/basic_integralToFloat.kt"); + } + + @Test + @TestMetadata("basic_kt37412.kt") + public void testBasic_kt37412() { + runTest("compiler/testData/codegen/box/arithmetic/basic_kt37412.kt"); + } + + @Test + @TestMetadata("basic_selfComparison.kt") + public void testBasic_selfComparison() { + runTest("compiler/testData/codegen/box/arithmetic/basic_selfComparison.kt"); + } + + @Test + @TestMetadata("basic_shifts.kt") + public void testBasic_shifts() { + runTest("compiler/testData/codegen/box/arithmetic/basic_shifts.kt"); + } + + @Test + @TestMetadata("basic_uintTests.kt") + public void testBasic_uintTests() { + runTest("compiler/testData/codegen/box/arithmetic/basic_uintTests.kt"); + } + + @Test + @TestMetadata("division.kt") + public void testDivision() { + runTest("compiler/testData/codegen/box/arithmetic/division.kt"); + } + + @Test + @TestMetadata("github1856.kt") + public void testGithub1856() { + runTest("compiler/testData/codegen/box/arithmetic/github1856.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/arrays") @TestDataPath("$PROJECT_ROOT") @@ -972,6 +1054,302 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest { } } + @Nested + @TestMetadata("compiler/testData/codegen/box/basics") + @TestDataPath("$PROJECT_ROOT") + public class Basics { + @Test + public void testAllFilesPresentInBasics() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/basics"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("array_to_any.kt") + public void testArray_to_any() { + runTest("compiler/testData/codegen/box/basics/array_to_any.kt"); + } + + @Test + @TestMetadata("canonical_name.kt") + public void testCanonical_name() { + runTest("compiler/testData/codegen/box/basics/canonical_name.kt"); + } + + @Test + @TestMetadata("cast_null.kt") + public void testCast_null() { + runTest("compiler/testData/codegen/box/basics/cast_null.kt"); + } + + @Test + @TestMetadata("cast_simple.kt") + public void testCast_simple() { + runTest("compiler/testData/codegen/box/basics/cast_simple.kt"); + } + + @Test + @TestMetadata("check_type.kt") + public void testCheck_type() { + runTest("compiler/testData/codegen/box/basics/check_type.kt"); + } + + @Test + @TestMetadata("companion.kt") + public void testCompanion() { + runTest("compiler/testData/codegen/box/basics/companion.kt"); + } + + @Test + @TestMetadata("concatenation.kt") + public void testConcatenation() { + runTest("compiler/testData/codegen/box/basics/concatenation.kt"); + } + + @Test + @TestMetadata("const_infinity.kt") + public void testConst_infinity() { + runTest("compiler/testData/codegen/box/basics/const_infinity.kt"); + } + + @Test + @TestMetadata("expression_as_statement.kt") + public void testExpression_as_statement() { + runTest("compiler/testData/codegen/box/basics/expression_as_statement.kt"); + } + + @Test + @TestMetadata("k42000_1.kt") + public void testK42000_1() { + runTest("compiler/testData/codegen/box/basics/k42000_1.kt"); + } + + @Test + @TestMetadata("k42000_2.kt") + public void testK42000_2() { + runTest("compiler/testData/codegen/box/basics/k42000_2.kt"); + } + + @Test + @TestMetadata("local_variable.kt") + public void testLocal_variable() { + runTest("compiler/testData/codegen/box/basics/local_variable.kt"); + } + + @Test + @TestMetadata("null_check.kt") + public void testNull_check() { + runTest("compiler/testData/codegen/box/basics/null_check.kt"); + } + + @Test + @TestMetadata("safe_cast.kt") + public void testSafe_cast() { + runTest("compiler/testData/codegen/box/basics/safe_cast.kt"); + } + + @Test + @TestMetadata("spread_operator_0.kt") + public void testSpread_operator_0() { + runTest("compiler/testData/codegen/box/basics/spread_operator_0.kt"); + } + + @Test + @TestMetadata("statements0.kt") + public void testStatements0() { + runTest("compiler/testData/codegen/box/basics/statements0.kt"); + } + + @Test + @TestMetadata("superFunCall.kt") + public void testSuperFunCall() { + runTest("compiler/testData/codegen/box/basics/superFunCall.kt"); + } + + @Test + @TestMetadata("superGetterCall.kt") + public void testSuperGetterCall() { + runTest("compiler/testData/codegen/box/basics/superGetterCall.kt"); + } + + @Test + @TestMetadata("superSetterCall.kt") + public void testSuperSetterCall() { + runTest("compiler/testData/codegen/box/basics/superSetterCall.kt"); + } + + @Test + @TestMetadata("typealias1.kt") + public void testTypealias1() { + runTest("compiler/testData/codegen/box/basics/typealias1.kt"); + } + + @Test + @TestMetadata("unchecked_cast1.kt") + public void testUnchecked_cast1() { + runTest("compiler/testData/codegen/box/basics/unchecked_cast1.kt"); + } + + @Test + @TestMetadata("unchecked_cast2.kt") + public void testUnchecked_cast2() { + runTest("compiler/testData/codegen/box/basics/unchecked_cast2.kt"); + } + + @Test + @TestMetadata("unchecked_cast3.kt") + public void testUnchecked_cast3() { + runTest("compiler/testData/codegen/box/basics/unchecked_cast3.kt"); + } + + @Test + @TestMetadata("unchecked_cast4.kt") + public void testUnchecked_cast4() { + runTest("compiler/testData/codegen/box/basics/unchecked_cast4.kt"); + } + + @Test + @TestMetadata("unit1.kt") + public void testUnit1() { + runTest("compiler/testData/codegen/box/basics/unit1.kt"); + } + + @Test + @TestMetadata("unit2.kt") + public void testUnit2() { + runTest("compiler/testData/codegen/box/basics/unit2.kt"); + } + + @Test + @TestMetadata("unit3.kt") + public void testUnit3() { + runTest("compiler/testData/codegen/box/basics/unit3.kt"); + } + + @Test + @TestMetadata("unit4.kt") + public void testUnit4() { + runTest("compiler/testData/codegen/box/basics/unit4.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/bce") + @TestDataPath("$PROJECT_ROOT") + public class Bce { + @Test + public void testAllFilesPresentInBce() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/bce"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("bceCases.kt") + public void testBceCases() { + runTest("compiler/testData/codegen/box/bce/bceCases.kt"); + } + + @Test + @TestMetadata("customGetter.kt") + public void testCustomGetter() { + runTest("compiler/testData/codegen/box/bce/customGetter.kt"); + } + + @Test + @TestMetadata("delegatedProperty.kt") + public void testDelegatedProperty() { + runTest("compiler/testData/codegen/box/bce/delegatedProperty.kt"); + } + + @Test + @TestMetadata("differentArrays.kt") + public void testDifferentArrays() { + runTest("compiler/testData/codegen/box/bce/differentArrays.kt"); + } + + @Test + @TestMetadata("differentObjects.kt") + public void testDifferentObjects() { + runTest("compiler/testData/codegen/box/bce/differentObjects.kt"); + } + + @Test + @TestMetadata("forDownToSize.kt") + public void testForDownToSize() { + runTest("compiler/testData/codegen/box/bce/forDownToSize.kt"); + } + + @Test + @TestMetadata("forDownToWithStep.kt") + public void testForDownToWithStep() { + runTest("compiler/testData/codegen/box/bce/forDownToWithStep.kt"); + } + + @Test + @TestMetadata("forEachIndexedTest.kt") + public void testForEachIndexedTest() { + runTest("compiler/testData/codegen/box/bce/forEachIndexedTest.kt"); + } + + @Test + @TestMetadata("forEachIndicies.kt") + public void testForEachIndicies() { + runTest("compiler/testData/codegen/box/bce/forEachIndicies.kt"); + } + + @Test + @TestMetadata("forIndiciesWithStep.kt") + public void testForIndiciesWithStep() { + runTest("compiler/testData/codegen/box/bce/forIndiciesWithStep.kt"); + } + + @Test + @TestMetadata("forRangeToSize.kt") + public void testForRangeToSize() { + runTest("compiler/testData/codegen/box/bce/forRangeToSize.kt"); + } + + @Test + @TestMetadata("forRangeToWithStep.kt") + public void testForRangeToWithStep() { + runTest("compiler/testData/codegen/box/bce/forRangeToWithStep.kt"); + } + + @Test + @TestMetadata("forReversed.kt") + public void testForReversed() { + runTest("compiler/testData/codegen/box/bce/forReversed.kt"); + } + + @Test + @TestMetadata("forUntilSize.kt") + public void testForUntilSize() { + runTest("compiler/testData/codegen/box/bce/forUntilSize.kt"); + } + + @Test + @TestMetadata("forUntilWithStep.kt") + public void testForUntilWithStep() { + runTest("compiler/testData/codegen/box/bce/forUntilWithStep.kt"); + } + + @Test + @TestMetadata("forWithIndex.kt") + public void testForWithIndex() { + runTest("compiler/testData/codegen/box/bce/forWithIndex.kt"); + } + + @Test + @TestMetadata("inheritance.kt") + public void testInheritance() { + runTest("compiler/testData/codegen/box/bce/inheritance.kt"); + } + + @Test + @TestMetadata("withGetter.kt") + public void testWithGetter() { + runTest("compiler/testData/codegen/box/bce/withGetter.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/binaryOp") @TestDataPath("$PROJECT_ROOT") @@ -1138,6 +1516,124 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest { } } + @Nested + @TestMetadata("compiler/testData/codegen/box/boxing") + @TestDataPath("$PROJECT_ROOT") + public class Boxing { + @Test + public void testAllFilesPresentInBoxing() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/boxing"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("box_cache0.kt") + public void testBox_cache0() { + runTest("compiler/testData/codegen/box/boxing/box_cache0.kt"); + } + + @Test + @TestMetadata("boxing0.kt") + public void testBoxing0() { + runTest("compiler/testData/codegen/box/boxing/boxing0.kt"); + } + + @Test + @TestMetadata("boxing1.kt") + public void testBoxing1() { + runTest("compiler/testData/codegen/box/boxing/boxing1.kt"); + } + + @Test + @TestMetadata("boxing10.kt") + public void testBoxing10() { + runTest("compiler/testData/codegen/box/boxing/boxing10.kt"); + } + + @Test + @TestMetadata("boxing11.kt") + public void testBoxing11() { + runTest("compiler/testData/codegen/box/boxing/boxing11.kt"); + } + + @Test + @TestMetadata("boxing12.kt") + public void testBoxing12() { + runTest("compiler/testData/codegen/box/boxing/boxing12.kt"); + } + + @Test + @TestMetadata("boxing13.kt") + public void testBoxing13() { + runTest("compiler/testData/codegen/box/boxing/boxing13.kt"); + } + + @Test + @TestMetadata("boxing14.kt") + public void testBoxing14() { + runTest("compiler/testData/codegen/box/boxing/boxing14.kt"); + } + + @Test + @TestMetadata("boxing15.kt") + public void testBoxing15() { + runTest("compiler/testData/codegen/box/boxing/boxing15.kt"); + } + + @Test + @TestMetadata("boxing2.kt") + public void testBoxing2() { + runTest("compiler/testData/codegen/box/boxing/boxing2.kt"); + } + + @Test + @TestMetadata("boxing3.kt") + public void testBoxing3() { + runTest("compiler/testData/codegen/box/boxing/boxing3.kt"); + } + + @Test + @TestMetadata("boxing4.kt") + public void testBoxing4() { + runTest("compiler/testData/codegen/box/boxing/boxing4.kt"); + } + + @Test + @TestMetadata("boxing5.kt") + public void testBoxing5() { + runTest("compiler/testData/codegen/box/boxing/boxing5.kt"); + } + + @Test + @TestMetadata("boxing6.kt") + public void testBoxing6() { + runTest("compiler/testData/codegen/box/boxing/boxing6.kt"); + } + + @Test + @TestMetadata("boxing7.kt") + public void testBoxing7() { + runTest("compiler/testData/codegen/box/boxing/boxing7.kt"); + } + + @Test + @TestMetadata("boxing8.kt") + public void testBoxing8() { + runTest("compiler/testData/codegen/box/boxing/boxing8.kt"); + } + + @Test + @TestMetadata("boxing9.kt") + public void testBoxing9() { + runTest("compiler/testData/codegen/box/boxing/boxing9.kt"); + } + + @Test + @TestMetadata("kt53100_casts.kt") + public void testKt53100_casts() { + runTest("compiler/testData/codegen/box/boxing/kt53100_casts.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/boxingOptimization") @TestDataPath("$PROJECT_ROOT") @@ -1382,6 +1878,88 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest { } } + @Nested + @TestMetadata("compiler/testData/codegen/box/branching") + @TestDataPath("$PROJECT_ROOT") + public class Branching { + @Test + @TestMetadata("advanced_when2.kt") + public void testAdvanced_when2() { + runTest("compiler/testData/codegen/box/branching/advanced_when2.kt"); + } + + @Test + @TestMetadata("advanced_when5.kt") + public void testAdvanced_when5() { + runTest("compiler/testData/codegen/box/branching/advanced_when5.kt"); + } + + @Test + public void testAllFilesPresentInBranching() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/branching"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("if_else.kt") + public void testIf_else() { + runTest("compiler/testData/codegen/box/branching/if_else.kt"); + } + + @Test + @TestMetadata("when2.kt") + public void testWhen2() { + runTest("compiler/testData/codegen/box/branching/when2.kt"); + } + + @Test + @TestMetadata("when4.kt") + public void testWhen4() { + runTest("compiler/testData/codegen/box/branching/when4.kt"); + } + + @Test + @TestMetadata("when5.kt") + public void testWhen5() { + runTest("compiler/testData/codegen/box/branching/when5.kt"); + } + + @Test + @TestMetadata("when6.kt") + public void testWhen6() { + runTest("compiler/testData/codegen/box/branching/when6.kt"); + } + + @Test + @TestMetadata("when7.kt") + public void testWhen7() { + runTest("compiler/testData/codegen/box/branching/when7.kt"); + } + + @Test + @TestMetadata("when8.kt") + public void testWhen8() { + runTest("compiler/testData/codegen/box/branching/when8.kt"); + } + + @Test + @TestMetadata("when9.kt") + public void testWhen9() { + runTest("compiler/testData/codegen/box/branching/when9.kt"); + } + + @Test + @TestMetadata("when_through.kt") + public void testWhen_through() { + runTest("compiler/testData/codegen/box/branching/when_through.kt"); + } + + @Test + @TestMetadata("when_with_try1.kt") + public void testWhen_with_try1() { + runTest("compiler/testData/codegen/box/branching/when_with_try1.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/bridges") @TestDataPath("$PROJECT_ROOT") @@ -1637,6 +2215,18 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest { runTest("compiler/testData/codegen/box/bridges/methodWithDefaultParameter.kt"); } + @Test + @TestMetadata("multipleModules1.kt") + public void testMultipleModules1() { + runTest("compiler/testData/codegen/box/bridges/multipleModules1.kt"); + } + + @Test + @TestMetadata("multipleModules2.kt") + public void testMultipleModules2() { + runTest("compiler/testData/codegen/box/bridges/multipleModules2.kt"); + } + @Test @TestMetadata("nestedClassTypeParameters.kt") public void testNestedClassTypeParameters() { @@ -1697,6 +2287,12 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest { runTest("compiler/testData/codegen/box/bridges/propertySetter.kt"); } + @Test + @TestMetadata("returnTypeSignature.kt") + public void testReturnTypeSignature() { + runTest("compiler/testData/codegen/box/bridges/returnTypeSignature.kt"); + } + @Test @TestMetadata("simple.kt") public void testSimple() { @@ -1739,12 +2335,138 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest { runTest("compiler/testData/codegen/box/bridges/simpleUpperBound.kt"); } + @Test + @TestMetadata("special.kt") + public void testSpecial() { + runTest("compiler/testData/codegen/box/bridges/special.kt"); + } + + @Test + @TestMetadata("specialGeneric.kt") + public void testSpecialGeneric() { + runTest("compiler/testData/codegen/box/bridges/specialGeneric.kt"); + } + @Test @TestMetadata("strListContains.kt") public void testStrListContains() { runTest("compiler/testData/codegen/box/bridges/strListContains.kt"); } + @Test + @TestMetadata("test0.kt") + public void testTest0() { + runTest("compiler/testData/codegen/box/bridges/test0.kt"); + } + + @Test + @TestMetadata("test1.kt") + public void testTest1() { + runTest("compiler/testData/codegen/box/bridges/test1.kt"); + } + + @Test + @TestMetadata("test10.kt") + public void testTest10() { + runTest("compiler/testData/codegen/box/bridges/test10.kt"); + } + + @Test + @TestMetadata("test11.kt") + public void testTest11() { + runTest("compiler/testData/codegen/box/bridges/test11.kt"); + } + + @Test + @TestMetadata("test12.kt") + public void testTest12() { + runTest("compiler/testData/codegen/box/bridges/test12.kt"); + } + + @Test + @TestMetadata("test13.kt") + public void testTest13() { + runTest("compiler/testData/codegen/box/bridges/test13.kt"); + } + + @Test + @TestMetadata("test14.kt") + public void testTest14() { + runTest("compiler/testData/codegen/box/bridges/test14.kt"); + } + + @Test + @TestMetadata("test15.kt") + public void testTest15() { + runTest("compiler/testData/codegen/box/bridges/test15.kt"); + } + + @Test + @TestMetadata("test16.kt") + public void testTest16() { + runTest("compiler/testData/codegen/box/bridges/test16.kt"); + } + + @Test + @TestMetadata("test17.kt") + public void testTest17() { + runTest("compiler/testData/codegen/box/bridges/test17.kt"); + } + + @Test + @TestMetadata("test18.kt") + public void testTest18() { + runTest("compiler/testData/codegen/box/bridges/test18.kt"); + } + + @Test + @TestMetadata("test2.kt") + public void testTest2() { + runTest("compiler/testData/codegen/box/bridges/test2.kt"); + } + + @Test + @TestMetadata("test3.kt") + public void testTest3() { + runTest("compiler/testData/codegen/box/bridges/test3.kt"); + } + + @Test + @TestMetadata("test4.kt") + public void testTest4() { + runTest("compiler/testData/codegen/box/bridges/test4.kt"); + } + + @Test + @TestMetadata("test5.kt") + public void testTest5() { + runTest("compiler/testData/codegen/box/bridges/test5.kt"); + } + + @Test + @TestMetadata("test6.kt") + public void testTest6() { + runTest("compiler/testData/codegen/box/bridges/test6.kt"); + } + + @Test + @TestMetadata("test7.kt") + public void testTest7() { + runTest("compiler/testData/codegen/box/bridges/test7.kt"); + } + + @Test + @TestMetadata("test8.kt") + public void testTest8() { + runTest("compiler/testData/codegen/box/bridges/test8.kt"); + } + + @Test + @TestMetadata("test9.kt") + public void testTest9() { + runTest("compiler/testData/codegen/box/bridges/test9.kt"); + } + @Test @TestMetadata("traitImplInheritsTraitImpl.kt") public void testTraitImplInheritsTraitImpl() { @@ -4644,6 +5366,46 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest { } } + @Nested + @TestMetadata("compiler/testData/codegen/box/classDelegation") + @TestDataPath("$PROJECT_ROOT") + public class ClassDelegation { + @Test + public void testAllFilesPresentInClassDelegation() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/classDelegation"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("generic.kt") + public void testGeneric() { + runTest("compiler/testData/codegen/box/classDelegation/generic.kt"); + } + + @Test + @TestMetadata("method.kt") + public void testMethod() { + runTest("compiler/testData/codegen/box/classDelegation/method.kt"); + } + + @Test + @TestMetadata("multipleModules.kt") + public void testMultipleModules() { + runTest("compiler/testData/codegen/box/classDelegation/multipleModules.kt"); + } + + @Test + @TestMetadata("property.kt") + public void testProperty() { + runTest("compiler/testData/codegen/box/classDelegation/property.kt"); + } + + @Test + @TestMetadata("withBridge.kt") + public void testWithBridge() { + runTest("compiler/testData/codegen/box/classDelegation/withBridge.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/classLiteral") @TestDataPath("$PROJECT_ROOT") @@ -6353,6 +7115,12 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest { runTest("compiler/testData/codegen/box/contracts/constructorArgument.kt"); } + @Test + @TestMetadata("contractForCast.kt") + public void testContractForCast() { + runTest("compiler/testData/codegen/box/contracts/contractForCast.kt"); + } + @Test @TestMetadata("destructuredVariable.kt") public void testDestructuredVariable() { @@ -6395,6 +7163,12 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest { runTest("compiler/testData/codegen/box/contracts/functionParameter.kt"); } + @Test + @TestMetadata("isNullString.kt") + public void testIsNullString() { + runTest("compiler/testData/codegen/box/contracts/isNullString.kt"); + } + @Test @TestMetadata("kt39374.kt") public void testKt39374() { @@ -6437,6 +7211,24 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest { runTest("compiler/testData/codegen/box/contracts/nestedLambdaInNonInlineCallExactlyOnce.kt"); } + @Test + @TestMetadata("nonNullSmartCast.kt") + public void testNonNullSmartCast() { + runTest("compiler/testData/codegen/box/contracts/nonNullSmartCast.kt"); + } + + @Test + @TestMetadata("require.kt") + public void testRequire() { + runTest("compiler/testData/codegen/box/contracts/require.kt"); + } + + @Test + @TestMetadata("runLambdaForVal.kt") + public void testRunLambdaForVal() { + runTest("compiler/testData/codegen/box/contracts/runLambdaForVal.kt"); + } + @Test @TestMetadata("valInWhen.kt") public void testValInWhen() { @@ -7818,6 +8610,124 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest { } } + @Nested + @TestMetadata("compiler/testData/codegen/box/controlflow") + @TestDataPath("$PROJECT_ROOT") + public class Controlflow { + @Test + public void testAllFilesPresentInControlflow() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/controlflow"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("break.kt") + public void testBreak() { + runTest("compiler/testData/codegen/box/controlflow/break.kt"); + } + + @Test + @TestMetadata("break1.kt") + public void testBreak1() { + runTest("compiler/testData/codegen/box/controlflow/break1.kt"); + } + + @Test + @TestMetadata("for_loops.kt") + public void testFor_loops() { + runTest("compiler/testData/codegen/box/controlflow/for_loops.kt"); + } + + @Test + @TestMetadata("for_loops_array_break_continue.kt") + public void testFor_loops_array_break_continue() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_array_break_continue.kt"); + } + + @Test + @TestMetadata("for_loops_array_indices.kt") + public void testFor_loops_array_indices() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_array_indices.kt"); + } + + @Test + @TestMetadata("for_loops_array_mutation.kt") + public void testFor_loops_array_mutation() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_array_mutation.kt"); + } + + @Test + @TestMetadata("for_loops_array_nested.kt") + public void testFor_loops_array_nested() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_array_nested.kt"); + } + + @Test + @TestMetadata("for_loops_array_nullable.kt") + public void testFor_loops_array_nullable() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_array_nullable.kt"); + } + + @Test + @TestMetadata("for_loops_array_side_effects.kt") + public void testFor_loops_array_side_effects() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_array_side_effects.kt"); + } + + @Test + @TestMetadata("for_loops_call_order.kt") + public void testFor_loops_call_order() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_call_order.kt"); + } + + @Test + @TestMetadata("for_loops_coroutines.kt") + public void testFor_loops_coroutines() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_coroutines.kt"); + } + + @Test + @TestMetadata("for_loops_empty_range.kt") + public void testFor_loops_empty_range() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_empty_range.kt"); + } + + @Test + @TestMetadata("for_loops_errors.kt") + public void testFor_loops_errors() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_errors.kt"); + } + + @Test + @TestMetadata("for_loops_let_with_nullable.kt") + public void testFor_loops_let_with_nullable() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_let_with_nullable.kt"); + } + + @Test + @TestMetadata("for_loops_nested.kt") + public void testFor_loops_nested() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_nested.kt"); + } + + @Test + @TestMetadata("for_loops_overflow.kt") + public void testFor_loops_overflow() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_overflow.kt"); + } + + @Test + @TestMetadata("for_loops_types.kt") + public void testFor_loops_types() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_types.kt"); + } + + @Test + @TestMetadata("unreachable1.kt") + public void testUnreachable1() { + runTest("compiler/testData/codegen/box/controlflow/unreachable1.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/coroutines") @TestDataPath("$PROJECT_ROOT") @@ -7839,6 +8749,12 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); } + @Test + @TestMetadata("anonymousObject.kt") + public void testAnonymousObject() { + runTest("compiler/testData/codegen/box/coroutines/anonymousObject.kt"); + } + @Test @TestMetadata("asyncIteratorNullMerge_1_3.kt") public void testAsyncIteratorNullMerge_1_3() { @@ -7923,18 +8839,156 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest { runTest("compiler/testData/codegen/box/coroutines/coercionToUnit.kt"); } + @Test + @TestMetadata("controlFlow_chain.kt") + public void testControlFlow_chain() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_chain.kt"); + } + + @Test + @TestMetadata("controlFlow_finally1.kt") + public void testControlFlow_finally1() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally1.kt"); + } + + @Test + @TestMetadata("controlFlow_finally2.kt") + public void testControlFlow_finally2() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally2.kt"); + } + + @Test + @TestMetadata("controlFlow_finally3.kt") + public void testControlFlow_finally3() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally3.kt"); + } + + @Test + @TestMetadata("controlFlow_finally4.kt") + public void testControlFlow_finally4() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally4.kt"); + } + + @Test + @TestMetadata("controlFlow_finally5.kt") + public void testControlFlow_finally5() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally5.kt"); + } + + @Test + @TestMetadata("controlFlow_finally6.kt") + public void testControlFlow_finally6() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally6.kt"); + } + + @Test + @TestMetadata("controlFlow_finally7.kt") + public void testControlFlow_finally7() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally7.kt"); + } + + @Test + @TestMetadata("controlFlow_if1.kt") + public void testControlFlow_if1() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_if1.kt"); + } + + @Test + @TestMetadata("controlFlow_if2.kt") + public void testControlFlow_if2() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_if2.kt"); + } + + @Test + @TestMetadata("controlFlow_inline1.kt") + public void testControlFlow_inline1() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_inline1.kt"); + } + + @Test + @TestMetadata("controlFlow_inline2.kt") + public void testControlFlow_inline2() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_inline2.kt"); + } + + @Test + @TestMetadata("controlFlow_inline3.kt") + public void testControlFlow_inline3() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_inline3.kt"); + } + + @Test + @TestMetadata("controlFlow_tryCatch1.kt") + public void testControlFlow_tryCatch1() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_tryCatch1.kt"); + } + + @Test + @TestMetadata("controlFlow_tryCatch2.kt") + public void testControlFlow_tryCatch2() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_tryCatch2.kt"); + } + + @Test + @TestMetadata("controlFlow_tryCatch3.kt") + public void testControlFlow_tryCatch3() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_tryCatch3.kt"); + } + + @Test + @TestMetadata("controlFlow_tryCatch4.kt") + public void testControlFlow_tryCatch4() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_tryCatch4.kt"); + } + + @Test + @TestMetadata("controlFlow_tryCatch5.kt") + public void testControlFlow_tryCatch5() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_tryCatch5.kt"); + } + + @Test + @TestMetadata("controlFlow_while1.kt") + public void testControlFlow_while1() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_while1.kt"); + } + + @Test + @TestMetadata("controlFlow_while2.kt") + public void testControlFlow_while2() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_while2.kt"); + } + @Test @TestMetadata("controllerAccessFromInnerLambda.kt") public void testControllerAccessFromInnerLambda() { runTest("compiler/testData/codegen/box/coroutines/controllerAccessFromInnerLambda.kt"); } + @Test + @TestMetadata("coroutineContext1.kt") + public void testCoroutineContext1() { + runTest("compiler/testData/codegen/box/coroutines/coroutineContext1.kt"); + } + + @Test + @TestMetadata("coroutineContext2.kt") + public void testCoroutineContext2() { + runTest("compiler/testData/codegen/box/coroutines/coroutineContext2.kt"); + } + @Test @TestMetadata("coroutineContextInInlinedLambda.kt") public void testCoroutineContextInInlinedLambda() { runTest("compiler/testData/codegen/box/coroutines/coroutineContextInInlinedLambda.kt"); } + @Test + @TestMetadata("correctOrder1.kt") + public void testCorrectOrder1() { + runTest("compiler/testData/codegen/box/coroutines/correctOrder1.kt"); + } + @Test @TestMetadata("createCoroutineSafe.kt") public void testCreateCoroutineSafe() { @@ -7965,6 +9019,18 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest { runTest("compiler/testData/codegen/box/coroutines/defaultParametersInSuspend.kt"); } + @Test + @TestMetadata("degenerate1.kt") + public void testDegenerate1() { + runTest("compiler/testData/codegen/box/coroutines/degenerate1.kt"); + } + + @Test + @TestMetadata("degenerate2.kt") + public void testDegenerate2() { + runTest("compiler/testData/codegen/box/coroutines/degenerate2.kt"); + } + @Test @TestMetadata("delegatedSuspendMember.kt") public void testDelegatedSuspendMember() { @@ -8013,6 +9079,30 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest { runTest("compiler/testData/codegen/box/coroutines/falseUnitCoercion.kt"); } + @Test + @TestMetadata("functionReference_eqeq_name.kt") + public void testFunctionReference_eqeq_name() { + runTest("compiler/testData/codegen/box/coroutines/functionReference_eqeq_name.kt"); + } + + @Test + @TestMetadata("functionReference_invokeAsFunction.kt") + public void testFunctionReference_invokeAsFunction() { + runTest("compiler/testData/codegen/box/coroutines/functionReference_invokeAsFunction.kt"); + } + + @Test + @TestMetadata("functionReference_lambdaAsSuspendLambda.kt") + public void testFunctionReference_lambdaAsSuspendLambda() { + runTest("compiler/testData/codegen/box/coroutines/functionReference_lambdaAsSuspendLambda.kt"); + } + + @Test + @TestMetadata("functionReference_simple.kt") + public void testFunctionReference_simple() { + runTest("compiler/testData/codegen/box/coroutines/functionReference_simple.kt"); + } + @Test @TestMetadata("generate.kt") public void testGenerate() { @@ -8187,6 +9277,12 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest { runTest("compiler/testData/codegen/box/coroutines/kt35967.kt"); } + @Test + @TestMetadata("kt41394.kt") + public void testKt41394() { + runTest("compiler/testData/codegen/box/coroutines/kt41394.kt"); + } + @Test @TestMetadata("kt42028.kt") public void testKt42028() { @@ -8415,12 +9511,30 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest { runTest("compiler/testData/codegen/box/coroutines/returnByLabel.kt"); } + @Test + @TestMetadata("returnsNothing1.kt") + public void testReturnsNothing1() { + runTest("compiler/testData/codegen/box/coroutines/returnsNothing1.kt"); + } + + @Test + @TestMetadata("returnsUnit1.kt") + public void testReturnsUnit1() { + runTest("compiler/testData/codegen/box/coroutines/returnsUnit1.kt"); + } + @Test @TestMetadata("simple.kt") public void testSimple() { runTest("compiler/testData/codegen/box/coroutines/simple.kt"); } + @Test + @TestMetadata("simple2.kt") + public void testSimple2() { + runTest("compiler/testData/codegen/box/coroutines/simple2.kt"); + } + @Test @TestMetadata("simpleException.kt") public void testSimpleException() { @@ -8463,6 +9577,12 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest { runTest("compiler/testData/codegen/box/coroutines/suspendCallsInArguments.kt"); } + @Test + @TestMetadata("suspendConversion.kt") + public void testSuspendConversion() { + runTest("compiler/testData/codegen/box/coroutines/suspendConversion.kt"); + } + @Test @TestMetadata("suspendCoroutineFromStateMachine.kt") public void testSuspendCoroutineFromStateMachine() { @@ -8619,6 +9739,12 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest { runTest("compiler/testData/codegen/box/coroutines/varargCallFromSuspend.kt"); } + @Test + @TestMetadata("withReceiver.kt") + public void testWithReceiver() { + runTest("compiler/testData/codegen/box/coroutines/withReceiver.kt"); + } + @Nested @TestMetadata("compiler/testData/codegen/box/coroutines/bridges") @TestDataPath("$PROJECT_ROOT") @@ -10846,6 +11972,34 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest { } } + @Nested + @TestMetadata("compiler/testData/codegen/box/cycles") + @TestDataPath("$PROJECT_ROOT") + public class Cycles { + @Test + public void testAllFilesPresentInCycles() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cycles"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("cycle.kt") + public void testCycle() { + runTest("compiler/testData/codegen/box/cycles/cycle.kt"); + } + + @Test + @TestMetadata("cycle_do.kt") + public void testCycle_do() { + runTest("compiler/testData/codegen/box/cycles/cycle_do.kt"); + } + + @Test + @TestMetadata("cycle_for.kt") + public void testCycle_for() { + runTest("compiler/testData/codegen/box/cycles/cycle_for.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/dataClasses") @TestDataPath("$PROJECT_ROOT") @@ -11252,6 +12406,28 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest { } } + @Nested + @TestMetadata("compiler/testData/codegen/box/dataflow") + @TestDataPath("$PROJECT_ROOT") + public class Dataflow { + @Test + public void testAllFilesPresentInDataflow() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/dataflow"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("scope1.kt") + public void testScope1() { + runTest("compiler/testData/codegen/box/dataflow/scope1.kt"); + } + + @Test + @TestMetadata("uninitialized_val.kt") + public void testUninitialized_val() { + runTest("compiler/testData/codegen/box/dataflow/uninitialized_val.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/deadCodeElimination") @TestDataPath("$PROJECT_ROOT") @@ -11871,6 +13047,12 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest { runTest("compiler/testData/codegen/box/delegatedProperty/castSetParameter.kt"); } + @Test + @TestMetadata("correctFieldsOrder.kt") + public void testCorrectFieldsOrder() { + runTest("compiler/testData/codegen/box/delegatedProperty/correctFieldsOrder.kt"); + } + @Test @TestMetadata("delegateAsInnerClass.kt") public void testDelegateAsInnerClass() { @@ -11925,6 +13107,12 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest { runTest("compiler/testData/codegen/box/delegatedProperty/delegateWithPrivateSet.kt"); } + @Test + @TestMetadata("delegatedOverride.kt") + public void testDelegatedOverride() { + runTest("compiler/testData/codegen/box/delegatedProperty/delegatedOverride.kt"); + } + @Test @TestMetadata("delegatedPropertyInEnum.kt") public void testDelegatedPropertyInEnum() { @@ -12057,12 +13245,42 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest { runTest("compiler/testData/codegen/box/delegatedProperty/kt9712.kt"); } + @Test + @TestMetadata("lazy.kt") + public void testLazy() { + runTest("compiler/testData/codegen/box/delegatedProperty/lazy.kt"); + } + + @Test + @TestMetadata("local.kt") + public void testLocal() { + runTest("compiler/testData/codegen/box/delegatedProperty/local.kt"); + } + + @Test + @TestMetadata("map.kt") + public void testMap() { + runTest("compiler/testData/codegen/box/delegatedProperty/map.kt"); + } + @Test @TestMetadata("noTypeVariablesLeft.kt") public void testNoTypeVariablesLeft() { runTest("compiler/testData/codegen/box/delegatedProperty/noTypeVariablesLeft.kt"); } + @Test + @TestMetadata("observable.kt") + public void testObservable() { + runTest("compiler/testData/codegen/box/delegatedProperty/observable.kt"); + } + + @Test + @TestMetadata("packageLevel.kt") + public void testPackageLevel() { + runTest("compiler/testData/codegen/box/delegatedProperty/packageLevel.kt"); + } + @Test @TestMetadata("privateVar.kt") public void testPrivateVar() { @@ -12105,6 +13323,18 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest { runTest("compiler/testData/codegen/box/delegatedProperty/setAsExtensionFunInClass.kt"); } + @Test + @TestMetadata("simpleVal.kt") + public void testSimpleVal() { + runTest("compiler/testData/codegen/box/delegatedProperty/simpleVal.kt"); + } + + @Test + @TestMetadata("simpleVar.kt") + public void testSimpleVar() { + runTest("compiler/testData/codegen/box/delegatedProperty/simpleVar.kt"); + } + @Test @TestMetadata("topLevelVal.kt") public void testTopLevelVal() { @@ -12912,6 +14142,40 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest { } } + @Nested + @TestMetadata("compiler/testData/codegen/box/devirtualization") + @TestDataPath("$PROJECT_ROOT") + public class Devirtualization { + @Test + public void testAllFilesPresentInDevirtualization() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/devirtualization"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("anonymousObject.kt") + public void testAnonymousObject() { + runTest("compiler/testData/codegen/box/devirtualization/anonymousObject.kt"); + } + + @Test + @TestMetadata("getter_looking_as_box_function.kt") + public void testGetter_looking_as_box_function() { + runTest("compiler/testData/codegen/box/devirtualization/getter_looking_as_box_function.kt"); + } + + @Test + @TestMetadata("inline_getter.kt") + public void testInline_getter() { + runTest("compiler/testData/codegen/box/devirtualization/inline_getter.kt"); + } + + @Test + @TestMetadata("lateinitInterface.kt") + public void testLateinitInterface() { + runTest("compiler/testData/codegen/box/devirtualization/lateinitInterface.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/diagnostics") @TestDataPath("$PROJECT_ROOT") @@ -13525,6 +14789,12 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest { runTest("compiler/testData/codegen/box/enum/companionAccessingEnumValue.kt"); } + @Test + @TestMetadata("companionObject.kt") + public void testCompanionObject() { + runTest("compiler/testData/codegen/box/enum/companionObject.kt"); + } + @Test @TestMetadata("companionObjectInEnum.kt") public void testCompanionObjectInEnum() { @@ -13669,6 +14939,12 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest { runTest("compiler/testData/codegen/box/enum/enumWithLambdaParameter.kt"); } + @Test + @TestMetadata("enum_equals.kt") + public void testEnum_equals() { + runTest("compiler/testData/codegen/box/enum/enum_equals.kt"); + } + @Test @TestMetadata("getEnumEntityByOrdinal.kt") public void testGetEnumEntityByOrdinal() { @@ -13741,6 +15017,18 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest { runTest("compiler/testData/codegen/box/enum/innerWithExistingClassObject.kt"); } + @Test + @TestMetadata("interfaceCallNoEntryClass.kt") + public void testInterfaceCallNoEntryClass() { + runTest("compiler/testData/codegen/box/enum/interfaceCallNoEntryClass.kt"); + } + + @Test + @TestMetadata("interfaceCallWithEntryClass.kt") + public void testInterfaceCallWithEntryClass() { + runTest("compiler/testData/codegen/box/enum/interfaceCallWithEntryClass.kt"); + } + @Test @TestMetadata("k54079.kt") public void testK54079() { @@ -13795,6 +15083,12 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest { runTest("compiler/testData/codegen/box/enum/kt2350.kt"); } + @Test + @TestMetadata("kt38540.kt") + public void testKt38540() { + runTest("compiler/testData/codegen/box/enum/kt38540.kt"); + } + @Test @TestMetadata("kt38996.kt") public void testKt38996() { @@ -13891,12 +15185,42 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest { runTest("compiler/testData/codegen/box/enum/kt9711_2.kt"); } + @Test + @TestMetadata("lambdaInDefault.kt") + public void testLambdaInDefault() { + runTest("compiler/testData/codegen/box/enum/lambdaInDefault.kt"); + } + + @Test + @TestMetadata("loop.kt") + public void testLoop() { + runTest("compiler/testData/codegen/box/enum/loop.kt"); + } + @Test @TestMetadata("manyDefaultParameters.kt") public void testManyDefaultParameters() { runTest("compiler/testData/codegen/box/enum/manyDefaultParameters.kt"); } + @Test + @TestMetadata("multipleModules.kt") + public void testMultipleModules() { + runTest("compiler/testData/codegen/box/enum/multipleModules.kt"); + } + + @Test + @TestMetadata("nested.kt") + public void testNested() { + runTest("compiler/testData/codegen/box/enum/nested.kt"); + } + + @Test + @TestMetadata("openMethodNoOverrides.kt") + public void testOpenMethodNoOverrides() { + runTest("compiler/testData/codegen/box/enum/openMethodNoOverrides.kt"); + } + @Test @TestMetadata("ordinal.kt") public void testOrdinal() { @@ -13921,6 +15245,12 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest { runTest("compiler/testData/codegen/box/enum/refToThis.kt"); } + @Test + @TestMetadata("reorderedArguments.kt") + public void testReorderedArguments() { + runTest("compiler/testData/codegen/box/enum/reorderedArguments.kt"); + } + @Test @TestMetadata("simple.kt") public void testSimple() { @@ -13939,18 +15269,66 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest { runTest("compiler/testData/codegen/box/enum/superCallInEnumLiteral.kt"); } + @Test + @TestMetadata("switchLowering.kt") + public void testSwitchLowering() { + runTest("compiler/testData/codegen/box/enum/switchLowering.kt"); + } + + @Test + @TestMetadata("test0.kt") + public void testTest0() { + runTest("compiler/testData/codegen/box/enum/test0.kt"); + } + + @Test + @TestMetadata("test1.kt") + public void testTest1() { + runTest("compiler/testData/codegen/box/enum/test1.kt"); + } + @Test @TestMetadata("toString.kt") public void testToString() { runTest("compiler/testData/codegen/box/enum/toString.kt"); } + @Test + @TestMetadata("vCallNoEntryClass.kt") + public void testVCallNoEntryClass() { + runTest("compiler/testData/codegen/box/enum/vCallNoEntryClass.kt"); + } + + @Test + @TestMetadata("vCallWithEntryClass.kt") + public void testVCallWithEntryClass() { + runTest("compiler/testData/codegen/box/enum/vCallWithEntryClass.kt"); + } + + @Test + @TestMetadata("valueOf2.kt") + public void testValueOf2() { + runTest("compiler/testData/codegen/box/enum/valueOf2.kt"); + } + @Test @TestMetadata("valueof.kt") public void testValueof() { runTest("compiler/testData/codegen/box/enum/valueof.kt"); } + @Test + @TestMetadata("values.kt") + public void testValues() { + runTest("compiler/testData/codegen/box/enum/values.kt"); + } + + @Test + @TestMetadata("varargParam.kt") + public void testVarargParam() { + runTest("compiler/testData/codegen/box/enum/varargParam.kt"); + } + @Test @TestMetadata("whenInObject.kt") public void testWhenInObject() { @@ -14026,6 +15404,112 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest { } } + @Nested + @TestMetadata("compiler/testData/codegen/box/escapeAnalysis") + @TestDataPath("$PROJECT_ROOT") + public class EscapeAnalysis { + @Test + public void testAllFilesPresentInEscapeAnalysis() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/escapeAnalysis"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("recursion.kt") + public void testRecursion() { + runTest("compiler/testData/codegen/box/escapeAnalysis/recursion.kt"); + } + + @Test + @TestMetadata("stack_array.kt") + public void testStack_array() { + runTest("compiler/testData/codegen/box/escapeAnalysis/stack_array.kt"); + } + + @Test + @TestMetadata("test1.kt") + public void testTest1() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test1.kt"); + } + + @Test + @TestMetadata("test10.kt") + public void testTest10() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test10.kt"); + } + + @Test + @TestMetadata("test11.kt") + public void testTest11() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test11.kt"); + } + + @Test + @TestMetadata("test12.kt") + public void testTest12() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test12.kt"); + } + + @Test + @TestMetadata("test13.kt") + public void testTest13() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test13.kt"); + } + + @Test + @TestMetadata("test2.kt") + public void testTest2() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test2.kt"); + } + + @Test + @TestMetadata("test3.kt") + public void testTest3() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test3.kt"); + } + + @Test + @TestMetadata("test4.kt") + public void testTest4() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test4.kt"); + } + + @Test + @TestMetadata("test5.kt") + public void testTest5() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test5.kt"); + } + + @Test + @TestMetadata("test6.kt") + public void testTest6() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test6.kt"); + } + + @Test + @TestMetadata("test7.kt") + public void testTest7() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test7.kt"); + } + + @Test + @TestMetadata("test8.kt") + public void testTest8() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test8.kt"); + } + + @Test + @TestMetadata("test9.kt") + public void testTest9() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test9.kt"); + } + + @Test + @TestMetadata("zeroOutObjectOnAlloc.kt") + public void testZeroOutObjectOnAlloc() { + runTest("compiler/testData/codegen/box/escapeAnalysis/zeroOutObjectOnAlloc.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/evaluate") @TestDataPath("$PROJECT_ROOT") @@ -14042,6 +15526,58 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest { } } + @Nested + @TestMetadata("compiler/testData/codegen/box/exceptions") + @TestDataPath("$PROJECT_ROOT") + public class Exceptions { + @Test + public void testAllFilesPresentInExceptions() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/exceptions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("catch1.kt") + public void testCatch1() { + runTest("compiler/testData/codegen/box/exceptions/catch1.kt"); + } + + @Test + @TestMetadata("catch2.kt") + public void testCatch2() { + runTest("compiler/testData/codegen/box/exceptions/catch2.kt"); + } + + @Test + @TestMetadata("catch7.kt") + public void testCatch7() { + runTest("compiler/testData/codegen/box/exceptions/catch7.kt"); + } + + @Test + @TestMetadata("extend0.kt") + public void testExtend0() { + runTest("compiler/testData/codegen/box/exceptions/extend0.kt"); + } + + @Test + @TestMetadata("rethrow.kt") + public void testRethrow() { + runTest("compiler/testData/codegen/box/exceptions/rethrow.kt"); + } + + @Test + @TestMetadata("throw0.kt") + public void testThrow0() { + runTest("compiler/testData/codegen/box/exceptions/throw0.kt"); + } + + @Test + @TestMetadata("throw_from_catch.kt") + public void testThrow_from_catch() { + runTest("compiler/testData/codegen/box/exceptions/throw_from_catch.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/exclExcl") @TestDataPath("$PROJECT_ROOT") @@ -14921,6 +16457,12 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest { runTest("compiler/testData/codegen/box/funInterface/funInterfaceWithReceiver.kt"); } + @Test + @TestMetadata("implIsNotFunction.kt") + public void testImplIsNotFunction() { + runTest("compiler/testData/codegen/box/funInterface/implIsNotFunction.kt"); + } + @Test @TestMetadata("inlinedSamWrapper.kt") public void testInlinedSamWrapper() { @@ -14963,6 +16505,18 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest { runTest("compiler/testData/codegen/box/funInterface/kt46908_functionSupertype.kt"); } + @Test + @TestMetadata("kt49384.kt") + public void testKt49384() { + runTest("compiler/testData/codegen/box/funInterface/kt49384.kt"); + } + + @Test + @TestMetadata("kt49384_getSame.kt") + public void testKt49384_getSame() { + runTest("compiler/testData/codegen/box/funInterface/kt49384_getSame.kt"); + } + @Test @TestMetadata("multimodule.kt") public void testMultimodule() { @@ -14981,6 +16535,12 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest { runTest("compiler/testData/codegen/box/funInterface/nonAbstractMethod.kt"); } + @Test + @TestMetadata("nonTrivialProjectionInSuperType.kt") + public void testNonTrivialProjectionInSuperType() { + runTest("compiler/testData/codegen/box/funInterface/nonTrivialProjectionInSuperType.kt"); + } + @Test @TestMetadata("nullableSam.kt") public void testNullableSam() { @@ -15070,6 +16630,232 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest { } } + @Nested + @TestMetadata("compiler/testData/codegen/box/function") + @TestDataPath("$PROJECT_ROOT") + public class Function { + @Test + public void testAllFilesPresentInFunction() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/function"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("arithmetic.kt") + public void testArithmetic() { + runTest("compiler/testData/codegen/box/function/arithmetic.kt"); + } + + @Test + @TestMetadata("boolean.kt") + public void testBoolean() { + runTest("compiler/testData/codegen/box/function/boolean.kt"); + } + + @Test + @TestMetadata("defaults.kt") + public void testDefaults() { + runTest("compiler/testData/codegen/box/function/defaults.kt"); + } + + @Test + @TestMetadata("defaults1.kt") + public void testDefaults1() { + runTest("compiler/testData/codegen/box/function/defaults1.kt"); + } + + @Test + @TestMetadata("defaults10.kt") + public void testDefaults10() { + runTest("compiler/testData/codegen/box/function/defaults10.kt"); + } + + @Test + @TestMetadata("defaults2.kt") + public void testDefaults2() { + runTest("compiler/testData/codegen/box/function/defaults2.kt"); + } + + @Test + @TestMetadata("defaults3.kt") + public void testDefaults3() { + runTest("compiler/testData/codegen/box/function/defaults3.kt"); + } + + @Test + @TestMetadata("defaults4.kt") + public void testDefaults4() { + runTest("compiler/testData/codegen/box/function/defaults4.kt"); + } + + @Test + @TestMetadata("defaults5.kt") + public void testDefaults5() { + runTest("compiler/testData/codegen/box/function/defaults5.kt"); + } + + @Test + @TestMetadata("defaults6.kt") + public void testDefaults6() { + runTest("compiler/testData/codegen/box/function/defaults6.kt"); + } + + @Test + @TestMetadata("defaults7.kt") + public void testDefaults7() { + runTest("compiler/testData/codegen/box/function/defaults7.kt"); + } + + @Test + @TestMetadata("defaults8.kt") + public void testDefaults8() { + runTest("compiler/testData/codegen/box/function/defaults8.kt"); + } + + @Test + @TestMetadata("defaults9.kt") + public void testDefaults9() { + runTest("compiler/testData/codegen/box/function/defaults9.kt"); + } + + @Test + @TestMetadata("defaultsFromFakeOverride.kt") + public void testDefaultsFromFakeOverride() { + runTest("compiler/testData/codegen/box/function/defaultsFromFakeOverride.kt"); + } + + @Test + @TestMetadata("defaultsWithInlineClasses.kt") + public void testDefaultsWithInlineClasses() { + runTest("compiler/testData/codegen/box/function/defaultsWithInlineClasses.kt"); + } + + @Test + @TestMetadata("defaultsWithVarArg1.kt") + public void testDefaultsWithVarArg1() { + runTest("compiler/testData/codegen/box/function/defaultsWithVarArg1.kt"); + } + + @Test + @TestMetadata("defaultsWithVarArg2.kt") + public void testDefaultsWithVarArg2() { + runTest("compiler/testData/codegen/box/function/defaultsWithVarArg2.kt"); + } + + @Test + @TestMetadata("eqeq.kt") + public void testEqeq() { + runTest("compiler/testData/codegen/box/function/eqeq.kt"); + } + + @Test + @TestMetadata("extension.kt") + public void testExtension() { + runTest("compiler/testData/codegen/box/function/extension.kt"); + } + + @Test + @TestMetadata("intrinsic.kt") + public void testIntrinsic() { + runTest("compiler/testData/codegen/box/function/intrinsic.kt"); + } + + @Test + @TestMetadata("localFunction.kt") + public void testLocalFunction() { + runTest("compiler/testData/codegen/box/function/localFunction.kt"); + } + + @Test + @TestMetadata("localFunction2.kt") + public void testLocalFunction2() { + runTest("compiler/testData/codegen/box/function/localFunction2.kt"); + } + + @Test + @TestMetadata("localFunction3.kt") + public void testLocalFunction3() { + runTest("compiler/testData/codegen/box/function/localFunction3.kt"); + } + + @Test + @TestMetadata("minus_eq.kt") + public void testMinus_eq() { + runTest("compiler/testData/codegen/box/function/minus_eq.kt"); + } + + @Test + @TestMetadata("named.kt") + public void testNamed() { + runTest("compiler/testData/codegen/box/function/named.kt"); + } + + @Test + @TestMetadata("nothingNReturningSafeCall.kt") + public void testNothingNReturningSafeCall() { + runTest("compiler/testData/codegen/box/function/nothingNReturningSafeCall.kt"); + } + + @Test + @TestMetadata("plus_eq.kt") + public void testPlus_eq() { + runTest("compiler/testData/codegen/box/function/plus_eq.kt"); + } + + @Test + @TestMetadata("referenceBigArity.kt") + public void testReferenceBigArity() { + runTest("compiler/testData/codegen/box/function/referenceBigArity.kt"); + } + + @Test + @TestMetadata("sum.kt") + public void testSum() { + runTest("compiler/testData/codegen/box/function/sum.kt"); + } + + @Test + @TestMetadata("sum_3const.kt") + public void testSum_3const() { + runTest("compiler/testData/codegen/box/function/sum_3const.kt"); + } + + @Test + @TestMetadata("sum_foo_bar.kt") + public void testSum_foo_bar() { + runTest("compiler/testData/codegen/box/function/sum_foo_bar.kt"); + } + + @Test + @TestMetadata("sum_func.kt") + public void testSum_func() { + runTest("compiler/testData/codegen/box/function/sum_func.kt"); + } + + @Test + @TestMetadata("sum_imm.kt") + public void testSum_imm() { + runTest("compiler/testData/codegen/box/function/sum_imm.kt"); + } + + @Test + @TestMetadata("sum_mixed.kt") + public void testSum_mixed() { + runTest("compiler/testData/codegen/box/function/sum_mixed.kt"); + } + + @Test + @TestMetadata("sum_silly.kt") + public void testSum_silly() { + runTest("compiler/testData/codegen/box/function/sum_silly.kt"); + } + + @Test + @TestMetadata("unreachableStatementAfterReturn.kt") + public void testUnreachableStatementAfterReturn() { + runTest("compiler/testData/codegen/box/function/unreachableStatementAfterReturn.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/functions") @TestDataPath("$PROJECT_ROOT") @@ -16570,6 +18356,474 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest { } } + @Nested + @TestMetadata("compiler/testData/codegen/box/initializers") + @TestDataPath("$PROJECT_ROOT") + public class Initializers { + @Test + public void testAllFilesPresentInInitializers() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/initializers"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("correctOrder1.kt") + public void testCorrectOrder1() { + runTest("compiler/testData/codegen/box/initializers/correctOrder1.kt"); + } + + @Test + @TestMetadata("correctOrder2.kt") + public void testCorrectOrder2() { + runTest("compiler/testData/codegen/box/initializers/correctOrder2.kt"); + } + + @Test + @TestMetadata("initializers0.kt") + public void testInitializers0() { + runTest("compiler/testData/codegen/box/initializers/initializers0.kt"); + } + + @Test + @TestMetadata("initializers1.kt") + public void testInitializers1() { + runTest("compiler/testData/codegen/box/initializers/initializers1.kt"); + } + + @Test + @TestMetadata("initializers2.kt") + public void testInitializers2() { + runTest("compiler/testData/codegen/box/initializers/initializers2.kt"); + } + + @Test + @TestMetadata("initializers3.kt") + public void testInitializers3() { + runTest("compiler/testData/codegen/box/initializers/initializers3.kt"); + } + + @Test + @TestMetadata("initializers4.kt") + public void testInitializers4() { + runTest("compiler/testData/codegen/box/initializers/initializers4.kt"); + } + + @Test + @TestMetadata("initializers5.kt") + public void testInitializers5() { + runTest("compiler/testData/codegen/box/initializers/initializers5.kt"); + } + + @Test + @TestMetadata("initializers7.kt") + public void testInitializers7() { + runTest("compiler/testData/codegen/box/initializers/initializers7.kt"); + } + + @Test + @TestMetadata("initializers8.kt") + public void testInitializers8() { + runTest("compiler/testData/codegen/box/initializers/initializers8.kt"); + } + + @Test + @TestMetadata("multipleModules1.kt") + public void testMultipleModules1() { + runTest("compiler/testData/codegen/box/initializers/multipleModules1.kt"); + } + + @Test + @TestMetadata("object.kt") + public void testObject() { + runTest("compiler/testData/codegen/box/initializers/object.kt"); + } + + @Test + @TestMetadata("sharedVarInInitBlock.kt") + public void testSharedVarInInitBlock() { + runTest("compiler/testData/codegen/box/initializers/sharedVarInInitBlock.kt"); + } + + @Test + @TestMetadata("static_arrays.kt") + public void testStatic_arrays() { + runTest("compiler/testData/codegen/box/initializers/static_arrays.kt"); + } + + @Test + @TestMetadata("static_list.kt") + public void testStatic_list() { + runTest("compiler/testData/codegen/box/initializers/static_list.kt"); + } + + @Test + @TestMetadata("static_smallIntIdentity.kt") + public void testStatic_smallIntIdentity() { + runTest("compiler/testData/codegen/box/initializers/static_smallIntIdentity.kt"); + } + + @Test + @TestMetadata("static_varargChange.kt") + public void testStatic_varargChange() { + runTest("compiler/testData/codegen/box/initializers/static_varargChange.kt"); + } + + @Test + @TestMetadata("throw1.kt") + public void testThrow1() { + runTest("compiler/testData/codegen/box/initializers/throw1.kt"); + } + + @Test + @TestMetadata("throw2.kt") + public void testThrow2() { + runTest("compiler/testData/codegen/box/initializers/throw2.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/initializers/files") + @TestDataPath("$PROJECT_ROOT") + public class Files { + @Test + public void testAllFilesPresentInFiles() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/initializers/files"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("globalInitedAfterAccessingFile.kt") + public void testGlobalInitedAfterAccessingFile() { + runTest("compiler/testData/codegen/box/initializers/files/globalInitedAfterAccessingFile.kt"); + } + + @Test + @TestMetadata("globalNotInitedAfterAccessingClassInternals.kt") + public void testGlobalNotInitedAfterAccessingClassInternals() { + runTest("compiler/testData/codegen/box/initializers/files/globalNotInitedAfterAccessingClassInternals.kt"); + } + + @Test + @TestMetadata("simple.kt") + public void testSimple() { + runTest("compiler/testData/codegen/box/initializers/files/simple.kt"); + } + + @Test + @TestMetadata("simpleMultiModule.kt") + public void testSimpleMultiModule() { + runTest("compiler/testData/codegen/box/initializers/files/simpleMultiModule.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/inline") + @TestDataPath("$PROJECT_ROOT") + public class Inline { + @Test + public void testAllFilesPresentInInline() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inline"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("changingCapturedLocal.kt") + public void testChangingCapturedLocal() { + runTest("compiler/testData/codegen/box/inline/changingCapturedLocal.kt"); + } + + @Test + @TestMetadata("classDeclarationInsideInline.kt") + public void testClassDeclarationInsideInline() { + runTest("compiler/testData/codegen/box/inline/classDeclarationInsideInline.kt"); + } + + @Test + @TestMetadata("coercionToUnit.kt") + public void testCoercionToUnit() { + runTest("compiler/testData/codegen/box/inline/coercionToUnit.kt"); + } + + @Test + @TestMetadata("correctOrderFunctionReference.kt") + public void testCorrectOrderFunctionReference() { + runTest("compiler/testData/codegen/box/inline/correctOrderFunctionReference.kt"); + } + + @Test + @TestMetadata("defaultArgs.kt") + public void testDefaultArgs() { + runTest("compiler/testData/codegen/box/inline/defaultArgs.kt"); + } + + @Test + @TestMetadata("defaultArgsMultipleModules.kt") + public void testDefaultArgsMultipleModules() { + runTest("compiler/testData/codegen/box/inline/defaultArgsMultipleModules.kt"); + } + + @Test + @TestMetadata("genericFunctionReference.kt") + public void testGenericFunctionReference() { + runTest("compiler/testData/codegen/box/inline/genericFunctionReference.kt"); + } + + @Test + @TestMetadata("getClass.kt") + public void testGetClass() { + runTest("compiler/testData/codegen/box/inline/getClass.kt"); + } + + @Test + @TestMetadata("inline0.kt") + public void testInline0() { + runTest("compiler/testData/codegen/box/inline/inline0.kt"); + } + + @Test + @TestMetadata("inline1.kt") + public void testInline1() { + runTest("compiler/testData/codegen/box/inline/inline1.kt"); + } + + @Test + @TestMetadata("inline10.kt") + public void testInline10() { + runTest("compiler/testData/codegen/box/inline/inline10.kt"); + } + + @Test + @TestMetadata("inline11.kt") + public void testInline11() { + runTest("compiler/testData/codegen/box/inline/inline11.kt"); + } + + @Test + @TestMetadata("inline12.kt") + public void testInline12() { + runTest("compiler/testData/codegen/box/inline/inline12.kt"); + } + + @Test + @TestMetadata("inline13.kt") + public void testInline13() { + runTest("compiler/testData/codegen/box/inline/inline13.kt"); + } + + @Test + @TestMetadata("inline14.kt") + public void testInline14() { + runTest("compiler/testData/codegen/box/inline/inline14.kt"); + } + + @Test + @TestMetadata("inline15.kt") + public void testInline15() { + runTest("compiler/testData/codegen/box/inline/inline15.kt"); + } + + @Test + @TestMetadata("inline16.kt") + public void testInline16() { + runTest("compiler/testData/codegen/box/inline/inline16.kt"); + } + + @Test + @TestMetadata("inline17.kt") + public void testInline17() { + runTest("compiler/testData/codegen/box/inline/inline17.kt"); + } + + @Test + @TestMetadata("inline19.kt") + public void testInline19() { + runTest("compiler/testData/codegen/box/inline/inline19.kt"); + } + + @Test + @TestMetadata("inline2.kt") + public void testInline2() { + runTest("compiler/testData/codegen/box/inline/inline2.kt"); + } + + @Test + @TestMetadata("inline20.kt") + public void testInline20() { + runTest("compiler/testData/codegen/box/inline/inline20.kt"); + } + + @Test + @TestMetadata("inline21.kt") + public void testInline21() { + runTest("compiler/testData/codegen/box/inline/inline21.kt"); + } + + @Test + @TestMetadata("inline22.kt") + public void testInline22() { + runTest("compiler/testData/codegen/box/inline/inline22.kt"); + } + + @Test + @TestMetadata("inline23.kt") + public void testInline23() { + runTest("compiler/testData/codegen/box/inline/inline23.kt"); + } + + @Test + @TestMetadata("inline24.kt") + public void testInline24() { + runTest("compiler/testData/codegen/box/inline/inline24.kt"); + } + + @Test + @TestMetadata("inline25.kt") + public void testInline25() { + runTest("compiler/testData/codegen/box/inline/inline25.kt"); + } + + @Test + @TestMetadata("inline26.kt") + public void testInline26() { + runTest("compiler/testData/codegen/box/inline/inline26.kt"); + } + + @Test + @TestMetadata("inline3.kt") + public void testInline3() { + runTest("compiler/testData/codegen/box/inline/inline3.kt"); + } + + @Test + @TestMetadata("inline4.kt") + public void testInline4() { + runTest("compiler/testData/codegen/box/inline/inline4.kt"); + } + + @Test + @TestMetadata("inline5.kt") + public void testInline5() { + runTest("compiler/testData/codegen/box/inline/inline5.kt"); + } + + @Test + @TestMetadata("inline6.kt") + public void testInline6() { + runTest("compiler/testData/codegen/box/inline/inline6.kt"); + } + + @Test + @TestMetadata("inline7.kt") + public void testInline7() { + runTest("compiler/testData/codegen/box/inline/inline7.kt"); + } + + @Test + @TestMetadata("inline8.kt") + public void testInline8() { + runTest("compiler/testData/codegen/box/inline/inline8.kt"); + } + + @Test + @TestMetadata("inline9.kt") + public void testInline9() { + runTest("compiler/testData/codegen/box/inline/inline9.kt"); + } + + @Test + @TestMetadata("inlineCtor.kt") + public void testInlineCtor() { + runTest("compiler/testData/codegen/box/inline/inlineCtor.kt"); + } + + @Test + @TestMetadata("innerInlineFunCapturesOuter.kt") + public void testInnerInlineFunCapturesOuter() { + runTest("compiler/testData/codegen/box/inline/innerInlineFunCapturesOuter.kt"); + } + + @Test + @TestMetadata("lambdaAsAny.kt") + public void testLambdaAsAny() { + runTest("compiler/testData/codegen/box/inline/lambdaAsAny.kt"); + } + + @Test + @TestMetadata("lambdaInDefaultValue.kt") + public void testLambdaInDefaultValue() { + runTest("compiler/testData/codegen/box/inline/lambdaInDefaultValue.kt"); + } + + @Test + @TestMetadata("lateinitProperty.kt") + public void testLateinitProperty() { + runTest("compiler/testData/codegen/box/inline/lateinitProperty.kt"); + } + + @Test + @TestMetadata("localFunctionInInitializerBlock.kt") + public void testLocalFunctionInInitializerBlock() { + runTest("compiler/testData/codegen/box/inline/localFunctionInInitializerBlock.kt"); + } + + @Test + @TestMetadata("localObjectReturnedFromWhen.kt") + public void testLocalObjectReturnedFromWhen() { + runTest("compiler/testData/codegen/box/inline/localObjectReturnedFromWhen.kt"); + } + + @Test + @TestMetadata("propertyAccessorInline.kt") + public void testPropertyAccessorInline() { + runTest("compiler/testData/codegen/box/inline/propertyAccessorInline.kt"); + } + + @Test + @TestMetadata("redundantCoercionsCleaner.kt") + public void testRedundantCoercionsCleaner() { + runTest("compiler/testData/codegen/box/inline/redundantCoercionsCleaner.kt"); + } + + @Test + @TestMetadata("redundantCoercionsCleanerKT48876.kt") + public void testRedundantCoercionsCleanerKT48876() { + runTest("compiler/testData/codegen/box/inline/redundantCoercionsCleanerKT48876.kt"); + } + + @Test + @TestMetadata("redundantCoercionsCleanerKT49356.kt") + public void testRedundantCoercionsCleanerKT49356() { + runTest("compiler/testData/codegen/box/inline/redundantCoercionsCleanerKT49356.kt"); + } + + @Test + @TestMetadata("returnLocalClassFromBlock.kt") + public void testReturnLocalClassFromBlock() { + runTest("compiler/testData/codegen/box/inline/returnLocalClassFromBlock.kt"); + } + + @Test + @TestMetadata("sharedVar.kt") + public void testSharedVar() { + runTest("compiler/testData/codegen/box/inline/sharedVar.kt"); + } + + @Test + @TestMetadata("statementAsLastExprInBlock.kt") + public void testStatementAsLastExprInBlock() { + runTest("compiler/testData/codegen/box/inline/statementAsLastExprInBlock.kt"); + } + + @Test + @TestMetadata("twiceInlinedObject.kt") + public void testTwiceInlinedObject() { + runTest("compiler/testData/codegen/box/inline/twiceInlinedObject.kt"); + } + + @Test + @TestMetadata("typeSubstitutionInFakeOverride.kt") + public void testTypeSubstitutionInFakeOverride() { + runTest("compiler/testData/codegen/box/inline/typeSubstitutionInFakeOverride.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/inlineArgsInPlace") @TestDataPath("$PROJECT_ROOT") @@ -16646,6 +18900,40 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest { } } + @Nested + @TestMetadata("compiler/testData/codegen/box/inlineClass") + @TestDataPath("$PROJECT_ROOT") + public class InlineClass { + @Test + public void testAllFilesPresentInInlineClass() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineClass"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("customEquals.kt") + public void testCustomEquals() { + runTest("compiler/testData/codegen/box/inlineClass/customEquals.kt"); + } + + @Test + @TestMetadata("defaultEquals.kt") + public void testDefaultEquals() { + runTest("compiler/testData/codegen/box/inlineClass/defaultEquals.kt"); + } + + @Test + @TestMetadata("nestedInlineClasses.kt") + public void testNestedInlineClasses() { + runTest("compiler/testData/codegen/box/inlineClass/nestedInlineClasses.kt"); + } + + @Test + @TestMetadata("secondaryConstructorWithGenerics.kt") + public void testSecondaryConstructorWithGenerics() { + runTest("compiler/testData/codegen/box/inlineClass/secondaryConstructorWithGenerics.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/inlineClasses") @TestDataPath("$PROJECT_ROOT") @@ -21568,6 +23856,88 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest { } } + @Nested + @TestMetadata("compiler/testData/codegen/box/innerClass") + @TestDataPath("$PROJECT_ROOT") + public class InnerClass { + @Test + public void testAllFilesPresentInInnerClass() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/innerClass"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("doubleInner.kt") + public void testDoubleInner() { + runTest("compiler/testData/codegen/box/innerClass/doubleInner.kt"); + } + + @Test + @TestMetadata("generic.kt") + public void testGeneric() { + runTest("compiler/testData/codegen/box/innerClass/generic.kt"); + } + + @Test + @TestMetadata("getOuterVal.kt") + public void testGetOuterVal() { + runTest("compiler/testData/codegen/box/innerClass/getOuterVal.kt"); + } + + @Test + @TestMetadata("inheritanceMultipleModules1.kt") + public void testInheritanceMultipleModules1() { + runTest("compiler/testData/codegen/box/innerClass/inheritanceMultipleModules1.kt"); + } + + @Test + @TestMetadata("inheritanceMultipleModules2.kt") + public void testInheritanceMultipleModules2() { + runTest("compiler/testData/codegen/box/innerClass/inheritanceMultipleModules2.kt"); + } + + @Test + @TestMetadata("inheritanceMultipleModules3.kt") + public void testInheritanceMultipleModules3() { + runTest("compiler/testData/codegen/box/innerClass/inheritanceMultipleModules3.kt"); + } + + @Test + @TestMetadata("multipleModules.kt") + public void testMultipleModules() { + runTest("compiler/testData/codegen/box/innerClass/multipleModules.kt"); + } + + @Test + @TestMetadata("noPrimaryConstructor.kt") + public void testNoPrimaryConstructor() { + runTest("compiler/testData/codegen/box/innerClass/noPrimaryConstructor.kt"); + } + + @Test + @TestMetadata("qualifiedThis.kt") + public void testQualifiedThis() { + runTest("compiler/testData/codegen/box/innerClass/qualifiedThis.kt"); + } + + @Test + @TestMetadata("secondaryConstructor.kt") + public void testSecondaryConstructor() { + runTest("compiler/testData/codegen/box/innerClass/secondaryConstructor.kt"); + } + + @Test + @TestMetadata("simple.kt") + public void testSimple() { + runTest("compiler/testData/codegen/box/innerClass/simple.kt"); + } + + @Test + @TestMetadata("superOuter.kt") + public void testSuperOuter() { + runTest("compiler/testData/codegen/box/innerClass/superOuter.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/innerNested") @TestDataPath("$PROJECT_ROOT") @@ -21920,6 +24290,40 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest { } } + @Nested + @TestMetadata("compiler/testData/codegen/box/interfaceCallsNCasts") + @TestDataPath("$PROJECT_ROOT") + public class InterfaceCallsNCasts { + @Test + public void testAllFilesPresentInInterfaceCallsNCasts() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/interfaceCallsNCasts"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("conservativeItable.kt") + public void testConservativeItable() { + runTest("compiler/testData/codegen/box/interfaceCallsNCasts/conservativeItable.kt"); + } + + @Test + @TestMetadata("diamond.kt") + public void testDiamond() { + runTest("compiler/testData/codegen/box/interfaceCallsNCasts/diamond.kt"); + } + + @Test + @TestMetadata("finalMethod.kt") + public void testFinalMethod() { + runTest("compiler/testData/codegen/box/interfaceCallsNCasts/finalMethod.kt"); + } + + @Test + @TestMetadata("interface0.kt") + public void testInterface0() { + runTest("compiler/testData/codegen/box/interfaceCallsNCasts/interface0.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/intrinsics") @TestDataPath("$PROJECT_ROOT") @@ -23242,6 +25646,80 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest { } } + @Nested + @TestMetadata("compiler/testData/codegen/box/kclass") + @TestDataPath("$PROJECT_ROOT") + public class Kclass { + @Test + public void testAllFilesPresentInKclass() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/kclass"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("kClassEnumArgument.kt") + public void testKClassEnumArgument() { + runTest("compiler/testData/codegen/box/kclass/kClassEnumArgument.kt"); + } + + @Test + @TestMetadata("kclass1.kt") + public void testKclass1() { + runTest("compiler/testData/codegen/box/kclass/kclass1.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/ktype") + @TestDataPath("$PROJECT_ROOT") + public class Ktype { + @Test + public void testAllFilesPresentInKtype() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ktype"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("ktype1_basics1.kt") + public void testKtype1_basics1() { + runTest("compiler/testData/codegen/box/ktype/ktype1_basics1.kt"); + } + + @Test + @TestMetadata("ktype1_inner.kt") + public void testKtype1_inner() { + runTest("compiler/testData/codegen/box/ktype/ktype1_inner.kt"); + } + + @Test + @TestMetadata("nonReified_class.kt") + public void testNonReified_class() { + runTest("compiler/testData/codegen/box/ktype/nonReified_class.kt"); + } + + @Test + @TestMetadata("nonReified_equality.kt") + public void testNonReified_equality() { + runTest("compiler/testData/codegen/box/ktype/nonReified_equality.kt"); + } + + @Test + @TestMetadata("nonReified_fun.kt") + public void testNonReified_fun() { + runTest("compiler/testData/codegen/box/ktype/nonReified_fun.kt"); + } + + @Test + @TestMetadata("nonReified_recursionInReified.kt") + public void testNonReified_recursionInReified() { + runTest("compiler/testData/codegen/box/ktype/nonReified_recursionInReified.kt"); + } + + @Test + @TestMetadata("nonReified_reifiedUpperBound.kt") + public void testNonReified_reifiedUpperBound() { + runTest("compiler/testData/codegen/box/ktype/nonReified_reifiedUpperBound.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/labels") @TestDataPath("$PROJECT_ROOT") @@ -23300,6 +25778,188 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest { } } + @Nested + @TestMetadata("compiler/testData/codegen/box/lambda") + @TestDataPath("$PROJECT_ROOT") + public class Lambda { + @Test + public void testAllFilesPresentInLambda() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/lambda"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("lambda1.kt") + public void testLambda1() { + runTest("compiler/testData/codegen/box/lambda/lambda1.kt"); + } + + @Test + @TestMetadata("lambda10.kt") + public void testLambda10() { + runTest("compiler/testData/codegen/box/lambda/lambda10.kt"); + } + + @Test + @TestMetadata("lambda11.kt") + public void testLambda11() { + runTest("compiler/testData/codegen/box/lambda/lambda11.kt"); + } + + @Test + @TestMetadata("lambda12.kt") + public void testLambda12() { + runTest("compiler/testData/codegen/box/lambda/lambda12.kt"); + } + + @Test + @TestMetadata("lambda13.kt") + public void testLambda13() { + runTest("compiler/testData/codegen/box/lambda/lambda13.kt"); + } + + @Test + @TestMetadata("lambda14.kt") + public void testLambda14() { + runTest("compiler/testData/codegen/box/lambda/lambda14.kt"); + } + + @Test + @TestMetadata("lambda2.kt") + public void testLambda2() { + runTest("compiler/testData/codegen/box/lambda/lambda2.kt"); + } + + @Test + @TestMetadata("lambda3.kt") + public void testLambda3() { + runTest("compiler/testData/codegen/box/lambda/lambda3.kt"); + } + + @Test + @TestMetadata("lambda4.kt") + public void testLambda4() { + runTest("compiler/testData/codegen/box/lambda/lambda4.kt"); + } + + @Test + @TestMetadata("lambda5.kt") + public void testLambda5() { + runTest("compiler/testData/codegen/box/lambda/lambda5.kt"); + } + + @Test + @TestMetadata("lambda6.kt") + public void testLambda6() { + runTest("compiler/testData/codegen/box/lambda/lambda6.kt"); + } + + @Test + @TestMetadata("lambda7.kt") + public void testLambda7() { + runTest("compiler/testData/codegen/box/lambda/lambda7.kt"); + } + + @Test + @TestMetadata("lambda8.kt") + public void testLambda8() { + runTest("compiler/testData/codegen/box/lambda/lambda8.kt"); + } + + @Test + @TestMetadata("lambda9.kt") + public void testLambda9() { + runTest("compiler/testData/codegen/box/lambda/lambda9.kt"); + } + + @Test + @TestMetadata("lambda_kt49360_trivial.kt") + public void testLambda_kt49360_trivial() { + runTest("compiler/testData/codegen/box/lambda/lambda_kt49360_trivial.kt"); + } + + @Test + @TestMetadata("lambda_kt49360_withFlow.kt") + public void testLambda_kt49360_withFlow() { + runTest("compiler/testData/codegen/box/lambda/lambda_kt49360_withFlow.kt"); + } + + @Test + @TestMetadata("lambda_kt49360_wrapBlock.kt") + public void testLambda_kt49360_wrapBlock() { + runTest("compiler/testData/codegen/box/lambda/lambda_kt49360_wrapBlock.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/lateinit") + @TestDataPath("$PROJECT_ROOT") + public class Lateinit { + @Test + public void testAllFilesPresentInLateinit() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/lateinit"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("globalIsInitialized.kt") + public void testGlobalIsInitialized() { + runTest("compiler/testData/codegen/box/lateinit/globalIsInitialized.kt"); + } + + @Test + @TestMetadata("inBaseClass.kt") + public void testInBaseClass() { + runTest("compiler/testData/codegen/box/lateinit/inBaseClass.kt"); + } + + @Test + @TestMetadata("initialized.kt") + public void testInitialized() { + runTest("compiler/testData/codegen/box/lateinit/initialized.kt"); + } + + @Test + @TestMetadata("innerIsInitialized.kt") + public void testInnerIsInitialized() { + runTest("compiler/testData/codegen/box/lateinit/innerIsInitialized.kt"); + } + + @Test + @TestMetadata("isInitialized.kt") + public void testIsInitialized() { + runTest("compiler/testData/codegen/box/lateinit/isInitialized.kt"); + } + + @Test + @TestMetadata("localCapturedInitialized.kt") + public void testLocalCapturedInitialized() { + runTest("compiler/testData/codegen/box/lateinit/localCapturedInitialized.kt"); + } + + @Test + @TestMetadata("localCapturedNotInitialized.kt") + public void testLocalCapturedNotInitialized() { + runTest("compiler/testData/codegen/box/lateinit/localCapturedNotInitialized.kt"); + } + + @Test + @TestMetadata("localInitialized.kt") + public void testLocalInitialized() { + runTest("compiler/testData/codegen/box/lateinit/localInitialized.kt"); + } + + @Test + @TestMetadata("localNotInitialized.kt") + public void testLocalNotInitialized() { + runTest("compiler/testData/codegen/box/lateinit/localNotInitialized.kt"); + } + + @Test + @TestMetadata("notInitialized.kt") + public void testNotInitialized() { + runTest("compiler/testData/codegen/box/lateinit/notInitialized.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/lazyCodegen") @TestDataPath("$PROJECT_ROOT") @@ -23428,6 +26088,98 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest { } } + @Nested + @TestMetadata("compiler/testData/codegen/box/literals") + @TestDataPath("$PROJECT_ROOT") + public class Literals { + @Test + public void testAllFilesPresentInLiterals() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/literals"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("listof1.kt") + public void testListof1() { + runTest("compiler/testData/codegen/box/literals/listof1.kt"); + } + + @Test + @TestMetadata("strdedup1.kt") + public void testStrdedup1() { + runTest("compiler/testData/codegen/box/literals/strdedup1.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/localClass") + @TestDataPath("$PROJECT_ROOT") + public class LocalClass { + @Test + public void testAllFilesPresentInLocalClass() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/localClass"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("innerTakesCapturedFromOuter.kt") + public void testInnerTakesCapturedFromOuter() { + runTest("compiler/testData/codegen/box/localClass/innerTakesCapturedFromOuter.kt"); + } + + @Test + @TestMetadata("innerWithCapture.kt") + public void testInnerWithCapture() { + runTest("compiler/testData/codegen/box/localClass/innerWithCapture.kt"); + } + + @Test + @TestMetadata("localFunctionCallFromLocalClass.kt") + public void testLocalFunctionCallFromLocalClass() { + runTest("compiler/testData/codegen/box/localClass/localFunctionCallFromLocalClass.kt"); + } + + @Test + @TestMetadata("localFunctionInLocalClass.kt") + public void testLocalFunctionInLocalClass() { + runTest("compiler/testData/codegen/box/localClass/localFunctionInLocalClass.kt"); + } + + @Test + @TestMetadata("localHierarchy.kt") + public void testLocalHierarchy() { + runTest("compiler/testData/codegen/box/localClass/localHierarchy.kt"); + } + + @Test + @TestMetadata("noPrimaryConstructor.kt") + public void testNoPrimaryConstructor() { + runTest("compiler/testData/codegen/box/localClass/noPrimaryConstructor.kt"); + } + + @Test + @TestMetadata("objectExpressionInInitializer.kt") + public void testObjectExpressionInInitializer() { + runTest("compiler/testData/codegen/box/localClass/objectExpressionInInitializer.kt"); + } + + @Test + @TestMetadata("objectExpressionInProperty.kt") + public void testObjectExpressionInProperty() { + runTest("compiler/testData/codegen/box/localClass/objectExpressionInProperty.kt"); + } + + @Test + @TestMetadata("tryCatch.kt") + public void testTryCatch() { + runTest("compiler/testData/codegen/box/localClass/tryCatch.kt"); + } + + @Test + @TestMetadata("virtualCallFromConstructor.kt") + public void testVirtualCallFromConstructor() { + runTest("compiler/testData/codegen/box/localClass/virtualCallFromConstructor.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/localClasses") @TestDataPath("$PROJECT_ROOT") @@ -23678,6 +26430,38 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest { } } + @Nested + @TestMetadata("compiler/testData/codegen/box/localEscapeAnalysis") + @TestDataPath("$PROJECT_ROOT") + public class LocalEscapeAnalysis { + @Test + public void testAllFilesPresentInLocalEscapeAnalysis() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/localEscapeAnalysis"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("arraysFieldWrite.kt") + public void testArraysFieldWrite() { + runTest("compiler/testData/codegen/box/localEscapeAnalysis/arraysFieldWrite.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/lower") + @TestDataPath("$PROJECT_ROOT") + public class Lower { + @Test + public void testAllFilesPresentInLower() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/lower"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("localDelegatedProperty.kt") + public void testLocalDelegatedProperty() { + runTest("compiler/testData/codegen/box/lower/localDelegatedProperty.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/mangling") @TestDataPath("$PROJECT_ROOT") @@ -23705,6 +26489,12 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest { runTest("compiler/testData/codegen/box/mangling/internalOverrideSuperCall.kt"); } + @Test + @TestMetadata("multipleConstructors.kt") + public void testMultipleConstructors() { + runTest("compiler/testData/codegen/box/mangling/multipleConstructors.kt"); + } + @Test @TestMetadata("parentheses.kt") public void testParentheses() { @@ -25226,6 +28016,98 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest { } } + @Nested + @TestMetadata("compiler/testData/codegen/box/object") + @TestDataPath("$PROJECT_ROOT") + public class Object { + @Test + public void testAllFilesPresentInObject() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/object"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("constructor0.kt") + public void testConstructor0() { + runTest("compiler/testData/codegen/box/object/constructor0.kt"); + } + + @Test + @TestMetadata("fields.kt") + public void testFields() { + runTest("compiler/testData/codegen/box/object/fields.kt"); + } + + @Test + @TestMetadata("fields1.kt") + public void testFields1() { + runTest("compiler/testData/codegen/box/object/fields1.kt"); + } + + @Test + @TestMetadata("fields2.kt") + public void testFields2() { + runTest("compiler/testData/codegen/box/object/fields2.kt"); + } + + @Test + @TestMetadata("globalInitializer.kt") + public void testGlobalInitializer() { + runTest("compiler/testData/codegen/box/object/globalInitializer.kt"); + } + + @Test + @TestMetadata("init0.kt") + public void testInit0() { + runTest("compiler/testData/codegen/box/object/init0.kt"); + } + + @Test + @TestMetadata("initialization.kt") + public void testInitialization() { + runTest("compiler/testData/codegen/box/object/initialization.kt"); + } + + @Test + @TestMetadata("initialization1.kt") + public void testInitialization1() { + runTest("compiler/testData/codegen/box/object/initialization1.kt"); + } + + @Test + @TestMetadata("method_call.kt") + public void testMethod_call() { + runTest("compiler/testData/codegen/box/object/method_call.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/objectExpression") + @TestDataPath("$PROJECT_ROOT") + public class ObjectExpression { + @Test + public void testAllFilesPresentInObjectExpression() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/objectExpression"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("expr1.kt") + public void testExpr1() { + runTest("compiler/testData/codegen/box/objectExpression/expr1.kt"); + } + + @Test + @TestMetadata("expr2.kt") + public void testExpr2() { + runTest("compiler/testData/codegen/box/objectExpression/expr2.kt"); + } + + @Test + @TestMetadata("expr3.kt") + public void testExpr3() { + runTest("compiler/testData/codegen/box/objectExpression/expr3.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/objectIntrinsics") @TestDataPath("$PROJECT_ROOT") @@ -28030,6 +30912,64 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest { } } + @Nested + @TestMetadata("compiler/testData/codegen/box/propertyCallableReference") + @TestDataPath("$PROJECT_ROOT") + public class PropertyCallableReference { + @Test + public void testAllFilesPresentInPropertyCallableReference() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/propertyCallableReference"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("dynamicReceiver.kt") + public void testDynamicReceiver() { + runTest("compiler/testData/codegen/box/propertyCallableReference/dynamicReceiver.kt"); + } + + @Test + @TestMetadata("multipleModules.kt") + public void testMultipleModules() { + runTest("compiler/testData/codegen/box/propertyCallableReference/multipleModules.kt"); + } + + @Test + @TestMetadata("valClass.kt") + public void testValClass() { + runTest("compiler/testData/codegen/box/propertyCallableReference/valClass.kt"); + } + + @Test + @TestMetadata("valExtension.kt") + public void testValExtension() { + runTest("compiler/testData/codegen/box/propertyCallableReference/valExtension.kt"); + } + + @Test + @TestMetadata("valModule.kt") + public void testValModule() { + runTest("compiler/testData/codegen/box/propertyCallableReference/valModule.kt"); + } + + @Test + @TestMetadata("varClass.kt") + public void testVarClass() { + runTest("compiler/testData/codegen/box/propertyCallableReference/varClass.kt"); + } + + @Test + @TestMetadata("varExtension.kt") + public void testVarExtension() { + runTest("compiler/testData/codegen/box/propertyCallableReference/varExtension.kt"); + } + + @Test + @TestMetadata("varModule.kt") + public void testVarModule() { + runTest("compiler/testData/codegen/box/propertyCallableReference/varModule.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/publishedApi") @TestDataPath("$PROJECT_ROOT") @@ -35746,6 +38686,58 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest { } } + @Nested + @TestMetadata("compiler/testData/codegen/box/serialization") + @TestDataPath("$PROJECT_ROOT") + public class Serialization { + @Test + public void testAllFilesPresentInSerialization() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/serialization"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("deserializedMembers.kt") + public void testDeserializedMembers() { + runTest("compiler/testData/codegen/box/serialization/deserializedMembers.kt"); + } + + @Test + @TestMetadata("serializedCatch.kt") + public void testSerializedCatch() { + runTest("compiler/testData/codegen/box/serialization/serializedCatch.kt"); + } + + @Test + @TestMetadata("serializedCharConstant.kt") + public void testSerializedCharConstant() { + runTest("compiler/testData/codegen/box/serialization/serializedCharConstant.kt"); + } + + @Test + @TestMetadata("serializedDefaultArgs.kt") + public void testSerializedDefaultArgs() { + runTest("compiler/testData/codegen/box/serialization/serializedDefaultArgs.kt"); + } + + @Test + @TestMetadata("serializedDoWhile.kt") + public void testSerializedDoWhile() { + runTest("compiler/testData/codegen/box/serialization/serializedDoWhile.kt"); + } + + @Test + @TestMetadata("serializedEnumOrdinal.kt") + public void testSerializedEnumOrdinal() { + runTest("compiler/testData/codegen/box/serialization/serializedEnumOrdinal.kt"); + } + + @Test + @TestMetadata("serializedVararg.kt") + public void testSerializedVararg() { + runTest("compiler/testData/codegen/box/serialization/serializedVararg.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/size") @TestDataPath("$PROJECT_ROOT") @@ -36244,6 +39236,22 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest { } } + @Nested + @TestMetadata("compiler/testData/codegen/box/stringTrim") + @TestDataPath("$PROJECT_ROOT") + public class StringTrim { + @Test + public void testAllFilesPresentInStringTrim() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/stringTrim"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("stringTrim.kt") + public void testStringTrim() { + runTest("compiler/testData/codegen/box/stringTrim/stringTrim.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/strings") @TestDataPath("$PROJECT_ROOT") @@ -37304,6 +40312,142 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest { } } + @Nested + @TestMetadata("compiler/testData/codegen/box/try") + @TestDataPath("$PROJECT_ROOT") + public class Try { + @Test + public void testAllFilesPresentInTry() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/try"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("catch3.kt") + public void testCatch3() { + runTest("compiler/testData/codegen/box/try/catch3.kt"); + } + + @Test + @TestMetadata("catch4.kt") + public void testCatch4() { + runTest("compiler/testData/codegen/box/try/catch4.kt"); + } + + @Test + @TestMetadata("catch5.kt") + public void testCatch5() { + runTest("compiler/testData/codegen/box/try/catch5.kt"); + } + + @Test + @TestMetadata("catch6.kt") + public void testCatch6() { + runTest("compiler/testData/codegen/box/try/catch6.kt"); + } + + @Test + @TestMetadata("catch8.kt") + public void testCatch8() { + runTest("compiler/testData/codegen/box/try/catch8.kt"); + } + + @Test + @TestMetadata("finally1.kt") + public void testFinally1() { + runTest("compiler/testData/codegen/box/try/finally1.kt"); + } + + @Test + @TestMetadata("finally10.kt") + public void testFinally10() { + runTest("compiler/testData/codegen/box/try/finally10.kt"); + } + + @Test + @TestMetadata("finally11.kt") + public void testFinally11() { + runTest("compiler/testData/codegen/box/try/finally11.kt"); + } + + @Test + @TestMetadata("finally2.kt") + public void testFinally2() { + runTest("compiler/testData/codegen/box/try/finally2.kt"); + } + + @Test + @TestMetadata("finally3.kt") + public void testFinally3() { + runTest("compiler/testData/codegen/box/try/finally3.kt"); + } + + @Test + @TestMetadata("finally4.kt") + public void testFinally4() { + runTest("compiler/testData/codegen/box/try/finally4.kt"); + } + + @Test + @TestMetadata("finally5.kt") + public void testFinally5() { + runTest("compiler/testData/codegen/box/try/finally5.kt"); + } + + @Test + @TestMetadata("finally6.kt") + public void testFinally6() { + runTest("compiler/testData/codegen/box/try/finally6.kt"); + } + + @Test + @TestMetadata("finally7.kt") + public void testFinally7() { + runTest("compiler/testData/codegen/box/try/finally7.kt"); + } + + @Test + @TestMetadata("finally8.kt") + public void testFinally8() { + runTest("compiler/testData/codegen/box/try/finally8.kt"); + } + + @Test + @TestMetadata("finally9.kt") + public void testFinally9() { + runTest("compiler/testData/codegen/box/try/finally9.kt"); + } + + @Test + @TestMetadata("returnsDifferentTypes.kt") + public void testReturnsDifferentTypes() { + runTest("compiler/testData/codegen/box/try/returnsDifferentTypes.kt"); + } + + @Test + @TestMetadata("try1.kt") + public void testTry1() { + runTest("compiler/testData/codegen/box/try/try1.kt"); + } + + @Test + @TestMetadata("try2.kt") + public void testTry2() { + runTest("compiler/testData/codegen/box/try/try2.kt"); + } + + @Test + @TestMetadata("try3.kt") + public void testTry3() { + runTest("compiler/testData/codegen/box/try/try3.kt"); + } + + @Test + @TestMetadata("try4.kt") + public void testTry4() { + runTest("compiler/testData/codegen/box/try/try4.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/typeInfo") @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 1158878bebf..d36bd9b6102 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 @@ -41,6 +41,12 @@ public class FirJsES6CodegenBoxTestGenerated extends AbstractFirJsES6CodegenBoxT runTest("compiler/testData/codegen/box/annotations/annotationWithDefaultArgInDifferentModule.kt"); } + @Test + @TestMetadata("annotations0.kt") + public void testAnnotations0() { + runTest("compiler/testData/codegen/box/annotations/annotations0.kt"); + } + @Test @TestMetadata("genericAnnotations.kt") public void testGenericAnnotations() { @@ -318,6 +324,82 @@ public class FirJsES6CodegenBoxTestGenerated extends AbstractFirJsES6CodegenBoxT } } + @Nested + @TestMetadata("compiler/testData/codegen/box/arithmetic") + @TestDataPath("$PROJECT_ROOT") + public class Arithmetic { + @Test + public void testAllFilesPresentInArithmetic() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/arithmetic"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @Test + @TestMetadata("basic_charConversions.kt") + public void testBasic_charConversions() { + runTest("compiler/testData/codegen/box/arithmetic/basic_charConversions.kt"); + } + + @Test + @TestMetadata("basic_charCornerCases.kt") + public void testBasic_charCornerCases() { + runTest("compiler/testData/codegen/box/arithmetic/basic_charCornerCases.kt"); + } + + @Test + @TestMetadata("basic_compareIntToFloat.kt") + public void testBasic_compareIntToFloat() { + runTest("compiler/testData/codegen/box/arithmetic/basic_compareIntToFloat.kt"); + } + + @Test + @TestMetadata("basic_doubleBasic.kt") + public void testBasic_doubleBasic() { + runTest("compiler/testData/codegen/box/arithmetic/basic_doubleBasic.kt"); + } + + @Test + @TestMetadata("basic_integralToFloat.kt") + public void testBasic_integralToFloat() { + runTest("compiler/testData/codegen/box/arithmetic/basic_integralToFloat.kt"); + } + + @Test + @TestMetadata("basic_kt37412.kt") + public void testBasic_kt37412() { + runTest("compiler/testData/codegen/box/arithmetic/basic_kt37412.kt"); + } + + @Test + @TestMetadata("basic_selfComparison.kt") + public void testBasic_selfComparison() { + runTest("compiler/testData/codegen/box/arithmetic/basic_selfComparison.kt"); + } + + @Test + @TestMetadata("basic_shifts.kt") + public void testBasic_shifts() { + runTest("compiler/testData/codegen/box/arithmetic/basic_shifts.kt"); + } + + @Test + @TestMetadata("basic_uintTests.kt") + public void testBasic_uintTests() { + runTest("compiler/testData/codegen/box/arithmetic/basic_uintTests.kt"); + } + + @Test + @TestMetadata("division.kt") + public void testDivision() { + runTest("compiler/testData/codegen/box/arithmetic/division.kt"); + } + + @Test + @TestMetadata("github1856.kt") + public void testGithub1856() { + runTest("compiler/testData/codegen/box/arithmetic/github1856.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/arrays") @TestDataPath("$PROJECT_ROOT") @@ -972,6 +1054,302 @@ public class FirJsES6CodegenBoxTestGenerated extends AbstractFirJsES6CodegenBoxT } } + @Nested + @TestMetadata("compiler/testData/codegen/box/basics") + @TestDataPath("$PROJECT_ROOT") + public class Basics { + @Test + public void testAllFilesPresentInBasics() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/basics"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @Test + @TestMetadata("array_to_any.kt") + public void testArray_to_any() { + runTest("compiler/testData/codegen/box/basics/array_to_any.kt"); + } + + @Test + @TestMetadata("canonical_name.kt") + public void testCanonical_name() { + runTest("compiler/testData/codegen/box/basics/canonical_name.kt"); + } + + @Test + @TestMetadata("cast_null.kt") + public void testCast_null() { + runTest("compiler/testData/codegen/box/basics/cast_null.kt"); + } + + @Test + @TestMetadata("cast_simple.kt") + public void testCast_simple() { + runTest("compiler/testData/codegen/box/basics/cast_simple.kt"); + } + + @Test + @TestMetadata("check_type.kt") + public void testCheck_type() { + runTest("compiler/testData/codegen/box/basics/check_type.kt"); + } + + @Test + @TestMetadata("companion.kt") + public void testCompanion() { + runTest("compiler/testData/codegen/box/basics/companion.kt"); + } + + @Test + @TestMetadata("concatenation.kt") + public void testConcatenation() { + runTest("compiler/testData/codegen/box/basics/concatenation.kt"); + } + + @Test + @TestMetadata("const_infinity.kt") + public void testConst_infinity() { + runTest("compiler/testData/codegen/box/basics/const_infinity.kt"); + } + + @Test + @TestMetadata("expression_as_statement.kt") + public void testExpression_as_statement() { + runTest("compiler/testData/codegen/box/basics/expression_as_statement.kt"); + } + + @Test + @TestMetadata("k42000_1.kt") + public void testK42000_1() { + runTest("compiler/testData/codegen/box/basics/k42000_1.kt"); + } + + @Test + @TestMetadata("k42000_2.kt") + public void testK42000_2() { + runTest("compiler/testData/codegen/box/basics/k42000_2.kt"); + } + + @Test + @TestMetadata("local_variable.kt") + public void testLocal_variable() { + runTest("compiler/testData/codegen/box/basics/local_variable.kt"); + } + + @Test + @TestMetadata("null_check.kt") + public void testNull_check() { + runTest("compiler/testData/codegen/box/basics/null_check.kt"); + } + + @Test + @TestMetadata("safe_cast.kt") + public void testSafe_cast() { + runTest("compiler/testData/codegen/box/basics/safe_cast.kt"); + } + + @Test + @TestMetadata("spread_operator_0.kt") + public void testSpread_operator_0() { + runTest("compiler/testData/codegen/box/basics/spread_operator_0.kt"); + } + + @Test + @TestMetadata("statements0.kt") + public void testStatements0() { + runTest("compiler/testData/codegen/box/basics/statements0.kt"); + } + + @Test + @TestMetadata("superFunCall.kt") + public void testSuperFunCall() { + runTest("compiler/testData/codegen/box/basics/superFunCall.kt"); + } + + @Test + @TestMetadata("superGetterCall.kt") + public void testSuperGetterCall() { + runTest("compiler/testData/codegen/box/basics/superGetterCall.kt"); + } + + @Test + @TestMetadata("superSetterCall.kt") + public void testSuperSetterCall() { + runTest("compiler/testData/codegen/box/basics/superSetterCall.kt"); + } + + @Test + @TestMetadata("typealias1.kt") + public void testTypealias1() { + runTest("compiler/testData/codegen/box/basics/typealias1.kt"); + } + + @Test + @TestMetadata("unchecked_cast1.kt") + public void testUnchecked_cast1() { + runTest("compiler/testData/codegen/box/basics/unchecked_cast1.kt"); + } + + @Test + @TestMetadata("unchecked_cast2.kt") + public void testUnchecked_cast2() { + runTest("compiler/testData/codegen/box/basics/unchecked_cast2.kt"); + } + + @Test + @TestMetadata("unchecked_cast3.kt") + public void testUnchecked_cast3() { + runTest("compiler/testData/codegen/box/basics/unchecked_cast3.kt"); + } + + @Test + @TestMetadata("unchecked_cast4.kt") + public void testUnchecked_cast4() { + runTest("compiler/testData/codegen/box/basics/unchecked_cast4.kt"); + } + + @Test + @TestMetadata("unit1.kt") + public void testUnit1() { + runTest("compiler/testData/codegen/box/basics/unit1.kt"); + } + + @Test + @TestMetadata("unit2.kt") + public void testUnit2() { + runTest("compiler/testData/codegen/box/basics/unit2.kt"); + } + + @Test + @TestMetadata("unit3.kt") + public void testUnit3() { + runTest("compiler/testData/codegen/box/basics/unit3.kt"); + } + + @Test + @TestMetadata("unit4.kt") + public void testUnit4() { + runTest("compiler/testData/codegen/box/basics/unit4.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/bce") + @TestDataPath("$PROJECT_ROOT") + public class Bce { + @Test + public void testAllFilesPresentInBce() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/bce"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @Test + @TestMetadata("bceCases.kt") + public void testBceCases() { + runTest("compiler/testData/codegen/box/bce/bceCases.kt"); + } + + @Test + @TestMetadata("customGetter.kt") + public void testCustomGetter() { + runTest("compiler/testData/codegen/box/bce/customGetter.kt"); + } + + @Test + @TestMetadata("delegatedProperty.kt") + public void testDelegatedProperty() { + runTest("compiler/testData/codegen/box/bce/delegatedProperty.kt"); + } + + @Test + @TestMetadata("differentArrays.kt") + public void testDifferentArrays() { + runTest("compiler/testData/codegen/box/bce/differentArrays.kt"); + } + + @Test + @TestMetadata("differentObjects.kt") + public void testDifferentObjects() { + runTest("compiler/testData/codegen/box/bce/differentObjects.kt"); + } + + @Test + @TestMetadata("forDownToSize.kt") + public void testForDownToSize() { + runTest("compiler/testData/codegen/box/bce/forDownToSize.kt"); + } + + @Test + @TestMetadata("forDownToWithStep.kt") + public void testForDownToWithStep() { + runTest("compiler/testData/codegen/box/bce/forDownToWithStep.kt"); + } + + @Test + @TestMetadata("forEachIndexedTest.kt") + public void testForEachIndexedTest() { + runTest("compiler/testData/codegen/box/bce/forEachIndexedTest.kt"); + } + + @Test + @TestMetadata("forEachIndicies.kt") + public void testForEachIndicies() { + runTest("compiler/testData/codegen/box/bce/forEachIndicies.kt"); + } + + @Test + @TestMetadata("forIndiciesWithStep.kt") + public void testForIndiciesWithStep() { + runTest("compiler/testData/codegen/box/bce/forIndiciesWithStep.kt"); + } + + @Test + @TestMetadata("forRangeToSize.kt") + public void testForRangeToSize() { + runTest("compiler/testData/codegen/box/bce/forRangeToSize.kt"); + } + + @Test + @TestMetadata("forRangeToWithStep.kt") + public void testForRangeToWithStep() { + runTest("compiler/testData/codegen/box/bce/forRangeToWithStep.kt"); + } + + @Test + @TestMetadata("forReversed.kt") + public void testForReversed() { + runTest("compiler/testData/codegen/box/bce/forReversed.kt"); + } + + @Test + @TestMetadata("forUntilSize.kt") + public void testForUntilSize() { + runTest("compiler/testData/codegen/box/bce/forUntilSize.kt"); + } + + @Test + @TestMetadata("forUntilWithStep.kt") + public void testForUntilWithStep() { + runTest("compiler/testData/codegen/box/bce/forUntilWithStep.kt"); + } + + @Test + @TestMetadata("forWithIndex.kt") + public void testForWithIndex() { + runTest("compiler/testData/codegen/box/bce/forWithIndex.kt"); + } + + @Test + @TestMetadata("inheritance.kt") + public void testInheritance() { + runTest("compiler/testData/codegen/box/bce/inheritance.kt"); + } + + @Test + @TestMetadata("withGetter.kt") + public void testWithGetter() { + runTest("compiler/testData/codegen/box/bce/withGetter.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/binaryOp") @TestDataPath("$PROJECT_ROOT") @@ -1138,6 +1516,124 @@ public class FirJsES6CodegenBoxTestGenerated extends AbstractFirJsES6CodegenBoxT } } + @Nested + @TestMetadata("compiler/testData/codegen/box/boxing") + @TestDataPath("$PROJECT_ROOT") + public class Boxing { + @Test + public void testAllFilesPresentInBoxing() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/boxing"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @Test + @TestMetadata("box_cache0.kt") + public void testBox_cache0() { + runTest("compiler/testData/codegen/box/boxing/box_cache0.kt"); + } + + @Test + @TestMetadata("boxing0.kt") + public void testBoxing0() { + runTest("compiler/testData/codegen/box/boxing/boxing0.kt"); + } + + @Test + @TestMetadata("boxing1.kt") + public void testBoxing1() { + runTest("compiler/testData/codegen/box/boxing/boxing1.kt"); + } + + @Test + @TestMetadata("boxing10.kt") + public void testBoxing10() { + runTest("compiler/testData/codegen/box/boxing/boxing10.kt"); + } + + @Test + @TestMetadata("boxing11.kt") + public void testBoxing11() { + runTest("compiler/testData/codegen/box/boxing/boxing11.kt"); + } + + @Test + @TestMetadata("boxing12.kt") + public void testBoxing12() { + runTest("compiler/testData/codegen/box/boxing/boxing12.kt"); + } + + @Test + @TestMetadata("boxing13.kt") + public void testBoxing13() { + runTest("compiler/testData/codegen/box/boxing/boxing13.kt"); + } + + @Test + @TestMetadata("boxing14.kt") + public void testBoxing14() { + runTest("compiler/testData/codegen/box/boxing/boxing14.kt"); + } + + @Test + @TestMetadata("boxing15.kt") + public void testBoxing15() { + runTest("compiler/testData/codegen/box/boxing/boxing15.kt"); + } + + @Test + @TestMetadata("boxing2.kt") + public void testBoxing2() { + runTest("compiler/testData/codegen/box/boxing/boxing2.kt"); + } + + @Test + @TestMetadata("boxing3.kt") + public void testBoxing3() { + runTest("compiler/testData/codegen/box/boxing/boxing3.kt"); + } + + @Test + @TestMetadata("boxing4.kt") + public void testBoxing4() { + runTest("compiler/testData/codegen/box/boxing/boxing4.kt"); + } + + @Test + @TestMetadata("boxing5.kt") + public void testBoxing5() { + runTest("compiler/testData/codegen/box/boxing/boxing5.kt"); + } + + @Test + @TestMetadata("boxing6.kt") + public void testBoxing6() { + runTest("compiler/testData/codegen/box/boxing/boxing6.kt"); + } + + @Test + @TestMetadata("boxing7.kt") + public void testBoxing7() { + runTest("compiler/testData/codegen/box/boxing/boxing7.kt"); + } + + @Test + @TestMetadata("boxing8.kt") + public void testBoxing8() { + runTest("compiler/testData/codegen/box/boxing/boxing8.kt"); + } + + @Test + @TestMetadata("boxing9.kt") + public void testBoxing9() { + runTest("compiler/testData/codegen/box/boxing/boxing9.kt"); + } + + @Test + @TestMetadata("kt53100_casts.kt") + public void testKt53100_casts() { + runTest("compiler/testData/codegen/box/boxing/kt53100_casts.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/boxingOptimization") @TestDataPath("$PROJECT_ROOT") @@ -1382,6 +1878,88 @@ public class FirJsES6CodegenBoxTestGenerated extends AbstractFirJsES6CodegenBoxT } } + @Nested + @TestMetadata("compiler/testData/codegen/box/branching") + @TestDataPath("$PROJECT_ROOT") + public class Branching { + @Test + @TestMetadata("advanced_when2.kt") + public void testAdvanced_when2() { + runTest("compiler/testData/codegen/box/branching/advanced_when2.kt"); + } + + @Test + @TestMetadata("advanced_when5.kt") + public void testAdvanced_when5() { + runTest("compiler/testData/codegen/box/branching/advanced_when5.kt"); + } + + @Test + public void testAllFilesPresentInBranching() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/branching"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @Test + @TestMetadata("if_else.kt") + public void testIf_else() { + runTest("compiler/testData/codegen/box/branching/if_else.kt"); + } + + @Test + @TestMetadata("when2.kt") + public void testWhen2() { + runTest("compiler/testData/codegen/box/branching/when2.kt"); + } + + @Test + @TestMetadata("when4.kt") + public void testWhen4() { + runTest("compiler/testData/codegen/box/branching/when4.kt"); + } + + @Test + @TestMetadata("when5.kt") + public void testWhen5() { + runTest("compiler/testData/codegen/box/branching/when5.kt"); + } + + @Test + @TestMetadata("when6.kt") + public void testWhen6() { + runTest("compiler/testData/codegen/box/branching/when6.kt"); + } + + @Test + @TestMetadata("when7.kt") + public void testWhen7() { + runTest("compiler/testData/codegen/box/branching/when7.kt"); + } + + @Test + @TestMetadata("when8.kt") + public void testWhen8() { + runTest("compiler/testData/codegen/box/branching/when8.kt"); + } + + @Test + @TestMetadata("when9.kt") + public void testWhen9() { + runTest("compiler/testData/codegen/box/branching/when9.kt"); + } + + @Test + @TestMetadata("when_through.kt") + public void testWhen_through() { + runTest("compiler/testData/codegen/box/branching/when_through.kt"); + } + + @Test + @TestMetadata("when_with_try1.kt") + public void testWhen_with_try1() { + runTest("compiler/testData/codegen/box/branching/when_with_try1.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/bridges") @TestDataPath("$PROJECT_ROOT") @@ -1637,6 +2215,18 @@ public class FirJsES6CodegenBoxTestGenerated extends AbstractFirJsES6CodegenBoxT runTest("compiler/testData/codegen/box/bridges/methodWithDefaultParameter.kt"); } + @Test + @TestMetadata("multipleModules1.kt") + public void testMultipleModules1() { + runTest("compiler/testData/codegen/box/bridges/multipleModules1.kt"); + } + + @Test + @TestMetadata("multipleModules2.kt") + public void testMultipleModules2() { + runTest("compiler/testData/codegen/box/bridges/multipleModules2.kt"); + } + @Test @TestMetadata("nestedClassTypeParameters.kt") public void testNestedClassTypeParameters() { @@ -1697,6 +2287,12 @@ public class FirJsES6CodegenBoxTestGenerated extends AbstractFirJsES6CodegenBoxT runTest("compiler/testData/codegen/box/bridges/propertySetter.kt"); } + @Test + @TestMetadata("returnTypeSignature.kt") + public void testReturnTypeSignature() { + runTest("compiler/testData/codegen/box/bridges/returnTypeSignature.kt"); + } + @Test @TestMetadata("simple.kt") public void testSimple() { @@ -1739,12 +2335,138 @@ public class FirJsES6CodegenBoxTestGenerated extends AbstractFirJsES6CodegenBoxT runTest("compiler/testData/codegen/box/bridges/simpleUpperBound.kt"); } + @Test + @TestMetadata("special.kt") + public void testSpecial() { + runTest("compiler/testData/codegen/box/bridges/special.kt"); + } + + @Test + @TestMetadata("specialGeneric.kt") + public void testSpecialGeneric() { + runTest("compiler/testData/codegen/box/bridges/specialGeneric.kt"); + } + @Test @TestMetadata("strListContains.kt") public void testStrListContains() { runTest("compiler/testData/codegen/box/bridges/strListContains.kt"); } + @Test + @TestMetadata("test0.kt") + public void testTest0() { + runTest("compiler/testData/codegen/box/bridges/test0.kt"); + } + + @Test + @TestMetadata("test1.kt") + public void testTest1() { + runTest("compiler/testData/codegen/box/bridges/test1.kt"); + } + + @Test + @TestMetadata("test10.kt") + public void testTest10() { + runTest("compiler/testData/codegen/box/bridges/test10.kt"); + } + + @Test + @TestMetadata("test11.kt") + public void testTest11() { + runTest("compiler/testData/codegen/box/bridges/test11.kt"); + } + + @Test + @TestMetadata("test12.kt") + public void testTest12() { + runTest("compiler/testData/codegen/box/bridges/test12.kt"); + } + + @Test + @TestMetadata("test13.kt") + public void testTest13() { + runTest("compiler/testData/codegen/box/bridges/test13.kt"); + } + + @Test + @TestMetadata("test14.kt") + public void testTest14() { + runTest("compiler/testData/codegen/box/bridges/test14.kt"); + } + + @Test + @TestMetadata("test15.kt") + public void testTest15() { + runTest("compiler/testData/codegen/box/bridges/test15.kt"); + } + + @Test + @TestMetadata("test16.kt") + public void testTest16() { + runTest("compiler/testData/codegen/box/bridges/test16.kt"); + } + + @Test + @TestMetadata("test17.kt") + public void testTest17() { + runTest("compiler/testData/codegen/box/bridges/test17.kt"); + } + + @Test + @TestMetadata("test18.kt") + public void testTest18() { + runTest("compiler/testData/codegen/box/bridges/test18.kt"); + } + + @Test + @TestMetadata("test2.kt") + public void testTest2() { + runTest("compiler/testData/codegen/box/bridges/test2.kt"); + } + + @Test + @TestMetadata("test3.kt") + public void testTest3() { + runTest("compiler/testData/codegen/box/bridges/test3.kt"); + } + + @Test + @TestMetadata("test4.kt") + public void testTest4() { + runTest("compiler/testData/codegen/box/bridges/test4.kt"); + } + + @Test + @TestMetadata("test5.kt") + public void testTest5() { + runTest("compiler/testData/codegen/box/bridges/test5.kt"); + } + + @Test + @TestMetadata("test6.kt") + public void testTest6() { + runTest("compiler/testData/codegen/box/bridges/test6.kt"); + } + + @Test + @TestMetadata("test7.kt") + public void testTest7() { + runTest("compiler/testData/codegen/box/bridges/test7.kt"); + } + + @Test + @TestMetadata("test8.kt") + public void testTest8() { + runTest("compiler/testData/codegen/box/bridges/test8.kt"); + } + + @Test + @TestMetadata("test9.kt") + public void testTest9() { + runTest("compiler/testData/codegen/box/bridges/test9.kt"); + } + @Test @TestMetadata("traitImplInheritsTraitImpl.kt") public void testTraitImplInheritsTraitImpl() { @@ -4644,6 +5366,46 @@ public class FirJsES6CodegenBoxTestGenerated extends AbstractFirJsES6CodegenBoxT } } + @Nested + @TestMetadata("compiler/testData/codegen/box/classDelegation") + @TestDataPath("$PROJECT_ROOT") + public class ClassDelegation { + @Test + public void testAllFilesPresentInClassDelegation() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/classDelegation"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @Test + @TestMetadata("generic.kt") + public void testGeneric() { + runTest("compiler/testData/codegen/box/classDelegation/generic.kt"); + } + + @Test + @TestMetadata("method.kt") + public void testMethod() { + runTest("compiler/testData/codegen/box/classDelegation/method.kt"); + } + + @Test + @TestMetadata("multipleModules.kt") + public void testMultipleModules() { + runTest("compiler/testData/codegen/box/classDelegation/multipleModules.kt"); + } + + @Test + @TestMetadata("property.kt") + public void testProperty() { + runTest("compiler/testData/codegen/box/classDelegation/property.kt"); + } + + @Test + @TestMetadata("withBridge.kt") + public void testWithBridge() { + runTest("compiler/testData/codegen/box/classDelegation/withBridge.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/classLiteral") @TestDataPath("$PROJECT_ROOT") @@ -6353,6 +7115,12 @@ public class FirJsES6CodegenBoxTestGenerated extends AbstractFirJsES6CodegenBoxT runTest("compiler/testData/codegen/box/contracts/constructorArgument.kt"); } + @Test + @TestMetadata("contractForCast.kt") + public void testContractForCast() { + runTest("compiler/testData/codegen/box/contracts/contractForCast.kt"); + } + @Test @TestMetadata("destructuredVariable.kt") public void testDestructuredVariable() { @@ -6395,6 +7163,12 @@ public class FirJsES6CodegenBoxTestGenerated extends AbstractFirJsES6CodegenBoxT runTest("compiler/testData/codegen/box/contracts/functionParameter.kt"); } + @Test + @TestMetadata("isNullString.kt") + public void testIsNullString() { + runTest("compiler/testData/codegen/box/contracts/isNullString.kt"); + } + @Test @TestMetadata("kt39374.kt") public void testKt39374() { @@ -6437,6 +7211,24 @@ public class FirJsES6CodegenBoxTestGenerated extends AbstractFirJsES6CodegenBoxT runTest("compiler/testData/codegen/box/contracts/nestedLambdaInNonInlineCallExactlyOnce.kt"); } + @Test + @TestMetadata("nonNullSmartCast.kt") + public void testNonNullSmartCast() { + runTest("compiler/testData/codegen/box/contracts/nonNullSmartCast.kt"); + } + + @Test + @TestMetadata("require.kt") + public void testRequire() { + runTest("compiler/testData/codegen/box/contracts/require.kt"); + } + + @Test + @TestMetadata("runLambdaForVal.kt") + public void testRunLambdaForVal() { + runTest("compiler/testData/codegen/box/contracts/runLambdaForVal.kt"); + } + @Test @TestMetadata("valInWhen.kt") public void testValInWhen() { @@ -7818,6 +8610,124 @@ public class FirJsES6CodegenBoxTestGenerated extends AbstractFirJsES6CodegenBoxT } } + @Nested + @TestMetadata("compiler/testData/codegen/box/controlflow") + @TestDataPath("$PROJECT_ROOT") + public class Controlflow { + @Test + public void testAllFilesPresentInControlflow() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/controlflow"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @Test + @TestMetadata("break.kt") + public void testBreak() { + runTest("compiler/testData/codegen/box/controlflow/break.kt"); + } + + @Test + @TestMetadata("break1.kt") + public void testBreak1() { + runTest("compiler/testData/codegen/box/controlflow/break1.kt"); + } + + @Test + @TestMetadata("for_loops.kt") + public void testFor_loops() { + runTest("compiler/testData/codegen/box/controlflow/for_loops.kt"); + } + + @Test + @TestMetadata("for_loops_array_break_continue.kt") + public void testFor_loops_array_break_continue() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_array_break_continue.kt"); + } + + @Test + @TestMetadata("for_loops_array_indices.kt") + public void testFor_loops_array_indices() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_array_indices.kt"); + } + + @Test + @TestMetadata("for_loops_array_mutation.kt") + public void testFor_loops_array_mutation() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_array_mutation.kt"); + } + + @Test + @TestMetadata("for_loops_array_nested.kt") + public void testFor_loops_array_nested() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_array_nested.kt"); + } + + @Test + @TestMetadata("for_loops_array_nullable.kt") + public void testFor_loops_array_nullable() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_array_nullable.kt"); + } + + @Test + @TestMetadata("for_loops_array_side_effects.kt") + public void testFor_loops_array_side_effects() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_array_side_effects.kt"); + } + + @Test + @TestMetadata("for_loops_call_order.kt") + public void testFor_loops_call_order() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_call_order.kt"); + } + + @Test + @TestMetadata("for_loops_coroutines.kt") + public void testFor_loops_coroutines() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_coroutines.kt"); + } + + @Test + @TestMetadata("for_loops_empty_range.kt") + public void testFor_loops_empty_range() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_empty_range.kt"); + } + + @Test + @TestMetadata("for_loops_errors.kt") + public void testFor_loops_errors() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_errors.kt"); + } + + @Test + @TestMetadata("for_loops_let_with_nullable.kt") + public void testFor_loops_let_with_nullable() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_let_with_nullable.kt"); + } + + @Test + @TestMetadata("for_loops_nested.kt") + public void testFor_loops_nested() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_nested.kt"); + } + + @Test + @TestMetadata("for_loops_overflow.kt") + public void testFor_loops_overflow() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_overflow.kt"); + } + + @Test + @TestMetadata("for_loops_types.kt") + public void testFor_loops_types() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_types.kt"); + } + + @Test + @TestMetadata("unreachable1.kt") + public void testUnreachable1() { + runTest("compiler/testData/codegen/box/controlflow/unreachable1.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/coroutines") @TestDataPath("$PROJECT_ROOT") @@ -7839,6 +8749,12 @@ public class FirJsES6CodegenBoxTestGenerated extends AbstractFirJsES6CodegenBoxT KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); } + @Test + @TestMetadata("anonymousObject.kt") + public void testAnonymousObject() { + runTest("compiler/testData/codegen/box/coroutines/anonymousObject.kt"); + } + @Test @TestMetadata("asyncIteratorNullMerge_1_3.kt") public void testAsyncIteratorNullMerge_1_3() { @@ -7923,18 +8839,156 @@ public class FirJsES6CodegenBoxTestGenerated extends AbstractFirJsES6CodegenBoxT runTest("compiler/testData/codegen/box/coroutines/coercionToUnit.kt"); } + @Test + @TestMetadata("controlFlow_chain.kt") + public void testControlFlow_chain() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_chain.kt"); + } + + @Test + @TestMetadata("controlFlow_finally1.kt") + public void testControlFlow_finally1() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally1.kt"); + } + + @Test + @TestMetadata("controlFlow_finally2.kt") + public void testControlFlow_finally2() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally2.kt"); + } + + @Test + @TestMetadata("controlFlow_finally3.kt") + public void testControlFlow_finally3() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally3.kt"); + } + + @Test + @TestMetadata("controlFlow_finally4.kt") + public void testControlFlow_finally4() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally4.kt"); + } + + @Test + @TestMetadata("controlFlow_finally5.kt") + public void testControlFlow_finally5() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally5.kt"); + } + + @Test + @TestMetadata("controlFlow_finally6.kt") + public void testControlFlow_finally6() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally6.kt"); + } + + @Test + @TestMetadata("controlFlow_finally7.kt") + public void testControlFlow_finally7() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally7.kt"); + } + + @Test + @TestMetadata("controlFlow_if1.kt") + public void testControlFlow_if1() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_if1.kt"); + } + + @Test + @TestMetadata("controlFlow_if2.kt") + public void testControlFlow_if2() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_if2.kt"); + } + + @Test + @TestMetadata("controlFlow_inline1.kt") + public void testControlFlow_inline1() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_inline1.kt"); + } + + @Test + @TestMetadata("controlFlow_inline2.kt") + public void testControlFlow_inline2() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_inline2.kt"); + } + + @Test + @TestMetadata("controlFlow_inline3.kt") + public void testControlFlow_inline3() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_inline3.kt"); + } + + @Test + @TestMetadata("controlFlow_tryCatch1.kt") + public void testControlFlow_tryCatch1() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_tryCatch1.kt"); + } + + @Test + @TestMetadata("controlFlow_tryCatch2.kt") + public void testControlFlow_tryCatch2() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_tryCatch2.kt"); + } + + @Test + @TestMetadata("controlFlow_tryCatch3.kt") + public void testControlFlow_tryCatch3() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_tryCatch3.kt"); + } + + @Test + @TestMetadata("controlFlow_tryCatch4.kt") + public void testControlFlow_tryCatch4() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_tryCatch4.kt"); + } + + @Test + @TestMetadata("controlFlow_tryCatch5.kt") + public void testControlFlow_tryCatch5() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_tryCatch5.kt"); + } + + @Test + @TestMetadata("controlFlow_while1.kt") + public void testControlFlow_while1() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_while1.kt"); + } + + @Test + @TestMetadata("controlFlow_while2.kt") + public void testControlFlow_while2() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_while2.kt"); + } + @Test @TestMetadata("controllerAccessFromInnerLambda.kt") public void testControllerAccessFromInnerLambda() { runTest("compiler/testData/codegen/box/coroutines/controllerAccessFromInnerLambda.kt"); } + @Test + @TestMetadata("coroutineContext1.kt") + public void testCoroutineContext1() { + runTest("compiler/testData/codegen/box/coroutines/coroutineContext1.kt"); + } + + @Test + @TestMetadata("coroutineContext2.kt") + public void testCoroutineContext2() { + runTest("compiler/testData/codegen/box/coroutines/coroutineContext2.kt"); + } + @Test @TestMetadata("coroutineContextInInlinedLambda.kt") public void testCoroutineContextInInlinedLambda() { runTest("compiler/testData/codegen/box/coroutines/coroutineContextInInlinedLambda.kt"); } + @Test + @TestMetadata("correctOrder1.kt") + public void testCorrectOrder1() { + runTest("compiler/testData/codegen/box/coroutines/correctOrder1.kt"); + } + @Test @TestMetadata("createCoroutineSafe.kt") public void testCreateCoroutineSafe() { @@ -7965,6 +9019,18 @@ public class FirJsES6CodegenBoxTestGenerated extends AbstractFirJsES6CodegenBoxT runTest("compiler/testData/codegen/box/coroutines/defaultParametersInSuspend.kt"); } + @Test + @TestMetadata("degenerate1.kt") + public void testDegenerate1() { + runTest("compiler/testData/codegen/box/coroutines/degenerate1.kt"); + } + + @Test + @TestMetadata("degenerate2.kt") + public void testDegenerate2() { + runTest("compiler/testData/codegen/box/coroutines/degenerate2.kt"); + } + @Test @TestMetadata("delegatedSuspendMember.kt") public void testDelegatedSuspendMember() { @@ -8013,6 +9079,30 @@ public class FirJsES6CodegenBoxTestGenerated extends AbstractFirJsES6CodegenBoxT runTest("compiler/testData/codegen/box/coroutines/falseUnitCoercion.kt"); } + @Test + @TestMetadata("functionReference_eqeq_name.kt") + public void testFunctionReference_eqeq_name() { + runTest("compiler/testData/codegen/box/coroutines/functionReference_eqeq_name.kt"); + } + + @Test + @TestMetadata("functionReference_invokeAsFunction.kt") + public void testFunctionReference_invokeAsFunction() { + runTest("compiler/testData/codegen/box/coroutines/functionReference_invokeAsFunction.kt"); + } + + @Test + @TestMetadata("functionReference_lambdaAsSuspendLambda.kt") + public void testFunctionReference_lambdaAsSuspendLambda() { + runTest("compiler/testData/codegen/box/coroutines/functionReference_lambdaAsSuspendLambda.kt"); + } + + @Test + @TestMetadata("functionReference_simple.kt") + public void testFunctionReference_simple() { + runTest("compiler/testData/codegen/box/coroutines/functionReference_simple.kt"); + } + @Test @TestMetadata("generate.kt") public void testGenerate() { @@ -8187,6 +9277,12 @@ public class FirJsES6CodegenBoxTestGenerated extends AbstractFirJsES6CodegenBoxT runTest("compiler/testData/codegen/box/coroutines/kt35967.kt"); } + @Test + @TestMetadata("kt41394.kt") + public void testKt41394() { + runTest("compiler/testData/codegen/box/coroutines/kt41394.kt"); + } + @Test @TestMetadata("kt42028.kt") public void testKt42028() { @@ -8415,12 +9511,30 @@ public class FirJsES6CodegenBoxTestGenerated extends AbstractFirJsES6CodegenBoxT runTest("compiler/testData/codegen/box/coroutines/returnByLabel.kt"); } + @Test + @TestMetadata("returnsNothing1.kt") + public void testReturnsNothing1() { + runTest("compiler/testData/codegen/box/coroutines/returnsNothing1.kt"); + } + + @Test + @TestMetadata("returnsUnit1.kt") + public void testReturnsUnit1() { + runTest("compiler/testData/codegen/box/coroutines/returnsUnit1.kt"); + } + @Test @TestMetadata("simple.kt") public void testSimple() { runTest("compiler/testData/codegen/box/coroutines/simple.kt"); } + @Test + @TestMetadata("simple2.kt") + public void testSimple2() { + runTest("compiler/testData/codegen/box/coroutines/simple2.kt"); + } + @Test @TestMetadata("simpleException.kt") public void testSimpleException() { @@ -8463,6 +9577,12 @@ public class FirJsES6CodegenBoxTestGenerated extends AbstractFirJsES6CodegenBoxT runTest("compiler/testData/codegen/box/coroutines/suspendCallsInArguments.kt"); } + @Test + @TestMetadata("suspendConversion.kt") + public void testSuspendConversion() { + runTest("compiler/testData/codegen/box/coroutines/suspendConversion.kt"); + } + @Test @TestMetadata("suspendCoroutineFromStateMachine.kt") public void testSuspendCoroutineFromStateMachine() { @@ -8619,6 +9739,12 @@ public class FirJsES6CodegenBoxTestGenerated extends AbstractFirJsES6CodegenBoxT runTest("compiler/testData/codegen/box/coroutines/varargCallFromSuspend.kt"); } + @Test + @TestMetadata("withReceiver.kt") + public void testWithReceiver() { + runTest("compiler/testData/codegen/box/coroutines/withReceiver.kt"); + } + @Nested @TestMetadata("compiler/testData/codegen/box/coroutines/bridges") @TestDataPath("$PROJECT_ROOT") @@ -10846,6 +11972,34 @@ public class FirJsES6CodegenBoxTestGenerated extends AbstractFirJsES6CodegenBoxT } } + @Nested + @TestMetadata("compiler/testData/codegen/box/cycles") + @TestDataPath("$PROJECT_ROOT") + public class Cycles { + @Test + public void testAllFilesPresentInCycles() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cycles"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @Test + @TestMetadata("cycle.kt") + public void testCycle() { + runTest("compiler/testData/codegen/box/cycles/cycle.kt"); + } + + @Test + @TestMetadata("cycle_do.kt") + public void testCycle_do() { + runTest("compiler/testData/codegen/box/cycles/cycle_do.kt"); + } + + @Test + @TestMetadata("cycle_for.kt") + public void testCycle_for() { + runTest("compiler/testData/codegen/box/cycles/cycle_for.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/dataClasses") @TestDataPath("$PROJECT_ROOT") @@ -11252,6 +12406,28 @@ public class FirJsES6CodegenBoxTestGenerated extends AbstractFirJsES6CodegenBoxT } } + @Nested + @TestMetadata("compiler/testData/codegen/box/dataflow") + @TestDataPath("$PROJECT_ROOT") + public class Dataflow { + @Test + public void testAllFilesPresentInDataflow() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/dataflow"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @Test + @TestMetadata("scope1.kt") + public void testScope1() { + runTest("compiler/testData/codegen/box/dataflow/scope1.kt"); + } + + @Test + @TestMetadata("uninitialized_val.kt") + public void testUninitialized_val() { + runTest("compiler/testData/codegen/box/dataflow/uninitialized_val.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/deadCodeElimination") @TestDataPath("$PROJECT_ROOT") @@ -11871,6 +13047,12 @@ public class FirJsES6CodegenBoxTestGenerated extends AbstractFirJsES6CodegenBoxT runTest("compiler/testData/codegen/box/delegatedProperty/castSetParameter.kt"); } + @Test + @TestMetadata("correctFieldsOrder.kt") + public void testCorrectFieldsOrder() { + runTest("compiler/testData/codegen/box/delegatedProperty/correctFieldsOrder.kt"); + } + @Test @TestMetadata("delegateAsInnerClass.kt") public void testDelegateAsInnerClass() { @@ -11925,6 +13107,12 @@ public class FirJsES6CodegenBoxTestGenerated extends AbstractFirJsES6CodegenBoxT runTest("compiler/testData/codegen/box/delegatedProperty/delegateWithPrivateSet.kt"); } + @Test + @TestMetadata("delegatedOverride.kt") + public void testDelegatedOverride() { + runTest("compiler/testData/codegen/box/delegatedProperty/delegatedOverride.kt"); + } + @Test @TestMetadata("delegatedPropertyInEnum.kt") public void testDelegatedPropertyInEnum() { @@ -12057,12 +13245,42 @@ public class FirJsES6CodegenBoxTestGenerated extends AbstractFirJsES6CodegenBoxT runTest("compiler/testData/codegen/box/delegatedProperty/kt9712.kt"); } + @Test + @TestMetadata("lazy.kt") + public void testLazy() { + runTest("compiler/testData/codegen/box/delegatedProperty/lazy.kt"); + } + + @Test + @TestMetadata("local.kt") + public void testLocal() { + runTest("compiler/testData/codegen/box/delegatedProperty/local.kt"); + } + + @Test + @TestMetadata("map.kt") + public void testMap() { + runTest("compiler/testData/codegen/box/delegatedProperty/map.kt"); + } + @Test @TestMetadata("noTypeVariablesLeft.kt") public void testNoTypeVariablesLeft() { runTest("compiler/testData/codegen/box/delegatedProperty/noTypeVariablesLeft.kt"); } + @Test + @TestMetadata("observable.kt") + public void testObservable() { + runTest("compiler/testData/codegen/box/delegatedProperty/observable.kt"); + } + + @Test + @TestMetadata("packageLevel.kt") + public void testPackageLevel() { + runTest("compiler/testData/codegen/box/delegatedProperty/packageLevel.kt"); + } + @Test @TestMetadata("privateVar.kt") public void testPrivateVar() { @@ -12105,6 +13323,18 @@ public class FirJsES6CodegenBoxTestGenerated extends AbstractFirJsES6CodegenBoxT runTest("compiler/testData/codegen/box/delegatedProperty/setAsExtensionFunInClass.kt"); } + @Test + @TestMetadata("simpleVal.kt") + public void testSimpleVal() { + runTest("compiler/testData/codegen/box/delegatedProperty/simpleVal.kt"); + } + + @Test + @TestMetadata("simpleVar.kt") + public void testSimpleVar() { + runTest("compiler/testData/codegen/box/delegatedProperty/simpleVar.kt"); + } + @Test @TestMetadata("topLevelVal.kt") public void testTopLevelVal() { @@ -12912,6 +14142,40 @@ public class FirJsES6CodegenBoxTestGenerated extends AbstractFirJsES6CodegenBoxT } } + @Nested + @TestMetadata("compiler/testData/codegen/box/devirtualization") + @TestDataPath("$PROJECT_ROOT") + public class Devirtualization { + @Test + public void testAllFilesPresentInDevirtualization() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/devirtualization"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @Test + @TestMetadata("anonymousObject.kt") + public void testAnonymousObject() { + runTest("compiler/testData/codegen/box/devirtualization/anonymousObject.kt"); + } + + @Test + @TestMetadata("getter_looking_as_box_function.kt") + public void testGetter_looking_as_box_function() { + runTest("compiler/testData/codegen/box/devirtualization/getter_looking_as_box_function.kt"); + } + + @Test + @TestMetadata("inline_getter.kt") + public void testInline_getter() { + runTest("compiler/testData/codegen/box/devirtualization/inline_getter.kt"); + } + + @Test + @TestMetadata("lateinitInterface.kt") + public void testLateinitInterface() { + runTest("compiler/testData/codegen/box/devirtualization/lateinitInterface.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/diagnostics") @TestDataPath("$PROJECT_ROOT") @@ -13525,6 +14789,12 @@ public class FirJsES6CodegenBoxTestGenerated extends AbstractFirJsES6CodegenBoxT runTest("compiler/testData/codegen/box/enum/companionAccessingEnumValue.kt"); } + @Test + @TestMetadata("companionObject.kt") + public void testCompanionObject() { + runTest("compiler/testData/codegen/box/enum/companionObject.kt"); + } + @Test @TestMetadata("companionObjectInEnum.kt") public void testCompanionObjectInEnum() { @@ -13669,6 +14939,12 @@ public class FirJsES6CodegenBoxTestGenerated extends AbstractFirJsES6CodegenBoxT runTest("compiler/testData/codegen/box/enum/enumWithLambdaParameter.kt"); } + @Test + @TestMetadata("enum_equals.kt") + public void testEnum_equals() { + runTest("compiler/testData/codegen/box/enum/enum_equals.kt"); + } + @Test @TestMetadata("getEnumEntityByOrdinal.kt") public void testGetEnumEntityByOrdinal() { @@ -13741,6 +15017,18 @@ public class FirJsES6CodegenBoxTestGenerated extends AbstractFirJsES6CodegenBoxT runTest("compiler/testData/codegen/box/enum/innerWithExistingClassObject.kt"); } + @Test + @TestMetadata("interfaceCallNoEntryClass.kt") + public void testInterfaceCallNoEntryClass() { + runTest("compiler/testData/codegen/box/enum/interfaceCallNoEntryClass.kt"); + } + + @Test + @TestMetadata("interfaceCallWithEntryClass.kt") + public void testInterfaceCallWithEntryClass() { + runTest("compiler/testData/codegen/box/enum/interfaceCallWithEntryClass.kt"); + } + @Test @TestMetadata("k54079.kt") public void testK54079() { @@ -13795,6 +15083,12 @@ public class FirJsES6CodegenBoxTestGenerated extends AbstractFirJsES6CodegenBoxT runTest("compiler/testData/codegen/box/enum/kt2350.kt"); } + @Test + @TestMetadata("kt38540.kt") + public void testKt38540() { + runTest("compiler/testData/codegen/box/enum/kt38540.kt"); + } + @Test @TestMetadata("kt38996.kt") public void testKt38996() { @@ -13891,12 +15185,42 @@ public class FirJsES6CodegenBoxTestGenerated extends AbstractFirJsES6CodegenBoxT runTest("compiler/testData/codegen/box/enum/kt9711_2.kt"); } + @Test + @TestMetadata("lambdaInDefault.kt") + public void testLambdaInDefault() { + runTest("compiler/testData/codegen/box/enum/lambdaInDefault.kt"); + } + + @Test + @TestMetadata("loop.kt") + public void testLoop() { + runTest("compiler/testData/codegen/box/enum/loop.kt"); + } + @Test @TestMetadata("manyDefaultParameters.kt") public void testManyDefaultParameters() { runTest("compiler/testData/codegen/box/enum/manyDefaultParameters.kt"); } + @Test + @TestMetadata("multipleModules.kt") + public void testMultipleModules() { + runTest("compiler/testData/codegen/box/enum/multipleModules.kt"); + } + + @Test + @TestMetadata("nested.kt") + public void testNested() { + runTest("compiler/testData/codegen/box/enum/nested.kt"); + } + + @Test + @TestMetadata("openMethodNoOverrides.kt") + public void testOpenMethodNoOverrides() { + runTest("compiler/testData/codegen/box/enum/openMethodNoOverrides.kt"); + } + @Test @TestMetadata("ordinal.kt") public void testOrdinal() { @@ -13921,6 +15245,12 @@ public class FirJsES6CodegenBoxTestGenerated extends AbstractFirJsES6CodegenBoxT runTest("compiler/testData/codegen/box/enum/refToThis.kt"); } + @Test + @TestMetadata("reorderedArguments.kt") + public void testReorderedArguments() { + runTest("compiler/testData/codegen/box/enum/reorderedArguments.kt"); + } + @Test @TestMetadata("simple.kt") public void testSimple() { @@ -13939,18 +15269,66 @@ public class FirJsES6CodegenBoxTestGenerated extends AbstractFirJsES6CodegenBoxT runTest("compiler/testData/codegen/box/enum/superCallInEnumLiteral.kt"); } + @Test + @TestMetadata("switchLowering.kt") + public void testSwitchLowering() { + runTest("compiler/testData/codegen/box/enum/switchLowering.kt"); + } + + @Test + @TestMetadata("test0.kt") + public void testTest0() { + runTest("compiler/testData/codegen/box/enum/test0.kt"); + } + + @Test + @TestMetadata("test1.kt") + public void testTest1() { + runTest("compiler/testData/codegen/box/enum/test1.kt"); + } + @Test @TestMetadata("toString.kt") public void testToString() { runTest("compiler/testData/codegen/box/enum/toString.kt"); } + @Test + @TestMetadata("vCallNoEntryClass.kt") + public void testVCallNoEntryClass() { + runTest("compiler/testData/codegen/box/enum/vCallNoEntryClass.kt"); + } + + @Test + @TestMetadata("vCallWithEntryClass.kt") + public void testVCallWithEntryClass() { + runTest("compiler/testData/codegen/box/enum/vCallWithEntryClass.kt"); + } + + @Test + @TestMetadata("valueOf2.kt") + public void testValueOf2() { + runTest("compiler/testData/codegen/box/enum/valueOf2.kt"); + } + @Test @TestMetadata("valueof.kt") public void testValueof() { runTest("compiler/testData/codegen/box/enum/valueof.kt"); } + @Test + @TestMetadata("values.kt") + public void testValues() { + runTest("compiler/testData/codegen/box/enum/values.kt"); + } + + @Test + @TestMetadata("varargParam.kt") + public void testVarargParam() { + runTest("compiler/testData/codegen/box/enum/varargParam.kt"); + } + @Test @TestMetadata("whenInObject.kt") public void testWhenInObject() { @@ -14026,6 +15404,112 @@ public class FirJsES6CodegenBoxTestGenerated extends AbstractFirJsES6CodegenBoxT } } + @Nested + @TestMetadata("compiler/testData/codegen/box/escapeAnalysis") + @TestDataPath("$PROJECT_ROOT") + public class EscapeAnalysis { + @Test + public void testAllFilesPresentInEscapeAnalysis() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/escapeAnalysis"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @Test + @TestMetadata("recursion.kt") + public void testRecursion() { + runTest("compiler/testData/codegen/box/escapeAnalysis/recursion.kt"); + } + + @Test + @TestMetadata("stack_array.kt") + public void testStack_array() { + runTest("compiler/testData/codegen/box/escapeAnalysis/stack_array.kt"); + } + + @Test + @TestMetadata("test1.kt") + public void testTest1() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test1.kt"); + } + + @Test + @TestMetadata("test10.kt") + public void testTest10() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test10.kt"); + } + + @Test + @TestMetadata("test11.kt") + public void testTest11() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test11.kt"); + } + + @Test + @TestMetadata("test12.kt") + public void testTest12() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test12.kt"); + } + + @Test + @TestMetadata("test13.kt") + public void testTest13() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test13.kt"); + } + + @Test + @TestMetadata("test2.kt") + public void testTest2() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test2.kt"); + } + + @Test + @TestMetadata("test3.kt") + public void testTest3() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test3.kt"); + } + + @Test + @TestMetadata("test4.kt") + public void testTest4() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test4.kt"); + } + + @Test + @TestMetadata("test5.kt") + public void testTest5() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test5.kt"); + } + + @Test + @TestMetadata("test6.kt") + public void testTest6() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test6.kt"); + } + + @Test + @TestMetadata("test7.kt") + public void testTest7() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test7.kt"); + } + + @Test + @TestMetadata("test8.kt") + public void testTest8() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test8.kt"); + } + + @Test + @TestMetadata("test9.kt") + public void testTest9() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test9.kt"); + } + + @Test + @TestMetadata("zeroOutObjectOnAlloc.kt") + public void testZeroOutObjectOnAlloc() { + runTest("compiler/testData/codegen/box/escapeAnalysis/zeroOutObjectOnAlloc.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/evaluate") @TestDataPath("$PROJECT_ROOT") @@ -14042,6 +15526,58 @@ public class FirJsES6CodegenBoxTestGenerated extends AbstractFirJsES6CodegenBoxT } } + @Nested + @TestMetadata("compiler/testData/codegen/box/exceptions") + @TestDataPath("$PROJECT_ROOT") + public class Exceptions { + @Test + public void testAllFilesPresentInExceptions() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/exceptions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @Test + @TestMetadata("catch1.kt") + public void testCatch1() { + runTest("compiler/testData/codegen/box/exceptions/catch1.kt"); + } + + @Test + @TestMetadata("catch2.kt") + public void testCatch2() { + runTest("compiler/testData/codegen/box/exceptions/catch2.kt"); + } + + @Test + @TestMetadata("catch7.kt") + public void testCatch7() { + runTest("compiler/testData/codegen/box/exceptions/catch7.kt"); + } + + @Test + @TestMetadata("extend0.kt") + public void testExtend0() { + runTest("compiler/testData/codegen/box/exceptions/extend0.kt"); + } + + @Test + @TestMetadata("rethrow.kt") + public void testRethrow() { + runTest("compiler/testData/codegen/box/exceptions/rethrow.kt"); + } + + @Test + @TestMetadata("throw0.kt") + public void testThrow0() { + runTest("compiler/testData/codegen/box/exceptions/throw0.kt"); + } + + @Test + @TestMetadata("throw_from_catch.kt") + public void testThrow_from_catch() { + runTest("compiler/testData/codegen/box/exceptions/throw_from_catch.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/exclExcl") @TestDataPath("$PROJECT_ROOT") @@ -14921,6 +16457,12 @@ public class FirJsES6CodegenBoxTestGenerated extends AbstractFirJsES6CodegenBoxT runTest("compiler/testData/codegen/box/funInterface/funInterfaceWithReceiver.kt"); } + @Test + @TestMetadata("implIsNotFunction.kt") + public void testImplIsNotFunction() { + runTest("compiler/testData/codegen/box/funInterface/implIsNotFunction.kt"); + } + @Test @TestMetadata("inlinedSamWrapper.kt") public void testInlinedSamWrapper() { @@ -14963,6 +16505,18 @@ public class FirJsES6CodegenBoxTestGenerated extends AbstractFirJsES6CodegenBoxT runTest("compiler/testData/codegen/box/funInterface/kt46908_functionSupertype.kt"); } + @Test + @TestMetadata("kt49384.kt") + public void testKt49384() { + runTest("compiler/testData/codegen/box/funInterface/kt49384.kt"); + } + + @Test + @TestMetadata("kt49384_getSame.kt") + public void testKt49384_getSame() { + runTest("compiler/testData/codegen/box/funInterface/kt49384_getSame.kt"); + } + @Test @TestMetadata("multimodule.kt") public void testMultimodule() { @@ -14981,6 +16535,12 @@ public class FirJsES6CodegenBoxTestGenerated extends AbstractFirJsES6CodegenBoxT runTest("compiler/testData/codegen/box/funInterface/nonAbstractMethod.kt"); } + @Test + @TestMetadata("nonTrivialProjectionInSuperType.kt") + public void testNonTrivialProjectionInSuperType() { + runTest("compiler/testData/codegen/box/funInterface/nonTrivialProjectionInSuperType.kt"); + } + @Test @TestMetadata("nullableSam.kt") public void testNullableSam() { @@ -15070,6 +16630,232 @@ public class FirJsES6CodegenBoxTestGenerated extends AbstractFirJsES6CodegenBoxT } } + @Nested + @TestMetadata("compiler/testData/codegen/box/function") + @TestDataPath("$PROJECT_ROOT") + public class Function { + @Test + public void testAllFilesPresentInFunction() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/function"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @Test + @TestMetadata("arithmetic.kt") + public void testArithmetic() { + runTest("compiler/testData/codegen/box/function/arithmetic.kt"); + } + + @Test + @TestMetadata("boolean.kt") + public void testBoolean() { + runTest("compiler/testData/codegen/box/function/boolean.kt"); + } + + @Test + @TestMetadata("defaults.kt") + public void testDefaults() { + runTest("compiler/testData/codegen/box/function/defaults.kt"); + } + + @Test + @TestMetadata("defaults1.kt") + public void testDefaults1() { + runTest("compiler/testData/codegen/box/function/defaults1.kt"); + } + + @Test + @TestMetadata("defaults10.kt") + public void testDefaults10() { + runTest("compiler/testData/codegen/box/function/defaults10.kt"); + } + + @Test + @TestMetadata("defaults2.kt") + public void testDefaults2() { + runTest("compiler/testData/codegen/box/function/defaults2.kt"); + } + + @Test + @TestMetadata("defaults3.kt") + public void testDefaults3() { + runTest("compiler/testData/codegen/box/function/defaults3.kt"); + } + + @Test + @TestMetadata("defaults4.kt") + public void testDefaults4() { + runTest("compiler/testData/codegen/box/function/defaults4.kt"); + } + + @Test + @TestMetadata("defaults5.kt") + public void testDefaults5() { + runTest("compiler/testData/codegen/box/function/defaults5.kt"); + } + + @Test + @TestMetadata("defaults6.kt") + public void testDefaults6() { + runTest("compiler/testData/codegen/box/function/defaults6.kt"); + } + + @Test + @TestMetadata("defaults7.kt") + public void testDefaults7() { + runTest("compiler/testData/codegen/box/function/defaults7.kt"); + } + + @Test + @TestMetadata("defaults8.kt") + public void testDefaults8() { + runTest("compiler/testData/codegen/box/function/defaults8.kt"); + } + + @Test + @TestMetadata("defaults9.kt") + public void testDefaults9() { + runTest("compiler/testData/codegen/box/function/defaults9.kt"); + } + + @Test + @TestMetadata("defaultsFromFakeOverride.kt") + public void testDefaultsFromFakeOverride() { + runTest("compiler/testData/codegen/box/function/defaultsFromFakeOverride.kt"); + } + + @Test + @TestMetadata("defaultsWithInlineClasses.kt") + public void testDefaultsWithInlineClasses() { + runTest("compiler/testData/codegen/box/function/defaultsWithInlineClasses.kt"); + } + + @Test + @TestMetadata("defaultsWithVarArg1.kt") + public void testDefaultsWithVarArg1() { + runTest("compiler/testData/codegen/box/function/defaultsWithVarArg1.kt"); + } + + @Test + @TestMetadata("defaultsWithVarArg2.kt") + public void testDefaultsWithVarArg2() { + runTest("compiler/testData/codegen/box/function/defaultsWithVarArg2.kt"); + } + + @Test + @TestMetadata("eqeq.kt") + public void testEqeq() { + runTest("compiler/testData/codegen/box/function/eqeq.kt"); + } + + @Test + @TestMetadata("extension.kt") + public void testExtension() { + runTest("compiler/testData/codegen/box/function/extension.kt"); + } + + @Test + @TestMetadata("intrinsic.kt") + public void testIntrinsic() { + runTest("compiler/testData/codegen/box/function/intrinsic.kt"); + } + + @Test + @TestMetadata("localFunction.kt") + public void testLocalFunction() { + runTest("compiler/testData/codegen/box/function/localFunction.kt"); + } + + @Test + @TestMetadata("localFunction2.kt") + public void testLocalFunction2() { + runTest("compiler/testData/codegen/box/function/localFunction2.kt"); + } + + @Test + @TestMetadata("localFunction3.kt") + public void testLocalFunction3() { + runTest("compiler/testData/codegen/box/function/localFunction3.kt"); + } + + @Test + @TestMetadata("minus_eq.kt") + public void testMinus_eq() { + runTest("compiler/testData/codegen/box/function/minus_eq.kt"); + } + + @Test + @TestMetadata("named.kt") + public void testNamed() { + runTest("compiler/testData/codegen/box/function/named.kt"); + } + + @Test + @TestMetadata("nothingNReturningSafeCall.kt") + public void testNothingNReturningSafeCall() { + runTest("compiler/testData/codegen/box/function/nothingNReturningSafeCall.kt"); + } + + @Test + @TestMetadata("plus_eq.kt") + public void testPlus_eq() { + runTest("compiler/testData/codegen/box/function/plus_eq.kt"); + } + + @Test + @TestMetadata("referenceBigArity.kt") + public void testReferenceBigArity() { + runTest("compiler/testData/codegen/box/function/referenceBigArity.kt"); + } + + @Test + @TestMetadata("sum.kt") + public void testSum() { + runTest("compiler/testData/codegen/box/function/sum.kt"); + } + + @Test + @TestMetadata("sum_3const.kt") + public void testSum_3const() { + runTest("compiler/testData/codegen/box/function/sum_3const.kt"); + } + + @Test + @TestMetadata("sum_foo_bar.kt") + public void testSum_foo_bar() { + runTest("compiler/testData/codegen/box/function/sum_foo_bar.kt"); + } + + @Test + @TestMetadata("sum_func.kt") + public void testSum_func() { + runTest("compiler/testData/codegen/box/function/sum_func.kt"); + } + + @Test + @TestMetadata("sum_imm.kt") + public void testSum_imm() { + runTest("compiler/testData/codegen/box/function/sum_imm.kt"); + } + + @Test + @TestMetadata("sum_mixed.kt") + public void testSum_mixed() { + runTest("compiler/testData/codegen/box/function/sum_mixed.kt"); + } + + @Test + @TestMetadata("sum_silly.kt") + public void testSum_silly() { + runTest("compiler/testData/codegen/box/function/sum_silly.kt"); + } + + @Test + @TestMetadata("unreachableStatementAfterReturn.kt") + public void testUnreachableStatementAfterReturn() { + runTest("compiler/testData/codegen/box/function/unreachableStatementAfterReturn.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/functions") @TestDataPath("$PROJECT_ROOT") @@ -16570,6 +18356,474 @@ public class FirJsES6CodegenBoxTestGenerated extends AbstractFirJsES6CodegenBoxT } } + @Nested + @TestMetadata("compiler/testData/codegen/box/initializers") + @TestDataPath("$PROJECT_ROOT") + public class Initializers { + @Test + public void testAllFilesPresentInInitializers() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/initializers"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @Test + @TestMetadata("correctOrder1.kt") + public void testCorrectOrder1() { + runTest("compiler/testData/codegen/box/initializers/correctOrder1.kt"); + } + + @Test + @TestMetadata("correctOrder2.kt") + public void testCorrectOrder2() { + runTest("compiler/testData/codegen/box/initializers/correctOrder2.kt"); + } + + @Test + @TestMetadata("initializers0.kt") + public void testInitializers0() { + runTest("compiler/testData/codegen/box/initializers/initializers0.kt"); + } + + @Test + @TestMetadata("initializers1.kt") + public void testInitializers1() { + runTest("compiler/testData/codegen/box/initializers/initializers1.kt"); + } + + @Test + @TestMetadata("initializers2.kt") + public void testInitializers2() { + runTest("compiler/testData/codegen/box/initializers/initializers2.kt"); + } + + @Test + @TestMetadata("initializers3.kt") + public void testInitializers3() { + runTest("compiler/testData/codegen/box/initializers/initializers3.kt"); + } + + @Test + @TestMetadata("initializers4.kt") + public void testInitializers4() { + runTest("compiler/testData/codegen/box/initializers/initializers4.kt"); + } + + @Test + @TestMetadata("initializers5.kt") + public void testInitializers5() { + runTest("compiler/testData/codegen/box/initializers/initializers5.kt"); + } + + @Test + @TestMetadata("initializers7.kt") + public void testInitializers7() { + runTest("compiler/testData/codegen/box/initializers/initializers7.kt"); + } + + @Test + @TestMetadata("initializers8.kt") + public void testInitializers8() { + runTest("compiler/testData/codegen/box/initializers/initializers8.kt"); + } + + @Test + @TestMetadata("multipleModules1.kt") + public void testMultipleModules1() { + runTest("compiler/testData/codegen/box/initializers/multipleModules1.kt"); + } + + @Test + @TestMetadata("object.kt") + public void testObject() { + runTest("compiler/testData/codegen/box/initializers/object.kt"); + } + + @Test + @TestMetadata("sharedVarInInitBlock.kt") + public void testSharedVarInInitBlock() { + runTest("compiler/testData/codegen/box/initializers/sharedVarInInitBlock.kt"); + } + + @Test + @TestMetadata("static_arrays.kt") + public void testStatic_arrays() { + runTest("compiler/testData/codegen/box/initializers/static_arrays.kt"); + } + + @Test + @TestMetadata("static_list.kt") + public void testStatic_list() { + runTest("compiler/testData/codegen/box/initializers/static_list.kt"); + } + + @Test + @TestMetadata("static_smallIntIdentity.kt") + public void testStatic_smallIntIdentity() { + runTest("compiler/testData/codegen/box/initializers/static_smallIntIdentity.kt"); + } + + @Test + @TestMetadata("static_varargChange.kt") + public void testStatic_varargChange() { + runTest("compiler/testData/codegen/box/initializers/static_varargChange.kt"); + } + + @Test + @TestMetadata("throw1.kt") + public void testThrow1() { + runTest("compiler/testData/codegen/box/initializers/throw1.kt"); + } + + @Test + @TestMetadata("throw2.kt") + public void testThrow2() { + runTest("compiler/testData/codegen/box/initializers/throw2.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/initializers/files") + @TestDataPath("$PROJECT_ROOT") + public class Files { + @Test + public void testAllFilesPresentInFiles() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/initializers/files"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @Test + @TestMetadata("globalInitedAfterAccessingFile.kt") + public void testGlobalInitedAfterAccessingFile() { + runTest("compiler/testData/codegen/box/initializers/files/globalInitedAfterAccessingFile.kt"); + } + + @Test + @TestMetadata("globalNotInitedAfterAccessingClassInternals.kt") + public void testGlobalNotInitedAfterAccessingClassInternals() { + runTest("compiler/testData/codegen/box/initializers/files/globalNotInitedAfterAccessingClassInternals.kt"); + } + + @Test + @TestMetadata("simple.kt") + public void testSimple() { + runTest("compiler/testData/codegen/box/initializers/files/simple.kt"); + } + + @Test + @TestMetadata("simpleMultiModule.kt") + public void testSimpleMultiModule() { + runTest("compiler/testData/codegen/box/initializers/files/simpleMultiModule.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/inline") + @TestDataPath("$PROJECT_ROOT") + public class Inline { + @Test + public void testAllFilesPresentInInline() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inline"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @Test + @TestMetadata("changingCapturedLocal.kt") + public void testChangingCapturedLocal() { + runTest("compiler/testData/codegen/box/inline/changingCapturedLocal.kt"); + } + + @Test + @TestMetadata("classDeclarationInsideInline.kt") + public void testClassDeclarationInsideInline() { + runTest("compiler/testData/codegen/box/inline/classDeclarationInsideInline.kt"); + } + + @Test + @TestMetadata("coercionToUnit.kt") + public void testCoercionToUnit() { + runTest("compiler/testData/codegen/box/inline/coercionToUnit.kt"); + } + + @Test + @TestMetadata("correctOrderFunctionReference.kt") + public void testCorrectOrderFunctionReference() { + runTest("compiler/testData/codegen/box/inline/correctOrderFunctionReference.kt"); + } + + @Test + @TestMetadata("defaultArgs.kt") + public void testDefaultArgs() { + runTest("compiler/testData/codegen/box/inline/defaultArgs.kt"); + } + + @Test + @TestMetadata("defaultArgsMultipleModules.kt") + public void testDefaultArgsMultipleModules() { + runTest("compiler/testData/codegen/box/inline/defaultArgsMultipleModules.kt"); + } + + @Test + @TestMetadata("genericFunctionReference.kt") + public void testGenericFunctionReference() { + runTest("compiler/testData/codegen/box/inline/genericFunctionReference.kt"); + } + + @Test + @TestMetadata("getClass.kt") + public void testGetClass() { + runTest("compiler/testData/codegen/box/inline/getClass.kt"); + } + + @Test + @TestMetadata("inline0.kt") + public void testInline0() { + runTest("compiler/testData/codegen/box/inline/inline0.kt"); + } + + @Test + @TestMetadata("inline1.kt") + public void testInline1() { + runTest("compiler/testData/codegen/box/inline/inline1.kt"); + } + + @Test + @TestMetadata("inline10.kt") + public void testInline10() { + runTest("compiler/testData/codegen/box/inline/inline10.kt"); + } + + @Test + @TestMetadata("inline11.kt") + public void testInline11() { + runTest("compiler/testData/codegen/box/inline/inline11.kt"); + } + + @Test + @TestMetadata("inline12.kt") + public void testInline12() { + runTest("compiler/testData/codegen/box/inline/inline12.kt"); + } + + @Test + @TestMetadata("inline13.kt") + public void testInline13() { + runTest("compiler/testData/codegen/box/inline/inline13.kt"); + } + + @Test + @TestMetadata("inline14.kt") + public void testInline14() { + runTest("compiler/testData/codegen/box/inline/inline14.kt"); + } + + @Test + @TestMetadata("inline15.kt") + public void testInline15() { + runTest("compiler/testData/codegen/box/inline/inline15.kt"); + } + + @Test + @TestMetadata("inline16.kt") + public void testInline16() { + runTest("compiler/testData/codegen/box/inline/inline16.kt"); + } + + @Test + @TestMetadata("inline17.kt") + public void testInline17() { + runTest("compiler/testData/codegen/box/inline/inline17.kt"); + } + + @Test + @TestMetadata("inline19.kt") + public void testInline19() { + runTest("compiler/testData/codegen/box/inline/inline19.kt"); + } + + @Test + @TestMetadata("inline2.kt") + public void testInline2() { + runTest("compiler/testData/codegen/box/inline/inline2.kt"); + } + + @Test + @TestMetadata("inline20.kt") + public void testInline20() { + runTest("compiler/testData/codegen/box/inline/inline20.kt"); + } + + @Test + @TestMetadata("inline21.kt") + public void testInline21() { + runTest("compiler/testData/codegen/box/inline/inline21.kt"); + } + + @Test + @TestMetadata("inline22.kt") + public void testInline22() { + runTest("compiler/testData/codegen/box/inline/inline22.kt"); + } + + @Test + @TestMetadata("inline23.kt") + public void testInline23() { + runTest("compiler/testData/codegen/box/inline/inline23.kt"); + } + + @Test + @TestMetadata("inline24.kt") + public void testInline24() { + runTest("compiler/testData/codegen/box/inline/inline24.kt"); + } + + @Test + @TestMetadata("inline25.kt") + public void testInline25() { + runTest("compiler/testData/codegen/box/inline/inline25.kt"); + } + + @Test + @TestMetadata("inline26.kt") + public void testInline26() { + runTest("compiler/testData/codegen/box/inline/inline26.kt"); + } + + @Test + @TestMetadata("inline3.kt") + public void testInline3() { + runTest("compiler/testData/codegen/box/inline/inline3.kt"); + } + + @Test + @TestMetadata("inline4.kt") + public void testInline4() { + runTest("compiler/testData/codegen/box/inline/inline4.kt"); + } + + @Test + @TestMetadata("inline5.kt") + public void testInline5() { + runTest("compiler/testData/codegen/box/inline/inline5.kt"); + } + + @Test + @TestMetadata("inline6.kt") + public void testInline6() { + runTest("compiler/testData/codegen/box/inline/inline6.kt"); + } + + @Test + @TestMetadata("inline7.kt") + public void testInline7() { + runTest("compiler/testData/codegen/box/inline/inline7.kt"); + } + + @Test + @TestMetadata("inline8.kt") + public void testInline8() { + runTest("compiler/testData/codegen/box/inline/inline8.kt"); + } + + @Test + @TestMetadata("inline9.kt") + public void testInline9() { + runTest("compiler/testData/codegen/box/inline/inline9.kt"); + } + + @Test + @TestMetadata("inlineCtor.kt") + public void testInlineCtor() { + runTest("compiler/testData/codegen/box/inline/inlineCtor.kt"); + } + + @Test + @TestMetadata("innerInlineFunCapturesOuter.kt") + public void testInnerInlineFunCapturesOuter() { + runTest("compiler/testData/codegen/box/inline/innerInlineFunCapturesOuter.kt"); + } + + @Test + @TestMetadata("lambdaAsAny.kt") + public void testLambdaAsAny() { + runTest("compiler/testData/codegen/box/inline/lambdaAsAny.kt"); + } + + @Test + @TestMetadata("lambdaInDefaultValue.kt") + public void testLambdaInDefaultValue() { + runTest("compiler/testData/codegen/box/inline/lambdaInDefaultValue.kt"); + } + + @Test + @TestMetadata("lateinitProperty.kt") + public void testLateinitProperty() { + runTest("compiler/testData/codegen/box/inline/lateinitProperty.kt"); + } + + @Test + @TestMetadata("localFunctionInInitializerBlock.kt") + public void testLocalFunctionInInitializerBlock() { + runTest("compiler/testData/codegen/box/inline/localFunctionInInitializerBlock.kt"); + } + + @Test + @TestMetadata("localObjectReturnedFromWhen.kt") + public void testLocalObjectReturnedFromWhen() { + runTest("compiler/testData/codegen/box/inline/localObjectReturnedFromWhen.kt"); + } + + @Test + @TestMetadata("propertyAccessorInline.kt") + public void testPropertyAccessorInline() { + runTest("compiler/testData/codegen/box/inline/propertyAccessorInline.kt"); + } + + @Test + @TestMetadata("redundantCoercionsCleaner.kt") + public void testRedundantCoercionsCleaner() { + runTest("compiler/testData/codegen/box/inline/redundantCoercionsCleaner.kt"); + } + + @Test + @TestMetadata("redundantCoercionsCleanerKT48876.kt") + public void testRedundantCoercionsCleanerKT48876() { + runTest("compiler/testData/codegen/box/inline/redundantCoercionsCleanerKT48876.kt"); + } + + @Test + @TestMetadata("redundantCoercionsCleanerKT49356.kt") + public void testRedundantCoercionsCleanerKT49356() { + runTest("compiler/testData/codegen/box/inline/redundantCoercionsCleanerKT49356.kt"); + } + + @Test + @TestMetadata("returnLocalClassFromBlock.kt") + public void testReturnLocalClassFromBlock() { + runTest("compiler/testData/codegen/box/inline/returnLocalClassFromBlock.kt"); + } + + @Test + @TestMetadata("sharedVar.kt") + public void testSharedVar() { + runTest("compiler/testData/codegen/box/inline/sharedVar.kt"); + } + + @Test + @TestMetadata("statementAsLastExprInBlock.kt") + public void testStatementAsLastExprInBlock() { + runTest("compiler/testData/codegen/box/inline/statementAsLastExprInBlock.kt"); + } + + @Test + @TestMetadata("twiceInlinedObject.kt") + public void testTwiceInlinedObject() { + runTest("compiler/testData/codegen/box/inline/twiceInlinedObject.kt"); + } + + @Test + @TestMetadata("typeSubstitutionInFakeOverride.kt") + public void testTypeSubstitutionInFakeOverride() { + runTest("compiler/testData/codegen/box/inline/typeSubstitutionInFakeOverride.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/inlineArgsInPlace") @TestDataPath("$PROJECT_ROOT") @@ -16646,6 +18900,40 @@ public class FirJsES6CodegenBoxTestGenerated extends AbstractFirJsES6CodegenBoxT } } + @Nested + @TestMetadata("compiler/testData/codegen/box/inlineClass") + @TestDataPath("$PROJECT_ROOT") + public class InlineClass { + @Test + public void testAllFilesPresentInInlineClass() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineClass"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @Test + @TestMetadata("customEquals.kt") + public void testCustomEquals() { + runTest("compiler/testData/codegen/box/inlineClass/customEquals.kt"); + } + + @Test + @TestMetadata("defaultEquals.kt") + public void testDefaultEquals() { + runTest("compiler/testData/codegen/box/inlineClass/defaultEquals.kt"); + } + + @Test + @TestMetadata("nestedInlineClasses.kt") + public void testNestedInlineClasses() { + runTest("compiler/testData/codegen/box/inlineClass/nestedInlineClasses.kt"); + } + + @Test + @TestMetadata("secondaryConstructorWithGenerics.kt") + public void testSecondaryConstructorWithGenerics() { + runTest("compiler/testData/codegen/box/inlineClass/secondaryConstructorWithGenerics.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/inlineClasses") @TestDataPath("$PROJECT_ROOT") @@ -21568,6 +23856,88 @@ public class FirJsES6CodegenBoxTestGenerated extends AbstractFirJsES6CodegenBoxT } } + @Nested + @TestMetadata("compiler/testData/codegen/box/innerClass") + @TestDataPath("$PROJECT_ROOT") + public class InnerClass { + @Test + public void testAllFilesPresentInInnerClass() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/innerClass"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @Test + @TestMetadata("doubleInner.kt") + public void testDoubleInner() { + runTest("compiler/testData/codegen/box/innerClass/doubleInner.kt"); + } + + @Test + @TestMetadata("generic.kt") + public void testGeneric() { + runTest("compiler/testData/codegen/box/innerClass/generic.kt"); + } + + @Test + @TestMetadata("getOuterVal.kt") + public void testGetOuterVal() { + runTest("compiler/testData/codegen/box/innerClass/getOuterVal.kt"); + } + + @Test + @TestMetadata("inheritanceMultipleModules1.kt") + public void testInheritanceMultipleModules1() { + runTest("compiler/testData/codegen/box/innerClass/inheritanceMultipleModules1.kt"); + } + + @Test + @TestMetadata("inheritanceMultipleModules2.kt") + public void testInheritanceMultipleModules2() { + runTest("compiler/testData/codegen/box/innerClass/inheritanceMultipleModules2.kt"); + } + + @Test + @TestMetadata("inheritanceMultipleModules3.kt") + public void testInheritanceMultipleModules3() { + runTest("compiler/testData/codegen/box/innerClass/inheritanceMultipleModules3.kt"); + } + + @Test + @TestMetadata("multipleModules.kt") + public void testMultipleModules() { + runTest("compiler/testData/codegen/box/innerClass/multipleModules.kt"); + } + + @Test + @TestMetadata("noPrimaryConstructor.kt") + public void testNoPrimaryConstructor() { + runTest("compiler/testData/codegen/box/innerClass/noPrimaryConstructor.kt"); + } + + @Test + @TestMetadata("qualifiedThis.kt") + public void testQualifiedThis() { + runTest("compiler/testData/codegen/box/innerClass/qualifiedThis.kt"); + } + + @Test + @TestMetadata("secondaryConstructor.kt") + public void testSecondaryConstructor() { + runTest("compiler/testData/codegen/box/innerClass/secondaryConstructor.kt"); + } + + @Test + @TestMetadata("simple.kt") + public void testSimple() { + runTest("compiler/testData/codegen/box/innerClass/simple.kt"); + } + + @Test + @TestMetadata("superOuter.kt") + public void testSuperOuter() { + runTest("compiler/testData/codegen/box/innerClass/superOuter.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/innerNested") @TestDataPath("$PROJECT_ROOT") @@ -21920,6 +24290,40 @@ public class FirJsES6CodegenBoxTestGenerated extends AbstractFirJsES6CodegenBoxT } } + @Nested + @TestMetadata("compiler/testData/codegen/box/interfaceCallsNCasts") + @TestDataPath("$PROJECT_ROOT") + public class InterfaceCallsNCasts { + @Test + public void testAllFilesPresentInInterfaceCallsNCasts() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/interfaceCallsNCasts"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @Test + @TestMetadata("conservativeItable.kt") + public void testConservativeItable() { + runTest("compiler/testData/codegen/box/interfaceCallsNCasts/conservativeItable.kt"); + } + + @Test + @TestMetadata("diamond.kt") + public void testDiamond() { + runTest("compiler/testData/codegen/box/interfaceCallsNCasts/diamond.kt"); + } + + @Test + @TestMetadata("finalMethod.kt") + public void testFinalMethod() { + runTest("compiler/testData/codegen/box/interfaceCallsNCasts/finalMethod.kt"); + } + + @Test + @TestMetadata("interface0.kt") + public void testInterface0() { + runTest("compiler/testData/codegen/box/interfaceCallsNCasts/interface0.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/intrinsics") @TestDataPath("$PROJECT_ROOT") @@ -23242,6 +25646,80 @@ public class FirJsES6CodegenBoxTestGenerated extends AbstractFirJsES6CodegenBoxT } } + @Nested + @TestMetadata("compiler/testData/codegen/box/kclass") + @TestDataPath("$PROJECT_ROOT") + public class Kclass { + @Test + public void testAllFilesPresentInKclass() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/kclass"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @Test + @TestMetadata("kClassEnumArgument.kt") + public void testKClassEnumArgument() { + runTest("compiler/testData/codegen/box/kclass/kClassEnumArgument.kt"); + } + + @Test + @TestMetadata("kclass1.kt") + public void testKclass1() { + runTest("compiler/testData/codegen/box/kclass/kclass1.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/ktype") + @TestDataPath("$PROJECT_ROOT") + public class Ktype { + @Test + public void testAllFilesPresentInKtype() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ktype"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @Test + @TestMetadata("ktype1_basics1.kt") + public void testKtype1_basics1() { + runTest("compiler/testData/codegen/box/ktype/ktype1_basics1.kt"); + } + + @Test + @TestMetadata("ktype1_inner.kt") + public void testKtype1_inner() { + runTest("compiler/testData/codegen/box/ktype/ktype1_inner.kt"); + } + + @Test + @TestMetadata("nonReified_class.kt") + public void testNonReified_class() { + runTest("compiler/testData/codegen/box/ktype/nonReified_class.kt"); + } + + @Test + @TestMetadata("nonReified_equality.kt") + public void testNonReified_equality() { + runTest("compiler/testData/codegen/box/ktype/nonReified_equality.kt"); + } + + @Test + @TestMetadata("nonReified_fun.kt") + public void testNonReified_fun() { + runTest("compiler/testData/codegen/box/ktype/nonReified_fun.kt"); + } + + @Test + @TestMetadata("nonReified_recursionInReified.kt") + public void testNonReified_recursionInReified() { + runTest("compiler/testData/codegen/box/ktype/nonReified_recursionInReified.kt"); + } + + @Test + @TestMetadata("nonReified_reifiedUpperBound.kt") + public void testNonReified_reifiedUpperBound() { + runTest("compiler/testData/codegen/box/ktype/nonReified_reifiedUpperBound.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/labels") @TestDataPath("$PROJECT_ROOT") @@ -23300,6 +25778,188 @@ public class FirJsES6CodegenBoxTestGenerated extends AbstractFirJsES6CodegenBoxT } } + @Nested + @TestMetadata("compiler/testData/codegen/box/lambda") + @TestDataPath("$PROJECT_ROOT") + public class Lambda { + @Test + public void testAllFilesPresentInLambda() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/lambda"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @Test + @TestMetadata("lambda1.kt") + public void testLambda1() { + runTest("compiler/testData/codegen/box/lambda/lambda1.kt"); + } + + @Test + @TestMetadata("lambda10.kt") + public void testLambda10() { + runTest("compiler/testData/codegen/box/lambda/lambda10.kt"); + } + + @Test + @TestMetadata("lambda11.kt") + public void testLambda11() { + runTest("compiler/testData/codegen/box/lambda/lambda11.kt"); + } + + @Test + @TestMetadata("lambda12.kt") + public void testLambda12() { + runTest("compiler/testData/codegen/box/lambda/lambda12.kt"); + } + + @Test + @TestMetadata("lambda13.kt") + public void testLambda13() { + runTest("compiler/testData/codegen/box/lambda/lambda13.kt"); + } + + @Test + @TestMetadata("lambda14.kt") + public void testLambda14() { + runTest("compiler/testData/codegen/box/lambda/lambda14.kt"); + } + + @Test + @TestMetadata("lambda2.kt") + public void testLambda2() { + runTest("compiler/testData/codegen/box/lambda/lambda2.kt"); + } + + @Test + @TestMetadata("lambda3.kt") + public void testLambda3() { + runTest("compiler/testData/codegen/box/lambda/lambda3.kt"); + } + + @Test + @TestMetadata("lambda4.kt") + public void testLambda4() { + runTest("compiler/testData/codegen/box/lambda/lambda4.kt"); + } + + @Test + @TestMetadata("lambda5.kt") + public void testLambda5() { + runTest("compiler/testData/codegen/box/lambda/lambda5.kt"); + } + + @Test + @TestMetadata("lambda6.kt") + public void testLambda6() { + runTest("compiler/testData/codegen/box/lambda/lambda6.kt"); + } + + @Test + @TestMetadata("lambda7.kt") + public void testLambda7() { + runTest("compiler/testData/codegen/box/lambda/lambda7.kt"); + } + + @Test + @TestMetadata("lambda8.kt") + public void testLambda8() { + runTest("compiler/testData/codegen/box/lambda/lambda8.kt"); + } + + @Test + @TestMetadata("lambda9.kt") + public void testLambda9() { + runTest("compiler/testData/codegen/box/lambda/lambda9.kt"); + } + + @Test + @TestMetadata("lambda_kt49360_trivial.kt") + public void testLambda_kt49360_trivial() { + runTest("compiler/testData/codegen/box/lambda/lambda_kt49360_trivial.kt"); + } + + @Test + @TestMetadata("lambda_kt49360_withFlow.kt") + public void testLambda_kt49360_withFlow() { + runTest("compiler/testData/codegen/box/lambda/lambda_kt49360_withFlow.kt"); + } + + @Test + @TestMetadata("lambda_kt49360_wrapBlock.kt") + public void testLambda_kt49360_wrapBlock() { + runTest("compiler/testData/codegen/box/lambda/lambda_kt49360_wrapBlock.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/lateinit") + @TestDataPath("$PROJECT_ROOT") + public class Lateinit { + @Test + public void testAllFilesPresentInLateinit() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/lateinit"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @Test + @TestMetadata("globalIsInitialized.kt") + public void testGlobalIsInitialized() { + runTest("compiler/testData/codegen/box/lateinit/globalIsInitialized.kt"); + } + + @Test + @TestMetadata("inBaseClass.kt") + public void testInBaseClass() { + runTest("compiler/testData/codegen/box/lateinit/inBaseClass.kt"); + } + + @Test + @TestMetadata("initialized.kt") + public void testInitialized() { + runTest("compiler/testData/codegen/box/lateinit/initialized.kt"); + } + + @Test + @TestMetadata("innerIsInitialized.kt") + public void testInnerIsInitialized() { + runTest("compiler/testData/codegen/box/lateinit/innerIsInitialized.kt"); + } + + @Test + @TestMetadata("isInitialized.kt") + public void testIsInitialized() { + runTest("compiler/testData/codegen/box/lateinit/isInitialized.kt"); + } + + @Test + @TestMetadata("localCapturedInitialized.kt") + public void testLocalCapturedInitialized() { + runTest("compiler/testData/codegen/box/lateinit/localCapturedInitialized.kt"); + } + + @Test + @TestMetadata("localCapturedNotInitialized.kt") + public void testLocalCapturedNotInitialized() { + runTest("compiler/testData/codegen/box/lateinit/localCapturedNotInitialized.kt"); + } + + @Test + @TestMetadata("localInitialized.kt") + public void testLocalInitialized() { + runTest("compiler/testData/codegen/box/lateinit/localInitialized.kt"); + } + + @Test + @TestMetadata("localNotInitialized.kt") + public void testLocalNotInitialized() { + runTest("compiler/testData/codegen/box/lateinit/localNotInitialized.kt"); + } + + @Test + @TestMetadata("notInitialized.kt") + public void testNotInitialized() { + runTest("compiler/testData/codegen/box/lateinit/notInitialized.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/lazyCodegen") @TestDataPath("$PROJECT_ROOT") @@ -23428,6 +26088,98 @@ public class FirJsES6CodegenBoxTestGenerated extends AbstractFirJsES6CodegenBoxT } } + @Nested + @TestMetadata("compiler/testData/codegen/box/literals") + @TestDataPath("$PROJECT_ROOT") + public class Literals { + @Test + public void testAllFilesPresentInLiterals() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/literals"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @Test + @TestMetadata("listof1.kt") + public void testListof1() { + runTest("compiler/testData/codegen/box/literals/listof1.kt"); + } + + @Test + @TestMetadata("strdedup1.kt") + public void testStrdedup1() { + runTest("compiler/testData/codegen/box/literals/strdedup1.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/localClass") + @TestDataPath("$PROJECT_ROOT") + public class LocalClass { + @Test + public void testAllFilesPresentInLocalClass() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/localClass"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @Test + @TestMetadata("innerTakesCapturedFromOuter.kt") + public void testInnerTakesCapturedFromOuter() { + runTest("compiler/testData/codegen/box/localClass/innerTakesCapturedFromOuter.kt"); + } + + @Test + @TestMetadata("innerWithCapture.kt") + public void testInnerWithCapture() { + runTest("compiler/testData/codegen/box/localClass/innerWithCapture.kt"); + } + + @Test + @TestMetadata("localFunctionCallFromLocalClass.kt") + public void testLocalFunctionCallFromLocalClass() { + runTest("compiler/testData/codegen/box/localClass/localFunctionCallFromLocalClass.kt"); + } + + @Test + @TestMetadata("localFunctionInLocalClass.kt") + public void testLocalFunctionInLocalClass() { + runTest("compiler/testData/codegen/box/localClass/localFunctionInLocalClass.kt"); + } + + @Test + @TestMetadata("localHierarchy.kt") + public void testLocalHierarchy() { + runTest("compiler/testData/codegen/box/localClass/localHierarchy.kt"); + } + + @Test + @TestMetadata("noPrimaryConstructor.kt") + public void testNoPrimaryConstructor() { + runTest("compiler/testData/codegen/box/localClass/noPrimaryConstructor.kt"); + } + + @Test + @TestMetadata("objectExpressionInInitializer.kt") + public void testObjectExpressionInInitializer() { + runTest("compiler/testData/codegen/box/localClass/objectExpressionInInitializer.kt"); + } + + @Test + @TestMetadata("objectExpressionInProperty.kt") + public void testObjectExpressionInProperty() { + runTest("compiler/testData/codegen/box/localClass/objectExpressionInProperty.kt"); + } + + @Test + @TestMetadata("tryCatch.kt") + public void testTryCatch() { + runTest("compiler/testData/codegen/box/localClass/tryCatch.kt"); + } + + @Test + @TestMetadata("virtualCallFromConstructor.kt") + public void testVirtualCallFromConstructor() { + runTest("compiler/testData/codegen/box/localClass/virtualCallFromConstructor.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/localClasses") @TestDataPath("$PROJECT_ROOT") @@ -23678,6 +26430,38 @@ public class FirJsES6CodegenBoxTestGenerated extends AbstractFirJsES6CodegenBoxT } } + @Nested + @TestMetadata("compiler/testData/codegen/box/localEscapeAnalysis") + @TestDataPath("$PROJECT_ROOT") + public class LocalEscapeAnalysis { + @Test + public void testAllFilesPresentInLocalEscapeAnalysis() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/localEscapeAnalysis"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @Test + @TestMetadata("arraysFieldWrite.kt") + public void testArraysFieldWrite() { + runTest("compiler/testData/codegen/box/localEscapeAnalysis/arraysFieldWrite.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/lower") + @TestDataPath("$PROJECT_ROOT") + public class Lower { + @Test + public void testAllFilesPresentInLower() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/lower"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @Test + @TestMetadata("localDelegatedProperty.kt") + public void testLocalDelegatedProperty() { + runTest("compiler/testData/codegen/box/lower/localDelegatedProperty.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/mangling") @TestDataPath("$PROJECT_ROOT") @@ -23705,6 +26489,12 @@ public class FirJsES6CodegenBoxTestGenerated extends AbstractFirJsES6CodegenBoxT runTest("compiler/testData/codegen/box/mangling/internalOverrideSuperCall.kt"); } + @Test + @TestMetadata("multipleConstructors.kt") + public void testMultipleConstructors() { + runTest("compiler/testData/codegen/box/mangling/multipleConstructors.kt"); + } + @Test @TestMetadata("parentheses.kt") public void testParentheses() { @@ -25226,6 +28016,98 @@ public class FirJsES6CodegenBoxTestGenerated extends AbstractFirJsES6CodegenBoxT } } + @Nested + @TestMetadata("compiler/testData/codegen/box/object") + @TestDataPath("$PROJECT_ROOT") + public class Object { + @Test + public void testAllFilesPresentInObject() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/object"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @Test + @TestMetadata("constructor0.kt") + public void testConstructor0() { + runTest("compiler/testData/codegen/box/object/constructor0.kt"); + } + + @Test + @TestMetadata("fields.kt") + public void testFields() { + runTest("compiler/testData/codegen/box/object/fields.kt"); + } + + @Test + @TestMetadata("fields1.kt") + public void testFields1() { + runTest("compiler/testData/codegen/box/object/fields1.kt"); + } + + @Test + @TestMetadata("fields2.kt") + public void testFields2() { + runTest("compiler/testData/codegen/box/object/fields2.kt"); + } + + @Test + @TestMetadata("globalInitializer.kt") + public void testGlobalInitializer() { + runTest("compiler/testData/codegen/box/object/globalInitializer.kt"); + } + + @Test + @TestMetadata("init0.kt") + public void testInit0() { + runTest("compiler/testData/codegen/box/object/init0.kt"); + } + + @Test + @TestMetadata("initialization.kt") + public void testInitialization() { + runTest("compiler/testData/codegen/box/object/initialization.kt"); + } + + @Test + @TestMetadata("initialization1.kt") + public void testInitialization1() { + runTest("compiler/testData/codegen/box/object/initialization1.kt"); + } + + @Test + @TestMetadata("method_call.kt") + public void testMethod_call() { + runTest("compiler/testData/codegen/box/object/method_call.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/objectExpression") + @TestDataPath("$PROJECT_ROOT") + public class ObjectExpression { + @Test + public void testAllFilesPresentInObjectExpression() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/objectExpression"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @Test + @TestMetadata("expr1.kt") + public void testExpr1() { + runTest("compiler/testData/codegen/box/objectExpression/expr1.kt"); + } + + @Test + @TestMetadata("expr2.kt") + public void testExpr2() { + runTest("compiler/testData/codegen/box/objectExpression/expr2.kt"); + } + + @Test + @TestMetadata("expr3.kt") + public void testExpr3() { + runTest("compiler/testData/codegen/box/objectExpression/expr3.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/objectIntrinsics") @TestDataPath("$PROJECT_ROOT") @@ -28030,6 +30912,64 @@ public class FirJsES6CodegenBoxTestGenerated extends AbstractFirJsES6CodegenBoxT } } + @Nested + @TestMetadata("compiler/testData/codegen/box/propertyCallableReference") + @TestDataPath("$PROJECT_ROOT") + public class PropertyCallableReference { + @Test + public void testAllFilesPresentInPropertyCallableReference() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/propertyCallableReference"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @Test + @TestMetadata("dynamicReceiver.kt") + public void testDynamicReceiver() { + runTest("compiler/testData/codegen/box/propertyCallableReference/dynamicReceiver.kt"); + } + + @Test + @TestMetadata("multipleModules.kt") + public void testMultipleModules() { + runTest("compiler/testData/codegen/box/propertyCallableReference/multipleModules.kt"); + } + + @Test + @TestMetadata("valClass.kt") + public void testValClass() { + runTest("compiler/testData/codegen/box/propertyCallableReference/valClass.kt"); + } + + @Test + @TestMetadata("valExtension.kt") + public void testValExtension() { + runTest("compiler/testData/codegen/box/propertyCallableReference/valExtension.kt"); + } + + @Test + @TestMetadata("valModule.kt") + public void testValModule() { + runTest("compiler/testData/codegen/box/propertyCallableReference/valModule.kt"); + } + + @Test + @TestMetadata("varClass.kt") + public void testVarClass() { + runTest("compiler/testData/codegen/box/propertyCallableReference/varClass.kt"); + } + + @Test + @TestMetadata("varExtension.kt") + public void testVarExtension() { + runTest("compiler/testData/codegen/box/propertyCallableReference/varExtension.kt"); + } + + @Test + @TestMetadata("varModule.kt") + public void testVarModule() { + runTest("compiler/testData/codegen/box/propertyCallableReference/varModule.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/publishedApi") @TestDataPath("$PROJECT_ROOT") @@ -35746,6 +38686,58 @@ public class FirJsES6CodegenBoxTestGenerated extends AbstractFirJsES6CodegenBoxT } } + @Nested + @TestMetadata("compiler/testData/codegen/box/serialization") + @TestDataPath("$PROJECT_ROOT") + public class Serialization { + @Test + public void testAllFilesPresentInSerialization() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/serialization"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @Test + @TestMetadata("deserializedMembers.kt") + public void testDeserializedMembers() { + runTest("compiler/testData/codegen/box/serialization/deserializedMembers.kt"); + } + + @Test + @TestMetadata("serializedCatch.kt") + public void testSerializedCatch() { + runTest("compiler/testData/codegen/box/serialization/serializedCatch.kt"); + } + + @Test + @TestMetadata("serializedCharConstant.kt") + public void testSerializedCharConstant() { + runTest("compiler/testData/codegen/box/serialization/serializedCharConstant.kt"); + } + + @Test + @TestMetadata("serializedDefaultArgs.kt") + public void testSerializedDefaultArgs() { + runTest("compiler/testData/codegen/box/serialization/serializedDefaultArgs.kt"); + } + + @Test + @TestMetadata("serializedDoWhile.kt") + public void testSerializedDoWhile() { + runTest("compiler/testData/codegen/box/serialization/serializedDoWhile.kt"); + } + + @Test + @TestMetadata("serializedEnumOrdinal.kt") + public void testSerializedEnumOrdinal() { + runTest("compiler/testData/codegen/box/serialization/serializedEnumOrdinal.kt"); + } + + @Test + @TestMetadata("serializedVararg.kt") + public void testSerializedVararg() { + runTest("compiler/testData/codegen/box/serialization/serializedVararg.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/size") @TestDataPath("$PROJECT_ROOT") @@ -36244,6 +39236,22 @@ public class FirJsES6CodegenBoxTestGenerated extends AbstractFirJsES6CodegenBoxT } } + @Nested + @TestMetadata("compiler/testData/codegen/box/stringTrim") + @TestDataPath("$PROJECT_ROOT") + public class StringTrim { + @Test + public void testAllFilesPresentInStringTrim() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/stringTrim"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @Test + @TestMetadata("stringTrim.kt") + public void testStringTrim() { + runTest("compiler/testData/codegen/box/stringTrim/stringTrim.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/strings") @TestDataPath("$PROJECT_ROOT") @@ -37304,6 +40312,142 @@ public class FirJsES6CodegenBoxTestGenerated extends AbstractFirJsES6CodegenBoxT } } + @Nested + @TestMetadata("compiler/testData/codegen/box/try") + @TestDataPath("$PROJECT_ROOT") + public class Try { + @Test + public void testAllFilesPresentInTry() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/try"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @Test + @TestMetadata("catch3.kt") + public void testCatch3() { + runTest("compiler/testData/codegen/box/try/catch3.kt"); + } + + @Test + @TestMetadata("catch4.kt") + public void testCatch4() { + runTest("compiler/testData/codegen/box/try/catch4.kt"); + } + + @Test + @TestMetadata("catch5.kt") + public void testCatch5() { + runTest("compiler/testData/codegen/box/try/catch5.kt"); + } + + @Test + @TestMetadata("catch6.kt") + public void testCatch6() { + runTest("compiler/testData/codegen/box/try/catch6.kt"); + } + + @Test + @TestMetadata("catch8.kt") + public void testCatch8() { + runTest("compiler/testData/codegen/box/try/catch8.kt"); + } + + @Test + @TestMetadata("finally1.kt") + public void testFinally1() { + runTest("compiler/testData/codegen/box/try/finally1.kt"); + } + + @Test + @TestMetadata("finally10.kt") + public void testFinally10() { + runTest("compiler/testData/codegen/box/try/finally10.kt"); + } + + @Test + @TestMetadata("finally11.kt") + public void testFinally11() { + runTest("compiler/testData/codegen/box/try/finally11.kt"); + } + + @Test + @TestMetadata("finally2.kt") + public void testFinally2() { + runTest("compiler/testData/codegen/box/try/finally2.kt"); + } + + @Test + @TestMetadata("finally3.kt") + public void testFinally3() { + runTest("compiler/testData/codegen/box/try/finally3.kt"); + } + + @Test + @TestMetadata("finally4.kt") + public void testFinally4() { + runTest("compiler/testData/codegen/box/try/finally4.kt"); + } + + @Test + @TestMetadata("finally5.kt") + public void testFinally5() { + runTest("compiler/testData/codegen/box/try/finally5.kt"); + } + + @Test + @TestMetadata("finally6.kt") + public void testFinally6() { + runTest("compiler/testData/codegen/box/try/finally6.kt"); + } + + @Test + @TestMetadata("finally7.kt") + public void testFinally7() { + runTest("compiler/testData/codegen/box/try/finally7.kt"); + } + + @Test + @TestMetadata("finally8.kt") + public void testFinally8() { + runTest("compiler/testData/codegen/box/try/finally8.kt"); + } + + @Test + @TestMetadata("finally9.kt") + public void testFinally9() { + runTest("compiler/testData/codegen/box/try/finally9.kt"); + } + + @Test + @TestMetadata("returnsDifferentTypes.kt") + public void testReturnsDifferentTypes() { + runTest("compiler/testData/codegen/box/try/returnsDifferentTypes.kt"); + } + + @Test + @TestMetadata("try1.kt") + public void testTry1() { + runTest("compiler/testData/codegen/box/try/try1.kt"); + } + + @Test + @TestMetadata("try2.kt") + public void testTry2() { + runTest("compiler/testData/codegen/box/try/try2.kt"); + } + + @Test + @TestMetadata("try3.kt") + public void testTry3() { + runTest("compiler/testData/codegen/box/try/try3.kt"); + } + + @Test + @TestMetadata("try4.kt") + public void testTry4() { + runTest("compiler/testData/codegen/box/try/try4.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/typeInfo") @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 f6c5ffe1c36..af4ec7ca62c 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 @@ -41,6 +41,12 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/annotations/annotationWithDefaultArgInDifferentModule.kt"); } + @Test + @TestMetadata("annotations0.kt") + public void testAnnotations0() { + runTest("compiler/testData/codegen/box/annotations/annotations0.kt"); + } + @Test @TestMetadata("genericAnnotations.kt") public void testGenericAnnotations() { @@ -318,6 +324,82 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { } } + @Nested + @TestMetadata("compiler/testData/codegen/box/arithmetic") + @TestDataPath("$PROJECT_ROOT") + public class Arithmetic { + @Test + public void testAllFilesPresentInArithmetic() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/arithmetic"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("basic_charConversions.kt") + public void testBasic_charConversions() { + runTest("compiler/testData/codegen/box/arithmetic/basic_charConversions.kt"); + } + + @Test + @TestMetadata("basic_charCornerCases.kt") + public void testBasic_charCornerCases() { + runTest("compiler/testData/codegen/box/arithmetic/basic_charCornerCases.kt"); + } + + @Test + @TestMetadata("basic_compareIntToFloat.kt") + public void testBasic_compareIntToFloat() { + runTest("compiler/testData/codegen/box/arithmetic/basic_compareIntToFloat.kt"); + } + + @Test + @TestMetadata("basic_doubleBasic.kt") + public void testBasic_doubleBasic() { + runTest("compiler/testData/codegen/box/arithmetic/basic_doubleBasic.kt"); + } + + @Test + @TestMetadata("basic_integralToFloat.kt") + public void testBasic_integralToFloat() { + runTest("compiler/testData/codegen/box/arithmetic/basic_integralToFloat.kt"); + } + + @Test + @TestMetadata("basic_kt37412.kt") + public void testBasic_kt37412() { + runTest("compiler/testData/codegen/box/arithmetic/basic_kt37412.kt"); + } + + @Test + @TestMetadata("basic_selfComparison.kt") + public void testBasic_selfComparison() { + runTest("compiler/testData/codegen/box/arithmetic/basic_selfComparison.kt"); + } + + @Test + @TestMetadata("basic_shifts.kt") + public void testBasic_shifts() { + runTest("compiler/testData/codegen/box/arithmetic/basic_shifts.kt"); + } + + @Test + @TestMetadata("basic_uintTests.kt") + public void testBasic_uintTests() { + runTest("compiler/testData/codegen/box/arithmetic/basic_uintTests.kt"); + } + + @Test + @TestMetadata("division.kt") + public void testDivision() { + runTest("compiler/testData/codegen/box/arithmetic/division.kt"); + } + + @Test + @TestMetadata("github1856.kt") + public void testGithub1856() { + runTest("compiler/testData/codegen/box/arithmetic/github1856.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/arrays") @TestDataPath("$PROJECT_ROOT") @@ -972,6 +1054,302 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { } } + @Nested + @TestMetadata("compiler/testData/codegen/box/basics") + @TestDataPath("$PROJECT_ROOT") + public class Basics { + @Test + public void testAllFilesPresentInBasics() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/basics"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("array_to_any.kt") + public void testArray_to_any() { + runTest("compiler/testData/codegen/box/basics/array_to_any.kt"); + } + + @Test + @TestMetadata("canonical_name.kt") + public void testCanonical_name() { + runTest("compiler/testData/codegen/box/basics/canonical_name.kt"); + } + + @Test + @TestMetadata("cast_null.kt") + public void testCast_null() { + runTest("compiler/testData/codegen/box/basics/cast_null.kt"); + } + + @Test + @TestMetadata("cast_simple.kt") + public void testCast_simple() { + runTest("compiler/testData/codegen/box/basics/cast_simple.kt"); + } + + @Test + @TestMetadata("check_type.kt") + public void testCheck_type() { + runTest("compiler/testData/codegen/box/basics/check_type.kt"); + } + + @Test + @TestMetadata("companion.kt") + public void testCompanion() { + runTest("compiler/testData/codegen/box/basics/companion.kt"); + } + + @Test + @TestMetadata("concatenation.kt") + public void testConcatenation() { + runTest("compiler/testData/codegen/box/basics/concatenation.kt"); + } + + @Test + @TestMetadata("const_infinity.kt") + public void testConst_infinity() { + runTest("compiler/testData/codegen/box/basics/const_infinity.kt"); + } + + @Test + @TestMetadata("expression_as_statement.kt") + public void testExpression_as_statement() { + runTest("compiler/testData/codegen/box/basics/expression_as_statement.kt"); + } + + @Test + @TestMetadata("k42000_1.kt") + public void testK42000_1() { + runTest("compiler/testData/codegen/box/basics/k42000_1.kt"); + } + + @Test + @TestMetadata("k42000_2.kt") + public void testK42000_2() { + runTest("compiler/testData/codegen/box/basics/k42000_2.kt"); + } + + @Test + @TestMetadata("local_variable.kt") + public void testLocal_variable() { + runTest("compiler/testData/codegen/box/basics/local_variable.kt"); + } + + @Test + @TestMetadata("null_check.kt") + public void testNull_check() { + runTest("compiler/testData/codegen/box/basics/null_check.kt"); + } + + @Test + @TestMetadata("safe_cast.kt") + public void testSafe_cast() { + runTest("compiler/testData/codegen/box/basics/safe_cast.kt"); + } + + @Test + @TestMetadata("spread_operator_0.kt") + public void testSpread_operator_0() { + runTest("compiler/testData/codegen/box/basics/spread_operator_0.kt"); + } + + @Test + @TestMetadata("statements0.kt") + public void testStatements0() { + runTest("compiler/testData/codegen/box/basics/statements0.kt"); + } + + @Test + @TestMetadata("superFunCall.kt") + public void testSuperFunCall() { + runTest("compiler/testData/codegen/box/basics/superFunCall.kt"); + } + + @Test + @TestMetadata("superGetterCall.kt") + public void testSuperGetterCall() { + runTest("compiler/testData/codegen/box/basics/superGetterCall.kt"); + } + + @Test + @TestMetadata("superSetterCall.kt") + public void testSuperSetterCall() { + runTest("compiler/testData/codegen/box/basics/superSetterCall.kt"); + } + + @Test + @TestMetadata("typealias1.kt") + public void testTypealias1() { + runTest("compiler/testData/codegen/box/basics/typealias1.kt"); + } + + @Test + @TestMetadata("unchecked_cast1.kt") + public void testUnchecked_cast1() { + runTest("compiler/testData/codegen/box/basics/unchecked_cast1.kt"); + } + + @Test + @TestMetadata("unchecked_cast2.kt") + public void testUnchecked_cast2() { + runTest("compiler/testData/codegen/box/basics/unchecked_cast2.kt"); + } + + @Test + @TestMetadata("unchecked_cast3.kt") + public void testUnchecked_cast3() { + runTest("compiler/testData/codegen/box/basics/unchecked_cast3.kt"); + } + + @Test + @TestMetadata("unchecked_cast4.kt") + public void testUnchecked_cast4() { + runTest("compiler/testData/codegen/box/basics/unchecked_cast4.kt"); + } + + @Test + @TestMetadata("unit1.kt") + public void testUnit1() { + runTest("compiler/testData/codegen/box/basics/unit1.kt"); + } + + @Test + @TestMetadata("unit2.kt") + public void testUnit2() { + runTest("compiler/testData/codegen/box/basics/unit2.kt"); + } + + @Test + @TestMetadata("unit3.kt") + public void testUnit3() { + runTest("compiler/testData/codegen/box/basics/unit3.kt"); + } + + @Test + @TestMetadata("unit4.kt") + public void testUnit4() { + runTest("compiler/testData/codegen/box/basics/unit4.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/bce") + @TestDataPath("$PROJECT_ROOT") + public class Bce { + @Test + public void testAllFilesPresentInBce() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/bce"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("bceCases.kt") + public void testBceCases() { + runTest("compiler/testData/codegen/box/bce/bceCases.kt"); + } + + @Test + @TestMetadata("customGetter.kt") + public void testCustomGetter() { + runTest("compiler/testData/codegen/box/bce/customGetter.kt"); + } + + @Test + @TestMetadata("delegatedProperty.kt") + public void testDelegatedProperty() { + runTest("compiler/testData/codegen/box/bce/delegatedProperty.kt"); + } + + @Test + @TestMetadata("differentArrays.kt") + public void testDifferentArrays() { + runTest("compiler/testData/codegen/box/bce/differentArrays.kt"); + } + + @Test + @TestMetadata("differentObjects.kt") + public void testDifferentObjects() { + runTest("compiler/testData/codegen/box/bce/differentObjects.kt"); + } + + @Test + @TestMetadata("forDownToSize.kt") + public void testForDownToSize() { + runTest("compiler/testData/codegen/box/bce/forDownToSize.kt"); + } + + @Test + @TestMetadata("forDownToWithStep.kt") + public void testForDownToWithStep() { + runTest("compiler/testData/codegen/box/bce/forDownToWithStep.kt"); + } + + @Test + @TestMetadata("forEachIndexedTest.kt") + public void testForEachIndexedTest() { + runTest("compiler/testData/codegen/box/bce/forEachIndexedTest.kt"); + } + + @Test + @TestMetadata("forEachIndicies.kt") + public void testForEachIndicies() { + runTest("compiler/testData/codegen/box/bce/forEachIndicies.kt"); + } + + @Test + @TestMetadata("forIndiciesWithStep.kt") + public void testForIndiciesWithStep() { + runTest("compiler/testData/codegen/box/bce/forIndiciesWithStep.kt"); + } + + @Test + @TestMetadata("forRangeToSize.kt") + public void testForRangeToSize() { + runTest("compiler/testData/codegen/box/bce/forRangeToSize.kt"); + } + + @Test + @TestMetadata("forRangeToWithStep.kt") + public void testForRangeToWithStep() { + runTest("compiler/testData/codegen/box/bce/forRangeToWithStep.kt"); + } + + @Test + @TestMetadata("forReversed.kt") + public void testForReversed() { + runTest("compiler/testData/codegen/box/bce/forReversed.kt"); + } + + @Test + @TestMetadata("forUntilSize.kt") + public void testForUntilSize() { + runTest("compiler/testData/codegen/box/bce/forUntilSize.kt"); + } + + @Test + @TestMetadata("forUntilWithStep.kt") + public void testForUntilWithStep() { + runTest("compiler/testData/codegen/box/bce/forUntilWithStep.kt"); + } + + @Test + @TestMetadata("forWithIndex.kt") + public void testForWithIndex() { + runTest("compiler/testData/codegen/box/bce/forWithIndex.kt"); + } + + @Test + @TestMetadata("inheritance.kt") + public void testInheritance() { + runTest("compiler/testData/codegen/box/bce/inheritance.kt"); + } + + @Test + @TestMetadata("withGetter.kt") + public void testWithGetter() { + runTest("compiler/testData/codegen/box/bce/withGetter.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/binaryOp") @TestDataPath("$PROJECT_ROOT") @@ -1138,6 +1516,124 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { } } + @Nested + @TestMetadata("compiler/testData/codegen/box/boxing") + @TestDataPath("$PROJECT_ROOT") + public class Boxing { + @Test + public void testAllFilesPresentInBoxing() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/boxing"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("box_cache0.kt") + public void testBox_cache0() { + runTest("compiler/testData/codegen/box/boxing/box_cache0.kt"); + } + + @Test + @TestMetadata("boxing0.kt") + public void testBoxing0() { + runTest("compiler/testData/codegen/box/boxing/boxing0.kt"); + } + + @Test + @TestMetadata("boxing1.kt") + public void testBoxing1() { + runTest("compiler/testData/codegen/box/boxing/boxing1.kt"); + } + + @Test + @TestMetadata("boxing10.kt") + public void testBoxing10() { + runTest("compiler/testData/codegen/box/boxing/boxing10.kt"); + } + + @Test + @TestMetadata("boxing11.kt") + public void testBoxing11() { + runTest("compiler/testData/codegen/box/boxing/boxing11.kt"); + } + + @Test + @TestMetadata("boxing12.kt") + public void testBoxing12() { + runTest("compiler/testData/codegen/box/boxing/boxing12.kt"); + } + + @Test + @TestMetadata("boxing13.kt") + public void testBoxing13() { + runTest("compiler/testData/codegen/box/boxing/boxing13.kt"); + } + + @Test + @TestMetadata("boxing14.kt") + public void testBoxing14() { + runTest("compiler/testData/codegen/box/boxing/boxing14.kt"); + } + + @Test + @TestMetadata("boxing15.kt") + public void testBoxing15() { + runTest("compiler/testData/codegen/box/boxing/boxing15.kt"); + } + + @Test + @TestMetadata("boxing2.kt") + public void testBoxing2() { + runTest("compiler/testData/codegen/box/boxing/boxing2.kt"); + } + + @Test + @TestMetadata("boxing3.kt") + public void testBoxing3() { + runTest("compiler/testData/codegen/box/boxing/boxing3.kt"); + } + + @Test + @TestMetadata("boxing4.kt") + public void testBoxing4() { + runTest("compiler/testData/codegen/box/boxing/boxing4.kt"); + } + + @Test + @TestMetadata("boxing5.kt") + public void testBoxing5() { + runTest("compiler/testData/codegen/box/boxing/boxing5.kt"); + } + + @Test + @TestMetadata("boxing6.kt") + public void testBoxing6() { + runTest("compiler/testData/codegen/box/boxing/boxing6.kt"); + } + + @Test + @TestMetadata("boxing7.kt") + public void testBoxing7() { + runTest("compiler/testData/codegen/box/boxing/boxing7.kt"); + } + + @Test + @TestMetadata("boxing8.kt") + public void testBoxing8() { + runTest("compiler/testData/codegen/box/boxing/boxing8.kt"); + } + + @Test + @TestMetadata("boxing9.kt") + public void testBoxing9() { + runTest("compiler/testData/codegen/box/boxing/boxing9.kt"); + } + + @Test + @TestMetadata("kt53100_casts.kt") + public void testKt53100_casts() { + runTest("compiler/testData/codegen/box/boxing/kt53100_casts.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/boxingOptimization") @TestDataPath("$PROJECT_ROOT") @@ -1382,6 +1878,88 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { } } + @Nested + @TestMetadata("compiler/testData/codegen/box/branching") + @TestDataPath("$PROJECT_ROOT") + public class Branching { + @Test + @TestMetadata("advanced_when2.kt") + public void testAdvanced_when2() { + runTest("compiler/testData/codegen/box/branching/advanced_when2.kt"); + } + + @Test + @TestMetadata("advanced_when5.kt") + public void testAdvanced_when5() { + runTest("compiler/testData/codegen/box/branching/advanced_when5.kt"); + } + + @Test + public void testAllFilesPresentInBranching() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/branching"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("if_else.kt") + public void testIf_else() { + runTest("compiler/testData/codegen/box/branching/if_else.kt"); + } + + @Test + @TestMetadata("when2.kt") + public void testWhen2() { + runTest("compiler/testData/codegen/box/branching/when2.kt"); + } + + @Test + @TestMetadata("when4.kt") + public void testWhen4() { + runTest("compiler/testData/codegen/box/branching/when4.kt"); + } + + @Test + @TestMetadata("when5.kt") + public void testWhen5() { + runTest("compiler/testData/codegen/box/branching/when5.kt"); + } + + @Test + @TestMetadata("when6.kt") + public void testWhen6() { + runTest("compiler/testData/codegen/box/branching/when6.kt"); + } + + @Test + @TestMetadata("when7.kt") + public void testWhen7() { + runTest("compiler/testData/codegen/box/branching/when7.kt"); + } + + @Test + @TestMetadata("when8.kt") + public void testWhen8() { + runTest("compiler/testData/codegen/box/branching/when8.kt"); + } + + @Test + @TestMetadata("when9.kt") + public void testWhen9() { + runTest("compiler/testData/codegen/box/branching/when9.kt"); + } + + @Test + @TestMetadata("when_through.kt") + public void testWhen_through() { + runTest("compiler/testData/codegen/box/branching/when_through.kt"); + } + + @Test + @TestMetadata("when_with_try1.kt") + public void testWhen_with_try1() { + runTest("compiler/testData/codegen/box/branching/when_with_try1.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/bridges") @TestDataPath("$PROJECT_ROOT") @@ -1637,6 +2215,18 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/bridges/methodWithDefaultParameter.kt"); } + @Test + @TestMetadata("multipleModules1.kt") + public void testMultipleModules1() { + runTest("compiler/testData/codegen/box/bridges/multipleModules1.kt"); + } + + @Test + @TestMetadata("multipleModules2.kt") + public void testMultipleModules2() { + runTest("compiler/testData/codegen/box/bridges/multipleModules2.kt"); + } + @Test @TestMetadata("nestedClassTypeParameters.kt") public void testNestedClassTypeParameters() { @@ -1697,6 +2287,12 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/bridges/propertySetter.kt"); } + @Test + @TestMetadata("returnTypeSignature.kt") + public void testReturnTypeSignature() { + runTest("compiler/testData/codegen/box/bridges/returnTypeSignature.kt"); + } + @Test @TestMetadata("simple.kt") public void testSimple() { @@ -1739,12 +2335,138 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/bridges/simpleUpperBound.kt"); } + @Test + @TestMetadata("special.kt") + public void testSpecial() { + runTest("compiler/testData/codegen/box/bridges/special.kt"); + } + + @Test + @TestMetadata("specialGeneric.kt") + public void testSpecialGeneric() { + runTest("compiler/testData/codegen/box/bridges/specialGeneric.kt"); + } + @Test @TestMetadata("strListContains.kt") public void testStrListContains() { runTest("compiler/testData/codegen/box/bridges/strListContains.kt"); } + @Test + @TestMetadata("test0.kt") + public void testTest0() { + runTest("compiler/testData/codegen/box/bridges/test0.kt"); + } + + @Test + @TestMetadata("test1.kt") + public void testTest1() { + runTest("compiler/testData/codegen/box/bridges/test1.kt"); + } + + @Test + @TestMetadata("test10.kt") + public void testTest10() { + runTest("compiler/testData/codegen/box/bridges/test10.kt"); + } + + @Test + @TestMetadata("test11.kt") + public void testTest11() { + runTest("compiler/testData/codegen/box/bridges/test11.kt"); + } + + @Test + @TestMetadata("test12.kt") + public void testTest12() { + runTest("compiler/testData/codegen/box/bridges/test12.kt"); + } + + @Test + @TestMetadata("test13.kt") + public void testTest13() { + runTest("compiler/testData/codegen/box/bridges/test13.kt"); + } + + @Test + @TestMetadata("test14.kt") + public void testTest14() { + runTest("compiler/testData/codegen/box/bridges/test14.kt"); + } + + @Test + @TestMetadata("test15.kt") + public void testTest15() { + runTest("compiler/testData/codegen/box/bridges/test15.kt"); + } + + @Test + @TestMetadata("test16.kt") + public void testTest16() { + runTest("compiler/testData/codegen/box/bridges/test16.kt"); + } + + @Test + @TestMetadata("test17.kt") + public void testTest17() { + runTest("compiler/testData/codegen/box/bridges/test17.kt"); + } + + @Test + @TestMetadata("test18.kt") + public void testTest18() { + runTest("compiler/testData/codegen/box/bridges/test18.kt"); + } + + @Test + @TestMetadata("test2.kt") + public void testTest2() { + runTest("compiler/testData/codegen/box/bridges/test2.kt"); + } + + @Test + @TestMetadata("test3.kt") + public void testTest3() { + runTest("compiler/testData/codegen/box/bridges/test3.kt"); + } + + @Test + @TestMetadata("test4.kt") + public void testTest4() { + runTest("compiler/testData/codegen/box/bridges/test4.kt"); + } + + @Test + @TestMetadata("test5.kt") + public void testTest5() { + runTest("compiler/testData/codegen/box/bridges/test5.kt"); + } + + @Test + @TestMetadata("test6.kt") + public void testTest6() { + runTest("compiler/testData/codegen/box/bridges/test6.kt"); + } + + @Test + @TestMetadata("test7.kt") + public void testTest7() { + runTest("compiler/testData/codegen/box/bridges/test7.kt"); + } + + @Test + @TestMetadata("test8.kt") + public void testTest8() { + runTest("compiler/testData/codegen/box/bridges/test8.kt"); + } + + @Test + @TestMetadata("test9.kt") + public void testTest9() { + runTest("compiler/testData/codegen/box/bridges/test9.kt"); + } + @Test @TestMetadata("traitImplInheritsTraitImpl.kt") public void testTraitImplInheritsTraitImpl() { @@ -4644,6 +5366,46 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { } } + @Nested + @TestMetadata("compiler/testData/codegen/box/classDelegation") + @TestDataPath("$PROJECT_ROOT") + public class ClassDelegation { + @Test + public void testAllFilesPresentInClassDelegation() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/classDelegation"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("generic.kt") + public void testGeneric() { + runTest("compiler/testData/codegen/box/classDelegation/generic.kt"); + } + + @Test + @TestMetadata("method.kt") + public void testMethod() { + runTest("compiler/testData/codegen/box/classDelegation/method.kt"); + } + + @Test + @TestMetadata("multipleModules.kt") + public void testMultipleModules() { + runTest("compiler/testData/codegen/box/classDelegation/multipleModules.kt"); + } + + @Test + @TestMetadata("property.kt") + public void testProperty() { + runTest("compiler/testData/codegen/box/classDelegation/property.kt"); + } + + @Test + @TestMetadata("withBridge.kt") + public void testWithBridge() { + runTest("compiler/testData/codegen/box/classDelegation/withBridge.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/classLiteral") @TestDataPath("$PROJECT_ROOT") @@ -6353,6 +7115,12 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/contracts/constructorArgument.kt"); } + @Test + @TestMetadata("contractForCast.kt") + public void testContractForCast() { + runTest("compiler/testData/codegen/box/contracts/contractForCast.kt"); + } + @Test @TestMetadata("destructuredVariable.kt") public void testDestructuredVariable() { @@ -6395,6 +7163,12 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/contracts/functionParameter.kt"); } + @Test + @TestMetadata("isNullString.kt") + public void testIsNullString() { + runTest("compiler/testData/codegen/box/contracts/isNullString.kt"); + } + @Test @TestMetadata("kt39374.kt") public void testKt39374() { @@ -6437,6 +7211,24 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/contracts/nestedLambdaInNonInlineCallExactlyOnce.kt"); } + @Test + @TestMetadata("nonNullSmartCast.kt") + public void testNonNullSmartCast() { + runTest("compiler/testData/codegen/box/contracts/nonNullSmartCast.kt"); + } + + @Test + @TestMetadata("require.kt") + public void testRequire() { + runTest("compiler/testData/codegen/box/contracts/require.kt"); + } + + @Test + @TestMetadata("runLambdaForVal.kt") + public void testRunLambdaForVal() { + runTest("compiler/testData/codegen/box/contracts/runLambdaForVal.kt"); + } + @Test @TestMetadata("valInWhen.kt") public void testValInWhen() { @@ -7818,6 +8610,124 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { } } + @Nested + @TestMetadata("compiler/testData/codegen/box/controlflow") + @TestDataPath("$PROJECT_ROOT") + public class Controlflow { + @Test + public void testAllFilesPresentInControlflow() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/controlflow"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("break.kt") + public void testBreak() { + runTest("compiler/testData/codegen/box/controlflow/break.kt"); + } + + @Test + @TestMetadata("break1.kt") + public void testBreak1() { + runTest("compiler/testData/codegen/box/controlflow/break1.kt"); + } + + @Test + @TestMetadata("for_loops.kt") + public void testFor_loops() { + runTest("compiler/testData/codegen/box/controlflow/for_loops.kt"); + } + + @Test + @TestMetadata("for_loops_array_break_continue.kt") + public void testFor_loops_array_break_continue() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_array_break_continue.kt"); + } + + @Test + @TestMetadata("for_loops_array_indices.kt") + public void testFor_loops_array_indices() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_array_indices.kt"); + } + + @Test + @TestMetadata("for_loops_array_mutation.kt") + public void testFor_loops_array_mutation() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_array_mutation.kt"); + } + + @Test + @TestMetadata("for_loops_array_nested.kt") + public void testFor_loops_array_nested() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_array_nested.kt"); + } + + @Test + @TestMetadata("for_loops_array_nullable.kt") + public void testFor_loops_array_nullable() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_array_nullable.kt"); + } + + @Test + @TestMetadata("for_loops_array_side_effects.kt") + public void testFor_loops_array_side_effects() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_array_side_effects.kt"); + } + + @Test + @TestMetadata("for_loops_call_order.kt") + public void testFor_loops_call_order() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_call_order.kt"); + } + + @Test + @TestMetadata("for_loops_coroutines.kt") + public void testFor_loops_coroutines() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_coroutines.kt"); + } + + @Test + @TestMetadata("for_loops_empty_range.kt") + public void testFor_loops_empty_range() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_empty_range.kt"); + } + + @Test + @TestMetadata("for_loops_errors.kt") + public void testFor_loops_errors() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_errors.kt"); + } + + @Test + @TestMetadata("for_loops_let_with_nullable.kt") + public void testFor_loops_let_with_nullable() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_let_with_nullable.kt"); + } + + @Test + @TestMetadata("for_loops_nested.kt") + public void testFor_loops_nested() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_nested.kt"); + } + + @Test + @TestMetadata("for_loops_overflow.kt") + public void testFor_loops_overflow() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_overflow.kt"); + } + + @Test + @TestMetadata("for_loops_types.kt") + public void testFor_loops_types() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_types.kt"); + } + + @Test + @TestMetadata("unreachable1.kt") + public void testUnreachable1() { + runTest("compiler/testData/codegen/box/controlflow/unreachable1.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/coroutines") @TestDataPath("$PROJECT_ROOT") @@ -7839,6 +8749,12 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); } + @Test + @TestMetadata("anonymousObject.kt") + public void testAnonymousObject() { + runTest("compiler/testData/codegen/box/coroutines/anonymousObject.kt"); + } + @Test @TestMetadata("asyncIteratorNullMerge_1_3.kt") public void testAsyncIteratorNullMerge_1_3() { @@ -7923,18 +8839,156 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/coroutines/coercionToUnit.kt"); } + @Test + @TestMetadata("controlFlow_chain.kt") + public void testControlFlow_chain() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_chain.kt"); + } + + @Test + @TestMetadata("controlFlow_finally1.kt") + public void testControlFlow_finally1() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally1.kt"); + } + + @Test + @TestMetadata("controlFlow_finally2.kt") + public void testControlFlow_finally2() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally2.kt"); + } + + @Test + @TestMetadata("controlFlow_finally3.kt") + public void testControlFlow_finally3() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally3.kt"); + } + + @Test + @TestMetadata("controlFlow_finally4.kt") + public void testControlFlow_finally4() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally4.kt"); + } + + @Test + @TestMetadata("controlFlow_finally5.kt") + public void testControlFlow_finally5() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally5.kt"); + } + + @Test + @TestMetadata("controlFlow_finally6.kt") + public void testControlFlow_finally6() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally6.kt"); + } + + @Test + @TestMetadata("controlFlow_finally7.kt") + public void testControlFlow_finally7() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally7.kt"); + } + + @Test + @TestMetadata("controlFlow_if1.kt") + public void testControlFlow_if1() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_if1.kt"); + } + + @Test + @TestMetadata("controlFlow_if2.kt") + public void testControlFlow_if2() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_if2.kt"); + } + + @Test + @TestMetadata("controlFlow_inline1.kt") + public void testControlFlow_inline1() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_inline1.kt"); + } + + @Test + @TestMetadata("controlFlow_inline2.kt") + public void testControlFlow_inline2() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_inline2.kt"); + } + + @Test + @TestMetadata("controlFlow_inline3.kt") + public void testControlFlow_inline3() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_inline3.kt"); + } + + @Test + @TestMetadata("controlFlow_tryCatch1.kt") + public void testControlFlow_tryCatch1() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_tryCatch1.kt"); + } + + @Test + @TestMetadata("controlFlow_tryCatch2.kt") + public void testControlFlow_tryCatch2() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_tryCatch2.kt"); + } + + @Test + @TestMetadata("controlFlow_tryCatch3.kt") + public void testControlFlow_tryCatch3() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_tryCatch3.kt"); + } + + @Test + @TestMetadata("controlFlow_tryCatch4.kt") + public void testControlFlow_tryCatch4() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_tryCatch4.kt"); + } + + @Test + @TestMetadata("controlFlow_tryCatch5.kt") + public void testControlFlow_tryCatch5() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_tryCatch5.kt"); + } + + @Test + @TestMetadata("controlFlow_while1.kt") + public void testControlFlow_while1() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_while1.kt"); + } + + @Test + @TestMetadata("controlFlow_while2.kt") + public void testControlFlow_while2() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_while2.kt"); + } + @Test @TestMetadata("controllerAccessFromInnerLambda.kt") public void testControllerAccessFromInnerLambda() { runTest("compiler/testData/codegen/box/coroutines/controllerAccessFromInnerLambda.kt"); } + @Test + @TestMetadata("coroutineContext1.kt") + public void testCoroutineContext1() { + runTest("compiler/testData/codegen/box/coroutines/coroutineContext1.kt"); + } + + @Test + @TestMetadata("coroutineContext2.kt") + public void testCoroutineContext2() { + runTest("compiler/testData/codegen/box/coroutines/coroutineContext2.kt"); + } + @Test @TestMetadata("coroutineContextInInlinedLambda.kt") public void testCoroutineContextInInlinedLambda() { runTest("compiler/testData/codegen/box/coroutines/coroutineContextInInlinedLambda.kt"); } + @Test + @TestMetadata("correctOrder1.kt") + public void testCorrectOrder1() { + runTest("compiler/testData/codegen/box/coroutines/correctOrder1.kt"); + } + @Test @TestMetadata("createCoroutineSafe.kt") public void testCreateCoroutineSafe() { @@ -7965,6 +9019,18 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/coroutines/defaultParametersInSuspend.kt"); } + @Test + @TestMetadata("degenerate1.kt") + public void testDegenerate1() { + runTest("compiler/testData/codegen/box/coroutines/degenerate1.kt"); + } + + @Test + @TestMetadata("degenerate2.kt") + public void testDegenerate2() { + runTest("compiler/testData/codegen/box/coroutines/degenerate2.kt"); + } + @Test @TestMetadata("delegatedSuspendMember.kt") public void testDelegatedSuspendMember() { @@ -8013,6 +9079,30 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/coroutines/falseUnitCoercion.kt"); } + @Test + @TestMetadata("functionReference_eqeq_name.kt") + public void testFunctionReference_eqeq_name() { + runTest("compiler/testData/codegen/box/coroutines/functionReference_eqeq_name.kt"); + } + + @Test + @TestMetadata("functionReference_invokeAsFunction.kt") + public void testFunctionReference_invokeAsFunction() { + runTest("compiler/testData/codegen/box/coroutines/functionReference_invokeAsFunction.kt"); + } + + @Test + @TestMetadata("functionReference_lambdaAsSuspendLambda.kt") + public void testFunctionReference_lambdaAsSuspendLambda() { + runTest("compiler/testData/codegen/box/coroutines/functionReference_lambdaAsSuspendLambda.kt"); + } + + @Test + @TestMetadata("functionReference_simple.kt") + public void testFunctionReference_simple() { + runTest("compiler/testData/codegen/box/coroutines/functionReference_simple.kt"); + } + @Test @TestMetadata("generate.kt") public void testGenerate() { @@ -8187,6 +9277,12 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/coroutines/kt35967.kt"); } + @Test + @TestMetadata("kt41394.kt") + public void testKt41394() { + runTest("compiler/testData/codegen/box/coroutines/kt41394.kt"); + } + @Test @TestMetadata("kt42028.kt") public void testKt42028() { @@ -8415,12 +9511,30 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/coroutines/returnByLabel.kt"); } + @Test + @TestMetadata("returnsNothing1.kt") + public void testReturnsNothing1() { + runTest("compiler/testData/codegen/box/coroutines/returnsNothing1.kt"); + } + + @Test + @TestMetadata("returnsUnit1.kt") + public void testReturnsUnit1() { + runTest("compiler/testData/codegen/box/coroutines/returnsUnit1.kt"); + } + @Test @TestMetadata("simple.kt") public void testSimple() { runTest("compiler/testData/codegen/box/coroutines/simple.kt"); } + @Test + @TestMetadata("simple2.kt") + public void testSimple2() { + runTest("compiler/testData/codegen/box/coroutines/simple2.kt"); + } + @Test @TestMetadata("simpleException.kt") public void testSimpleException() { @@ -8463,6 +9577,12 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/coroutines/suspendCallsInArguments.kt"); } + @Test + @TestMetadata("suspendConversion.kt") + public void testSuspendConversion() { + runTest("compiler/testData/codegen/box/coroutines/suspendConversion.kt"); + } + @Test @TestMetadata("suspendCoroutineFromStateMachine.kt") public void testSuspendCoroutineFromStateMachine() { @@ -8619,6 +9739,12 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/coroutines/varargCallFromSuspend.kt"); } + @Test + @TestMetadata("withReceiver.kt") + public void testWithReceiver() { + runTest("compiler/testData/codegen/box/coroutines/withReceiver.kt"); + } + @Nested @TestMetadata("compiler/testData/codegen/box/coroutines/bridges") @TestDataPath("$PROJECT_ROOT") @@ -10846,6 +11972,34 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { } } + @Nested + @TestMetadata("compiler/testData/codegen/box/cycles") + @TestDataPath("$PROJECT_ROOT") + public class Cycles { + @Test + public void testAllFilesPresentInCycles() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cycles"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("cycle.kt") + public void testCycle() { + runTest("compiler/testData/codegen/box/cycles/cycle.kt"); + } + + @Test + @TestMetadata("cycle_do.kt") + public void testCycle_do() { + runTest("compiler/testData/codegen/box/cycles/cycle_do.kt"); + } + + @Test + @TestMetadata("cycle_for.kt") + public void testCycle_for() { + runTest("compiler/testData/codegen/box/cycles/cycle_for.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/dataClasses") @TestDataPath("$PROJECT_ROOT") @@ -11252,6 +12406,28 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { } } + @Nested + @TestMetadata("compiler/testData/codegen/box/dataflow") + @TestDataPath("$PROJECT_ROOT") + public class Dataflow { + @Test + public void testAllFilesPresentInDataflow() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/dataflow"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("scope1.kt") + public void testScope1() { + runTest("compiler/testData/codegen/box/dataflow/scope1.kt"); + } + + @Test + @TestMetadata("uninitialized_val.kt") + public void testUninitialized_val() { + runTest("compiler/testData/codegen/box/dataflow/uninitialized_val.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/deadCodeElimination") @TestDataPath("$PROJECT_ROOT") @@ -11871,6 +13047,12 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/delegatedProperty/castSetParameter.kt"); } + @Test + @TestMetadata("correctFieldsOrder.kt") + public void testCorrectFieldsOrder() { + runTest("compiler/testData/codegen/box/delegatedProperty/correctFieldsOrder.kt"); + } + @Test @TestMetadata("delegateAsInnerClass.kt") public void testDelegateAsInnerClass() { @@ -11925,6 +13107,12 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/delegatedProperty/delegateWithPrivateSet.kt"); } + @Test + @TestMetadata("delegatedOverride.kt") + public void testDelegatedOverride() { + runTest("compiler/testData/codegen/box/delegatedProperty/delegatedOverride.kt"); + } + @Test @TestMetadata("delegatedPropertyInEnum.kt") public void testDelegatedPropertyInEnum() { @@ -12057,12 +13245,42 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/delegatedProperty/kt9712.kt"); } + @Test + @TestMetadata("lazy.kt") + public void testLazy() { + runTest("compiler/testData/codegen/box/delegatedProperty/lazy.kt"); + } + + @Test + @TestMetadata("local.kt") + public void testLocal() { + runTest("compiler/testData/codegen/box/delegatedProperty/local.kt"); + } + + @Test + @TestMetadata("map.kt") + public void testMap() { + runTest("compiler/testData/codegen/box/delegatedProperty/map.kt"); + } + @Test @TestMetadata("noTypeVariablesLeft.kt") public void testNoTypeVariablesLeft() { runTest("compiler/testData/codegen/box/delegatedProperty/noTypeVariablesLeft.kt"); } + @Test + @TestMetadata("observable.kt") + public void testObservable() { + runTest("compiler/testData/codegen/box/delegatedProperty/observable.kt"); + } + + @Test + @TestMetadata("packageLevel.kt") + public void testPackageLevel() { + runTest("compiler/testData/codegen/box/delegatedProperty/packageLevel.kt"); + } + @Test @TestMetadata("privateVar.kt") public void testPrivateVar() { @@ -12105,6 +13323,18 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/delegatedProperty/setAsExtensionFunInClass.kt"); } + @Test + @TestMetadata("simpleVal.kt") + public void testSimpleVal() { + runTest("compiler/testData/codegen/box/delegatedProperty/simpleVal.kt"); + } + + @Test + @TestMetadata("simpleVar.kt") + public void testSimpleVar() { + runTest("compiler/testData/codegen/box/delegatedProperty/simpleVar.kt"); + } + @Test @TestMetadata("topLevelVal.kt") public void testTopLevelVal() { @@ -12912,6 +14142,40 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { } } + @Nested + @TestMetadata("compiler/testData/codegen/box/devirtualization") + @TestDataPath("$PROJECT_ROOT") + public class Devirtualization { + @Test + public void testAllFilesPresentInDevirtualization() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/devirtualization"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("anonymousObject.kt") + public void testAnonymousObject() { + runTest("compiler/testData/codegen/box/devirtualization/anonymousObject.kt"); + } + + @Test + @TestMetadata("getter_looking_as_box_function.kt") + public void testGetter_looking_as_box_function() { + runTest("compiler/testData/codegen/box/devirtualization/getter_looking_as_box_function.kt"); + } + + @Test + @TestMetadata("inline_getter.kt") + public void testInline_getter() { + runTest("compiler/testData/codegen/box/devirtualization/inline_getter.kt"); + } + + @Test + @TestMetadata("lateinitInterface.kt") + public void testLateinitInterface() { + runTest("compiler/testData/codegen/box/devirtualization/lateinitInterface.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/diagnostics") @TestDataPath("$PROJECT_ROOT") @@ -13525,6 +14789,12 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/enum/companionAccessingEnumValue.kt"); } + @Test + @TestMetadata("companionObject.kt") + public void testCompanionObject() { + runTest("compiler/testData/codegen/box/enum/companionObject.kt"); + } + @Test @TestMetadata("companionObjectInEnum.kt") public void testCompanionObjectInEnum() { @@ -13669,6 +14939,12 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/enum/enumWithLambdaParameter.kt"); } + @Test + @TestMetadata("enum_equals.kt") + public void testEnum_equals() { + runTest("compiler/testData/codegen/box/enum/enum_equals.kt"); + } + @Test @TestMetadata("getEnumEntityByOrdinal.kt") public void testGetEnumEntityByOrdinal() { @@ -13741,6 +15017,18 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/enum/innerWithExistingClassObject.kt"); } + @Test + @TestMetadata("interfaceCallNoEntryClass.kt") + public void testInterfaceCallNoEntryClass() { + runTest("compiler/testData/codegen/box/enum/interfaceCallNoEntryClass.kt"); + } + + @Test + @TestMetadata("interfaceCallWithEntryClass.kt") + public void testInterfaceCallWithEntryClass() { + runTest("compiler/testData/codegen/box/enum/interfaceCallWithEntryClass.kt"); + } + @Test @TestMetadata("k54079.kt") public void testK54079() { @@ -13795,6 +15083,12 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/enum/kt2350.kt"); } + @Test + @TestMetadata("kt38540.kt") + public void testKt38540() { + runTest("compiler/testData/codegen/box/enum/kt38540.kt"); + } + @Test @TestMetadata("kt38996.kt") public void testKt38996() { @@ -13891,12 +15185,42 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/enum/kt9711_2.kt"); } + @Test + @TestMetadata("lambdaInDefault.kt") + public void testLambdaInDefault() { + runTest("compiler/testData/codegen/box/enum/lambdaInDefault.kt"); + } + + @Test + @TestMetadata("loop.kt") + public void testLoop() { + runTest("compiler/testData/codegen/box/enum/loop.kt"); + } + @Test @TestMetadata("manyDefaultParameters.kt") public void testManyDefaultParameters() { runTest("compiler/testData/codegen/box/enum/manyDefaultParameters.kt"); } + @Test + @TestMetadata("multipleModules.kt") + public void testMultipleModules() { + runTest("compiler/testData/codegen/box/enum/multipleModules.kt"); + } + + @Test + @TestMetadata("nested.kt") + public void testNested() { + runTest("compiler/testData/codegen/box/enum/nested.kt"); + } + + @Test + @TestMetadata("openMethodNoOverrides.kt") + public void testOpenMethodNoOverrides() { + runTest("compiler/testData/codegen/box/enum/openMethodNoOverrides.kt"); + } + @Test @TestMetadata("ordinal.kt") public void testOrdinal() { @@ -13921,6 +15245,12 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/enum/refToThis.kt"); } + @Test + @TestMetadata("reorderedArguments.kt") + public void testReorderedArguments() { + runTest("compiler/testData/codegen/box/enum/reorderedArguments.kt"); + } + @Test @TestMetadata("simple.kt") public void testSimple() { @@ -13939,18 +15269,66 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/enum/superCallInEnumLiteral.kt"); } + @Test + @TestMetadata("switchLowering.kt") + public void testSwitchLowering() { + runTest("compiler/testData/codegen/box/enum/switchLowering.kt"); + } + + @Test + @TestMetadata("test0.kt") + public void testTest0() { + runTest("compiler/testData/codegen/box/enum/test0.kt"); + } + + @Test + @TestMetadata("test1.kt") + public void testTest1() { + runTest("compiler/testData/codegen/box/enum/test1.kt"); + } + @Test @TestMetadata("toString.kt") public void testToString() { runTest("compiler/testData/codegen/box/enum/toString.kt"); } + @Test + @TestMetadata("vCallNoEntryClass.kt") + public void testVCallNoEntryClass() { + runTest("compiler/testData/codegen/box/enum/vCallNoEntryClass.kt"); + } + + @Test + @TestMetadata("vCallWithEntryClass.kt") + public void testVCallWithEntryClass() { + runTest("compiler/testData/codegen/box/enum/vCallWithEntryClass.kt"); + } + + @Test + @TestMetadata("valueOf2.kt") + public void testValueOf2() { + runTest("compiler/testData/codegen/box/enum/valueOf2.kt"); + } + @Test @TestMetadata("valueof.kt") public void testValueof() { runTest("compiler/testData/codegen/box/enum/valueof.kt"); } + @Test + @TestMetadata("values.kt") + public void testValues() { + runTest("compiler/testData/codegen/box/enum/values.kt"); + } + + @Test + @TestMetadata("varargParam.kt") + public void testVarargParam() { + runTest("compiler/testData/codegen/box/enum/varargParam.kt"); + } + @Test @TestMetadata("whenInObject.kt") public void testWhenInObject() { @@ -14026,6 +15404,112 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { } } + @Nested + @TestMetadata("compiler/testData/codegen/box/escapeAnalysis") + @TestDataPath("$PROJECT_ROOT") + public class EscapeAnalysis { + @Test + public void testAllFilesPresentInEscapeAnalysis() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/escapeAnalysis"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("recursion.kt") + public void testRecursion() { + runTest("compiler/testData/codegen/box/escapeAnalysis/recursion.kt"); + } + + @Test + @TestMetadata("stack_array.kt") + public void testStack_array() { + runTest("compiler/testData/codegen/box/escapeAnalysis/stack_array.kt"); + } + + @Test + @TestMetadata("test1.kt") + public void testTest1() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test1.kt"); + } + + @Test + @TestMetadata("test10.kt") + public void testTest10() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test10.kt"); + } + + @Test + @TestMetadata("test11.kt") + public void testTest11() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test11.kt"); + } + + @Test + @TestMetadata("test12.kt") + public void testTest12() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test12.kt"); + } + + @Test + @TestMetadata("test13.kt") + public void testTest13() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test13.kt"); + } + + @Test + @TestMetadata("test2.kt") + public void testTest2() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test2.kt"); + } + + @Test + @TestMetadata("test3.kt") + public void testTest3() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test3.kt"); + } + + @Test + @TestMetadata("test4.kt") + public void testTest4() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test4.kt"); + } + + @Test + @TestMetadata("test5.kt") + public void testTest5() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test5.kt"); + } + + @Test + @TestMetadata("test6.kt") + public void testTest6() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test6.kt"); + } + + @Test + @TestMetadata("test7.kt") + public void testTest7() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test7.kt"); + } + + @Test + @TestMetadata("test8.kt") + public void testTest8() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test8.kt"); + } + + @Test + @TestMetadata("test9.kt") + public void testTest9() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test9.kt"); + } + + @Test + @TestMetadata("zeroOutObjectOnAlloc.kt") + public void testZeroOutObjectOnAlloc() { + runTest("compiler/testData/codegen/box/escapeAnalysis/zeroOutObjectOnAlloc.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/evaluate") @TestDataPath("$PROJECT_ROOT") @@ -14042,6 +15526,58 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { } } + @Nested + @TestMetadata("compiler/testData/codegen/box/exceptions") + @TestDataPath("$PROJECT_ROOT") + public class Exceptions { + @Test + public void testAllFilesPresentInExceptions() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/exceptions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("catch1.kt") + public void testCatch1() { + runTest("compiler/testData/codegen/box/exceptions/catch1.kt"); + } + + @Test + @TestMetadata("catch2.kt") + public void testCatch2() { + runTest("compiler/testData/codegen/box/exceptions/catch2.kt"); + } + + @Test + @TestMetadata("catch7.kt") + public void testCatch7() { + runTest("compiler/testData/codegen/box/exceptions/catch7.kt"); + } + + @Test + @TestMetadata("extend0.kt") + public void testExtend0() { + runTest("compiler/testData/codegen/box/exceptions/extend0.kt"); + } + + @Test + @TestMetadata("rethrow.kt") + public void testRethrow() { + runTest("compiler/testData/codegen/box/exceptions/rethrow.kt"); + } + + @Test + @TestMetadata("throw0.kt") + public void testThrow0() { + runTest("compiler/testData/codegen/box/exceptions/throw0.kt"); + } + + @Test + @TestMetadata("throw_from_catch.kt") + public void testThrow_from_catch() { + runTest("compiler/testData/codegen/box/exceptions/throw_from_catch.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/exclExcl") @TestDataPath("$PROJECT_ROOT") @@ -14921,6 +16457,12 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/funInterface/funInterfaceWithReceiver.kt"); } + @Test + @TestMetadata("implIsNotFunction.kt") + public void testImplIsNotFunction() { + runTest("compiler/testData/codegen/box/funInterface/implIsNotFunction.kt"); + } + @Test @TestMetadata("inlinedSamWrapper.kt") public void testInlinedSamWrapper() { @@ -14963,6 +16505,18 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/funInterface/kt46908_functionSupertype.kt"); } + @Test + @TestMetadata("kt49384.kt") + public void testKt49384() { + runTest("compiler/testData/codegen/box/funInterface/kt49384.kt"); + } + + @Test + @TestMetadata("kt49384_getSame.kt") + public void testKt49384_getSame() { + runTest("compiler/testData/codegen/box/funInterface/kt49384_getSame.kt"); + } + @Test @TestMetadata("multimodule.kt") public void testMultimodule() { @@ -14981,6 +16535,12 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/funInterface/nonAbstractMethod.kt"); } + @Test + @TestMetadata("nonTrivialProjectionInSuperType.kt") + public void testNonTrivialProjectionInSuperType() { + runTest("compiler/testData/codegen/box/funInterface/nonTrivialProjectionInSuperType.kt"); + } + @Test @TestMetadata("nullableSam.kt") public void testNullableSam() { @@ -15070,6 +16630,232 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { } } + @Nested + @TestMetadata("compiler/testData/codegen/box/function") + @TestDataPath("$PROJECT_ROOT") + public class Function { + @Test + public void testAllFilesPresentInFunction() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/function"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("arithmetic.kt") + public void testArithmetic() { + runTest("compiler/testData/codegen/box/function/arithmetic.kt"); + } + + @Test + @TestMetadata("boolean.kt") + public void testBoolean() { + runTest("compiler/testData/codegen/box/function/boolean.kt"); + } + + @Test + @TestMetadata("defaults.kt") + public void testDefaults() { + runTest("compiler/testData/codegen/box/function/defaults.kt"); + } + + @Test + @TestMetadata("defaults1.kt") + public void testDefaults1() { + runTest("compiler/testData/codegen/box/function/defaults1.kt"); + } + + @Test + @TestMetadata("defaults10.kt") + public void testDefaults10() { + runTest("compiler/testData/codegen/box/function/defaults10.kt"); + } + + @Test + @TestMetadata("defaults2.kt") + public void testDefaults2() { + runTest("compiler/testData/codegen/box/function/defaults2.kt"); + } + + @Test + @TestMetadata("defaults3.kt") + public void testDefaults3() { + runTest("compiler/testData/codegen/box/function/defaults3.kt"); + } + + @Test + @TestMetadata("defaults4.kt") + public void testDefaults4() { + runTest("compiler/testData/codegen/box/function/defaults4.kt"); + } + + @Test + @TestMetadata("defaults5.kt") + public void testDefaults5() { + runTest("compiler/testData/codegen/box/function/defaults5.kt"); + } + + @Test + @TestMetadata("defaults6.kt") + public void testDefaults6() { + runTest("compiler/testData/codegen/box/function/defaults6.kt"); + } + + @Test + @TestMetadata("defaults7.kt") + public void testDefaults7() { + runTest("compiler/testData/codegen/box/function/defaults7.kt"); + } + + @Test + @TestMetadata("defaults8.kt") + public void testDefaults8() { + runTest("compiler/testData/codegen/box/function/defaults8.kt"); + } + + @Test + @TestMetadata("defaults9.kt") + public void testDefaults9() { + runTest("compiler/testData/codegen/box/function/defaults9.kt"); + } + + @Test + @TestMetadata("defaultsFromFakeOverride.kt") + public void testDefaultsFromFakeOverride() { + runTest("compiler/testData/codegen/box/function/defaultsFromFakeOverride.kt"); + } + + @Test + @TestMetadata("defaultsWithInlineClasses.kt") + public void testDefaultsWithInlineClasses() { + runTest("compiler/testData/codegen/box/function/defaultsWithInlineClasses.kt"); + } + + @Test + @TestMetadata("defaultsWithVarArg1.kt") + public void testDefaultsWithVarArg1() { + runTest("compiler/testData/codegen/box/function/defaultsWithVarArg1.kt"); + } + + @Test + @TestMetadata("defaultsWithVarArg2.kt") + public void testDefaultsWithVarArg2() { + runTest("compiler/testData/codegen/box/function/defaultsWithVarArg2.kt"); + } + + @Test + @TestMetadata("eqeq.kt") + public void testEqeq() { + runTest("compiler/testData/codegen/box/function/eqeq.kt"); + } + + @Test + @TestMetadata("extension.kt") + public void testExtension() { + runTest("compiler/testData/codegen/box/function/extension.kt"); + } + + @Test + @TestMetadata("intrinsic.kt") + public void testIntrinsic() { + runTest("compiler/testData/codegen/box/function/intrinsic.kt"); + } + + @Test + @TestMetadata("localFunction.kt") + public void testLocalFunction() { + runTest("compiler/testData/codegen/box/function/localFunction.kt"); + } + + @Test + @TestMetadata("localFunction2.kt") + public void testLocalFunction2() { + runTest("compiler/testData/codegen/box/function/localFunction2.kt"); + } + + @Test + @TestMetadata("localFunction3.kt") + public void testLocalFunction3() { + runTest("compiler/testData/codegen/box/function/localFunction3.kt"); + } + + @Test + @TestMetadata("minus_eq.kt") + public void testMinus_eq() { + runTest("compiler/testData/codegen/box/function/minus_eq.kt"); + } + + @Test + @TestMetadata("named.kt") + public void testNamed() { + runTest("compiler/testData/codegen/box/function/named.kt"); + } + + @Test + @TestMetadata("nothingNReturningSafeCall.kt") + public void testNothingNReturningSafeCall() { + runTest("compiler/testData/codegen/box/function/nothingNReturningSafeCall.kt"); + } + + @Test + @TestMetadata("plus_eq.kt") + public void testPlus_eq() { + runTest("compiler/testData/codegen/box/function/plus_eq.kt"); + } + + @Test + @TestMetadata("referenceBigArity.kt") + public void testReferenceBigArity() { + runTest("compiler/testData/codegen/box/function/referenceBigArity.kt"); + } + + @Test + @TestMetadata("sum.kt") + public void testSum() { + runTest("compiler/testData/codegen/box/function/sum.kt"); + } + + @Test + @TestMetadata("sum_3const.kt") + public void testSum_3const() { + runTest("compiler/testData/codegen/box/function/sum_3const.kt"); + } + + @Test + @TestMetadata("sum_foo_bar.kt") + public void testSum_foo_bar() { + runTest("compiler/testData/codegen/box/function/sum_foo_bar.kt"); + } + + @Test + @TestMetadata("sum_func.kt") + public void testSum_func() { + runTest("compiler/testData/codegen/box/function/sum_func.kt"); + } + + @Test + @TestMetadata("sum_imm.kt") + public void testSum_imm() { + runTest("compiler/testData/codegen/box/function/sum_imm.kt"); + } + + @Test + @TestMetadata("sum_mixed.kt") + public void testSum_mixed() { + runTest("compiler/testData/codegen/box/function/sum_mixed.kt"); + } + + @Test + @TestMetadata("sum_silly.kt") + public void testSum_silly() { + runTest("compiler/testData/codegen/box/function/sum_silly.kt"); + } + + @Test + @TestMetadata("unreachableStatementAfterReturn.kt") + public void testUnreachableStatementAfterReturn() { + runTest("compiler/testData/codegen/box/function/unreachableStatementAfterReturn.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/functions") @TestDataPath("$PROJECT_ROOT") @@ -16570,6 +18356,474 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { } } + @Nested + @TestMetadata("compiler/testData/codegen/box/initializers") + @TestDataPath("$PROJECT_ROOT") + public class Initializers { + @Test + public void testAllFilesPresentInInitializers() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/initializers"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("correctOrder1.kt") + public void testCorrectOrder1() { + runTest("compiler/testData/codegen/box/initializers/correctOrder1.kt"); + } + + @Test + @TestMetadata("correctOrder2.kt") + public void testCorrectOrder2() { + runTest("compiler/testData/codegen/box/initializers/correctOrder2.kt"); + } + + @Test + @TestMetadata("initializers0.kt") + public void testInitializers0() { + runTest("compiler/testData/codegen/box/initializers/initializers0.kt"); + } + + @Test + @TestMetadata("initializers1.kt") + public void testInitializers1() { + runTest("compiler/testData/codegen/box/initializers/initializers1.kt"); + } + + @Test + @TestMetadata("initializers2.kt") + public void testInitializers2() { + runTest("compiler/testData/codegen/box/initializers/initializers2.kt"); + } + + @Test + @TestMetadata("initializers3.kt") + public void testInitializers3() { + runTest("compiler/testData/codegen/box/initializers/initializers3.kt"); + } + + @Test + @TestMetadata("initializers4.kt") + public void testInitializers4() { + runTest("compiler/testData/codegen/box/initializers/initializers4.kt"); + } + + @Test + @TestMetadata("initializers5.kt") + public void testInitializers5() { + runTest("compiler/testData/codegen/box/initializers/initializers5.kt"); + } + + @Test + @TestMetadata("initializers7.kt") + public void testInitializers7() { + runTest("compiler/testData/codegen/box/initializers/initializers7.kt"); + } + + @Test + @TestMetadata("initializers8.kt") + public void testInitializers8() { + runTest("compiler/testData/codegen/box/initializers/initializers8.kt"); + } + + @Test + @TestMetadata("multipleModules1.kt") + public void testMultipleModules1() { + runTest("compiler/testData/codegen/box/initializers/multipleModules1.kt"); + } + + @Test + @TestMetadata("object.kt") + public void testObject() { + runTest("compiler/testData/codegen/box/initializers/object.kt"); + } + + @Test + @TestMetadata("sharedVarInInitBlock.kt") + public void testSharedVarInInitBlock() { + runTest("compiler/testData/codegen/box/initializers/sharedVarInInitBlock.kt"); + } + + @Test + @TestMetadata("static_arrays.kt") + public void testStatic_arrays() { + runTest("compiler/testData/codegen/box/initializers/static_arrays.kt"); + } + + @Test + @TestMetadata("static_list.kt") + public void testStatic_list() { + runTest("compiler/testData/codegen/box/initializers/static_list.kt"); + } + + @Test + @TestMetadata("static_smallIntIdentity.kt") + public void testStatic_smallIntIdentity() { + runTest("compiler/testData/codegen/box/initializers/static_smallIntIdentity.kt"); + } + + @Test + @TestMetadata("static_varargChange.kt") + public void testStatic_varargChange() { + runTest("compiler/testData/codegen/box/initializers/static_varargChange.kt"); + } + + @Test + @TestMetadata("throw1.kt") + public void testThrow1() { + runTest("compiler/testData/codegen/box/initializers/throw1.kt"); + } + + @Test + @TestMetadata("throw2.kt") + public void testThrow2() { + runTest("compiler/testData/codegen/box/initializers/throw2.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/initializers/files") + @TestDataPath("$PROJECT_ROOT") + public class Files { + @Test + public void testAllFilesPresentInFiles() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/initializers/files"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("globalInitedAfterAccessingFile.kt") + public void testGlobalInitedAfterAccessingFile() { + runTest("compiler/testData/codegen/box/initializers/files/globalInitedAfterAccessingFile.kt"); + } + + @Test + @TestMetadata("globalNotInitedAfterAccessingClassInternals.kt") + public void testGlobalNotInitedAfterAccessingClassInternals() { + runTest("compiler/testData/codegen/box/initializers/files/globalNotInitedAfterAccessingClassInternals.kt"); + } + + @Test + @TestMetadata("simple.kt") + public void testSimple() { + runTest("compiler/testData/codegen/box/initializers/files/simple.kt"); + } + + @Test + @TestMetadata("simpleMultiModule.kt") + public void testSimpleMultiModule() { + runTest("compiler/testData/codegen/box/initializers/files/simpleMultiModule.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/inline") + @TestDataPath("$PROJECT_ROOT") + public class Inline { + @Test + public void testAllFilesPresentInInline() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inline"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("changingCapturedLocal.kt") + public void testChangingCapturedLocal() { + runTest("compiler/testData/codegen/box/inline/changingCapturedLocal.kt"); + } + + @Test + @TestMetadata("classDeclarationInsideInline.kt") + public void testClassDeclarationInsideInline() { + runTest("compiler/testData/codegen/box/inline/classDeclarationInsideInline.kt"); + } + + @Test + @TestMetadata("coercionToUnit.kt") + public void testCoercionToUnit() { + runTest("compiler/testData/codegen/box/inline/coercionToUnit.kt"); + } + + @Test + @TestMetadata("correctOrderFunctionReference.kt") + public void testCorrectOrderFunctionReference() { + runTest("compiler/testData/codegen/box/inline/correctOrderFunctionReference.kt"); + } + + @Test + @TestMetadata("defaultArgs.kt") + public void testDefaultArgs() { + runTest("compiler/testData/codegen/box/inline/defaultArgs.kt"); + } + + @Test + @TestMetadata("defaultArgsMultipleModules.kt") + public void testDefaultArgsMultipleModules() { + runTest("compiler/testData/codegen/box/inline/defaultArgsMultipleModules.kt"); + } + + @Test + @TestMetadata("genericFunctionReference.kt") + public void testGenericFunctionReference() { + runTest("compiler/testData/codegen/box/inline/genericFunctionReference.kt"); + } + + @Test + @TestMetadata("getClass.kt") + public void testGetClass() { + runTest("compiler/testData/codegen/box/inline/getClass.kt"); + } + + @Test + @TestMetadata("inline0.kt") + public void testInline0() { + runTest("compiler/testData/codegen/box/inline/inline0.kt"); + } + + @Test + @TestMetadata("inline1.kt") + public void testInline1() { + runTest("compiler/testData/codegen/box/inline/inline1.kt"); + } + + @Test + @TestMetadata("inline10.kt") + public void testInline10() { + runTest("compiler/testData/codegen/box/inline/inline10.kt"); + } + + @Test + @TestMetadata("inline11.kt") + public void testInline11() { + runTest("compiler/testData/codegen/box/inline/inline11.kt"); + } + + @Test + @TestMetadata("inline12.kt") + public void testInline12() { + runTest("compiler/testData/codegen/box/inline/inline12.kt"); + } + + @Test + @TestMetadata("inline13.kt") + public void testInline13() { + runTest("compiler/testData/codegen/box/inline/inline13.kt"); + } + + @Test + @TestMetadata("inline14.kt") + public void testInline14() { + runTest("compiler/testData/codegen/box/inline/inline14.kt"); + } + + @Test + @TestMetadata("inline15.kt") + public void testInline15() { + runTest("compiler/testData/codegen/box/inline/inline15.kt"); + } + + @Test + @TestMetadata("inline16.kt") + public void testInline16() { + runTest("compiler/testData/codegen/box/inline/inline16.kt"); + } + + @Test + @TestMetadata("inline17.kt") + public void testInline17() { + runTest("compiler/testData/codegen/box/inline/inline17.kt"); + } + + @Test + @TestMetadata("inline19.kt") + public void testInline19() { + runTest("compiler/testData/codegen/box/inline/inline19.kt"); + } + + @Test + @TestMetadata("inline2.kt") + public void testInline2() { + runTest("compiler/testData/codegen/box/inline/inline2.kt"); + } + + @Test + @TestMetadata("inline20.kt") + public void testInline20() { + runTest("compiler/testData/codegen/box/inline/inline20.kt"); + } + + @Test + @TestMetadata("inline21.kt") + public void testInline21() { + runTest("compiler/testData/codegen/box/inline/inline21.kt"); + } + + @Test + @TestMetadata("inline22.kt") + public void testInline22() { + runTest("compiler/testData/codegen/box/inline/inline22.kt"); + } + + @Test + @TestMetadata("inline23.kt") + public void testInline23() { + runTest("compiler/testData/codegen/box/inline/inline23.kt"); + } + + @Test + @TestMetadata("inline24.kt") + public void testInline24() { + runTest("compiler/testData/codegen/box/inline/inline24.kt"); + } + + @Test + @TestMetadata("inline25.kt") + public void testInline25() { + runTest("compiler/testData/codegen/box/inline/inline25.kt"); + } + + @Test + @TestMetadata("inline26.kt") + public void testInline26() { + runTest("compiler/testData/codegen/box/inline/inline26.kt"); + } + + @Test + @TestMetadata("inline3.kt") + public void testInline3() { + runTest("compiler/testData/codegen/box/inline/inline3.kt"); + } + + @Test + @TestMetadata("inline4.kt") + public void testInline4() { + runTest("compiler/testData/codegen/box/inline/inline4.kt"); + } + + @Test + @TestMetadata("inline5.kt") + public void testInline5() { + runTest("compiler/testData/codegen/box/inline/inline5.kt"); + } + + @Test + @TestMetadata("inline6.kt") + public void testInline6() { + runTest("compiler/testData/codegen/box/inline/inline6.kt"); + } + + @Test + @TestMetadata("inline7.kt") + public void testInline7() { + runTest("compiler/testData/codegen/box/inline/inline7.kt"); + } + + @Test + @TestMetadata("inline8.kt") + public void testInline8() { + runTest("compiler/testData/codegen/box/inline/inline8.kt"); + } + + @Test + @TestMetadata("inline9.kt") + public void testInline9() { + runTest("compiler/testData/codegen/box/inline/inline9.kt"); + } + + @Test + @TestMetadata("inlineCtor.kt") + public void testInlineCtor() { + runTest("compiler/testData/codegen/box/inline/inlineCtor.kt"); + } + + @Test + @TestMetadata("innerInlineFunCapturesOuter.kt") + public void testInnerInlineFunCapturesOuter() { + runTest("compiler/testData/codegen/box/inline/innerInlineFunCapturesOuter.kt"); + } + + @Test + @TestMetadata("lambdaAsAny.kt") + public void testLambdaAsAny() { + runTest("compiler/testData/codegen/box/inline/lambdaAsAny.kt"); + } + + @Test + @TestMetadata("lambdaInDefaultValue.kt") + public void testLambdaInDefaultValue() { + runTest("compiler/testData/codegen/box/inline/lambdaInDefaultValue.kt"); + } + + @Test + @TestMetadata("lateinitProperty.kt") + public void testLateinitProperty() { + runTest("compiler/testData/codegen/box/inline/lateinitProperty.kt"); + } + + @Test + @TestMetadata("localFunctionInInitializerBlock.kt") + public void testLocalFunctionInInitializerBlock() { + runTest("compiler/testData/codegen/box/inline/localFunctionInInitializerBlock.kt"); + } + + @Test + @TestMetadata("localObjectReturnedFromWhen.kt") + public void testLocalObjectReturnedFromWhen() { + runTest("compiler/testData/codegen/box/inline/localObjectReturnedFromWhen.kt"); + } + + @Test + @TestMetadata("propertyAccessorInline.kt") + public void testPropertyAccessorInline() { + runTest("compiler/testData/codegen/box/inline/propertyAccessorInline.kt"); + } + + @Test + @TestMetadata("redundantCoercionsCleaner.kt") + public void testRedundantCoercionsCleaner() { + runTest("compiler/testData/codegen/box/inline/redundantCoercionsCleaner.kt"); + } + + @Test + @TestMetadata("redundantCoercionsCleanerKT48876.kt") + public void testRedundantCoercionsCleanerKT48876() { + runTest("compiler/testData/codegen/box/inline/redundantCoercionsCleanerKT48876.kt"); + } + + @Test + @TestMetadata("redundantCoercionsCleanerKT49356.kt") + public void testRedundantCoercionsCleanerKT49356() { + runTest("compiler/testData/codegen/box/inline/redundantCoercionsCleanerKT49356.kt"); + } + + @Test + @TestMetadata("returnLocalClassFromBlock.kt") + public void testReturnLocalClassFromBlock() { + runTest("compiler/testData/codegen/box/inline/returnLocalClassFromBlock.kt"); + } + + @Test + @TestMetadata("sharedVar.kt") + public void testSharedVar() { + runTest("compiler/testData/codegen/box/inline/sharedVar.kt"); + } + + @Test + @TestMetadata("statementAsLastExprInBlock.kt") + public void testStatementAsLastExprInBlock() { + runTest("compiler/testData/codegen/box/inline/statementAsLastExprInBlock.kt"); + } + + @Test + @TestMetadata("twiceInlinedObject.kt") + public void testTwiceInlinedObject() { + runTest("compiler/testData/codegen/box/inline/twiceInlinedObject.kt"); + } + + @Test + @TestMetadata("typeSubstitutionInFakeOverride.kt") + public void testTypeSubstitutionInFakeOverride() { + runTest("compiler/testData/codegen/box/inline/typeSubstitutionInFakeOverride.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/inlineArgsInPlace") @TestDataPath("$PROJECT_ROOT") @@ -16646,6 +18900,40 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { } } + @Nested + @TestMetadata("compiler/testData/codegen/box/inlineClass") + @TestDataPath("$PROJECT_ROOT") + public class InlineClass { + @Test + public void testAllFilesPresentInInlineClass() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineClass"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("customEquals.kt") + public void testCustomEquals() { + runTest("compiler/testData/codegen/box/inlineClass/customEquals.kt"); + } + + @Test + @TestMetadata("defaultEquals.kt") + public void testDefaultEquals() { + runTest("compiler/testData/codegen/box/inlineClass/defaultEquals.kt"); + } + + @Test + @TestMetadata("nestedInlineClasses.kt") + public void testNestedInlineClasses() { + runTest("compiler/testData/codegen/box/inlineClass/nestedInlineClasses.kt"); + } + + @Test + @TestMetadata("secondaryConstructorWithGenerics.kt") + public void testSecondaryConstructorWithGenerics() { + runTest("compiler/testData/codegen/box/inlineClass/secondaryConstructorWithGenerics.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/inlineClasses") @TestDataPath("$PROJECT_ROOT") @@ -21568,6 +23856,88 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { } } + @Nested + @TestMetadata("compiler/testData/codegen/box/innerClass") + @TestDataPath("$PROJECT_ROOT") + public class InnerClass { + @Test + public void testAllFilesPresentInInnerClass() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/innerClass"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("doubleInner.kt") + public void testDoubleInner() { + runTest("compiler/testData/codegen/box/innerClass/doubleInner.kt"); + } + + @Test + @TestMetadata("generic.kt") + public void testGeneric() { + runTest("compiler/testData/codegen/box/innerClass/generic.kt"); + } + + @Test + @TestMetadata("getOuterVal.kt") + public void testGetOuterVal() { + runTest("compiler/testData/codegen/box/innerClass/getOuterVal.kt"); + } + + @Test + @TestMetadata("inheritanceMultipleModules1.kt") + public void testInheritanceMultipleModules1() { + runTest("compiler/testData/codegen/box/innerClass/inheritanceMultipleModules1.kt"); + } + + @Test + @TestMetadata("inheritanceMultipleModules2.kt") + public void testInheritanceMultipleModules2() { + runTest("compiler/testData/codegen/box/innerClass/inheritanceMultipleModules2.kt"); + } + + @Test + @TestMetadata("inheritanceMultipleModules3.kt") + public void testInheritanceMultipleModules3() { + runTest("compiler/testData/codegen/box/innerClass/inheritanceMultipleModules3.kt"); + } + + @Test + @TestMetadata("multipleModules.kt") + public void testMultipleModules() { + runTest("compiler/testData/codegen/box/innerClass/multipleModules.kt"); + } + + @Test + @TestMetadata("noPrimaryConstructor.kt") + public void testNoPrimaryConstructor() { + runTest("compiler/testData/codegen/box/innerClass/noPrimaryConstructor.kt"); + } + + @Test + @TestMetadata("qualifiedThis.kt") + public void testQualifiedThis() { + runTest("compiler/testData/codegen/box/innerClass/qualifiedThis.kt"); + } + + @Test + @TestMetadata("secondaryConstructor.kt") + public void testSecondaryConstructor() { + runTest("compiler/testData/codegen/box/innerClass/secondaryConstructor.kt"); + } + + @Test + @TestMetadata("simple.kt") + public void testSimple() { + runTest("compiler/testData/codegen/box/innerClass/simple.kt"); + } + + @Test + @TestMetadata("superOuter.kt") + public void testSuperOuter() { + runTest("compiler/testData/codegen/box/innerClass/superOuter.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/innerNested") @TestDataPath("$PROJECT_ROOT") @@ -21920,6 +24290,40 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { } } + @Nested + @TestMetadata("compiler/testData/codegen/box/interfaceCallsNCasts") + @TestDataPath("$PROJECT_ROOT") + public class InterfaceCallsNCasts { + @Test + public void testAllFilesPresentInInterfaceCallsNCasts() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/interfaceCallsNCasts"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("conservativeItable.kt") + public void testConservativeItable() { + runTest("compiler/testData/codegen/box/interfaceCallsNCasts/conservativeItable.kt"); + } + + @Test + @TestMetadata("diamond.kt") + public void testDiamond() { + runTest("compiler/testData/codegen/box/interfaceCallsNCasts/diamond.kt"); + } + + @Test + @TestMetadata("finalMethod.kt") + public void testFinalMethod() { + runTest("compiler/testData/codegen/box/interfaceCallsNCasts/finalMethod.kt"); + } + + @Test + @TestMetadata("interface0.kt") + public void testInterface0() { + runTest("compiler/testData/codegen/box/interfaceCallsNCasts/interface0.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/intrinsics") @TestDataPath("$PROJECT_ROOT") @@ -23242,6 +25646,80 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { } } + @Nested + @TestMetadata("compiler/testData/codegen/box/kclass") + @TestDataPath("$PROJECT_ROOT") + public class Kclass { + @Test + public void testAllFilesPresentInKclass() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/kclass"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("kClassEnumArgument.kt") + public void testKClassEnumArgument() { + runTest("compiler/testData/codegen/box/kclass/kClassEnumArgument.kt"); + } + + @Test + @TestMetadata("kclass1.kt") + public void testKclass1() { + runTest("compiler/testData/codegen/box/kclass/kclass1.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/ktype") + @TestDataPath("$PROJECT_ROOT") + public class Ktype { + @Test + public void testAllFilesPresentInKtype() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ktype"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("ktype1_basics1.kt") + public void testKtype1_basics1() { + runTest("compiler/testData/codegen/box/ktype/ktype1_basics1.kt"); + } + + @Test + @TestMetadata("ktype1_inner.kt") + public void testKtype1_inner() { + runTest("compiler/testData/codegen/box/ktype/ktype1_inner.kt"); + } + + @Test + @TestMetadata("nonReified_class.kt") + public void testNonReified_class() { + runTest("compiler/testData/codegen/box/ktype/nonReified_class.kt"); + } + + @Test + @TestMetadata("nonReified_equality.kt") + public void testNonReified_equality() { + runTest("compiler/testData/codegen/box/ktype/nonReified_equality.kt"); + } + + @Test + @TestMetadata("nonReified_fun.kt") + public void testNonReified_fun() { + runTest("compiler/testData/codegen/box/ktype/nonReified_fun.kt"); + } + + @Test + @TestMetadata("nonReified_recursionInReified.kt") + public void testNonReified_recursionInReified() { + runTest("compiler/testData/codegen/box/ktype/nonReified_recursionInReified.kt"); + } + + @Test + @TestMetadata("nonReified_reifiedUpperBound.kt") + public void testNonReified_reifiedUpperBound() { + runTest("compiler/testData/codegen/box/ktype/nonReified_reifiedUpperBound.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/labels") @TestDataPath("$PROJECT_ROOT") @@ -23300,6 +25778,188 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { } } + @Nested + @TestMetadata("compiler/testData/codegen/box/lambda") + @TestDataPath("$PROJECT_ROOT") + public class Lambda { + @Test + public void testAllFilesPresentInLambda() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/lambda"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("lambda1.kt") + public void testLambda1() { + runTest("compiler/testData/codegen/box/lambda/lambda1.kt"); + } + + @Test + @TestMetadata("lambda10.kt") + public void testLambda10() { + runTest("compiler/testData/codegen/box/lambda/lambda10.kt"); + } + + @Test + @TestMetadata("lambda11.kt") + public void testLambda11() { + runTest("compiler/testData/codegen/box/lambda/lambda11.kt"); + } + + @Test + @TestMetadata("lambda12.kt") + public void testLambda12() { + runTest("compiler/testData/codegen/box/lambda/lambda12.kt"); + } + + @Test + @TestMetadata("lambda13.kt") + public void testLambda13() { + runTest("compiler/testData/codegen/box/lambda/lambda13.kt"); + } + + @Test + @TestMetadata("lambda14.kt") + public void testLambda14() { + runTest("compiler/testData/codegen/box/lambda/lambda14.kt"); + } + + @Test + @TestMetadata("lambda2.kt") + public void testLambda2() { + runTest("compiler/testData/codegen/box/lambda/lambda2.kt"); + } + + @Test + @TestMetadata("lambda3.kt") + public void testLambda3() { + runTest("compiler/testData/codegen/box/lambda/lambda3.kt"); + } + + @Test + @TestMetadata("lambda4.kt") + public void testLambda4() { + runTest("compiler/testData/codegen/box/lambda/lambda4.kt"); + } + + @Test + @TestMetadata("lambda5.kt") + public void testLambda5() { + runTest("compiler/testData/codegen/box/lambda/lambda5.kt"); + } + + @Test + @TestMetadata("lambda6.kt") + public void testLambda6() { + runTest("compiler/testData/codegen/box/lambda/lambda6.kt"); + } + + @Test + @TestMetadata("lambda7.kt") + public void testLambda7() { + runTest("compiler/testData/codegen/box/lambda/lambda7.kt"); + } + + @Test + @TestMetadata("lambda8.kt") + public void testLambda8() { + runTest("compiler/testData/codegen/box/lambda/lambda8.kt"); + } + + @Test + @TestMetadata("lambda9.kt") + public void testLambda9() { + runTest("compiler/testData/codegen/box/lambda/lambda9.kt"); + } + + @Test + @TestMetadata("lambda_kt49360_trivial.kt") + public void testLambda_kt49360_trivial() { + runTest("compiler/testData/codegen/box/lambda/lambda_kt49360_trivial.kt"); + } + + @Test + @TestMetadata("lambda_kt49360_withFlow.kt") + public void testLambda_kt49360_withFlow() { + runTest("compiler/testData/codegen/box/lambda/lambda_kt49360_withFlow.kt"); + } + + @Test + @TestMetadata("lambda_kt49360_wrapBlock.kt") + public void testLambda_kt49360_wrapBlock() { + runTest("compiler/testData/codegen/box/lambda/lambda_kt49360_wrapBlock.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/lateinit") + @TestDataPath("$PROJECT_ROOT") + public class Lateinit { + @Test + public void testAllFilesPresentInLateinit() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/lateinit"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("globalIsInitialized.kt") + public void testGlobalIsInitialized() { + runTest("compiler/testData/codegen/box/lateinit/globalIsInitialized.kt"); + } + + @Test + @TestMetadata("inBaseClass.kt") + public void testInBaseClass() { + runTest("compiler/testData/codegen/box/lateinit/inBaseClass.kt"); + } + + @Test + @TestMetadata("initialized.kt") + public void testInitialized() { + runTest("compiler/testData/codegen/box/lateinit/initialized.kt"); + } + + @Test + @TestMetadata("innerIsInitialized.kt") + public void testInnerIsInitialized() { + runTest("compiler/testData/codegen/box/lateinit/innerIsInitialized.kt"); + } + + @Test + @TestMetadata("isInitialized.kt") + public void testIsInitialized() { + runTest("compiler/testData/codegen/box/lateinit/isInitialized.kt"); + } + + @Test + @TestMetadata("localCapturedInitialized.kt") + public void testLocalCapturedInitialized() { + runTest("compiler/testData/codegen/box/lateinit/localCapturedInitialized.kt"); + } + + @Test + @TestMetadata("localCapturedNotInitialized.kt") + public void testLocalCapturedNotInitialized() { + runTest("compiler/testData/codegen/box/lateinit/localCapturedNotInitialized.kt"); + } + + @Test + @TestMetadata("localInitialized.kt") + public void testLocalInitialized() { + runTest("compiler/testData/codegen/box/lateinit/localInitialized.kt"); + } + + @Test + @TestMetadata("localNotInitialized.kt") + public void testLocalNotInitialized() { + runTest("compiler/testData/codegen/box/lateinit/localNotInitialized.kt"); + } + + @Test + @TestMetadata("notInitialized.kt") + public void testNotInitialized() { + runTest("compiler/testData/codegen/box/lateinit/notInitialized.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/lazyCodegen") @TestDataPath("$PROJECT_ROOT") @@ -23428,6 +26088,98 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { } } + @Nested + @TestMetadata("compiler/testData/codegen/box/literals") + @TestDataPath("$PROJECT_ROOT") + public class Literals { + @Test + public void testAllFilesPresentInLiterals() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/literals"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("listof1.kt") + public void testListof1() { + runTest("compiler/testData/codegen/box/literals/listof1.kt"); + } + + @Test + @TestMetadata("strdedup1.kt") + public void testStrdedup1() { + runTest("compiler/testData/codegen/box/literals/strdedup1.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/localClass") + @TestDataPath("$PROJECT_ROOT") + public class LocalClass { + @Test + public void testAllFilesPresentInLocalClass() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/localClass"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("innerTakesCapturedFromOuter.kt") + public void testInnerTakesCapturedFromOuter() { + runTest("compiler/testData/codegen/box/localClass/innerTakesCapturedFromOuter.kt"); + } + + @Test + @TestMetadata("innerWithCapture.kt") + public void testInnerWithCapture() { + runTest("compiler/testData/codegen/box/localClass/innerWithCapture.kt"); + } + + @Test + @TestMetadata("localFunctionCallFromLocalClass.kt") + public void testLocalFunctionCallFromLocalClass() { + runTest("compiler/testData/codegen/box/localClass/localFunctionCallFromLocalClass.kt"); + } + + @Test + @TestMetadata("localFunctionInLocalClass.kt") + public void testLocalFunctionInLocalClass() { + runTest("compiler/testData/codegen/box/localClass/localFunctionInLocalClass.kt"); + } + + @Test + @TestMetadata("localHierarchy.kt") + public void testLocalHierarchy() { + runTest("compiler/testData/codegen/box/localClass/localHierarchy.kt"); + } + + @Test + @TestMetadata("noPrimaryConstructor.kt") + public void testNoPrimaryConstructor() { + runTest("compiler/testData/codegen/box/localClass/noPrimaryConstructor.kt"); + } + + @Test + @TestMetadata("objectExpressionInInitializer.kt") + public void testObjectExpressionInInitializer() { + runTest("compiler/testData/codegen/box/localClass/objectExpressionInInitializer.kt"); + } + + @Test + @TestMetadata("objectExpressionInProperty.kt") + public void testObjectExpressionInProperty() { + runTest("compiler/testData/codegen/box/localClass/objectExpressionInProperty.kt"); + } + + @Test + @TestMetadata("tryCatch.kt") + public void testTryCatch() { + runTest("compiler/testData/codegen/box/localClass/tryCatch.kt"); + } + + @Test + @TestMetadata("virtualCallFromConstructor.kt") + public void testVirtualCallFromConstructor() { + runTest("compiler/testData/codegen/box/localClass/virtualCallFromConstructor.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/localClasses") @TestDataPath("$PROJECT_ROOT") @@ -23678,6 +26430,38 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { } } + @Nested + @TestMetadata("compiler/testData/codegen/box/localEscapeAnalysis") + @TestDataPath("$PROJECT_ROOT") + public class LocalEscapeAnalysis { + @Test + public void testAllFilesPresentInLocalEscapeAnalysis() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/localEscapeAnalysis"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("arraysFieldWrite.kt") + public void testArraysFieldWrite() { + runTest("compiler/testData/codegen/box/localEscapeAnalysis/arraysFieldWrite.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/lower") + @TestDataPath("$PROJECT_ROOT") + public class Lower { + @Test + public void testAllFilesPresentInLower() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/lower"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("localDelegatedProperty.kt") + public void testLocalDelegatedProperty() { + runTest("compiler/testData/codegen/box/lower/localDelegatedProperty.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/mangling") @TestDataPath("$PROJECT_ROOT") @@ -23705,6 +26489,12 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/mangling/internalOverrideSuperCall.kt"); } + @Test + @TestMetadata("multipleConstructors.kt") + public void testMultipleConstructors() { + runTest("compiler/testData/codegen/box/mangling/multipleConstructors.kt"); + } + @Test @TestMetadata("parentheses.kt") public void testParentheses() { @@ -24662,6 +27452,98 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { } } + @Nested + @TestMetadata("compiler/testData/codegen/box/object") + @TestDataPath("$PROJECT_ROOT") + public class Object { + @Test + public void testAllFilesPresentInObject() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/object"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("constructor0.kt") + public void testConstructor0() { + runTest("compiler/testData/codegen/box/object/constructor0.kt"); + } + + @Test + @TestMetadata("fields.kt") + public void testFields() { + runTest("compiler/testData/codegen/box/object/fields.kt"); + } + + @Test + @TestMetadata("fields1.kt") + public void testFields1() { + runTest("compiler/testData/codegen/box/object/fields1.kt"); + } + + @Test + @TestMetadata("fields2.kt") + public void testFields2() { + runTest("compiler/testData/codegen/box/object/fields2.kt"); + } + + @Test + @TestMetadata("globalInitializer.kt") + public void testGlobalInitializer() { + runTest("compiler/testData/codegen/box/object/globalInitializer.kt"); + } + + @Test + @TestMetadata("init0.kt") + public void testInit0() { + runTest("compiler/testData/codegen/box/object/init0.kt"); + } + + @Test + @TestMetadata("initialization.kt") + public void testInitialization() { + runTest("compiler/testData/codegen/box/object/initialization.kt"); + } + + @Test + @TestMetadata("initialization1.kt") + public void testInitialization1() { + runTest("compiler/testData/codegen/box/object/initialization1.kt"); + } + + @Test + @TestMetadata("method_call.kt") + public void testMethod_call() { + runTest("compiler/testData/codegen/box/object/method_call.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/objectExpression") + @TestDataPath("$PROJECT_ROOT") + public class ObjectExpression { + @Test + public void testAllFilesPresentInObjectExpression() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/objectExpression"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("expr1.kt") + public void testExpr1() { + runTest("compiler/testData/codegen/box/objectExpression/expr1.kt"); + } + + @Test + @TestMetadata("expr2.kt") + public void testExpr2() { + runTest("compiler/testData/codegen/box/objectExpression/expr2.kt"); + } + + @Test + @TestMetadata("expr3.kt") + public void testExpr3() { + runTest("compiler/testData/codegen/box/objectExpression/expr3.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/objectIntrinsics") @TestDataPath("$PROJECT_ROOT") @@ -27466,6 +30348,64 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { } } + @Nested + @TestMetadata("compiler/testData/codegen/box/propertyCallableReference") + @TestDataPath("$PROJECT_ROOT") + public class PropertyCallableReference { + @Test + public void testAllFilesPresentInPropertyCallableReference() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/propertyCallableReference"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("dynamicReceiver.kt") + public void testDynamicReceiver() { + runTest("compiler/testData/codegen/box/propertyCallableReference/dynamicReceiver.kt"); + } + + @Test + @TestMetadata("multipleModules.kt") + public void testMultipleModules() { + runTest("compiler/testData/codegen/box/propertyCallableReference/multipleModules.kt"); + } + + @Test + @TestMetadata("valClass.kt") + public void testValClass() { + runTest("compiler/testData/codegen/box/propertyCallableReference/valClass.kt"); + } + + @Test + @TestMetadata("valExtension.kt") + public void testValExtension() { + runTest("compiler/testData/codegen/box/propertyCallableReference/valExtension.kt"); + } + + @Test + @TestMetadata("valModule.kt") + public void testValModule() { + runTest("compiler/testData/codegen/box/propertyCallableReference/valModule.kt"); + } + + @Test + @TestMetadata("varClass.kt") + public void testVarClass() { + runTest("compiler/testData/codegen/box/propertyCallableReference/varClass.kt"); + } + + @Test + @TestMetadata("varExtension.kt") + public void testVarExtension() { + runTest("compiler/testData/codegen/box/propertyCallableReference/varExtension.kt"); + } + + @Test + @TestMetadata("varModule.kt") + public void testVarModule() { + runTest("compiler/testData/codegen/box/propertyCallableReference/varModule.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/publishedApi") @TestDataPath("$PROJECT_ROOT") @@ -35182,6 +38122,58 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { } } + @Nested + @TestMetadata("compiler/testData/codegen/box/serialization") + @TestDataPath("$PROJECT_ROOT") + public class Serialization { + @Test + public void testAllFilesPresentInSerialization() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/serialization"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("deserializedMembers.kt") + public void testDeserializedMembers() { + runTest("compiler/testData/codegen/box/serialization/deserializedMembers.kt"); + } + + @Test + @TestMetadata("serializedCatch.kt") + public void testSerializedCatch() { + runTest("compiler/testData/codegen/box/serialization/serializedCatch.kt"); + } + + @Test + @TestMetadata("serializedCharConstant.kt") + public void testSerializedCharConstant() { + runTest("compiler/testData/codegen/box/serialization/serializedCharConstant.kt"); + } + + @Test + @TestMetadata("serializedDefaultArgs.kt") + public void testSerializedDefaultArgs() { + runTest("compiler/testData/codegen/box/serialization/serializedDefaultArgs.kt"); + } + + @Test + @TestMetadata("serializedDoWhile.kt") + public void testSerializedDoWhile() { + runTest("compiler/testData/codegen/box/serialization/serializedDoWhile.kt"); + } + + @Test + @TestMetadata("serializedEnumOrdinal.kt") + public void testSerializedEnumOrdinal() { + runTest("compiler/testData/codegen/box/serialization/serializedEnumOrdinal.kt"); + } + + @Test + @TestMetadata("serializedVararg.kt") + public void testSerializedVararg() { + runTest("compiler/testData/codegen/box/serialization/serializedVararg.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/size") @TestDataPath("$PROJECT_ROOT") @@ -35680,6 +38672,22 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { } } + @Nested + @TestMetadata("compiler/testData/codegen/box/stringTrim") + @TestDataPath("$PROJECT_ROOT") + public class StringTrim { + @Test + public void testAllFilesPresentInStringTrim() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/stringTrim"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("stringTrim.kt") + public void testStringTrim() { + runTest("compiler/testData/codegen/box/stringTrim/stringTrim.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/strings") @TestDataPath("$PROJECT_ROOT") @@ -36740,6 +39748,142 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { } } + @Nested + @TestMetadata("compiler/testData/codegen/box/try") + @TestDataPath("$PROJECT_ROOT") + public class Try { + @Test + public void testAllFilesPresentInTry() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/try"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("catch3.kt") + public void testCatch3() { + runTest("compiler/testData/codegen/box/try/catch3.kt"); + } + + @Test + @TestMetadata("catch4.kt") + public void testCatch4() { + runTest("compiler/testData/codegen/box/try/catch4.kt"); + } + + @Test + @TestMetadata("catch5.kt") + public void testCatch5() { + runTest("compiler/testData/codegen/box/try/catch5.kt"); + } + + @Test + @TestMetadata("catch6.kt") + public void testCatch6() { + runTest("compiler/testData/codegen/box/try/catch6.kt"); + } + + @Test + @TestMetadata("catch8.kt") + public void testCatch8() { + runTest("compiler/testData/codegen/box/try/catch8.kt"); + } + + @Test + @TestMetadata("finally1.kt") + public void testFinally1() { + runTest("compiler/testData/codegen/box/try/finally1.kt"); + } + + @Test + @TestMetadata("finally10.kt") + public void testFinally10() { + runTest("compiler/testData/codegen/box/try/finally10.kt"); + } + + @Test + @TestMetadata("finally11.kt") + public void testFinally11() { + runTest("compiler/testData/codegen/box/try/finally11.kt"); + } + + @Test + @TestMetadata("finally2.kt") + public void testFinally2() { + runTest("compiler/testData/codegen/box/try/finally2.kt"); + } + + @Test + @TestMetadata("finally3.kt") + public void testFinally3() { + runTest("compiler/testData/codegen/box/try/finally3.kt"); + } + + @Test + @TestMetadata("finally4.kt") + public void testFinally4() { + runTest("compiler/testData/codegen/box/try/finally4.kt"); + } + + @Test + @TestMetadata("finally5.kt") + public void testFinally5() { + runTest("compiler/testData/codegen/box/try/finally5.kt"); + } + + @Test + @TestMetadata("finally6.kt") + public void testFinally6() { + runTest("compiler/testData/codegen/box/try/finally6.kt"); + } + + @Test + @TestMetadata("finally7.kt") + public void testFinally7() { + runTest("compiler/testData/codegen/box/try/finally7.kt"); + } + + @Test + @TestMetadata("finally8.kt") + public void testFinally8() { + runTest("compiler/testData/codegen/box/try/finally8.kt"); + } + + @Test + @TestMetadata("finally9.kt") + public void testFinally9() { + runTest("compiler/testData/codegen/box/try/finally9.kt"); + } + + @Test + @TestMetadata("returnsDifferentTypes.kt") + public void testReturnsDifferentTypes() { + runTest("compiler/testData/codegen/box/try/returnsDifferentTypes.kt"); + } + + @Test + @TestMetadata("try1.kt") + public void testTry1() { + runTest("compiler/testData/codegen/box/try/try1.kt"); + } + + @Test + @TestMetadata("try2.kt") + public void testTry2() { + runTest("compiler/testData/codegen/box/try/try2.kt"); + } + + @Test + @TestMetadata("try3.kt") + public void testTry3() { + runTest("compiler/testData/codegen/box/try/try3.kt"); + } + + @Test + @TestMetadata("try4.kt") + public void testTry4() { + runTest("compiler/testData/codegen/box/try/try4.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/typeInfo") @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 9a06ad5a7a4..df0923d5f6a 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 @@ -41,6 +41,12 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes runTest("compiler/testData/codegen/box/annotations/annotationWithDefaultArgInDifferentModule.kt"); } + @Test + @TestMetadata("annotations0.kt") + public void testAnnotations0() { + runTest("compiler/testData/codegen/box/annotations/annotations0.kt"); + } + @Test @TestMetadata("genericAnnotations.kt") public void testGenericAnnotations() { @@ -318,6 +324,82 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes } } + @Nested + @TestMetadata("compiler/testData/codegen/box/arithmetic") + @TestDataPath("$PROJECT_ROOT") + public class Arithmetic { + @Test + public void testAllFilesPresentInArithmetic() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/arithmetic"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @Test + @TestMetadata("basic_charConversions.kt") + public void testBasic_charConversions() { + runTest("compiler/testData/codegen/box/arithmetic/basic_charConversions.kt"); + } + + @Test + @TestMetadata("basic_charCornerCases.kt") + public void testBasic_charCornerCases() { + runTest("compiler/testData/codegen/box/arithmetic/basic_charCornerCases.kt"); + } + + @Test + @TestMetadata("basic_compareIntToFloat.kt") + public void testBasic_compareIntToFloat() { + runTest("compiler/testData/codegen/box/arithmetic/basic_compareIntToFloat.kt"); + } + + @Test + @TestMetadata("basic_doubleBasic.kt") + public void testBasic_doubleBasic() { + runTest("compiler/testData/codegen/box/arithmetic/basic_doubleBasic.kt"); + } + + @Test + @TestMetadata("basic_integralToFloat.kt") + public void testBasic_integralToFloat() { + runTest("compiler/testData/codegen/box/arithmetic/basic_integralToFloat.kt"); + } + + @Test + @TestMetadata("basic_kt37412.kt") + public void testBasic_kt37412() { + runTest("compiler/testData/codegen/box/arithmetic/basic_kt37412.kt"); + } + + @Test + @TestMetadata("basic_selfComparison.kt") + public void testBasic_selfComparison() { + runTest("compiler/testData/codegen/box/arithmetic/basic_selfComparison.kt"); + } + + @Test + @TestMetadata("basic_shifts.kt") + public void testBasic_shifts() { + runTest("compiler/testData/codegen/box/arithmetic/basic_shifts.kt"); + } + + @Test + @TestMetadata("basic_uintTests.kt") + public void testBasic_uintTests() { + runTest("compiler/testData/codegen/box/arithmetic/basic_uintTests.kt"); + } + + @Test + @TestMetadata("division.kt") + public void testDivision() { + runTest("compiler/testData/codegen/box/arithmetic/division.kt"); + } + + @Test + @TestMetadata("github1856.kt") + public void testGithub1856() { + runTest("compiler/testData/codegen/box/arithmetic/github1856.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/arrays") @TestDataPath("$PROJECT_ROOT") @@ -972,6 +1054,302 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes } } + @Nested + @TestMetadata("compiler/testData/codegen/box/basics") + @TestDataPath("$PROJECT_ROOT") + public class Basics { + @Test + public void testAllFilesPresentInBasics() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/basics"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @Test + @TestMetadata("array_to_any.kt") + public void testArray_to_any() { + runTest("compiler/testData/codegen/box/basics/array_to_any.kt"); + } + + @Test + @TestMetadata("canonical_name.kt") + public void testCanonical_name() { + runTest("compiler/testData/codegen/box/basics/canonical_name.kt"); + } + + @Test + @TestMetadata("cast_null.kt") + public void testCast_null() { + runTest("compiler/testData/codegen/box/basics/cast_null.kt"); + } + + @Test + @TestMetadata("cast_simple.kt") + public void testCast_simple() { + runTest("compiler/testData/codegen/box/basics/cast_simple.kt"); + } + + @Test + @TestMetadata("check_type.kt") + public void testCheck_type() { + runTest("compiler/testData/codegen/box/basics/check_type.kt"); + } + + @Test + @TestMetadata("companion.kt") + public void testCompanion() { + runTest("compiler/testData/codegen/box/basics/companion.kt"); + } + + @Test + @TestMetadata("concatenation.kt") + public void testConcatenation() { + runTest("compiler/testData/codegen/box/basics/concatenation.kt"); + } + + @Test + @TestMetadata("const_infinity.kt") + public void testConst_infinity() { + runTest("compiler/testData/codegen/box/basics/const_infinity.kt"); + } + + @Test + @TestMetadata("expression_as_statement.kt") + public void testExpression_as_statement() { + runTest("compiler/testData/codegen/box/basics/expression_as_statement.kt"); + } + + @Test + @TestMetadata("k42000_1.kt") + public void testK42000_1() { + runTest("compiler/testData/codegen/box/basics/k42000_1.kt"); + } + + @Test + @TestMetadata("k42000_2.kt") + public void testK42000_2() { + runTest("compiler/testData/codegen/box/basics/k42000_2.kt"); + } + + @Test + @TestMetadata("local_variable.kt") + public void testLocal_variable() { + runTest("compiler/testData/codegen/box/basics/local_variable.kt"); + } + + @Test + @TestMetadata("null_check.kt") + public void testNull_check() { + runTest("compiler/testData/codegen/box/basics/null_check.kt"); + } + + @Test + @TestMetadata("safe_cast.kt") + public void testSafe_cast() { + runTest("compiler/testData/codegen/box/basics/safe_cast.kt"); + } + + @Test + @TestMetadata("spread_operator_0.kt") + public void testSpread_operator_0() { + runTest("compiler/testData/codegen/box/basics/spread_operator_0.kt"); + } + + @Test + @TestMetadata("statements0.kt") + public void testStatements0() { + runTest("compiler/testData/codegen/box/basics/statements0.kt"); + } + + @Test + @TestMetadata("superFunCall.kt") + public void testSuperFunCall() { + runTest("compiler/testData/codegen/box/basics/superFunCall.kt"); + } + + @Test + @TestMetadata("superGetterCall.kt") + public void testSuperGetterCall() { + runTest("compiler/testData/codegen/box/basics/superGetterCall.kt"); + } + + @Test + @TestMetadata("superSetterCall.kt") + public void testSuperSetterCall() { + runTest("compiler/testData/codegen/box/basics/superSetterCall.kt"); + } + + @Test + @TestMetadata("typealias1.kt") + public void testTypealias1() { + runTest("compiler/testData/codegen/box/basics/typealias1.kt"); + } + + @Test + @TestMetadata("unchecked_cast1.kt") + public void testUnchecked_cast1() { + runTest("compiler/testData/codegen/box/basics/unchecked_cast1.kt"); + } + + @Test + @TestMetadata("unchecked_cast2.kt") + public void testUnchecked_cast2() { + runTest("compiler/testData/codegen/box/basics/unchecked_cast2.kt"); + } + + @Test + @TestMetadata("unchecked_cast3.kt") + public void testUnchecked_cast3() { + runTest("compiler/testData/codegen/box/basics/unchecked_cast3.kt"); + } + + @Test + @TestMetadata("unchecked_cast4.kt") + public void testUnchecked_cast4() { + runTest("compiler/testData/codegen/box/basics/unchecked_cast4.kt"); + } + + @Test + @TestMetadata("unit1.kt") + public void testUnit1() { + runTest("compiler/testData/codegen/box/basics/unit1.kt"); + } + + @Test + @TestMetadata("unit2.kt") + public void testUnit2() { + runTest("compiler/testData/codegen/box/basics/unit2.kt"); + } + + @Test + @TestMetadata("unit3.kt") + public void testUnit3() { + runTest("compiler/testData/codegen/box/basics/unit3.kt"); + } + + @Test + @TestMetadata("unit4.kt") + public void testUnit4() { + runTest("compiler/testData/codegen/box/basics/unit4.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/bce") + @TestDataPath("$PROJECT_ROOT") + public class Bce { + @Test + public void testAllFilesPresentInBce() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/bce"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @Test + @TestMetadata("bceCases.kt") + public void testBceCases() { + runTest("compiler/testData/codegen/box/bce/bceCases.kt"); + } + + @Test + @TestMetadata("customGetter.kt") + public void testCustomGetter() { + runTest("compiler/testData/codegen/box/bce/customGetter.kt"); + } + + @Test + @TestMetadata("delegatedProperty.kt") + public void testDelegatedProperty() { + runTest("compiler/testData/codegen/box/bce/delegatedProperty.kt"); + } + + @Test + @TestMetadata("differentArrays.kt") + public void testDifferentArrays() { + runTest("compiler/testData/codegen/box/bce/differentArrays.kt"); + } + + @Test + @TestMetadata("differentObjects.kt") + public void testDifferentObjects() { + runTest("compiler/testData/codegen/box/bce/differentObjects.kt"); + } + + @Test + @TestMetadata("forDownToSize.kt") + public void testForDownToSize() { + runTest("compiler/testData/codegen/box/bce/forDownToSize.kt"); + } + + @Test + @TestMetadata("forDownToWithStep.kt") + public void testForDownToWithStep() { + runTest("compiler/testData/codegen/box/bce/forDownToWithStep.kt"); + } + + @Test + @TestMetadata("forEachIndexedTest.kt") + public void testForEachIndexedTest() { + runTest("compiler/testData/codegen/box/bce/forEachIndexedTest.kt"); + } + + @Test + @TestMetadata("forEachIndicies.kt") + public void testForEachIndicies() { + runTest("compiler/testData/codegen/box/bce/forEachIndicies.kt"); + } + + @Test + @TestMetadata("forIndiciesWithStep.kt") + public void testForIndiciesWithStep() { + runTest("compiler/testData/codegen/box/bce/forIndiciesWithStep.kt"); + } + + @Test + @TestMetadata("forRangeToSize.kt") + public void testForRangeToSize() { + runTest("compiler/testData/codegen/box/bce/forRangeToSize.kt"); + } + + @Test + @TestMetadata("forRangeToWithStep.kt") + public void testForRangeToWithStep() { + runTest("compiler/testData/codegen/box/bce/forRangeToWithStep.kt"); + } + + @Test + @TestMetadata("forReversed.kt") + public void testForReversed() { + runTest("compiler/testData/codegen/box/bce/forReversed.kt"); + } + + @Test + @TestMetadata("forUntilSize.kt") + public void testForUntilSize() { + runTest("compiler/testData/codegen/box/bce/forUntilSize.kt"); + } + + @Test + @TestMetadata("forUntilWithStep.kt") + public void testForUntilWithStep() { + runTest("compiler/testData/codegen/box/bce/forUntilWithStep.kt"); + } + + @Test + @TestMetadata("forWithIndex.kt") + public void testForWithIndex() { + runTest("compiler/testData/codegen/box/bce/forWithIndex.kt"); + } + + @Test + @TestMetadata("inheritance.kt") + public void testInheritance() { + runTest("compiler/testData/codegen/box/bce/inheritance.kt"); + } + + @Test + @TestMetadata("withGetter.kt") + public void testWithGetter() { + runTest("compiler/testData/codegen/box/bce/withGetter.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/binaryOp") @TestDataPath("$PROJECT_ROOT") @@ -1138,6 +1516,124 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes } } + @Nested + @TestMetadata("compiler/testData/codegen/box/boxing") + @TestDataPath("$PROJECT_ROOT") + public class Boxing { + @Test + public void testAllFilesPresentInBoxing() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/boxing"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @Test + @TestMetadata("box_cache0.kt") + public void testBox_cache0() { + runTest("compiler/testData/codegen/box/boxing/box_cache0.kt"); + } + + @Test + @TestMetadata("boxing0.kt") + public void testBoxing0() { + runTest("compiler/testData/codegen/box/boxing/boxing0.kt"); + } + + @Test + @TestMetadata("boxing1.kt") + public void testBoxing1() { + runTest("compiler/testData/codegen/box/boxing/boxing1.kt"); + } + + @Test + @TestMetadata("boxing10.kt") + public void testBoxing10() { + runTest("compiler/testData/codegen/box/boxing/boxing10.kt"); + } + + @Test + @TestMetadata("boxing11.kt") + public void testBoxing11() { + runTest("compiler/testData/codegen/box/boxing/boxing11.kt"); + } + + @Test + @TestMetadata("boxing12.kt") + public void testBoxing12() { + runTest("compiler/testData/codegen/box/boxing/boxing12.kt"); + } + + @Test + @TestMetadata("boxing13.kt") + public void testBoxing13() { + runTest("compiler/testData/codegen/box/boxing/boxing13.kt"); + } + + @Test + @TestMetadata("boxing14.kt") + public void testBoxing14() { + runTest("compiler/testData/codegen/box/boxing/boxing14.kt"); + } + + @Test + @TestMetadata("boxing15.kt") + public void testBoxing15() { + runTest("compiler/testData/codegen/box/boxing/boxing15.kt"); + } + + @Test + @TestMetadata("boxing2.kt") + public void testBoxing2() { + runTest("compiler/testData/codegen/box/boxing/boxing2.kt"); + } + + @Test + @TestMetadata("boxing3.kt") + public void testBoxing3() { + runTest("compiler/testData/codegen/box/boxing/boxing3.kt"); + } + + @Test + @TestMetadata("boxing4.kt") + public void testBoxing4() { + runTest("compiler/testData/codegen/box/boxing/boxing4.kt"); + } + + @Test + @TestMetadata("boxing5.kt") + public void testBoxing5() { + runTest("compiler/testData/codegen/box/boxing/boxing5.kt"); + } + + @Test + @TestMetadata("boxing6.kt") + public void testBoxing6() { + runTest("compiler/testData/codegen/box/boxing/boxing6.kt"); + } + + @Test + @TestMetadata("boxing7.kt") + public void testBoxing7() { + runTest("compiler/testData/codegen/box/boxing/boxing7.kt"); + } + + @Test + @TestMetadata("boxing8.kt") + public void testBoxing8() { + runTest("compiler/testData/codegen/box/boxing/boxing8.kt"); + } + + @Test + @TestMetadata("boxing9.kt") + public void testBoxing9() { + runTest("compiler/testData/codegen/box/boxing/boxing9.kt"); + } + + @Test + @TestMetadata("kt53100_casts.kt") + public void testKt53100_casts() { + runTest("compiler/testData/codegen/box/boxing/kt53100_casts.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/boxingOptimization") @TestDataPath("$PROJECT_ROOT") @@ -1382,6 +1878,88 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes } } + @Nested + @TestMetadata("compiler/testData/codegen/box/branching") + @TestDataPath("$PROJECT_ROOT") + public class Branching { + @Test + @TestMetadata("advanced_when2.kt") + public void testAdvanced_when2() { + runTest("compiler/testData/codegen/box/branching/advanced_when2.kt"); + } + + @Test + @TestMetadata("advanced_when5.kt") + public void testAdvanced_when5() { + runTest("compiler/testData/codegen/box/branching/advanced_when5.kt"); + } + + @Test + public void testAllFilesPresentInBranching() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/branching"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @Test + @TestMetadata("if_else.kt") + public void testIf_else() { + runTest("compiler/testData/codegen/box/branching/if_else.kt"); + } + + @Test + @TestMetadata("when2.kt") + public void testWhen2() { + runTest("compiler/testData/codegen/box/branching/when2.kt"); + } + + @Test + @TestMetadata("when4.kt") + public void testWhen4() { + runTest("compiler/testData/codegen/box/branching/when4.kt"); + } + + @Test + @TestMetadata("when5.kt") + public void testWhen5() { + runTest("compiler/testData/codegen/box/branching/when5.kt"); + } + + @Test + @TestMetadata("when6.kt") + public void testWhen6() { + runTest("compiler/testData/codegen/box/branching/when6.kt"); + } + + @Test + @TestMetadata("when7.kt") + public void testWhen7() { + runTest("compiler/testData/codegen/box/branching/when7.kt"); + } + + @Test + @TestMetadata("when8.kt") + public void testWhen8() { + runTest("compiler/testData/codegen/box/branching/when8.kt"); + } + + @Test + @TestMetadata("when9.kt") + public void testWhen9() { + runTest("compiler/testData/codegen/box/branching/when9.kt"); + } + + @Test + @TestMetadata("when_through.kt") + public void testWhen_through() { + runTest("compiler/testData/codegen/box/branching/when_through.kt"); + } + + @Test + @TestMetadata("when_with_try1.kt") + public void testWhen_with_try1() { + runTest("compiler/testData/codegen/box/branching/when_with_try1.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/bridges") @TestDataPath("$PROJECT_ROOT") @@ -1637,6 +2215,18 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes runTest("compiler/testData/codegen/box/bridges/methodWithDefaultParameter.kt"); } + @Test + @TestMetadata("multipleModules1.kt") + public void testMultipleModules1() { + runTest("compiler/testData/codegen/box/bridges/multipleModules1.kt"); + } + + @Test + @TestMetadata("multipleModules2.kt") + public void testMultipleModules2() { + runTest("compiler/testData/codegen/box/bridges/multipleModules2.kt"); + } + @Test @TestMetadata("nestedClassTypeParameters.kt") public void testNestedClassTypeParameters() { @@ -1697,6 +2287,12 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes runTest("compiler/testData/codegen/box/bridges/propertySetter.kt"); } + @Test + @TestMetadata("returnTypeSignature.kt") + public void testReturnTypeSignature() { + runTest("compiler/testData/codegen/box/bridges/returnTypeSignature.kt"); + } + @Test @TestMetadata("simple.kt") public void testSimple() { @@ -1739,12 +2335,138 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes runTest("compiler/testData/codegen/box/bridges/simpleUpperBound.kt"); } + @Test + @TestMetadata("special.kt") + public void testSpecial() { + runTest("compiler/testData/codegen/box/bridges/special.kt"); + } + + @Test + @TestMetadata("specialGeneric.kt") + public void testSpecialGeneric() { + runTest("compiler/testData/codegen/box/bridges/specialGeneric.kt"); + } + @Test @TestMetadata("strListContains.kt") public void testStrListContains() { runTest("compiler/testData/codegen/box/bridges/strListContains.kt"); } + @Test + @TestMetadata("test0.kt") + public void testTest0() { + runTest("compiler/testData/codegen/box/bridges/test0.kt"); + } + + @Test + @TestMetadata("test1.kt") + public void testTest1() { + runTest("compiler/testData/codegen/box/bridges/test1.kt"); + } + + @Test + @TestMetadata("test10.kt") + public void testTest10() { + runTest("compiler/testData/codegen/box/bridges/test10.kt"); + } + + @Test + @TestMetadata("test11.kt") + public void testTest11() { + runTest("compiler/testData/codegen/box/bridges/test11.kt"); + } + + @Test + @TestMetadata("test12.kt") + public void testTest12() { + runTest("compiler/testData/codegen/box/bridges/test12.kt"); + } + + @Test + @TestMetadata("test13.kt") + public void testTest13() { + runTest("compiler/testData/codegen/box/bridges/test13.kt"); + } + + @Test + @TestMetadata("test14.kt") + public void testTest14() { + runTest("compiler/testData/codegen/box/bridges/test14.kt"); + } + + @Test + @TestMetadata("test15.kt") + public void testTest15() { + runTest("compiler/testData/codegen/box/bridges/test15.kt"); + } + + @Test + @TestMetadata("test16.kt") + public void testTest16() { + runTest("compiler/testData/codegen/box/bridges/test16.kt"); + } + + @Test + @TestMetadata("test17.kt") + public void testTest17() { + runTest("compiler/testData/codegen/box/bridges/test17.kt"); + } + + @Test + @TestMetadata("test18.kt") + public void testTest18() { + runTest("compiler/testData/codegen/box/bridges/test18.kt"); + } + + @Test + @TestMetadata("test2.kt") + public void testTest2() { + runTest("compiler/testData/codegen/box/bridges/test2.kt"); + } + + @Test + @TestMetadata("test3.kt") + public void testTest3() { + runTest("compiler/testData/codegen/box/bridges/test3.kt"); + } + + @Test + @TestMetadata("test4.kt") + public void testTest4() { + runTest("compiler/testData/codegen/box/bridges/test4.kt"); + } + + @Test + @TestMetadata("test5.kt") + public void testTest5() { + runTest("compiler/testData/codegen/box/bridges/test5.kt"); + } + + @Test + @TestMetadata("test6.kt") + public void testTest6() { + runTest("compiler/testData/codegen/box/bridges/test6.kt"); + } + + @Test + @TestMetadata("test7.kt") + public void testTest7() { + runTest("compiler/testData/codegen/box/bridges/test7.kt"); + } + + @Test + @TestMetadata("test8.kt") + public void testTest8() { + runTest("compiler/testData/codegen/box/bridges/test8.kt"); + } + + @Test + @TestMetadata("test9.kt") + public void testTest9() { + runTest("compiler/testData/codegen/box/bridges/test9.kt"); + } + @Test @TestMetadata("traitImplInheritsTraitImpl.kt") public void testTraitImplInheritsTraitImpl() { @@ -4644,6 +5366,46 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes } } + @Nested + @TestMetadata("compiler/testData/codegen/box/classDelegation") + @TestDataPath("$PROJECT_ROOT") + public class ClassDelegation { + @Test + public void testAllFilesPresentInClassDelegation() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/classDelegation"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @Test + @TestMetadata("generic.kt") + public void testGeneric() { + runTest("compiler/testData/codegen/box/classDelegation/generic.kt"); + } + + @Test + @TestMetadata("method.kt") + public void testMethod() { + runTest("compiler/testData/codegen/box/classDelegation/method.kt"); + } + + @Test + @TestMetadata("multipleModules.kt") + public void testMultipleModules() { + runTest("compiler/testData/codegen/box/classDelegation/multipleModules.kt"); + } + + @Test + @TestMetadata("property.kt") + public void testProperty() { + runTest("compiler/testData/codegen/box/classDelegation/property.kt"); + } + + @Test + @TestMetadata("withBridge.kt") + public void testWithBridge() { + runTest("compiler/testData/codegen/box/classDelegation/withBridge.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/classLiteral") @TestDataPath("$PROJECT_ROOT") @@ -6353,6 +7115,12 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes runTest("compiler/testData/codegen/box/contracts/constructorArgument.kt"); } + @Test + @TestMetadata("contractForCast.kt") + public void testContractForCast() { + runTest("compiler/testData/codegen/box/contracts/contractForCast.kt"); + } + @Test @TestMetadata("destructuredVariable.kt") public void testDestructuredVariable() { @@ -6395,6 +7163,12 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes runTest("compiler/testData/codegen/box/contracts/functionParameter.kt"); } + @Test + @TestMetadata("isNullString.kt") + public void testIsNullString() { + runTest("compiler/testData/codegen/box/contracts/isNullString.kt"); + } + @Test @TestMetadata("kt39374.kt") public void testKt39374() { @@ -6437,6 +7211,24 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes runTest("compiler/testData/codegen/box/contracts/nestedLambdaInNonInlineCallExactlyOnce.kt"); } + @Test + @TestMetadata("nonNullSmartCast.kt") + public void testNonNullSmartCast() { + runTest("compiler/testData/codegen/box/contracts/nonNullSmartCast.kt"); + } + + @Test + @TestMetadata("require.kt") + public void testRequire() { + runTest("compiler/testData/codegen/box/contracts/require.kt"); + } + + @Test + @TestMetadata("runLambdaForVal.kt") + public void testRunLambdaForVal() { + runTest("compiler/testData/codegen/box/contracts/runLambdaForVal.kt"); + } + @Test @TestMetadata("valInWhen.kt") public void testValInWhen() { @@ -7818,6 +8610,124 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes } } + @Nested + @TestMetadata("compiler/testData/codegen/box/controlflow") + @TestDataPath("$PROJECT_ROOT") + public class Controlflow { + @Test + public void testAllFilesPresentInControlflow() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/controlflow"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @Test + @TestMetadata("break.kt") + public void testBreak() { + runTest("compiler/testData/codegen/box/controlflow/break.kt"); + } + + @Test + @TestMetadata("break1.kt") + public void testBreak1() { + runTest("compiler/testData/codegen/box/controlflow/break1.kt"); + } + + @Test + @TestMetadata("for_loops.kt") + public void testFor_loops() { + runTest("compiler/testData/codegen/box/controlflow/for_loops.kt"); + } + + @Test + @TestMetadata("for_loops_array_break_continue.kt") + public void testFor_loops_array_break_continue() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_array_break_continue.kt"); + } + + @Test + @TestMetadata("for_loops_array_indices.kt") + public void testFor_loops_array_indices() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_array_indices.kt"); + } + + @Test + @TestMetadata("for_loops_array_mutation.kt") + public void testFor_loops_array_mutation() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_array_mutation.kt"); + } + + @Test + @TestMetadata("for_loops_array_nested.kt") + public void testFor_loops_array_nested() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_array_nested.kt"); + } + + @Test + @TestMetadata("for_loops_array_nullable.kt") + public void testFor_loops_array_nullable() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_array_nullable.kt"); + } + + @Test + @TestMetadata("for_loops_array_side_effects.kt") + public void testFor_loops_array_side_effects() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_array_side_effects.kt"); + } + + @Test + @TestMetadata("for_loops_call_order.kt") + public void testFor_loops_call_order() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_call_order.kt"); + } + + @Test + @TestMetadata("for_loops_coroutines.kt") + public void testFor_loops_coroutines() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_coroutines.kt"); + } + + @Test + @TestMetadata("for_loops_empty_range.kt") + public void testFor_loops_empty_range() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_empty_range.kt"); + } + + @Test + @TestMetadata("for_loops_errors.kt") + public void testFor_loops_errors() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_errors.kt"); + } + + @Test + @TestMetadata("for_loops_let_with_nullable.kt") + public void testFor_loops_let_with_nullable() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_let_with_nullable.kt"); + } + + @Test + @TestMetadata("for_loops_nested.kt") + public void testFor_loops_nested() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_nested.kt"); + } + + @Test + @TestMetadata("for_loops_overflow.kt") + public void testFor_loops_overflow() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_overflow.kt"); + } + + @Test + @TestMetadata("for_loops_types.kt") + public void testFor_loops_types() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_types.kt"); + } + + @Test + @TestMetadata("unreachable1.kt") + public void testUnreachable1() { + runTest("compiler/testData/codegen/box/controlflow/unreachable1.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/coroutines") @TestDataPath("$PROJECT_ROOT") @@ -7839,6 +8749,12 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); } + @Test + @TestMetadata("anonymousObject.kt") + public void testAnonymousObject() { + runTest("compiler/testData/codegen/box/coroutines/anonymousObject.kt"); + } + @Test @TestMetadata("asyncIteratorNullMerge_1_3.kt") public void testAsyncIteratorNullMerge_1_3() { @@ -7923,18 +8839,156 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes runTest("compiler/testData/codegen/box/coroutines/coercionToUnit.kt"); } + @Test + @TestMetadata("controlFlow_chain.kt") + public void testControlFlow_chain() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_chain.kt"); + } + + @Test + @TestMetadata("controlFlow_finally1.kt") + public void testControlFlow_finally1() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally1.kt"); + } + + @Test + @TestMetadata("controlFlow_finally2.kt") + public void testControlFlow_finally2() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally2.kt"); + } + + @Test + @TestMetadata("controlFlow_finally3.kt") + public void testControlFlow_finally3() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally3.kt"); + } + + @Test + @TestMetadata("controlFlow_finally4.kt") + public void testControlFlow_finally4() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally4.kt"); + } + + @Test + @TestMetadata("controlFlow_finally5.kt") + public void testControlFlow_finally5() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally5.kt"); + } + + @Test + @TestMetadata("controlFlow_finally6.kt") + public void testControlFlow_finally6() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally6.kt"); + } + + @Test + @TestMetadata("controlFlow_finally7.kt") + public void testControlFlow_finally7() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally7.kt"); + } + + @Test + @TestMetadata("controlFlow_if1.kt") + public void testControlFlow_if1() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_if1.kt"); + } + + @Test + @TestMetadata("controlFlow_if2.kt") + public void testControlFlow_if2() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_if2.kt"); + } + + @Test + @TestMetadata("controlFlow_inline1.kt") + public void testControlFlow_inline1() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_inline1.kt"); + } + + @Test + @TestMetadata("controlFlow_inline2.kt") + public void testControlFlow_inline2() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_inline2.kt"); + } + + @Test + @TestMetadata("controlFlow_inline3.kt") + public void testControlFlow_inline3() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_inline3.kt"); + } + + @Test + @TestMetadata("controlFlow_tryCatch1.kt") + public void testControlFlow_tryCatch1() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_tryCatch1.kt"); + } + + @Test + @TestMetadata("controlFlow_tryCatch2.kt") + public void testControlFlow_tryCatch2() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_tryCatch2.kt"); + } + + @Test + @TestMetadata("controlFlow_tryCatch3.kt") + public void testControlFlow_tryCatch3() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_tryCatch3.kt"); + } + + @Test + @TestMetadata("controlFlow_tryCatch4.kt") + public void testControlFlow_tryCatch4() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_tryCatch4.kt"); + } + + @Test + @TestMetadata("controlFlow_tryCatch5.kt") + public void testControlFlow_tryCatch5() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_tryCatch5.kt"); + } + + @Test + @TestMetadata("controlFlow_while1.kt") + public void testControlFlow_while1() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_while1.kt"); + } + + @Test + @TestMetadata("controlFlow_while2.kt") + public void testControlFlow_while2() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_while2.kt"); + } + @Test @TestMetadata("controllerAccessFromInnerLambda.kt") public void testControllerAccessFromInnerLambda() { runTest("compiler/testData/codegen/box/coroutines/controllerAccessFromInnerLambda.kt"); } + @Test + @TestMetadata("coroutineContext1.kt") + public void testCoroutineContext1() { + runTest("compiler/testData/codegen/box/coroutines/coroutineContext1.kt"); + } + + @Test + @TestMetadata("coroutineContext2.kt") + public void testCoroutineContext2() { + runTest("compiler/testData/codegen/box/coroutines/coroutineContext2.kt"); + } + @Test @TestMetadata("coroutineContextInInlinedLambda.kt") public void testCoroutineContextInInlinedLambda() { runTest("compiler/testData/codegen/box/coroutines/coroutineContextInInlinedLambda.kt"); } + @Test + @TestMetadata("correctOrder1.kt") + public void testCorrectOrder1() { + runTest("compiler/testData/codegen/box/coroutines/correctOrder1.kt"); + } + @Test @TestMetadata("createCoroutineSafe.kt") public void testCreateCoroutineSafe() { @@ -7965,6 +9019,18 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes runTest("compiler/testData/codegen/box/coroutines/defaultParametersInSuspend.kt"); } + @Test + @TestMetadata("degenerate1.kt") + public void testDegenerate1() { + runTest("compiler/testData/codegen/box/coroutines/degenerate1.kt"); + } + + @Test + @TestMetadata("degenerate2.kt") + public void testDegenerate2() { + runTest("compiler/testData/codegen/box/coroutines/degenerate2.kt"); + } + @Test @TestMetadata("delegatedSuspendMember.kt") public void testDelegatedSuspendMember() { @@ -8013,6 +9079,30 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes runTest("compiler/testData/codegen/box/coroutines/falseUnitCoercion.kt"); } + @Test + @TestMetadata("functionReference_eqeq_name.kt") + public void testFunctionReference_eqeq_name() { + runTest("compiler/testData/codegen/box/coroutines/functionReference_eqeq_name.kt"); + } + + @Test + @TestMetadata("functionReference_invokeAsFunction.kt") + public void testFunctionReference_invokeAsFunction() { + runTest("compiler/testData/codegen/box/coroutines/functionReference_invokeAsFunction.kt"); + } + + @Test + @TestMetadata("functionReference_lambdaAsSuspendLambda.kt") + public void testFunctionReference_lambdaAsSuspendLambda() { + runTest("compiler/testData/codegen/box/coroutines/functionReference_lambdaAsSuspendLambda.kt"); + } + + @Test + @TestMetadata("functionReference_simple.kt") + public void testFunctionReference_simple() { + runTest("compiler/testData/codegen/box/coroutines/functionReference_simple.kt"); + } + @Test @TestMetadata("generate.kt") public void testGenerate() { @@ -8187,6 +9277,12 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes runTest("compiler/testData/codegen/box/coroutines/kt35967.kt"); } + @Test + @TestMetadata("kt41394.kt") + public void testKt41394() { + runTest("compiler/testData/codegen/box/coroutines/kt41394.kt"); + } + @Test @TestMetadata("kt42028.kt") public void testKt42028() { @@ -8415,12 +9511,30 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes runTest("compiler/testData/codegen/box/coroutines/returnByLabel.kt"); } + @Test + @TestMetadata("returnsNothing1.kt") + public void testReturnsNothing1() { + runTest("compiler/testData/codegen/box/coroutines/returnsNothing1.kt"); + } + + @Test + @TestMetadata("returnsUnit1.kt") + public void testReturnsUnit1() { + runTest("compiler/testData/codegen/box/coroutines/returnsUnit1.kt"); + } + @Test @TestMetadata("simple.kt") public void testSimple() { runTest("compiler/testData/codegen/box/coroutines/simple.kt"); } + @Test + @TestMetadata("simple2.kt") + public void testSimple2() { + runTest("compiler/testData/codegen/box/coroutines/simple2.kt"); + } + @Test @TestMetadata("simpleException.kt") public void testSimpleException() { @@ -8463,6 +9577,12 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes runTest("compiler/testData/codegen/box/coroutines/suspendCallsInArguments.kt"); } + @Test + @TestMetadata("suspendConversion.kt") + public void testSuspendConversion() { + runTest("compiler/testData/codegen/box/coroutines/suspendConversion.kt"); + } + @Test @TestMetadata("suspendCoroutineFromStateMachine.kt") public void testSuspendCoroutineFromStateMachine() { @@ -8619,6 +9739,12 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes runTest("compiler/testData/codegen/box/coroutines/varargCallFromSuspend.kt"); } + @Test + @TestMetadata("withReceiver.kt") + public void testWithReceiver() { + runTest("compiler/testData/codegen/box/coroutines/withReceiver.kt"); + } + @Nested @TestMetadata("compiler/testData/codegen/box/coroutines/bridges") @TestDataPath("$PROJECT_ROOT") @@ -10846,6 +11972,34 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes } } + @Nested + @TestMetadata("compiler/testData/codegen/box/cycles") + @TestDataPath("$PROJECT_ROOT") + public class Cycles { + @Test + public void testAllFilesPresentInCycles() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cycles"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @Test + @TestMetadata("cycle.kt") + public void testCycle() { + runTest("compiler/testData/codegen/box/cycles/cycle.kt"); + } + + @Test + @TestMetadata("cycle_do.kt") + public void testCycle_do() { + runTest("compiler/testData/codegen/box/cycles/cycle_do.kt"); + } + + @Test + @TestMetadata("cycle_for.kt") + public void testCycle_for() { + runTest("compiler/testData/codegen/box/cycles/cycle_for.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/dataClasses") @TestDataPath("$PROJECT_ROOT") @@ -11252,6 +12406,28 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes } } + @Nested + @TestMetadata("compiler/testData/codegen/box/dataflow") + @TestDataPath("$PROJECT_ROOT") + public class Dataflow { + @Test + public void testAllFilesPresentInDataflow() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/dataflow"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @Test + @TestMetadata("scope1.kt") + public void testScope1() { + runTest("compiler/testData/codegen/box/dataflow/scope1.kt"); + } + + @Test + @TestMetadata("uninitialized_val.kt") + public void testUninitialized_val() { + runTest("compiler/testData/codegen/box/dataflow/uninitialized_val.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/deadCodeElimination") @TestDataPath("$PROJECT_ROOT") @@ -11871,6 +13047,12 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes runTest("compiler/testData/codegen/box/delegatedProperty/castSetParameter.kt"); } + @Test + @TestMetadata("correctFieldsOrder.kt") + public void testCorrectFieldsOrder() { + runTest("compiler/testData/codegen/box/delegatedProperty/correctFieldsOrder.kt"); + } + @Test @TestMetadata("delegateAsInnerClass.kt") public void testDelegateAsInnerClass() { @@ -11925,6 +13107,12 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes runTest("compiler/testData/codegen/box/delegatedProperty/delegateWithPrivateSet.kt"); } + @Test + @TestMetadata("delegatedOverride.kt") + public void testDelegatedOverride() { + runTest("compiler/testData/codegen/box/delegatedProperty/delegatedOverride.kt"); + } + @Test @TestMetadata("delegatedPropertyInEnum.kt") public void testDelegatedPropertyInEnum() { @@ -12057,12 +13245,42 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes runTest("compiler/testData/codegen/box/delegatedProperty/kt9712.kt"); } + @Test + @TestMetadata("lazy.kt") + public void testLazy() { + runTest("compiler/testData/codegen/box/delegatedProperty/lazy.kt"); + } + + @Test + @TestMetadata("local.kt") + public void testLocal() { + runTest("compiler/testData/codegen/box/delegatedProperty/local.kt"); + } + + @Test + @TestMetadata("map.kt") + public void testMap() { + runTest("compiler/testData/codegen/box/delegatedProperty/map.kt"); + } + @Test @TestMetadata("noTypeVariablesLeft.kt") public void testNoTypeVariablesLeft() { runTest("compiler/testData/codegen/box/delegatedProperty/noTypeVariablesLeft.kt"); } + @Test + @TestMetadata("observable.kt") + public void testObservable() { + runTest("compiler/testData/codegen/box/delegatedProperty/observable.kt"); + } + + @Test + @TestMetadata("packageLevel.kt") + public void testPackageLevel() { + runTest("compiler/testData/codegen/box/delegatedProperty/packageLevel.kt"); + } + @Test @TestMetadata("privateVar.kt") public void testPrivateVar() { @@ -12105,6 +13323,18 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes runTest("compiler/testData/codegen/box/delegatedProperty/setAsExtensionFunInClass.kt"); } + @Test + @TestMetadata("simpleVal.kt") + public void testSimpleVal() { + runTest("compiler/testData/codegen/box/delegatedProperty/simpleVal.kt"); + } + + @Test + @TestMetadata("simpleVar.kt") + public void testSimpleVar() { + runTest("compiler/testData/codegen/box/delegatedProperty/simpleVar.kt"); + } + @Test @TestMetadata("topLevelVal.kt") public void testTopLevelVal() { @@ -12912,6 +14142,40 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes } } + @Nested + @TestMetadata("compiler/testData/codegen/box/devirtualization") + @TestDataPath("$PROJECT_ROOT") + public class Devirtualization { + @Test + public void testAllFilesPresentInDevirtualization() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/devirtualization"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @Test + @TestMetadata("anonymousObject.kt") + public void testAnonymousObject() { + runTest("compiler/testData/codegen/box/devirtualization/anonymousObject.kt"); + } + + @Test + @TestMetadata("getter_looking_as_box_function.kt") + public void testGetter_looking_as_box_function() { + runTest("compiler/testData/codegen/box/devirtualization/getter_looking_as_box_function.kt"); + } + + @Test + @TestMetadata("inline_getter.kt") + public void testInline_getter() { + runTest("compiler/testData/codegen/box/devirtualization/inline_getter.kt"); + } + + @Test + @TestMetadata("lateinitInterface.kt") + public void testLateinitInterface() { + runTest("compiler/testData/codegen/box/devirtualization/lateinitInterface.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/diagnostics") @TestDataPath("$PROJECT_ROOT") @@ -13525,6 +14789,12 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes runTest("compiler/testData/codegen/box/enum/companionAccessingEnumValue.kt"); } + @Test + @TestMetadata("companionObject.kt") + public void testCompanionObject() { + runTest("compiler/testData/codegen/box/enum/companionObject.kt"); + } + @Test @TestMetadata("companionObjectInEnum.kt") public void testCompanionObjectInEnum() { @@ -13669,6 +14939,12 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes runTest("compiler/testData/codegen/box/enum/enumWithLambdaParameter.kt"); } + @Test + @TestMetadata("enum_equals.kt") + public void testEnum_equals() { + runTest("compiler/testData/codegen/box/enum/enum_equals.kt"); + } + @Test @TestMetadata("getEnumEntityByOrdinal.kt") public void testGetEnumEntityByOrdinal() { @@ -13741,6 +15017,18 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes runTest("compiler/testData/codegen/box/enum/innerWithExistingClassObject.kt"); } + @Test + @TestMetadata("interfaceCallNoEntryClass.kt") + public void testInterfaceCallNoEntryClass() { + runTest("compiler/testData/codegen/box/enum/interfaceCallNoEntryClass.kt"); + } + + @Test + @TestMetadata("interfaceCallWithEntryClass.kt") + public void testInterfaceCallWithEntryClass() { + runTest("compiler/testData/codegen/box/enum/interfaceCallWithEntryClass.kt"); + } + @Test @TestMetadata("k54079.kt") public void testK54079() { @@ -13795,6 +15083,12 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes runTest("compiler/testData/codegen/box/enum/kt2350.kt"); } + @Test + @TestMetadata("kt38540.kt") + public void testKt38540() { + runTest("compiler/testData/codegen/box/enum/kt38540.kt"); + } + @Test @TestMetadata("kt38996.kt") public void testKt38996() { @@ -13891,12 +15185,42 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes runTest("compiler/testData/codegen/box/enum/kt9711_2.kt"); } + @Test + @TestMetadata("lambdaInDefault.kt") + public void testLambdaInDefault() { + runTest("compiler/testData/codegen/box/enum/lambdaInDefault.kt"); + } + + @Test + @TestMetadata("loop.kt") + public void testLoop() { + runTest("compiler/testData/codegen/box/enum/loop.kt"); + } + @Test @TestMetadata("manyDefaultParameters.kt") public void testManyDefaultParameters() { runTest("compiler/testData/codegen/box/enum/manyDefaultParameters.kt"); } + @Test + @TestMetadata("multipleModules.kt") + public void testMultipleModules() { + runTest("compiler/testData/codegen/box/enum/multipleModules.kt"); + } + + @Test + @TestMetadata("nested.kt") + public void testNested() { + runTest("compiler/testData/codegen/box/enum/nested.kt"); + } + + @Test + @TestMetadata("openMethodNoOverrides.kt") + public void testOpenMethodNoOverrides() { + runTest("compiler/testData/codegen/box/enum/openMethodNoOverrides.kt"); + } + @Test @TestMetadata("ordinal.kt") public void testOrdinal() { @@ -13921,6 +15245,12 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes runTest("compiler/testData/codegen/box/enum/refToThis.kt"); } + @Test + @TestMetadata("reorderedArguments.kt") + public void testReorderedArguments() { + runTest("compiler/testData/codegen/box/enum/reorderedArguments.kt"); + } + @Test @TestMetadata("simple.kt") public void testSimple() { @@ -13939,18 +15269,66 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes runTest("compiler/testData/codegen/box/enum/superCallInEnumLiteral.kt"); } + @Test + @TestMetadata("switchLowering.kt") + public void testSwitchLowering() { + runTest("compiler/testData/codegen/box/enum/switchLowering.kt"); + } + + @Test + @TestMetadata("test0.kt") + public void testTest0() { + runTest("compiler/testData/codegen/box/enum/test0.kt"); + } + + @Test + @TestMetadata("test1.kt") + public void testTest1() { + runTest("compiler/testData/codegen/box/enum/test1.kt"); + } + @Test @TestMetadata("toString.kt") public void testToString() { runTest("compiler/testData/codegen/box/enum/toString.kt"); } + @Test + @TestMetadata("vCallNoEntryClass.kt") + public void testVCallNoEntryClass() { + runTest("compiler/testData/codegen/box/enum/vCallNoEntryClass.kt"); + } + + @Test + @TestMetadata("vCallWithEntryClass.kt") + public void testVCallWithEntryClass() { + runTest("compiler/testData/codegen/box/enum/vCallWithEntryClass.kt"); + } + + @Test + @TestMetadata("valueOf2.kt") + public void testValueOf2() { + runTest("compiler/testData/codegen/box/enum/valueOf2.kt"); + } + @Test @TestMetadata("valueof.kt") public void testValueof() { runTest("compiler/testData/codegen/box/enum/valueof.kt"); } + @Test + @TestMetadata("values.kt") + public void testValues() { + runTest("compiler/testData/codegen/box/enum/values.kt"); + } + + @Test + @TestMetadata("varargParam.kt") + public void testVarargParam() { + runTest("compiler/testData/codegen/box/enum/varargParam.kt"); + } + @Test @TestMetadata("whenInObject.kt") public void testWhenInObject() { @@ -14026,6 +15404,112 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes } } + @Nested + @TestMetadata("compiler/testData/codegen/box/escapeAnalysis") + @TestDataPath("$PROJECT_ROOT") + public class EscapeAnalysis { + @Test + public void testAllFilesPresentInEscapeAnalysis() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/escapeAnalysis"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @Test + @TestMetadata("recursion.kt") + public void testRecursion() { + runTest("compiler/testData/codegen/box/escapeAnalysis/recursion.kt"); + } + + @Test + @TestMetadata("stack_array.kt") + public void testStack_array() { + runTest("compiler/testData/codegen/box/escapeAnalysis/stack_array.kt"); + } + + @Test + @TestMetadata("test1.kt") + public void testTest1() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test1.kt"); + } + + @Test + @TestMetadata("test10.kt") + public void testTest10() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test10.kt"); + } + + @Test + @TestMetadata("test11.kt") + public void testTest11() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test11.kt"); + } + + @Test + @TestMetadata("test12.kt") + public void testTest12() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test12.kt"); + } + + @Test + @TestMetadata("test13.kt") + public void testTest13() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test13.kt"); + } + + @Test + @TestMetadata("test2.kt") + public void testTest2() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test2.kt"); + } + + @Test + @TestMetadata("test3.kt") + public void testTest3() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test3.kt"); + } + + @Test + @TestMetadata("test4.kt") + public void testTest4() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test4.kt"); + } + + @Test + @TestMetadata("test5.kt") + public void testTest5() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test5.kt"); + } + + @Test + @TestMetadata("test6.kt") + public void testTest6() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test6.kt"); + } + + @Test + @TestMetadata("test7.kt") + public void testTest7() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test7.kt"); + } + + @Test + @TestMetadata("test8.kt") + public void testTest8() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test8.kt"); + } + + @Test + @TestMetadata("test9.kt") + public void testTest9() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test9.kt"); + } + + @Test + @TestMetadata("zeroOutObjectOnAlloc.kt") + public void testZeroOutObjectOnAlloc() { + runTest("compiler/testData/codegen/box/escapeAnalysis/zeroOutObjectOnAlloc.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/evaluate") @TestDataPath("$PROJECT_ROOT") @@ -14042,6 +15526,58 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes } } + @Nested + @TestMetadata("compiler/testData/codegen/box/exceptions") + @TestDataPath("$PROJECT_ROOT") + public class Exceptions { + @Test + public void testAllFilesPresentInExceptions() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/exceptions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @Test + @TestMetadata("catch1.kt") + public void testCatch1() { + runTest("compiler/testData/codegen/box/exceptions/catch1.kt"); + } + + @Test + @TestMetadata("catch2.kt") + public void testCatch2() { + runTest("compiler/testData/codegen/box/exceptions/catch2.kt"); + } + + @Test + @TestMetadata("catch7.kt") + public void testCatch7() { + runTest("compiler/testData/codegen/box/exceptions/catch7.kt"); + } + + @Test + @TestMetadata("extend0.kt") + public void testExtend0() { + runTest("compiler/testData/codegen/box/exceptions/extend0.kt"); + } + + @Test + @TestMetadata("rethrow.kt") + public void testRethrow() { + runTest("compiler/testData/codegen/box/exceptions/rethrow.kt"); + } + + @Test + @TestMetadata("throw0.kt") + public void testThrow0() { + runTest("compiler/testData/codegen/box/exceptions/throw0.kt"); + } + + @Test + @TestMetadata("throw_from_catch.kt") + public void testThrow_from_catch() { + runTest("compiler/testData/codegen/box/exceptions/throw_from_catch.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/exclExcl") @TestDataPath("$PROJECT_ROOT") @@ -14921,6 +16457,12 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes runTest("compiler/testData/codegen/box/funInterface/funInterfaceWithReceiver.kt"); } + @Test + @TestMetadata("implIsNotFunction.kt") + public void testImplIsNotFunction() { + runTest("compiler/testData/codegen/box/funInterface/implIsNotFunction.kt"); + } + @Test @TestMetadata("inlinedSamWrapper.kt") public void testInlinedSamWrapper() { @@ -14963,6 +16505,18 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes runTest("compiler/testData/codegen/box/funInterface/kt46908_functionSupertype.kt"); } + @Test + @TestMetadata("kt49384.kt") + public void testKt49384() { + runTest("compiler/testData/codegen/box/funInterface/kt49384.kt"); + } + + @Test + @TestMetadata("kt49384_getSame.kt") + public void testKt49384_getSame() { + runTest("compiler/testData/codegen/box/funInterface/kt49384_getSame.kt"); + } + @Test @TestMetadata("multimodule.kt") public void testMultimodule() { @@ -14981,6 +16535,12 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes runTest("compiler/testData/codegen/box/funInterface/nonAbstractMethod.kt"); } + @Test + @TestMetadata("nonTrivialProjectionInSuperType.kt") + public void testNonTrivialProjectionInSuperType() { + runTest("compiler/testData/codegen/box/funInterface/nonTrivialProjectionInSuperType.kt"); + } + @Test @TestMetadata("nullableSam.kt") public void testNullableSam() { @@ -15070,6 +16630,232 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes } } + @Nested + @TestMetadata("compiler/testData/codegen/box/function") + @TestDataPath("$PROJECT_ROOT") + public class Function { + @Test + public void testAllFilesPresentInFunction() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/function"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @Test + @TestMetadata("arithmetic.kt") + public void testArithmetic() { + runTest("compiler/testData/codegen/box/function/arithmetic.kt"); + } + + @Test + @TestMetadata("boolean.kt") + public void testBoolean() { + runTest("compiler/testData/codegen/box/function/boolean.kt"); + } + + @Test + @TestMetadata("defaults.kt") + public void testDefaults() { + runTest("compiler/testData/codegen/box/function/defaults.kt"); + } + + @Test + @TestMetadata("defaults1.kt") + public void testDefaults1() { + runTest("compiler/testData/codegen/box/function/defaults1.kt"); + } + + @Test + @TestMetadata("defaults10.kt") + public void testDefaults10() { + runTest("compiler/testData/codegen/box/function/defaults10.kt"); + } + + @Test + @TestMetadata("defaults2.kt") + public void testDefaults2() { + runTest("compiler/testData/codegen/box/function/defaults2.kt"); + } + + @Test + @TestMetadata("defaults3.kt") + public void testDefaults3() { + runTest("compiler/testData/codegen/box/function/defaults3.kt"); + } + + @Test + @TestMetadata("defaults4.kt") + public void testDefaults4() { + runTest("compiler/testData/codegen/box/function/defaults4.kt"); + } + + @Test + @TestMetadata("defaults5.kt") + public void testDefaults5() { + runTest("compiler/testData/codegen/box/function/defaults5.kt"); + } + + @Test + @TestMetadata("defaults6.kt") + public void testDefaults6() { + runTest("compiler/testData/codegen/box/function/defaults6.kt"); + } + + @Test + @TestMetadata("defaults7.kt") + public void testDefaults7() { + runTest("compiler/testData/codegen/box/function/defaults7.kt"); + } + + @Test + @TestMetadata("defaults8.kt") + public void testDefaults8() { + runTest("compiler/testData/codegen/box/function/defaults8.kt"); + } + + @Test + @TestMetadata("defaults9.kt") + public void testDefaults9() { + runTest("compiler/testData/codegen/box/function/defaults9.kt"); + } + + @Test + @TestMetadata("defaultsFromFakeOverride.kt") + public void testDefaultsFromFakeOverride() { + runTest("compiler/testData/codegen/box/function/defaultsFromFakeOverride.kt"); + } + + @Test + @TestMetadata("defaultsWithInlineClasses.kt") + public void testDefaultsWithInlineClasses() { + runTest("compiler/testData/codegen/box/function/defaultsWithInlineClasses.kt"); + } + + @Test + @TestMetadata("defaultsWithVarArg1.kt") + public void testDefaultsWithVarArg1() { + runTest("compiler/testData/codegen/box/function/defaultsWithVarArg1.kt"); + } + + @Test + @TestMetadata("defaultsWithVarArg2.kt") + public void testDefaultsWithVarArg2() { + runTest("compiler/testData/codegen/box/function/defaultsWithVarArg2.kt"); + } + + @Test + @TestMetadata("eqeq.kt") + public void testEqeq() { + runTest("compiler/testData/codegen/box/function/eqeq.kt"); + } + + @Test + @TestMetadata("extension.kt") + public void testExtension() { + runTest("compiler/testData/codegen/box/function/extension.kt"); + } + + @Test + @TestMetadata("intrinsic.kt") + public void testIntrinsic() { + runTest("compiler/testData/codegen/box/function/intrinsic.kt"); + } + + @Test + @TestMetadata("localFunction.kt") + public void testLocalFunction() { + runTest("compiler/testData/codegen/box/function/localFunction.kt"); + } + + @Test + @TestMetadata("localFunction2.kt") + public void testLocalFunction2() { + runTest("compiler/testData/codegen/box/function/localFunction2.kt"); + } + + @Test + @TestMetadata("localFunction3.kt") + public void testLocalFunction3() { + runTest("compiler/testData/codegen/box/function/localFunction3.kt"); + } + + @Test + @TestMetadata("minus_eq.kt") + public void testMinus_eq() { + runTest("compiler/testData/codegen/box/function/minus_eq.kt"); + } + + @Test + @TestMetadata("named.kt") + public void testNamed() { + runTest("compiler/testData/codegen/box/function/named.kt"); + } + + @Test + @TestMetadata("nothingNReturningSafeCall.kt") + public void testNothingNReturningSafeCall() { + runTest("compiler/testData/codegen/box/function/nothingNReturningSafeCall.kt"); + } + + @Test + @TestMetadata("plus_eq.kt") + public void testPlus_eq() { + runTest("compiler/testData/codegen/box/function/plus_eq.kt"); + } + + @Test + @TestMetadata("referenceBigArity.kt") + public void testReferenceBigArity() { + runTest("compiler/testData/codegen/box/function/referenceBigArity.kt"); + } + + @Test + @TestMetadata("sum.kt") + public void testSum() { + runTest("compiler/testData/codegen/box/function/sum.kt"); + } + + @Test + @TestMetadata("sum_3const.kt") + public void testSum_3const() { + runTest("compiler/testData/codegen/box/function/sum_3const.kt"); + } + + @Test + @TestMetadata("sum_foo_bar.kt") + public void testSum_foo_bar() { + runTest("compiler/testData/codegen/box/function/sum_foo_bar.kt"); + } + + @Test + @TestMetadata("sum_func.kt") + public void testSum_func() { + runTest("compiler/testData/codegen/box/function/sum_func.kt"); + } + + @Test + @TestMetadata("sum_imm.kt") + public void testSum_imm() { + runTest("compiler/testData/codegen/box/function/sum_imm.kt"); + } + + @Test + @TestMetadata("sum_mixed.kt") + public void testSum_mixed() { + runTest("compiler/testData/codegen/box/function/sum_mixed.kt"); + } + + @Test + @TestMetadata("sum_silly.kt") + public void testSum_silly() { + runTest("compiler/testData/codegen/box/function/sum_silly.kt"); + } + + @Test + @TestMetadata("unreachableStatementAfterReturn.kt") + public void testUnreachableStatementAfterReturn() { + runTest("compiler/testData/codegen/box/function/unreachableStatementAfterReturn.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/functions") @TestDataPath("$PROJECT_ROOT") @@ -16570,6 +18356,474 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes } } + @Nested + @TestMetadata("compiler/testData/codegen/box/initializers") + @TestDataPath("$PROJECT_ROOT") + public class Initializers { + @Test + public void testAllFilesPresentInInitializers() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/initializers"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @Test + @TestMetadata("correctOrder1.kt") + public void testCorrectOrder1() { + runTest("compiler/testData/codegen/box/initializers/correctOrder1.kt"); + } + + @Test + @TestMetadata("correctOrder2.kt") + public void testCorrectOrder2() { + runTest("compiler/testData/codegen/box/initializers/correctOrder2.kt"); + } + + @Test + @TestMetadata("initializers0.kt") + public void testInitializers0() { + runTest("compiler/testData/codegen/box/initializers/initializers0.kt"); + } + + @Test + @TestMetadata("initializers1.kt") + public void testInitializers1() { + runTest("compiler/testData/codegen/box/initializers/initializers1.kt"); + } + + @Test + @TestMetadata("initializers2.kt") + public void testInitializers2() { + runTest("compiler/testData/codegen/box/initializers/initializers2.kt"); + } + + @Test + @TestMetadata("initializers3.kt") + public void testInitializers3() { + runTest("compiler/testData/codegen/box/initializers/initializers3.kt"); + } + + @Test + @TestMetadata("initializers4.kt") + public void testInitializers4() { + runTest("compiler/testData/codegen/box/initializers/initializers4.kt"); + } + + @Test + @TestMetadata("initializers5.kt") + public void testInitializers5() { + runTest("compiler/testData/codegen/box/initializers/initializers5.kt"); + } + + @Test + @TestMetadata("initializers7.kt") + public void testInitializers7() { + runTest("compiler/testData/codegen/box/initializers/initializers7.kt"); + } + + @Test + @TestMetadata("initializers8.kt") + public void testInitializers8() { + runTest("compiler/testData/codegen/box/initializers/initializers8.kt"); + } + + @Test + @TestMetadata("multipleModules1.kt") + public void testMultipleModules1() { + runTest("compiler/testData/codegen/box/initializers/multipleModules1.kt"); + } + + @Test + @TestMetadata("object.kt") + public void testObject() { + runTest("compiler/testData/codegen/box/initializers/object.kt"); + } + + @Test + @TestMetadata("sharedVarInInitBlock.kt") + public void testSharedVarInInitBlock() { + runTest("compiler/testData/codegen/box/initializers/sharedVarInInitBlock.kt"); + } + + @Test + @TestMetadata("static_arrays.kt") + public void testStatic_arrays() { + runTest("compiler/testData/codegen/box/initializers/static_arrays.kt"); + } + + @Test + @TestMetadata("static_list.kt") + public void testStatic_list() { + runTest("compiler/testData/codegen/box/initializers/static_list.kt"); + } + + @Test + @TestMetadata("static_smallIntIdentity.kt") + public void testStatic_smallIntIdentity() { + runTest("compiler/testData/codegen/box/initializers/static_smallIntIdentity.kt"); + } + + @Test + @TestMetadata("static_varargChange.kt") + public void testStatic_varargChange() { + runTest("compiler/testData/codegen/box/initializers/static_varargChange.kt"); + } + + @Test + @TestMetadata("throw1.kt") + public void testThrow1() { + runTest("compiler/testData/codegen/box/initializers/throw1.kt"); + } + + @Test + @TestMetadata("throw2.kt") + public void testThrow2() { + runTest("compiler/testData/codegen/box/initializers/throw2.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/initializers/files") + @TestDataPath("$PROJECT_ROOT") + public class Files { + @Test + public void testAllFilesPresentInFiles() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/initializers/files"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @Test + @TestMetadata("globalInitedAfterAccessingFile.kt") + public void testGlobalInitedAfterAccessingFile() { + runTest("compiler/testData/codegen/box/initializers/files/globalInitedAfterAccessingFile.kt"); + } + + @Test + @TestMetadata("globalNotInitedAfterAccessingClassInternals.kt") + public void testGlobalNotInitedAfterAccessingClassInternals() { + runTest("compiler/testData/codegen/box/initializers/files/globalNotInitedAfterAccessingClassInternals.kt"); + } + + @Test + @TestMetadata("simple.kt") + public void testSimple() { + runTest("compiler/testData/codegen/box/initializers/files/simple.kt"); + } + + @Test + @TestMetadata("simpleMultiModule.kt") + public void testSimpleMultiModule() { + runTest("compiler/testData/codegen/box/initializers/files/simpleMultiModule.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/inline") + @TestDataPath("$PROJECT_ROOT") + public class Inline { + @Test + public void testAllFilesPresentInInline() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inline"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @Test + @TestMetadata("changingCapturedLocal.kt") + public void testChangingCapturedLocal() { + runTest("compiler/testData/codegen/box/inline/changingCapturedLocal.kt"); + } + + @Test + @TestMetadata("classDeclarationInsideInline.kt") + public void testClassDeclarationInsideInline() { + runTest("compiler/testData/codegen/box/inline/classDeclarationInsideInline.kt"); + } + + @Test + @TestMetadata("coercionToUnit.kt") + public void testCoercionToUnit() { + runTest("compiler/testData/codegen/box/inline/coercionToUnit.kt"); + } + + @Test + @TestMetadata("correctOrderFunctionReference.kt") + public void testCorrectOrderFunctionReference() { + runTest("compiler/testData/codegen/box/inline/correctOrderFunctionReference.kt"); + } + + @Test + @TestMetadata("defaultArgs.kt") + public void testDefaultArgs() { + runTest("compiler/testData/codegen/box/inline/defaultArgs.kt"); + } + + @Test + @TestMetadata("defaultArgsMultipleModules.kt") + public void testDefaultArgsMultipleModules() { + runTest("compiler/testData/codegen/box/inline/defaultArgsMultipleModules.kt"); + } + + @Test + @TestMetadata("genericFunctionReference.kt") + public void testGenericFunctionReference() { + runTest("compiler/testData/codegen/box/inline/genericFunctionReference.kt"); + } + + @Test + @TestMetadata("getClass.kt") + public void testGetClass() { + runTest("compiler/testData/codegen/box/inline/getClass.kt"); + } + + @Test + @TestMetadata("inline0.kt") + public void testInline0() { + runTest("compiler/testData/codegen/box/inline/inline0.kt"); + } + + @Test + @TestMetadata("inline1.kt") + public void testInline1() { + runTest("compiler/testData/codegen/box/inline/inline1.kt"); + } + + @Test + @TestMetadata("inline10.kt") + public void testInline10() { + runTest("compiler/testData/codegen/box/inline/inline10.kt"); + } + + @Test + @TestMetadata("inline11.kt") + public void testInline11() { + runTest("compiler/testData/codegen/box/inline/inline11.kt"); + } + + @Test + @TestMetadata("inline12.kt") + public void testInline12() { + runTest("compiler/testData/codegen/box/inline/inline12.kt"); + } + + @Test + @TestMetadata("inline13.kt") + public void testInline13() { + runTest("compiler/testData/codegen/box/inline/inline13.kt"); + } + + @Test + @TestMetadata("inline14.kt") + public void testInline14() { + runTest("compiler/testData/codegen/box/inline/inline14.kt"); + } + + @Test + @TestMetadata("inline15.kt") + public void testInline15() { + runTest("compiler/testData/codegen/box/inline/inline15.kt"); + } + + @Test + @TestMetadata("inline16.kt") + public void testInline16() { + runTest("compiler/testData/codegen/box/inline/inline16.kt"); + } + + @Test + @TestMetadata("inline17.kt") + public void testInline17() { + runTest("compiler/testData/codegen/box/inline/inline17.kt"); + } + + @Test + @TestMetadata("inline19.kt") + public void testInline19() { + runTest("compiler/testData/codegen/box/inline/inline19.kt"); + } + + @Test + @TestMetadata("inline2.kt") + public void testInline2() { + runTest("compiler/testData/codegen/box/inline/inline2.kt"); + } + + @Test + @TestMetadata("inline20.kt") + public void testInline20() { + runTest("compiler/testData/codegen/box/inline/inline20.kt"); + } + + @Test + @TestMetadata("inline21.kt") + public void testInline21() { + runTest("compiler/testData/codegen/box/inline/inline21.kt"); + } + + @Test + @TestMetadata("inline22.kt") + public void testInline22() { + runTest("compiler/testData/codegen/box/inline/inline22.kt"); + } + + @Test + @TestMetadata("inline23.kt") + public void testInline23() { + runTest("compiler/testData/codegen/box/inline/inline23.kt"); + } + + @Test + @TestMetadata("inline24.kt") + public void testInline24() { + runTest("compiler/testData/codegen/box/inline/inline24.kt"); + } + + @Test + @TestMetadata("inline25.kt") + public void testInline25() { + runTest("compiler/testData/codegen/box/inline/inline25.kt"); + } + + @Test + @TestMetadata("inline26.kt") + public void testInline26() { + runTest("compiler/testData/codegen/box/inline/inline26.kt"); + } + + @Test + @TestMetadata("inline3.kt") + public void testInline3() { + runTest("compiler/testData/codegen/box/inline/inline3.kt"); + } + + @Test + @TestMetadata("inline4.kt") + public void testInline4() { + runTest("compiler/testData/codegen/box/inline/inline4.kt"); + } + + @Test + @TestMetadata("inline5.kt") + public void testInline5() { + runTest("compiler/testData/codegen/box/inline/inline5.kt"); + } + + @Test + @TestMetadata("inline6.kt") + public void testInline6() { + runTest("compiler/testData/codegen/box/inline/inline6.kt"); + } + + @Test + @TestMetadata("inline7.kt") + public void testInline7() { + runTest("compiler/testData/codegen/box/inline/inline7.kt"); + } + + @Test + @TestMetadata("inline8.kt") + public void testInline8() { + runTest("compiler/testData/codegen/box/inline/inline8.kt"); + } + + @Test + @TestMetadata("inline9.kt") + public void testInline9() { + runTest("compiler/testData/codegen/box/inline/inline9.kt"); + } + + @Test + @TestMetadata("inlineCtor.kt") + public void testInlineCtor() { + runTest("compiler/testData/codegen/box/inline/inlineCtor.kt"); + } + + @Test + @TestMetadata("innerInlineFunCapturesOuter.kt") + public void testInnerInlineFunCapturesOuter() { + runTest("compiler/testData/codegen/box/inline/innerInlineFunCapturesOuter.kt"); + } + + @Test + @TestMetadata("lambdaAsAny.kt") + public void testLambdaAsAny() { + runTest("compiler/testData/codegen/box/inline/lambdaAsAny.kt"); + } + + @Test + @TestMetadata("lambdaInDefaultValue.kt") + public void testLambdaInDefaultValue() { + runTest("compiler/testData/codegen/box/inline/lambdaInDefaultValue.kt"); + } + + @Test + @TestMetadata("lateinitProperty.kt") + public void testLateinitProperty() { + runTest("compiler/testData/codegen/box/inline/lateinitProperty.kt"); + } + + @Test + @TestMetadata("localFunctionInInitializerBlock.kt") + public void testLocalFunctionInInitializerBlock() { + runTest("compiler/testData/codegen/box/inline/localFunctionInInitializerBlock.kt"); + } + + @Test + @TestMetadata("localObjectReturnedFromWhen.kt") + public void testLocalObjectReturnedFromWhen() { + runTest("compiler/testData/codegen/box/inline/localObjectReturnedFromWhen.kt"); + } + + @Test + @TestMetadata("propertyAccessorInline.kt") + public void testPropertyAccessorInline() { + runTest("compiler/testData/codegen/box/inline/propertyAccessorInline.kt"); + } + + @Test + @TestMetadata("redundantCoercionsCleaner.kt") + public void testRedundantCoercionsCleaner() { + runTest("compiler/testData/codegen/box/inline/redundantCoercionsCleaner.kt"); + } + + @Test + @TestMetadata("redundantCoercionsCleanerKT48876.kt") + public void testRedundantCoercionsCleanerKT48876() { + runTest("compiler/testData/codegen/box/inline/redundantCoercionsCleanerKT48876.kt"); + } + + @Test + @TestMetadata("redundantCoercionsCleanerKT49356.kt") + public void testRedundantCoercionsCleanerKT49356() { + runTest("compiler/testData/codegen/box/inline/redundantCoercionsCleanerKT49356.kt"); + } + + @Test + @TestMetadata("returnLocalClassFromBlock.kt") + public void testReturnLocalClassFromBlock() { + runTest("compiler/testData/codegen/box/inline/returnLocalClassFromBlock.kt"); + } + + @Test + @TestMetadata("sharedVar.kt") + public void testSharedVar() { + runTest("compiler/testData/codegen/box/inline/sharedVar.kt"); + } + + @Test + @TestMetadata("statementAsLastExprInBlock.kt") + public void testStatementAsLastExprInBlock() { + runTest("compiler/testData/codegen/box/inline/statementAsLastExprInBlock.kt"); + } + + @Test + @TestMetadata("twiceInlinedObject.kt") + public void testTwiceInlinedObject() { + runTest("compiler/testData/codegen/box/inline/twiceInlinedObject.kt"); + } + + @Test + @TestMetadata("typeSubstitutionInFakeOverride.kt") + public void testTypeSubstitutionInFakeOverride() { + runTest("compiler/testData/codegen/box/inline/typeSubstitutionInFakeOverride.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/inlineArgsInPlace") @TestDataPath("$PROJECT_ROOT") @@ -16646,6 +18900,40 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes } } + @Nested + @TestMetadata("compiler/testData/codegen/box/inlineClass") + @TestDataPath("$PROJECT_ROOT") + public class InlineClass { + @Test + public void testAllFilesPresentInInlineClass() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineClass"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @Test + @TestMetadata("customEquals.kt") + public void testCustomEquals() { + runTest("compiler/testData/codegen/box/inlineClass/customEquals.kt"); + } + + @Test + @TestMetadata("defaultEquals.kt") + public void testDefaultEquals() { + runTest("compiler/testData/codegen/box/inlineClass/defaultEquals.kt"); + } + + @Test + @TestMetadata("nestedInlineClasses.kt") + public void testNestedInlineClasses() { + runTest("compiler/testData/codegen/box/inlineClass/nestedInlineClasses.kt"); + } + + @Test + @TestMetadata("secondaryConstructorWithGenerics.kt") + public void testSecondaryConstructorWithGenerics() { + runTest("compiler/testData/codegen/box/inlineClass/secondaryConstructorWithGenerics.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/inlineClasses") @TestDataPath("$PROJECT_ROOT") @@ -21568,6 +23856,88 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes } } + @Nested + @TestMetadata("compiler/testData/codegen/box/innerClass") + @TestDataPath("$PROJECT_ROOT") + public class InnerClass { + @Test + public void testAllFilesPresentInInnerClass() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/innerClass"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @Test + @TestMetadata("doubleInner.kt") + public void testDoubleInner() { + runTest("compiler/testData/codegen/box/innerClass/doubleInner.kt"); + } + + @Test + @TestMetadata("generic.kt") + public void testGeneric() { + runTest("compiler/testData/codegen/box/innerClass/generic.kt"); + } + + @Test + @TestMetadata("getOuterVal.kt") + public void testGetOuterVal() { + runTest("compiler/testData/codegen/box/innerClass/getOuterVal.kt"); + } + + @Test + @TestMetadata("inheritanceMultipleModules1.kt") + public void testInheritanceMultipleModules1() { + runTest("compiler/testData/codegen/box/innerClass/inheritanceMultipleModules1.kt"); + } + + @Test + @TestMetadata("inheritanceMultipleModules2.kt") + public void testInheritanceMultipleModules2() { + runTest("compiler/testData/codegen/box/innerClass/inheritanceMultipleModules2.kt"); + } + + @Test + @TestMetadata("inheritanceMultipleModules3.kt") + public void testInheritanceMultipleModules3() { + runTest("compiler/testData/codegen/box/innerClass/inheritanceMultipleModules3.kt"); + } + + @Test + @TestMetadata("multipleModules.kt") + public void testMultipleModules() { + runTest("compiler/testData/codegen/box/innerClass/multipleModules.kt"); + } + + @Test + @TestMetadata("noPrimaryConstructor.kt") + public void testNoPrimaryConstructor() { + runTest("compiler/testData/codegen/box/innerClass/noPrimaryConstructor.kt"); + } + + @Test + @TestMetadata("qualifiedThis.kt") + public void testQualifiedThis() { + runTest("compiler/testData/codegen/box/innerClass/qualifiedThis.kt"); + } + + @Test + @TestMetadata("secondaryConstructor.kt") + public void testSecondaryConstructor() { + runTest("compiler/testData/codegen/box/innerClass/secondaryConstructor.kt"); + } + + @Test + @TestMetadata("simple.kt") + public void testSimple() { + runTest("compiler/testData/codegen/box/innerClass/simple.kt"); + } + + @Test + @TestMetadata("superOuter.kt") + public void testSuperOuter() { + runTest("compiler/testData/codegen/box/innerClass/superOuter.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/innerNested") @TestDataPath("$PROJECT_ROOT") @@ -21920,6 +24290,40 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes } } + @Nested + @TestMetadata("compiler/testData/codegen/box/interfaceCallsNCasts") + @TestDataPath("$PROJECT_ROOT") + public class InterfaceCallsNCasts { + @Test + public void testAllFilesPresentInInterfaceCallsNCasts() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/interfaceCallsNCasts"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @Test + @TestMetadata("conservativeItable.kt") + public void testConservativeItable() { + runTest("compiler/testData/codegen/box/interfaceCallsNCasts/conservativeItable.kt"); + } + + @Test + @TestMetadata("diamond.kt") + public void testDiamond() { + runTest("compiler/testData/codegen/box/interfaceCallsNCasts/diamond.kt"); + } + + @Test + @TestMetadata("finalMethod.kt") + public void testFinalMethod() { + runTest("compiler/testData/codegen/box/interfaceCallsNCasts/finalMethod.kt"); + } + + @Test + @TestMetadata("interface0.kt") + public void testInterface0() { + runTest("compiler/testData/codegen/box/interfaceCallsNCasts/interface0.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/intrinsics") @TestDataPath("$PROJECT_ROOT") @@ -23242,6 +25646,80 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes } } + @Nested + @TestMetadata("compiler/testData/codegen/box/kclass") + @TestDataPath("$PROJECT_ROOT") + public class Kclass { + @Test + public void testAllFilesPresentInKclass() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/kclass"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @Test + @TestMetadata("kClassEnumArgument.kt") + public void testKClassEnumArgument() { + runTest("compiler/testData/codegen/box/kclass/kClassEnumArgument.kt"); + } + + @Test + @TestMetadata("kclass1.kt") + public void testKclass1() { + runTest("compiler/testData/codegen/box/kclass/kclass1.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/ktype") + @TestDataPath("$PROJECT_ROOT") + public class Ktype { + @Test + public void testAllFilesPresentInKtype() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ktype"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @Test + @TestMetadata("ktype1_basics1.kt") + public void testKtype1_basics1() { + runTest("compiler/testData/codegen/box/ktype/ktype1_basics1.kt"); + } + + @Test + @TestMetadata("ktype1_inner.kt") + public void testKtype1_inner() { + runTest("compiler/testData/codegen/box/ktype/ktype1_inner.kt"); + } + + @Test + @TestMetadata("nonReified_class.kt") + public void testNonReified_class() { + runTest("compiler/testData/codegen/box/ktype/nonReified_class.kt"); + } + + @Test + @TestMetadata("nonReified_equality.kt") + public void testNonReified_equality() { + runTest("compiler/testData/codegen/box/ktype/nonReified_equality.kt"); + } + + @Test + @TestMetadata("nonReified_fun.kt") + public void testNonReified_fun() { + runTest("compiler/testData/codegen/box/ktype/nonReified_fun.kt"); + } + + @Test + @TestMetadata("nonReified_recursionInReified.kt") + public void testNonReified_recursionInReified() { + runTest("compiler/testData/codegen/box/ktype/nonReified_recursionInReified.kt"); + } + + @Test + @TestMetadata("nonReified_reifiedUpperBound.kt") + public void testNonReified_reifiedUpperBound() { + runTest("compiler/testData/codegen/box/ktype/nonReified_reifiedUpperBound.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/labels") @TestDataPath("$PROJECT_ROOT") @@ -23300,6 +25778,188 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes } } + @Nested + @TestMetadata("compiler/testData/codegen/box/lambda") + @TestDataPath("$PROJECT_ROOT") + public class Lambda { + @Test + public void testAllFilesPresentInLambda() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/lambda"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @Test + @TestMetadata("lambda1.kt") + public void testLambda1() { + runTest("compiler/testData/codegen/box/lambda/lambda1.kt"); + } + + @Test + @TestMetadata("lambda10.kt") + public void testLambda10() { + runTest("compiler/testData/codegen/box/lambda/lambda10.kt"); + } + + @Test + @TestMetadata("lambda11.kt") + public void testLambda11() { + runTest("compiler/testData/codegen/box/lambda/lambda11.kt"); + } + + @Test + @TestMetadata("lambda12.kt") + public void testLambda12() { + runTest("compiler/testData/codegen/box/lambda/lambda12.kt"); + } + + @Test + @TestMetadata("lambda13.kt") + public void testLambda13() { + runTest("compiler/testData/codegen/box/lambda/lambda13.kt"); + } + + @Test + @TestMetadata("lambda14.kt") + public void testLambda14() { + runTest("compiler/testData/codegen/box/lambda/lambda14.kt"); + } + + @Test + @TestMetadata("lambda2.kt") + public void testLambda2() { + runTest("compiler/testData/codegen/box/lambda/lambda2.kt"); + } + + @Test + @TestMetadata("lambda3.kt") + public void testLambda3() { + runTest("compiler/testData/codegen/box/lambda/lambda3.kt"); + } + + @Test + @TestMetadata("lambda4.kt") + public void testLambda4() { + runTest("compiler/testData/codegen/box/lambda/lambda4.kt"); + } + + @Test + @TestMetadata("lambda5.kt") + public void testLambda5() { + runTest("compiler/testData/codegen/box/lambda/lambda5.kt"); + } + + @Test + @TestMetadata("lambda6.kt") + public void testLambda6() { + runTest("compiler/testData/codegen/box/lambda/lambda6.kt"); + } + + @Test + @TestMetadata("lambda7.kt") + public void testLambda7() { + runTest("compiler/testData/codegen/box/lambda/lambda7.kt"); + } + + @Test + @TestMetadata("lambda8.kt") + public void testLambda8() { + runTest("compiler/testData/codegen/box/lambda/lambda8.kt"); + } + + @Test + @TestMetadata("lambda9.kt") + public void testLambda9() { + runTest("compiler/testData/codegen/box/lambda/lambda9.kt"); + } + + @Test + @TestMetadata("lambda_kt49360_trivial.kt") + public void testLambda_kt49360_trivial() { + runTest("compiler/testData/codegen/box/lambda/lambda_kt49360_trivial.kt"); + } + + @Test + @TestMetadata("lambda_kt49360_withFlow.kt") + public void testLambda_kt49360_withFlow() { + runTest("compiler/testData/codegen/box/lambda/lambda_kt49360_withFlow.kt"); + } + + @Test + @TestMetadata("lambda_kt49360_wrapBlock.kt") + public void testLambda_kt49360_wrapBlock() { + runTest("compiler/testData/codegen/box/lambda/lambda_kt49360_wrapBlock.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/lateinit") + @TestDataPath("$PROJECT_ROOT") + public class Lateinit { + @Test + public void testAllFilesPresentInLateinit() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/lateinit"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @Test + @TestMetadata("globalIsInitialized.kt") + public void testGlobalIsInitialized() { + runTest("compiler/testData/codegen/box/lateinit/globalIsInitialized.kt"); + } + + @Test + @TestMetadata("inBaseClass.kt") + public void testInBaseClass() { + runTest("compiler/testData/codegen/box/lateinit/inBaseClass.kt"); + } + + @Test + @TestMetadata("initialized.kt") + public void testInitialized() { + runTest("compiler/testData/codegen/box/lateinit/initialized.kt"); + } + + @Test + @TestMetadata("innerIsInitialized.kt") + public void testInnerIsInitialized() { + runTest("compiler/testData/codegen/box/lateinit/innerIsInitialized.kt"); + } + + @Test + @TestMetadata("isInitialized.kt") + public void testIsInitialized() { + runTest("compiler/testData/codegen/box/lateinit/isInitialized.kt"); + } + + @Test + @TestMetadata("localCapturedInitialized.kt") + public void testLocalCapturedInitialized() { + runTest("compiler/testData/codegen/box/lateinit/localCapturedInitialized.kt"); + } + + @Test + @TestMetadata("localCapturedNotInitialized.kt") + public void testLocalCapturedNotInitialized() { + runTest("compiler/testData/codegen/box/lateinit/localCapturedNotInitialized.kt"); + } + + @Test + @TestMetadata("localInitialized.kt") + public void testLocalInitialized() { + runTest("compiler/testData/codegen/box/lateinit/localInitialized.kt"); + } + + @Test + @TestMetadata("localNotInitialized.kt") + public void testLocalNotInitialized() { + runTest("compiler/testData/codegen/box/lateinit/localNotInitialized.kt"); + } + + @Test + @TestMetadata("notInitialized.kt") + public void testNotInitialized() { + runTest("compiler/testData/codegen/box/lateinit/notInitialized.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/lazyCodegen") @TestDataPath("$PROJECT_ROOT") @@ -23428,6 +26088,98 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes } } + @Nested + @TestMetadata("compiler/testData/codegen/box/literals") + @TestDataPath("$PROJECT_ROOT") + public class Literals { + @Test + public void testAllFilesPresentInLiterals() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/literals"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @Test + @TestMetadata("listof1.kt") + public void testListof1() { + runTest("compiler/testData/codegen/box/literals/listof1.kt"); + } + + @Test + @TestMetadata("strdedup1.kt") + public void testStrdedup1() { + runTest("compiler/testData/codegen/box/literals/strdedup1.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/localClass") + @TestDataPath("$PROJECT_ROOT") + public class LocalClass { + @Test + public void testAllFilesPresentInLocalClass() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/localClass"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @Test + @TestMetadata("innerTakesCapturedFromOuter.kt") + public void testInnerTakesCapturedFromOuter() { + runTest("compiler/testData/codegen/box/localClass/innerTakesCapturedFromOuter.kt"); + } + + @Test + @TestMetadata("innerWithCapture.kt") + public void testInnerWithCapture() { + runTest("compiler/testData/codegen/box/localClass/innerWithCapture.kt"); + } + + @Test + @TestMetadata("localFunctionCallFromLocalClass.kt") + public void testLocalFunctionCallFromLocalClass() { + runTest("compiler/testData/codegen/box/localClass/localFunctionCallFromLocalClass.kt"); + } + + @Test + @TestMetadata("localFunctionInLocalClass.kt") + public void testLocalFunctionInLocalClass() { + runTest("compiler/testData/codegen/box/localClass/localFunctionInLocalClass.kt"); + } + + @Test + @TestMetadata("localHierarchy.kt") + public void testLocalHierarchy() { + runTest("compiler/testData/codegen/box/localClass/localHierarchy.kt"); + } + + @Test + @TestMetadata("noPrimaryConstructor.kt") + public void testNoPrimaryConstructor() { + runTest("compiler/testData/codegen/box/localClass/noPrimaryConstructor.kt"); + } + + @Test + @TestMetadata("objectExpressionInInitializer.kt") + public void testObjectExpressionInInitializer() { + runTest("compiler/testData/codegen/box/localClass/objectExpressionInInitializer.kt"); + } + + @Test + @TestMetadata("objectExpressionInProperty.kt") + public void testObjectExpressionInProperty() { + runTest("compiler/testData/codegen/box/localClass/objectExpressionInProperty.kt"); + } + + @Test + @TestMetadata("tryCatch.kt") + public void testTryCatch() { + runTest("compiler/testData/codegen/box/localClass/tryCatch.kt"); + } + + @Test + @TestMetadata("virtualCallFromConstructor.kt") + public void testVirtualCallFromConstructor() { + runTest("compiler/testData/codegen/box/localClass/virtualCallFromConstructor.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/localClasses") @TestDataPath("$PROJECT_ROOT") @@ -23678,6 +26430,38 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes } } + @Nested + @TestMetadata("compiler/testData/codegen/box/localEscapeAnalysis") + @TestDataPath("$PROJECT_ROOT") + public class LocalEscapeAnalysis { + @Test + public void testAllFilesPresentInLocalEscapeAnalysis() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/localEscapeAnalysis"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @Test + @TestMetadata("arraysFieldWrite.kt") + public void testArraysFieldWrite() { + runTest("compiler/testData/codegen/box/localEscapeAnalysis/arraysFieldWrite.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/lower") + @TestDataPath("$PROJECT_ROOT") + public class Lower { + @Test + public void testAllFilesPresentInLower() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/lower"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @Test + @TestMetadata("localDelegatedProperty.kt") + public void testLocalDelegatedProperty() { + runTest("compiler/testData/codegen/box/lower/localDelegatedProperty.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/mangling") @TestDataPath("$PROJECT_ROOT") @@ -23705,6 +26489,12 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes runTest("compiler/testData/codegen/box/mangling/internalOverrideSuperCall.kt"); } + @Test + @TestMetadata("multipleConstructors.kt") + public void testMultipleConstructors() { + runTest("compiler/testData/codegen/box/mangling/multipleConstructors.kt"); + } + @Test @TestMetadata("parentheses.kt") public void testParentheses() { @@ -24662,6 +27452,98 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes } } + @Nested + @TestMetadata("compiler/testData/codegen/box/object") + @TestDataPath("$PROJECT_ROOT") + public class Object { + @Test + public void testAllFilesPresentInObject() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/object"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @Test + @TestMetadata("constructor0.kt") + public void testConstructor0() { + runTest("compiler/testData/codegen/box/object/constructor0.kt"); + } + + @Test + @TestMetadata("fields.kt") + public void testFields() { + runTest("compiler/testData/codegen/box/object/fields.kt"); + } + + @Test + @TestMetadata("fields1.kt") + public void testFields1() { + runTest("compiler/testData/codegen/box/object/fields1.kt"); + } + + @Test + @TestMetadata("fields2.kt") + public void testFields2() { + runTest("compiler/testData/codegen/box/object/fields2.kt"); + } + + @Test + @TestMetadata("globalInitializer.kt") + public void testGlobalInitializer() { + runTest("compiler/testData/codegen/box/object/globalInitializer.kt"); + } + + @Test + @TestMetadata("init0.kt") + public void testInit0() { + runTest("compiler/testData/codegen/box/object/init0.kt"); + } + + @Test + @TestMetadata("initialization.kt") + public void testInitialization() { + runTest("compiler/testData/codegen/box/object/initialization.kt"); + } + + @Test + @TestMetadata("initialization1.kt") + public void testInitialization1() { + runTest("compiler/testData/codegen/box/object/initialization1.kt"); + } + + @Test + @TestMetadata("method_call.kt") + public void testMethod_call() { + runTest("compiler/testData/codegen/box/object/method_call.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/objectExpression") + @TestDataPath("$PROJECT_ROOT") + public class ObjectExpression { + @Test + public void testAllFilesPresentInObjectExpression() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/objectExpression"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @Test + @TestMetadata("expr1.kt") + public void testExpr1() { + runTest("compiler/testData/codegen/box/objectExpression/expr1.kt"); + } + + @Test + @TestMetadata("expr2.kt") + public void testExpr2() { + runTest("compiler/testData/codegen/box/objectExpression/expr2.kt"); + } + + @Test + @TestMetadata("expr3.kt") + public void testExpr3() { + runTest("compiler/testData/codegen/box/objectExpression/expr3.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/objectIntrinsics") @TestDataPath("$PROJECT_ROOT") @@ -27466,6 +30348,64 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes } } + @Nested + @TestMetadata("compiler/testData/codegen/box/propertyCallableReference") + @TestDataPath("$PROJECT_ROOT") + public class PropertyCallableReference { + @Test + public void testAllFilesPresentInPropertyCallableReference() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/propertyCallableReference"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @Test + @TestMetadata("dynamicReceiver.kt") + public void testDynamicReceiver() { + runTest("compiler/testData/codegen/box/propertyCallableReference/dynamicReceiver.kt"); + } + + @Test + @TestMetadata("multipleModules.kt") + public void testMultipleModules() { + runTest("compiler/testData/codegen/box/propertyCallableReference/multipleModules.kt"); + } + + @Test + @TestMetadata("valClass.kt") + public void testValClass() { + runTest("compiler/testData/codegen/box/propertyCallableReference/valClass.kt"); + } + + @Test + @TestMetadata("valExtension.kt") + public void testValExtension() { + runTest("compiler/testData/codegen/box/propertyCallableReference/valExtension.kt"); + } + + @Test + @TestMetadata("valModule.kt") + public void testValModule() { + runTest("compiler/testData/codegen/box/propertyCallableReference/valModule.kt"); + } + + @Test + @TestMetadata("varClass.kt") + public void testVarClass() { + runTest("compiler/testData/codegen/box/propertyCallableReference/varClass.kt"); + } + + @Test + @TestMetadata("varExtension.kt") + public void testVarExtension() { + runTest("compiler/testData/codegen/box/propertyCallableReference/varExtension.kt"); + } + + @Test + @TestMetadata("varModule.kt") + public void testVarModule() { + runTest("compiler/testData/codegen/box/propertyCallableReference/varModule.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/publishedApi") @TestDataPath("$PROJECT_ROOT") @@ -35182,6 +38122,58 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes } } + @Nested + @TestMetadata("compiler/testData/codegen/box/serialization") + @TestDataPath("$PROJECT_ROOT") + public class Serialization { + @Test + public void testAllFilesPresentInSerialization() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/serialization"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @Test + @TestMetadata("deserializedMembers.kt") + public void testDeserializedMembers() { + runTest("compiler/testData/codegen/box/serialization/deserializedMembers.kt"); + } + + @Test + @TestMetadata("serializedCatch.kt") + public void testSerializedCatch() { + runTest("compiler/testData/codegen/box/serialization/serializedCatch.kt"); + } + + @Test + @TestMetadata("serializedCharConstant.kt") + public void testSerializedCharConstant() { + runTest("compiler/testData/codegen/box/serialization/serializedCharConstant.kt"); + } + + @Test + @TestMetadata("serializedDefaultArgs.kt") + public void testSerializedDefaultArgs() { + runTest("compiler/testData/codegen/box/serialization/serializedDefaultArgs.kt"); + } + + @Test + @TestMetadata("serializedDoWhile.kt") + public void testSerializedDoWhile() { + runTest("compiler/testData/codegen/box/serialization/serializedDoWhile.kt"); + } + + @Test + @TestMetadata("serializedEnumOrdinal.kt") + public void testSerializedEnumOrdinal() { + runTest("compiler/testData/codegen/box/serialization/serializedEnumOrdinal.kt"); + } + + @Test + @TestMetadata("serializedVararg.kt") + public void testSerializedVararg() { + runTest("compiler/testData/codegen/box/serialization/serializedVararg.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/size") @TestDataPath("$PROJECT_ROOT") @@ -35680,6 +38672,22 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes } } + @Nested + @TestMetadata("compiler/testData/codegen/box/stringTrim") + @TestDataPath("$PROJECT_ROOT") + public class StringTrim { + @Test + public void testAllFilesPresentInStringTrim() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/stringTrim"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @Test + @TestMetadata("stringTrim.kt") + public void testStringTrim() { + runTest("compiler/testData/codegen/box/stringTrim/stringTrim.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/strings") @TestDataPath("$PROJECT_ROOT") @@ -36740,6 +39748,142 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes } } + @Nested + @TestMetadata("compiler/testData/codegen/box/try") + @TestDataPath("$PROJECT_ROOT") + public class Try { + @Test + public void testAllFilesPresentInTry() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/try"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @Test + @TestMetadata("catch3.kt") + public void testCatch3() { + runTest("compiler/testData/codegen/box/try/catch3.kt"); + } + + @Test + @TestMetadata("catch4.kt") + public void testCatch4() { + runTest("compiler/testData/codegen/box/try/catch4.kt"); + } + + @Test + @TestMetadata("catch5.kt") + public void testCatch5() { + runTest("compiler/testData/codegen/box/try/catch5.kt"); + } + + @Test + @TestMetadata("catch6.kt") + public void testCatch6() { + runTest("compiler/testData/codegen/box/try/catch6.kt"); + } + + @Test + @TestMetadata("catch8.kt") + public void testCatch8() { + runTest("compiler/testData/codegen/box/try/catch8.kt"); + } + + @Test + @TestMetadata("finally1.kt") + public void testFinally1() { + runTest("compiler/testData/codegen/box/try/finally1.kt"); + } + + @Test + @TestMetadata("finally10.kt") + public void testFinally10() { + runTest("compiler/testData/codegen/box/try/finally10.kt"); + } + + @Test + @TestMetadata("finally11.kt") + public void testFinally11() { + runTest("compiler/testData/codegen/box/try/finally11.kt"); + } + + @Test + @TestMetadata("finally2.kt") + public void testFinally2() { + runTest("compiler/testData/codegen/box/try/finally2.kt"); + } + + @Test + @TestMetadata("finally3.kt") + public void testFinally3() { + runTest("compiler/testData/codegen/box/try/finally3.kt"); + } + + @Test + @TestMetadata("finally4.kt") + public void testFinally4() { + runTest("compiler/testData/codegen/box/try/finally4.kt"); + } + + @Test + @TestMetadata("finally5.kt") + public void testFinally5() { + runTest("compiler/testData/codegen/box/try/finally5.kt"); + } + + @Test + @TestMetadata("finally6.kt") + public void testFinally6() { + runTest("compiler/testData/codegen/box/try/finally6.kt"); + } + + @Test + @TestMetadata("finally7.kt") + public void testFinally7() { + runTest("compiler/testData/codegen/box/try/finally7.kt"); + } + + @Test + @TestMetadata("finally8.kt") + public void testFinally8() { + runTest("compiler/testData/codegen/box/try/finally8.kt"); + } + + @Test + @TestMetadata("finally9.kt") + public void testFinally9() { + runTest("compiler/testData/codegen/box/try/finally9.kt"); + } + + @Test + @TestMetadata("returnsDifferentTypes.kt") + public void testReturnsDifferentTypes() { + runTest("compiler/testData/codegen/box/try/returnsDifferentTypes.kt"); + } + + @Test + @TestMetadata("try1.kt") + public void testTry1() { + runTest("compiler/testData/codegen/box/try/try1.kt"); + } + + @Test + @TestMetadata("try2.kt") + public void testTry2() { + runTest("compiler/testData/codegen/box/try/try2.kt"); + } + + @Test + @TestMetadata("try3.kt") + public void testTry3() { + runTest("compiler/testData/codegen/box/try/try3.kt"); + } + + @Test + @TestMetadata("try4.kt") + public void testTry4() { + runTest("compiler/testData/codegen/box/try/try4.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/typeInfo") @TestDataPath("$PROJECT_ROOT") diff --git a/native/native.tests/testData/codegen/ktype/nonReified_reifiedUpperBound.kt b/native/native.tests/testData/codegen/ktype/nonReified_reifiedUpperBound.kt deleted file mode 100644 index cfec8fda7bd..00000000000 --- a/native/native.tests/testData/codegen/ktype/nonReified_reifiedUpperBound.kt +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright 2010-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license - * that can be found in the LICENSE file. - */ - -import kotlin.test.* -import kotlin.reflect.* - -inline fun reifiedUpperBound() = typeOf>() - -fun box(): String { - val l = reifiedUpperBound() - assertEquals(List::class, l.classifier) - val r = l.arguments.single().type!!.classifier - assertTrue(r is KTypeParameter) - assertFalse((r as KTypeParameter).isReified) - assertEquals("R", (r as KTypeParameter).name) - val t = (r as KTypeParameter).upperBounds.single().classifier - assertTrue(t is KTypeParameter) - assertTrue((t as KTypeParameter).isReified) - assertEquals("T", (t as KTypeParameter).name) - - return "OK" -} 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 f75ab008bfe..4866f7ed060 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 @@ -52,6 +52,12 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe runTest("compiler/testData/codegen/box/annotations/annotationWithDefaultArgInDifferentModule.kt"); } + @Test + @TestMetadata("annotations0.kt") + public void testAnnotations0() { + runTest("compiler/testData/codegen/box/annotations/annotations0.kt"); + } + @Test @TestMetadata("genericAnnotations.kt") public void testGenericAnnotations() { @@ -353,6 +359,85 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe } } + @Nested + @TestMetadata("compiler/testData/codegen/box/arithmetic") + @TestDataPath("$PROJECT_ROOT") + @Tag("frontend-fir") + @FirPipeline() + @UseExtTestCaseGroupProvider() + public class Arithmetic { + @Test + public void testAllFilesPresentInArithmetic() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/arithmetic"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("basic_charConversions.kt") + public void testBasic_charConversions() { + runTest("compiler/testData/codegen/box/arithmetic/basic_charConversions.kt"); + } + + @Test + @TestMetadata("basic_charCornerCases.kt") + public void testBasic_charCornerCases() { + runTest("compiler/testData/codegen/box/arithmetic/basic_charCornerCases.kt"); + } + + @Test + @TestMetadata("basic_compareIntToFloat.kt") + public void testBasic_compareIntToFloat() { + runTest("compiler/testData/codegen/box/arithmetic/basic_compareIntToFloat.kt"); + } + + @Test + @TestMetadata("basic_doubleBasic.kt") + public void testBasic_doubleBasic() { + runTest("compiler/testData/codegen/box/arithmetic/basic_doubleBasic.kt"); + } + + @Test + @TestMetadata("basic_integralToFloat.kt") + public void testBasic_integralToFloat() { + runTest("compiler/testData/codegen/box/arithmetic/basic_integralToFloat.kt"); + } + + @Test + @TestMetadata("basic_kt37412.kt") + public void testBasic_kt37412() { + runTest("compiler/testData/codegen/box/arithmetic/basic_kt37412.kt"); + } + + @Test + @TestMetadata("basic_selfComparison.kt") + public void testBasic_selfComparison() { + runTest("compiler/testData/codegen/box/arithmetic/basic_selfComparison.kt"); + } + + @Test + @TestMetadata("basic_shifts.kt") + public void testBasic_shifts() { + runTest("compiler/testData/codegen/box/arithmetic/basic_shifts.kt"); + } + + @Test + @TestMetadata("basic_uintTests.kt") + public void testBasic_uintTests() { + runTest("compiler/testData/codegen/box/arithmetic/basic_uintTests.kt"); + } + + @Test + @TestMetadata("division.kt") + public void testDivision() { + runTest("compiler/testData/codegen/box/arithmetic/division.kt"); + } + + @Test + @TestMetadata("github1856.kt") + public void testGithub1856() { + runTest("compiler/testData/codegen/box/arithmetic/github1856.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/arrays") @TestDataPath("$PROJECT_ROOT") @@ -1034,6 +1119,308 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe } } + @Nested + @TestMetadata("compiler/testData/codegen/box/basics") + @TestDataPath("$PROJECT_ROOT") + @Tag("frontend-fir") + @FirPipeline() + @UseExtTestCaseGroupProvider() + public class Basics { + @Test + public void testAllFilesPresentInBasics() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/basics"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("array_to_any.kt") + public void testArray_to_any() { + runTest("compiler/testData/codegen/box/basics/array_to_any.kt"); + } + + @Test + @TestMetadata("canonical_name.kt") + public void testCanonical_name() { + runTest("compiler/testData/codegen/box/basics/canonical_name.kt"); + } + + @Test + @TestMetadata("cast_null.kt") + public void testCast_null() { + runTest("compiler/testData/codegen/box/basics/cast_null.kt"); + } + + @Test + @TestMetadata("cast_simple.kt") + public void testCast_simple() { + runTest("compiler/testData/codegen/box/basics/cast_simple.kt"); + } + + @Test + @TestMetadata("check_type.kt") + public void testCheck_type() { + runTest("compiler/testData/codegen/box/basics/check_type.kt"); + } + + @Test + @TestMetadata("companion.kt") + public void testCompanion() { + runTest("compiler/testData/codegen/box/basics/companion.kt"); + } + + @Test + @TestMetadata("concatenation.kt") + public void testConcatenation() { + runTest("compiler/testData/codegen/box/basics/concatenation.kt"); + } + + @Test + @TestMetadata("const_infinity.kt") + public void testConst_infinity() { + runTest("compiler/testData/codegen/box/basics/const_infinity.kt"); + } + + @Test + @TestMetadata("expression_as_statement.kt") + public void testExpression_as_statement() { + runTest("compiler/testData/codegen/box/basics/expression_as_statement.kt"); + } + + @Test + @TestMetadata("k42000_1.kt") + public void testK42000_1() { + runTest("compiler/testData/codegen/box/basics/k42000_1.kt"); + } + + @Test + @TestMetadata("k42000_2.kt") + public void testK42000_2() { + runTest("compiler/testData/codegen/box/basics/k42000_2.kt"); + } + + @Test + @TestMetadata("local_variable.kt") + public void testLocal_variable() { + runTest("compiler/testData/codegen/box/basics/local_variable.kt"); + } + + @Test + @TestMetadata("null_check.kt") + public void testNull_check() { + runTest("compiler/testData/codegen/box/basics/null_check.kt"); + } + + @Test + @TestMetadata("safe_cast.kt") + public void testSafe_cast() { + runTest("compiler/testData/codegen/box/basics/safe_cast.kt"); + } + + @Test + @TestMetadata("spread_operator_0.kt") + public void testSpread_operator_0() { + runTest("compiler/testData/codegen/box/basics/spread_operator_0.kt"); + } + + @Test + @TestMetadata("statements0.kt") + public void testStatements0() { + runTest("compiler/testData/codegen/box/basics/statements0.kt"); + } + + @Test + @TestMetadata("superFunCall.kt") + public void testSuperFunCall() { + runTest("compiler/testData/codegen/box/basics/superFunCall.kt"); + } + + @Test + @TestMetadata("superGetterCall.kt") + public void testSuperGetterCall() { + runTest("compiler/testData/codegen/box/basics/superGetterCall.kt"); + } + + @Test + @TestMetadata("superSetterCall.kt") + public void testSuperSetterCall() { + runTest("compiler/testData/codegen/box/basics/superSetterCall.kt"); + } + + @Test + @TestMetadata("typealias1.kt") + public void testTypealias1() { + runTest("compiler/testData/codegen/box/basics/typealias1.kt"); + } + + @Test + @TestMetadata("unchecked_cast1.kt") + public void testUnchecked_cast1() { + runTest("compiler/testData/codegen/box/basics/unchecked_cast1.kt"); + } + + @Test + @TestMetadata("unchecked_cast2.kt") + public void testUnchecked_cast2() { + runTest("compiler/testData/codegen/box/basics/unchecked_cast2.kt"); + } + + @Test + @TestMetadata("unchecked_cast3.kt") + public void testUnchecked_cast3() { + runTest("compiler/testData/codegen/box/basics/unchecked_cast3.kt"); + } + + @Test + @TestMetadata("unchecked_cast4.kt") + public void testUnchecked_cast4() { + runTest("compiler/testData/codegen/box/basics/unchecked_cast4.kt"); + } + + @Test + @TestMetadata("unit1.kt") + public void testUnit1() { + runTest("compiler/testData/codegen/box/basics/unit1.kt"); + } + + @Test + @TestMetadata("unit2.kt") + public void testUnit2() { + runTest("compiler/testData/codegen/box/basics/unit2.kt"); + } + + @Test + @TestMetadata("unit3.kt") + public void testUnit3() { + runTest("compiler/testData/codegen/box/basics/unit3.kt"); + } + + @Test + @TestMetadata("unit4.kt") + public void testUnit4() { + runTest("compiler/testData/codegen/box/basics/unit4.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/bce") + @TestDataPath("$PROJECT_ROOT") + @Tag("frontend-fir") + @FirPipeline() + @UseExtTestCaseGroupProvider() + public class Bce { + @Test + public void testAllFilesPresentInBce() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/bce"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("bceCases.kt") + public void testBceCases() { + runTest("compiler/testData/codegen/box/bce/bceCases.kt"); + } + + @Test + @TestMetadata("customGetter.kt") + public void testCustomGetter() { + runTest("compiler/testData/codegen/box/bce/customGetter.kt"); + } + + @Test + @TestMetadata("delegatedProperty.kt") + public void testDelegatedProperty() { + runTest("compiler/testData/codegen/box/bce/delegatedProperty.kt"); + } + + @Test + @TestMetadata("differentArrays.kt") + public void testDifferentArrays() { + runTest("compiler/testData/codegen/box/bce/differentArrays.kt"); + } + + @Test + @TestMetadata("differentObjects.kt") + public void testDifferentObjects() { + runTest("compiler/testData/codegen/box/bce/differentObjects.kt"); + } + + @Test + @TestMetadata("forDownToSize.kt") + public void testForDownToSize() { + runTest("compiler/testData/codegen/box/bce/forDownToSize.kt"); + } + + @Test + @TestMetadata("forDownToWithStep.kt") + public void testForDownToWithStep() { + runTest("compiler/testData/codegen/box/bce/forDownToWithStep.kt"); + } + + @Test + @TestMetadata("forEachIndexedTest.kt") + public void testForEachIndexedTest() { + runTest("compiler/testData/codegen/box/bce/forEachIndexedTest.kt"); + } + + @Test + @TestMetadata("forEachIndicies.kt") + public void testForEachIndicies() { + runTest("compiler/testData/codegen/box/bce/forEachIndicies.kt"); + } + + @Test + @TestMetadata("forIndiciesWithStep.kt") + public void testForIndiciesWithStep() { + runTest("compiler/testData/codegen/box/bce/forIndiciesWithStep.kt"); + } + + @Test + @TestMetadata("forRangeToSize.kt") + public void testForRangeToSize() { + runTest("compiler/testData/codegen/box/bce/forRangeToSize.kt"); + } + + @Test + @TestMetadata("forRangeToWithStep.kt") + public void testForRangeToWithStep() { + runTest("compiler/testData/codegen/box/bce/forRangeToWithStep.kt"); + } + + @Test + @TestMetadata("forReversed.kt") + public void testForReversed() { + runTest("compiler/testData/codegen/box/bce/forReversed.kt"); + } + + @Test + @TestMetadata("forUntilSize.kt") + public void testForUntilSize() { + runTest("compiler/testData/codegen/box/bce/forUntilSize.kt"); + } + + @Test + @TestMetadata("forUntilWithStep.kt") + public void testForUntilWithStep() { + runTest("compiler/testData/codegen/box/bce/forUntilWithStep.kt"); + } + + @Test + @TestMetadata("forWithIndex.kt") + public void testForWithIndex() { + runTest("compiler/testData/codegen/box/bce/forWithIndex.kt"); + } + + @Test + @TestMetadata("inheritance.kt") + public void testInheritance() { + runTest("compiler/testData/codegen/box/bce/inheritance.kt"); + } + + @Test + @TestMetadata("withGetter.kt") + public void testWithGetter() { + runTest("compiler/testData/codegen/box/bce/withGetter.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/binaryOp") @TestDataPath("$PROJECT_ROOT") @@ -1203,6 +1590,127 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe } } + @Nested + @TestMetadata("compiler/testData/codegen/box/boxing") + @TestDataPath("$PROJECT_ROOT") + @Tag("frontend-fir") + @FirPipeline() + @UseExtTestCaseGroupProvider() + public class Boxing { + @Test + public void testAllFilesPresentInBoxing() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/boxing"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("box_cache0.kt") + public void testBox_cache0() { + runTest("compiler/testData/codegen/box/boxing/box_cache0.kt"); + } + + @Test + @TestMetadata("boxing0.kt") + public void testBoxing0() { + runTest("compiler/testData/codegen/box/boxing/boxing0.kt"); + } + + @Test + @TestMetadata("boxing1.kt") + public void testBoxing1() { + runTest("compiler/testData/codegen/box/boxing/boxing1.kt"); + } + + @Test + @TestMetadata("boxing10.kt") + public void testBoxing10() { + runTest("compiler/testData/codegen/box/boxing/boxing10.kt"); + } + + @Test + @TestMetadata("boxing11.kt") + public void testBoxing11() { + runTest("compiler/testData/codegen/box/boxing/boxing11.kt"); + } + + @Test + @TestMetadata("boxing12.kt") + public void testBoxing12() { + runTest("compiler/testData/codegen/box/boxing/boxing12.kt"); + } + + @Test + @TestMetadata("boxing13.kt") + public void testBoxing13() { + runTest("compiler/testData/codegen/box/boxing/boxing13.kt"); + } + + @Test + @TestMetadata("boxing14.kt") + public void testBoxing14() { + runTest("compiler/testData/codegen/box/boxing/boxing14.kt"); + } + + @Test + @TestMetadata("boxing15.kt") + public void testBoxing15() { + runTest("compiler/testData/codegen/box/boxing/boxing15.kt"); + } + + @Test + @TestMetadata("boxing2.kt") + public void testBoxing2() { + runTest("compiler/testData/codegen/box/boxing/boxing2.kt"); + } + + @Test + @TestMetadata("boxing3.kt") + public void testBoxing3() { + runTest("compiler/testData/codegen/box/boxing/boxing3.kt"); + } + + @Test + @TestMetadata("boxing4.kt") + public void testBoxing4() { + runTest("compiler/testData/codegen/box/boxing/boxing4.kt"); + } + + @Test + @TestMetadata("boxing5.kt") + public void testBoxing5() { + runTest("compiler/testData/codegen/box/boxing/boxing5.kt"); + } + + @Test + @TestMetadata("boxing6.kt") + public void testBoxing6() { + runTest("compiler/testData/codegen/box/boxing/boxing6.kt"); + } + + @Test + @TestMetadata("boxing7.kt") + public void testBoxing7() { + runTest("compiler/testData/codegen/box/boxing/boxing7.kt"); + } + + @Test + @TestMetadata("boxing8.kt") + public void testBoxing8() { + runTest("compiler/testData/codegen/box/boxing/boxing8.kt"); + } + + @Test + @TestMetadata("boxing9.kt") + public void testBoxing9() { + runTest("compiler/testData/codegen/box/boxing/boxing9.kt"); + } + + @Test + @TestMetadata("kt53100_casts.kt") + public void testKt53100_casts() { + runTest("compiler/testData/codegen/box/boxing/kt53100_casts.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/boxingOptimization") @TestDataPath("$PROJECT_ROOT") @@ -1450,6 +1958,91 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe } } + @Nested + @TestMetadata("compiler/testData/codegen/box/branching") + @TestDataPath("$PROJECT_ROOT") + @Tag("frontend-fir") + @FirPipeline() + @UseExtTestCaseGroupProvider() + public class Branching { + @Test + @TestMetadata("advanced_when2.kt") + public void testAdvanced_when2() { + runTest("compiler/testData/codegen/box/branching/advanced_when2.kt"); + } + + @Test + @TestMetadata("advanced_when5.kt") + public void testAdvanced_when5() { + runTest("compiler/testData/codegen/box/branching/advanced_when5.kt"); + } + + @Test + public void testAllFilesPresentInBranching() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/branching"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("if_else.kt") + public void testIf_else() { + runTest("compiler/testData/codegen/box/branching/if_else.kt"); + } + + @Test + @TestMetadata("when2.kt") + public void testWhen2() { + runTest("compiler/testData/codegen/box/branching/when2.kt"); + } + + @Test + @TestMetadata("when4.kt") + public void testWhen4() { + runTest("compiler/testData/codegen/box/branching/when4.kt"); + } + + @Test + @TestMetadata("when5.kt") + public void testWhen5() { + runTest("compiler/testData/codegen/box/branching/when5.kt"); + } + + @Test + @TestMetadata("when6.kt") + public void testWhen6() { + runTest("compiler/testData/codegen/box/branching/when6.kt"); + } + + @Test + @TestMetadata("when7.kt") + public void testWhen7() { + runTest("compiler/testData/codegen/box/branching/when7.kt"); + } + + @Test + @TestMetadata("when8.kt") + public void testWhen8() { + runTest("compiler/testData/codegen/box/branching/when8.kt"); + } + + @Test + @TestMetadata("when9.kt") + public void testWhen9() { + runTest("compiler/testData/codegen/box/branching/when9.kt"); + } + + @Test + @TestMetadata("when_through.kt") + public void testWhen_through() { + runTest("compiler/testData/codegen/box/branching/when_through.kt"); + } + + @Test + @TestMetadata("when_with_try1.kt") + public void testWhen_with_try1() { + runTest("compiler/testData/codegen/box/branching/when_with_try1.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/bridges") @TestDataPath("$PROJECT_ROOT") @@ -1690,6 +2283,18 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe runTest("compiler/testData/codegen/box/bridges/methodWithDefaultParameter.kt"); } + @Test + @TestMetadata("multipleModules1.kt") + public void testMultipleModules1() { + runTest("compiler/testData/codegen/box/bridges/multipleModules1.kt"); + } + + @Test + @TestMetadata("multipleModules2.kt") + public void testMultipleModules2() { + runTest("compiler/testData/codegen/box/bridges/multipleModules2.kt"); + } + @Test @TestMetadata("nestedClassTypeParameters.kt") public void testNestedClassTypeParameters() { @@ -1750,6 +2355,12 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe runTest("compiler/testData/codegen/box/bridges/propertySetter.kt"); } + @Test + @TestMetadata("returnTypeSignature.kt") + public void testReturnTypeSignature() { + runTest("compiler/testData/codegen/box/bridges/returnTypeSignature.kt"); + } + @Test @TestMetadata("simple.kt") public void testSimple() { @@ -1792,12 +2403,138 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe runTest("compiler/testData/codegen/box/bridges/simpleUpperBound.kt"); } + @Test + @TestMetadata("special.kt") + public void testSpecial() { + runTest("compiler/testData/codegen/box/bridges/special.kt"); + } + + @Test + @TestMetadata("specialGeneric.kt") + public void testSpecialGeneric() { + runTest("compiler/testData/codegen/box/bridges/specialGeneric.kt"); + } + @Test @TestMetadata("strListContains.kt") public void testStrListContains() { runTest("compiler/testData/codegen/box/bridges/strListContains.kt"); } + @Test + @TestMetadata("test0.kt") + public void testTest0() { + runTest("compiler/testData/codegen/box/bridges/test0.kt"); + } + + @Test + @TestMetadata("test1.kt") + public void testTest1() { + runTest("compiler/testData/codegen/box/bridges/test1.kt"); + } + + @Test + @TestMetadata("test10.kt") + public void testTest10() { + runTest("compiler/testData/codegen/box/bridges/test10.kt"); + } + + @Test + @TestMetadata("test11.kt") + public void testTest11() { + runTest("compiler/testData/codegen/box/bridges/test11.kt"); + } + + @Test + @TestMetadata("test12.kt") + public void testTest12() { + runTest("compiler/testData/codegen/box/bridges/test12.kt"); + } + + @Test + @TestMetadata("test13.kt") + public void testTest13() { + runTest("compiler/testData/codegen/box/bridges/test13.kt"); + } + + @Test + @TestMetadata("test14.kt") + public void testTest14() { + runTest("compiler/testData/codegen/box/bridges/test14.kt"); + } + + @Test + @TestMetadata("test15.kt") + public void testTest15() { + runTest("compiler/testData/codegen/box/bridges/test15.kt"); + } + + @Test + @TestMetadata("test16.kt") + public void testTest16() { + runTest("compiler/testData/codegen/box/bridges/test16.kt"); + } + + @Test + @TestMetadata("test17.kt") + public void testTest17() { + runTest("compiler/testData/codegen/box/bridges/test17.kt"); + } + + @Test + @TestMetadata("test18.kt") + public void testTest18() { + runTest("compiler/testData/codegen/box/bridges/test18.kt"); + } + + @Test + @TestMetadata("test2.kt") + public void testTest2() { + runTest("compiler/testData/codegen/box/bridges/test2.kt"); + } + + @Test + @TestMetadata("test3.kt") + public void testTest3() { + runTest("compiler/testData/codegen/box/bridges/test3.kt"); + } + + @Test + @TestMetadata("test4.kt") + public void testTest4() { + runTest("compiler/testData/codegen/box/bridges/test4.kt"); + } + + @Test + @TestMetadata("test5.kt") + public void testTest5() { + runTest("compiler/testData/codegen/box/bridges/test5.kt"); + } + + @Test + @TestMetadata("test6.kt") + public void testTest6() { + runTest("compiler/testData/codegen/box/bridges/test6.kt"); + } + + @Test + @TestMetadata("test7.kt") + public void testTest7() { + runTest("compiler/testData/codegen/box/bridges/test7.kt"); + } + + @Test + @TestMetadata("test8.kt") + public void testTest8() { + runTest("compiler/testData/codegen/box/bridges/test8.kt"); + } + + @Test + @TestMetadata("test9.kt") + public void testTest9() { + runTest("compiler/testData/codegen/box/bridges/test9.kt"); + } + @Test @TestMetadata("traitImplInheritsTraitImpl.kt") public void testTraitImplInheritsTraitImpl() { @@ -4796,6 +5533,49 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe } } + @Nested + @TestMetadata("compiler/testData/codegen/box/classDelegation") + @TestDataPath("$PROJECT_ROOT") + @Tag("frontend-fir") + @FirPipeline() + @UseExtTestCaseGroupProvider() + public class ClassDelegation { + @Test + public void testAllFilesPresentInClassDelegation() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/classDelegation"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("generic.kt") + public void testGeneric() { + runTest("compiler/testData/codegen/box/classDelegation/generic.kt"); + } + + @Test + @TestMetadata("method.kt") + public void testMethod() { + runTest("compiler/testData/codegen/box/classDelegation/method.kt"); + } + + @Test + @TestMetadata("multipleModules.kt") + public void testMultipleModules() { + runTest("compiler/testData/codegen/box/classDelegation/multipleModules.kt"); + } + + @Test + @TestMetadata("property.kt") + public void testProperty() { + runTest("compiler/testData/codegen/box/classDelegation/property.kt"); + } + + @Test + @TestMetadata("withBridge.kt") + public void testWithBridge() { + runTest("compiler/testData/codegen/box/classDelegation/withBridge.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/classLiteral") @TestDataPath("$PROJECT_ROOT") @@ -7189,6 +7969,12 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe runTest("compiler/testData/codegen/box/contracts/constructorArgument.kt"); } + @Test + @TestMetadata("contractForCast.kt") + public void testContractForCast() { + runTest("compiler/testData/codegen/box/contracts/contractForCast.kt"); + } + @Test @TestMetadata("destructuredVariable.kt") public void testDestructuredVariable() { @@ -7231,6 +8017,12 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe runTest("compiler/testData/codegen/box/contracts/functionParameter.kt"); } + @Test + @TestMetadata("isNullString.kt") + public void testIsNullString() { + runTest("compiler/testData/codegen/box/contracts/isNullString.kt"); + } + @Test @TestMetadata("kt39374.kt") public void testKt39374() { @@ -7273,6 +8065,24 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe runTest("compiler/testData/codegen/box/contracts/nestedLambdaInNonInlineCallExactlyOnce.kt"); } + @Test + @TestMetadata("nonNullSmartCast.kt") + public void testNonNullSmartCast() { + runTest("compiler/testData/codegen/box/contracts/nonNullSmartCast.kt"); + } + + @Test + @TestMetadata("require.kt") + public void testRequire() { + runTest("compiler/testData/codegen/box/contracts/require.kt"); + } + + @Test + @TestMetadata("runLambdaForVal.kt") + public void testRunLambdaForVal() { + runTest("compiler/testData/codegen/box/contracts/runLambdaForVal.kt"); + } + @Test @TestMetadata("valInWhen.kt") public void testValInWhen() { @@ -8690,6 +9500,127 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe } } + @Nested + @TestMetadata("compiler/testData/codegen/box/controlflow") + @TestDataPath("$PROJECT_ROOT") + @Tag("frontend-fir") + @FirPipeline() + @UseExtTestCaseGroupProvider() + public class Controlflow { + @Test + public void testAllFilesPresentInControlflow() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/controlflow"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("break.kt") + public void testBreak() { + runTest("compiler/testData/codegen/box/controlflow/break.kt"); + } + + @Test + @TestMetadata("break1.kt") + public void testBreak1() { + runTest("compiler/testData/codegen/box/controlflow/break1.kt"); + } + + @Test + @TestMetadata("for_loops.kt") + public void testFor_loops() { + runTest("compiler/testData/codegen/box/controlflow/for_loops.kt"); + } + + @Test + @TestMetadata("for_loops_array_break_continue.kt") + public void testFor_loops_array_break_continue() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_array_break_continue.kt"); + } + + @Test + @TestMetadata("for_loops_array_indices.kt") + public void testFor_loops_array_indices() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_array_indices.kt"); + } + + @Test + @TestMetadata("for_loops_array_mutation.kt") + public void testFor_loops_array_mutation() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_array_mutation.kt"); + } + + @Test + @TestMetadata("for_loops_array_nested.kt") + public void testFor_loops_array_nested() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_array_nested.kt"); + } + + @Test + @TestMetadata("for_loops_array_nullable.kt") + public void testFor_loops_array_nullable() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_array_nullable.kt"); + } + + @Test + @TestMetadata("for_loops_array_side_effects.kt") + public void testFor_loops_array_side_effects() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_array_side_effects.kt"); + } + + @Test + @TestMetadata("for_loops_call_order.kt") + public void testFor_loops_call_order() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_call_order.kt"); + } + + @Test + @TestMetadata("for_loops_coroutines.kt") + public void testFor_loops_coroutines() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_coroutines.kt"); + } + + @Test + @TestMetadata("for_loops_empty_range.kt") + public void testFor_loops_empty_range() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_empty_range.kt"); + } + + @Test + @TestMetadata("for_loops_errors.kt") + public void testFor_loops_errors() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_errors.kt"); + } + + @Test + @TestMetadata("for_loops_let_with_nullable.kt") + public void testFor_loops_let_with_nullable() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_let_with_nullable.kt"); + } + + @Test + @TestMetadata("for_loops_nested.kt") + public void testFor_loops_nested() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_nested.kt"); + } + + @Test + @TestMetadata("for_loops_overflow.kt") + public void testFor_loops_overflow() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_overflow.kt"); + } + + @Test + @TestMetadata("for_loops_types.kt") + public void testFor_loops_types() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_types.kt"); + } + + @Test + @TestMetadata("unreachable1.kt") + public void testUnreachable1() { + runTest("compiler/testData/codegen/box/controlflow/unreachable1.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/coroutines") @TestDataPath("$PROJECT_ROOT") @@ -8714,6 +9645,12 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); } + @Test + @TestMetadata("anonymousObject.kt") + public void testAnonymousObject() { + runTest("compiler/testData/codegen/box/coroutines/anonymousObject.kt"); + } + @Test @TestMetadata("asyncIteratorNullMerge_1_3.kt") public void testAsyncIteratorNullMerge_1_3() { @@ -8798,18 +9735,156 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe runTest("compiler/testData/codegen/box/coroutines/coercionToUnit.kt"); } + @Test + @TestMetadata("controlFlow_chain.kt") + public void testControlFlow_chain() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_chain.kt"); + } + + @Test + @TestMetadata("controlFlow_finally1.kt") + public void testControlFlow_finally1() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally1.kt"); + } + + @Test + @TestMetadata("controlFlow_finally2.kt") + public void testControlFlow_finally2() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally2.kt"); + } + + @Test + @TestMetadata("controlFlow_finally3.kt") + public void testControlFlow_finally3() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally3.kt"); + } + + @Test + @TestMetadata("controlFlow_finally4.kt") + public void testControlFlow_finally4() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally4.kt"); + } + + @Test + @TestMetadata("controlFlow_finally5.kt") + public void testControlFlow_finally5() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally5.kt"); + } + + @Test + @TestMetadata("controlFlow_finally6.kt") + public void testControlFlow_finally6() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally6.kt"); + } + + @Test + @TestMetadata("controlFlow_finally7.kt") + public void testControlFlow_finally7() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally7.kt"); + } + + @Test + @TestMetadata("controlFlow_if1.kt") + public void testControlFlow_if1() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_if1.kt"); + } + + @Test + @TestMetadata("controlFlow_if2.kt") + public void testControlFlow_if2() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_if2.kt"); + } + + @Test + @TestMetadata("controlFlow_inline1.kt") + public void testControlFlow_inline1() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_inline1.kt"); + } + + @Test + @TestMetadata("controlFlow_inline2.kt") + public void testControlFlow_inline2() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_inline2.kt"); + } + + @Test + @TestMetadata("controlFlow_inline3.kt") + public void testControlFlow_inline3() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_inline3.kt"); + } + + @Test + @TestMetadata("controlFlow_tryCatch1.kt") + public void testControlFlow_tryCatch1() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_tryCatch1.kt"); + } + + @Test + @TestMetadata("controlFlow_tryCatch2.kt") + public void testControlFlow_tryCatch2() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_tryCatch2.kt"); + } + + @Test + @TestMetadata("controlFlow_tryCatch3.kt") + public void testControlFlow_tryCatch3() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_tryCatch3.kt"); + } + + @Test + @TestMetadata("controlFlow_tryCatch4.kt") + public void testControlFlow_tryCatch4() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_tryCatch4.kt"); + } + + @Test + @TestMetadata("controlFlow_tryCatch5.kt") + public void testControlFlow_tryCatch5() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_tryCatch5.kt"); + } + + @Test + @TestMetadata("controlFlow_while1.kt") + public void testControlFlow_while1() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_while1.kt"); + } + + @Test + @TestMetadata("controlFlow_while2.kt") + public void testControlFlow_while2() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_while2.kt"); + } + @Test @TestMetadata("controllerAccessFromInnerLambda.kt") public void testControllerAccessFromInnerLambda() { runTest("compiler/testData/codegen/box/coroutines/controllerAccessFromInnerLambda.kt"); } + @Test + @TestMetadata("coroutineContext1.kt") + public void testCoroutineContext1() { + runTest("compiler/testData/codegen/box/coroutines/coroutineContext1.kt"); + } + + @Test + @TestMetadata("coroutineContext2.kt") + public void testCoroutineContext2() { + runTest("compiler/testData/codegen/box/coroutines/coroutineContext2.kt"); + } + @Test @TestMetadata("coroutineContextInInlinedLambda.kt") public void testCoroutineContextInInlinedLambda() { runTest("compiler/testData/codegen/box/coroutines/coroutineContextInInlinedLambda.kt"); } + @Test + @TestMetadata("correctOrder1.kt") + public void testCorrectOrder1() { + runTest("compiler/testData/codegen/box/coroutines/correctOrder1.kt"); + } + @Test @TestMetadata("createCoroutineSafe.kt") public void testCreateCoroutineSafe() { @@ -8840,6 +9915,18 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe runTest("compiler/testData/codegen/box/coroutines/defaultParametersInSuspend.kt"); } + @Test + @TestMetadata("degenerate1.kt") + public void testDegenerate1() { + runTest("compiler/testData/codegen/box/coroutines/degenerate1.kt"); + } + + @Test + @TestMetadata("degenerate2.kt") + public void testDegenerate2() { + runTest("compiler/testData/codegen/box/coroutines/degenerate2.kt"); + } + @Test @TestMetadata("delegatedSuspendMember.kt") public void testDelegatedSuspendMember() { @@ -8888,6 +9975,30 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe runTest("compiler/testData/codegen/box/coroutines/falseUnitCoercion.kt"); } + @Test + @TestMetadata("functionReference_eqeq_name.kt") + public void testFunctionReference_eqeq_name() { + runTest("compiler/testData/codegen/box/coroutines/functionReference_eqeq_name.kt"); + } + + @Test + @TestMetadata("functionReference_invokeAsFunction.kt") + public void testFunctionReference_invokeAsFunction() { + runTest("compiler/testData/codegen/box/coroutines/functionReference_invokeAsFunction.kt"); + } + + @Test + @TestMetadata("functionReference_lambdaAsSuspendLambda.kt") + public void testFunctionReference_lambdaAsSuspendLambda() { + runTest("compiler/testData/codegen/box/coroutines/functionReference_lambdaAsSuspendLambda.kt"); + } + + @Test + @TestMetadata("functionReference_simple.kt") + public void testFunctionReference_simple() { + runTest("compiler/testData/codegen/box/coroutines/functionReference_simple.kt"); + } + @Test @TestMetadata("generate.kt") public void testGenerate() { @@ -9062,6 +10173,12 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe runTest("compiler/testData/codegen/box/coroutines/kt35967.kt"); } + @Test + @TestMetadata("kt41394.kt") + public void testKt41394() { + runTest("compiler/testData/codegen/box/coroutines/kt41394.kt"); + } + @Test @TestMetadata("kt42028.kt") public void testKt42028() { @@ -9290,12 +10407,30 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe runTest("compiler/testData/codegen/box/coroutines/returnByLabel.kt"); } + @Test + @TestMetadata("returnsNothing1.kt") + public void testReturnsNothing1() { + runTest("compiler/testData/codegen/box/coroutines/returnsNothing1.kt"); + } + + @Test + @TestMetadata("returnsUnit1.kt") + public void testReturnsUnit1() { + runTest("compiler/testData/codegen/box/coroutines/returnsUnit1.kt"); + } + @Test @TestMetadata("simple.kt") public void testSimple() { runTest("compiler/testData/codegen/box/coroutines/simple.kt"); } + @Test + @TestMetadata("simple2.kt") + public void testSimple2() { + runTest("compiler/testData/codegen/box/coroutines/simple2.kt"); + } + @Test @TestMetadata("simpleException.kt") public void testSimpleException() { @@ -9338,6 +10473,12 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe runTest("compiler/testData/codegen/box/coroutines/suspendCallsInArguments.kt"); } + @Test + @TestMetadata("suspendConversion.kt") + public void testSuspendConversion() { + runTest("compiler/testData/codegen/box/coroutines/suspendConversion.kt"); + } + @Test @TestMetadata("suspendCoroutineFromStateMachine.kt") public void testSuspendCoroutineFromStateMachine() { @@ -9494,6 +10635,12 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe runTest("compiler/testData/codegen/box/coroutines/varargCallFromSuspend.kt"); } + @Test + @TestMetadata("withReceiver.kt") + public void testWithReceiver() { + runTest("compiler/testData/codegen/box/coroutines/withReceiver.kt"); + } + @Nested @TestMetadata("compiler/testData/codegen/box/coroutines/bridges") @TestDataPath("$PROJECT_ROOT") @@ -11829,6 +12976,37 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe } } + @Nested + @TestMetadata("compiler/testData/codegen/box/cycles") + @TestDataPath("$PROJECT_ROOT") + @Tag("frontend-fir") + @FirPipeline() + @UseExtTestCaseGroupProvider() + public class Cycles { + @Test + public void testAllFilesPresentInCycles() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cycles"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("cycle.kt") + public void testCycle() { + runTest("compiler/testData/codegen/box/cycles/cycle.kt"); + } + + @Test + @TestMetadata("cycle_do.kt") + public void testCycle_do() { + runTest("compiler/testData/codegen/box/cycles/cycle_do.kt"); + } + + @Test + @TestMetadata("cycle_for.kt") + public void testCycle_for() { + runTest("compiler/testData/codegen/box/cycles/cycle_for.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/dataClasses") @TestDataPath("$PROJECT_ROOT") @@ -12256,6 +13434,31 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe } } + @Nested + @TestMetadata("compiler/testData/codegen/box/dataflow") + @TestDataPath("$PROJECT_ROOT") + @Tag("frontend-fir") + @FirPipeline() + @UseExtTestCaseGroupProvider() + public class Dataflow { + @Test + public void testAllFilesPresentInDataflow() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/dataflow"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("scope1.kt") + public void testScope1() { + runTest("compiler/testData/codegen/box/dataflow/scope1.kt"); + } + + @Test + @TestMetadata("uninitialized_val.kt") + public void testUninitialized_val() { + runTest("compiler/testData/codegen/box/dataflow/uninitialized_val.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/deadCodeElimination") @TestDataPath("$PROJECT_ROOT") @@ -12899,6 +14102,12 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe runTest("compiler/testData/codegen/box/delegatedProperty/castSetParameter.kt"); } + @Test + @TestMetadata("correctFieldsOrder.kt") + public void testCorrectFieldsOrder() { + runTest("compiler/testData/codegen/box/delegatedProperty/correctFieldsOrder.kt"); + } + @Test @TestMetadata("delegateAsInnerClass.kt") public void testDelegateAsInnerClass() { @@ -12953,6 +14162,12 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe runTest("compiler/testData/codegen/box/delegatedProperty/delegateWithPrivateSet.kt"); } + @Test + @TestMetadata("delegatedOverride.kt") + public void testDelegatedOverride() { + runTest("compiler/testData/codegen/box/delegatedProperty/delegatedOverride.kt"); + } + @Test @TestMetadata("delegatedPropertyInEnum.kt") public void testDelegatedPropertyInEnum() { @@ -13085,12 +14300,42 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe runTest("compiler/testData/codegen/box/delegatedProperty/kt9712.kt"); } + @Test + @TestMetadata("lazy.kt") + public void testLazy() { + runTest("compiler/testData/codegen/box/delegatedProperty/lazy.kt"); + } + + @Test + @TestMetadata("local.kt") + public void testLocal() { + runTest("compiler/testData/codegen/box/delegatedProperty/local.kt"); + } + + @Test + @TestMetadata("map.kt") + public void testMap() { + runTest("compiler/testData/codegen/box/delegatedProperty/map.kt"); + } + @Test @TestMetadata("noTypeVariablesLeft.kt") public void testNoTypeVariablesLeft() { runTest("compiler/testData/codegen/box/delegatedProperty/noTypeVariablesLeft.kt"); } + @Test + @TestMetadata("observable.kt") + public void testObservable() { + runTest("compiler/testData/codegen/box/delegatedProperty/observable.kt"); + } + + @Test + @TestMetadata("packageLevel.kt") + public void testPackageLevel() { + runTest("compiler/testData/codegen/box/delegatedProperty/packageLevel.kt"); + } + @Test @TestMetadata("privateVar.kt") public void testPrivateVar() { @@ -13133,6 +14378,18 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe runTest("compiler/testData/codegen/box/delegatedProperty/setAsExtensionFunInClass.kt"); } + @Test + @TestMetadata("simpleVal.kt") + public void testSimpleVal() { + runTest("compiler/testData/codegen/box/delegatedProperty/simpleVal.kt"); + } + + @Test + @TestMetadata("simpleVar.kt") + public void testSimpleVar() { + runTest("compiler/testData/codegen/box/delegatedProperty/simpleVar.kt"); + } + @Test @TestMetadata("topLevelVal.kt") public void testTopLevelVal() { @@ -13973,6 +15230,43 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe } } + @Nested + @TestMetadata("compiler/testData/codegen/box/devirtualization") + @TestDataPath("$PROJECT_ROOT") + @Tag("frontend-fir") + @FirPipeline() + @UseExtTestCaseGroupProvider() + public class Devirtualization { + @Test + public void testAllFilesPresentInDevirtualization() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/devirtualization"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("anonymousObject.kt") + public void testAnonymousObject() { + runTest("compiler/testData/codegen/box/devirtualization/anonymousObject.kt"); + } + + @Test + @TestMetadata("getter_looking_as_box_function.kt") + public void testGetter_looking_as_box_function() { + runTest("compiler/testData/codegen/box/devirtualization/getter_looking_as_box_function.kt"); + } + + @Test + @TestMetadata("inline_getter.kt") + public void testInline_getter() { + runTest("compiler/testData/codegen/box/devirtualization/inline_getter.kt"); + } + + @Test + @TestMetadata("lateinitInterface.kt") + public void testLateinitInterface() { + runTest("compiler/testData/codegen/box/devirtualization/lateinitInterface.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/diagnostics") @TestDataPath("$PROJECT_ROOT") @@ -14619,6 +15913,12 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe runTest("compiler/testData/codegen/box/enum/companionAccessingEnumValue.kt"); } + @Test + @TestMetadata("companionObject.kt") + public void testCompanionObject() { + runTest("compiler/testData/codegen/box/enum/companionObject.kt"); + } + @Test @TestMetadata("companionObjectInEnum.kt") public void testCompanionObjectInEnum() { @@ -14763,6 +16063,12 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe runTest("compiler/testData/codegen/box/enum/enumWithLambdaParameter.kt"); } + @Test + @TestMetadata("enum_equals.kt") + public void testEnum_equals() { + runTest("compiler/testData/codegen/box/enum/enum_equals.kt"); + } + @Test @TestMetadata("getEnumEntityByOrdinal.kt") public void testGetEnumEntityByOrdinal() { @@ -14835,6 +16141,18 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe runTest("compiler/testData/codegen/box/enum/innerWithExistingClassObject.kt"); } + @Test + @TestMetadata("interfaceCallNoEntryClass.kt") + public void testInterfaceCallNoEntryClass() { + runTest("compiler/testData/codegen/box/enum/interfaceCallNoEntryClass.kt"); + } + + @Test + @TestMetadata("interfaceCallWithEntryClass.kt") + public void testInterfaceCallWithEntryClass() { + runTest("compiler/testData/codegen/box/enum/interfaceCallWithEntryClass.kt"); + } + @Test @TestMetadata("k54079.kt") public void testK54079() { @@ -14889,6 +16207,12 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe runTest("compiler/testData/codegen/box/enum/kt2350.kt"); } + @Test + @TestMetadata("kt38540.kt") + public void testKt38540() { + runTest("compiler/testData/codegen/box/enum/kt38540.kt"); + } + @Test @TestMetadata("kt38996.kt") public void testKt38996() { @@ -14985,12 +16309,42 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe runTest("compiler/testData/codegen/box/enum/kt9711_2.kt"); } + @Test + @TestMetadata("lambdaInDefault.kt") + public void testLambdaInDefault() { + runTest("compiler/testData/codegen/box/enum/lambdaInDefault.kt"); + } + + @Test + @TestMetadata("loop.kt") + public void testLoop() { + runTest("compiler/testData/codegen/box/enum/loop.kt"); + } + @Test @TestMetadata("manyDefaultParameters.kt") public void testManyDefaultParameters() { runTest("compiler/testData/codegen/box/enum/manyDefaultParameters.kt"); } + @Test + @TestMetadata("multipleModules.kt") + public void testMultipleModules() { + runTest("compiler/testData/codegen/box/enum/multipleModules.kt"); + } + + @Test + @TestMetadata("nested.kt") + public void testNested() { + runTest("compiler/testData/codegen/box/enum/nested.kt"); + } + + @Test + @TestMetadata("openMethodNoOverrides.kt") + public void testOpenMethodNoOverrides() { + runTest("compiler/testData/codegen/box/enum/openMethodNoOverrides.kt"); + } + @Test @TestMetadata("ordinal.kt") public void testOrdinal() { @@ -15015,6 +16369,12 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe runTest("compiler/testData/codegen/box/enum/refToThis.kt"); } + @Test + @TestMetadata("reorderedArguments.kt") + public void testReorderedArguments() { + runTest("compiler/testData/codegen/box/enum/reorderedArguments.kt"); + } + @Test @TestMetadata("simple.kt") public void testSimple() { @@ -15033,18 +16393,66 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe runTest("compiler/testData/codegen/box/enum/superCallInEnumLiteral.kt"); } + @Test + @TestMetadata("switchLowering.kt") + public void testSwitchLowering() { + runTest("compiler/testData/codegen/box/enum/switchLowering.kt"); + } + + @Test + @TestMetadata("test0.kt") + public void testTest0() { + runTest("compiler/testData/codegen/box/enum/test0.kt"); + } + + @Test + @TestMetadata("test1.kt") + public void testTest1() { + runTest("compiler/testData/codegen/box/enum/test1.kt"); + } + @Test @TestMetadata("toString.kt") public void testToString() { runTest("compiler/testData/codegen/box/enum/toString.kt"); } + @Test + @TestMetadata("vCallNoEntryClass.kt") + public void testVCallNoEntryClass() { + runTest("compiler/testData/codegen/box/enum/vCallNoEntryClass.kt"); + } + + @Test + @TestMetadata("vCallWithEntryClass.kt") + public void testVCallWithEntryClass() { + runTest("compiler/testData/codegen/box/enum/vCallWithEntryClass.kt"); + } + + @Test + @TestMetadata("valueOf2.kt") + public void testValueOf2() { + runTest("compiler/testData/codegen/box/enum/valueOf2.kt"); + } + @Test @TestMetadata("valueof.kt") public void testValueof() { runTest("compiler/testData/codegen/box/enum/valueof.kt"); } + @Test + @TestMetadata("values.kt") + public void testValues() { + runTest("compiler/testData/codegen/box/enum/values.kt"); + } + + @Test + @TestMetadata("varargParam.kt") + public void testVarargParam() { + runTest("compiler/testData/codegen/box/enum/varargParam.kt"); + } + @Test @TestMetadata("whenInObject.kt") public void testWhenInObject() { @@ -15126,6 +16534,115 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe } } + @Nested + @TestMetadata("compiler/testData/codegen/box/escapeAnalysis") + @TestDataPath("$PROJECT_ROOT") + @Tag("frontend-fir") + @FirPipeline() + @UseExtTestCaseGroupProvider() + public class EscapeAnalysis { + @Test + public void testAllFilesPresentInEscapeAnalysis() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/escapeAnalysis"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("recursion.kt") + public void testRecursion() { + runTest("compiler/testData/codegen/box/escapeAnalysis/recursion.kt"); + } + + @Test + @TestMetadata("stack_array.kt") + public void testStack_array() { + runTest("compiler/testData/codegen/box/escapeAnalysis/stack_array.kt"); + } + + @Test + @TestMetadata("test1.kt") + public void testTest1() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test1.kt"); + } + + @Test + @TestMetadata("test10.kt") + public void testTest10() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test10.kt"); + } + + @Test + @TestMetadata("test11.kt") + public void testTest11() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test11.kt"); + } + + @Test + @TestMetadata("test12.kt") + public void testTest12() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test12.kt"); + } + + @Test + @TestMetadata("test13.kt") + public void testTest13() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test13.kt"); + } + + @Test + @TestMetadata("test2.kt") + public void testTest2() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test2.kt"); + } + + @Test + @TestMetadata("test3.kt") + public void testTest3() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test3.kt"); + } + + @Test + @TestMetadata("test4.kt") + public void testTest4() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test4.kt"); + } + + @Test + @TestMetadata("test5.kt") + public void testTest5() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test5.kt"); + } + + @Test + @TestMetadata("test6.kt") + public void testTest6() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test6.kt"); + } + + @Test + @TestMetadata("test7.kt") + public void testTest7() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test7.kt"); + } + + @Test + @TestMetadata("test8.kt") + public void testTest8() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test8.kt"); + } + + @Test + @TestMetadata("test9.kt") + public void testTest9() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test9.kt"); + } + + @Test + @TestMetadata("zeroOutObjectOnAlloc.kt") + public void testZeroOutObjectOnAlloc() { + runTest("compiler/testData/codegen/box/escapeAnalysis/zeroOutObjectOnAlloc.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/evaluate") @TestDataPath("$PROJECT_ROOT") @@ -15145,6 +16662,61 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe } } + @Nested + @TestMetadata("compiler/testData/codegen/box/exceptions") + @TestDataPath("$PROJECT_ROOT") + @Tag("frontend-fir") + @FirPipeline() + @UseExtTestCaseGroupProvider() + public class Exceptions { + @Test + public void testAllFilesPresentInExceptions() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/exceptions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("catch1.kt") + public void testCatch1() { + runTest("compiler/testData/codegen/box/exceptions/catch1.kt"); + } + + @Test + @TestMetadata("catch2.kt") + public void testCatch2() { + runTest("compiler/testData/codegen/box/exceptions/catch2.kt"); + } + + @Test + @TestMetadata("catch7.kt") + public void testCatch7() { + runTest("compiler/testData/codegen/box/exceptions/catch7.kt"); + } + + @Test + @TestMetadata("extend0.kt") + public void testExtend0() { + runTest("compiler/testData/codegen/box/exceptions/extend0.kt"); + } + + @Test + @TestMetadata("rethrow.kt") + public void testRethrow() { + runTest("compiler/testData/codegen/box/exceptions/rethrow.kt"); + } + + @Test + @TestMetadata("throw0.kt") + public void testThrow0() { + runTest("compiler/testData/codegen/box/exceptions/throw0.kt"); + } + + @Test + @TestMetadata("throw_from_catch.kt") + public void testThrow_from_catch() { + runTest("compiler/testData/codegen/box/exceptions/throw_from_catch.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/exclExcl") @TestDataPath("$PROJECT_ROOT") @@ -16072,6 +17644,12 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe runTest("compiler/testData/codegen/box/funInterface/funInterfaceWithReceiver.kt"); } + @Test + @TestMetadata("implIsNotFunction.kt") + public void testImplIsNotFunction() { + runTest("compiler/testData/codegen/box/funInterface/implIsNotFunction.kt"); + } + @Test @TestMetadata("inlinedSamWrapper.kt") public void testInlinedSamWrapper() { @@ -16114,6 +17692,18 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe runTest("compiler/testData/codegen/box/funInterface/kt46908_functionSupertype.kt"); } + @Test + @TestMetadata("kt49384.kt") + public void testKt49384() { + runTest("compiler/testData/codegen/box/funInterface/kt49384.kt"); + } + + @Test + @TestMetadata("kt49384_getSame.kt") + public void testKt49384_getSame() { + runTest("compiler/testData/codegen/box/funInterface/kt49384_getSame.kt"); + } + @Test @TestMetadata("multimodule.kt") public void testMultimodule() { @@ -16132,6 +17722,12 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe runTest("compiler/testData/codegen/box/funInterface/nonAbstractMethod.kt"); } + @Test + @TestMetadata("nonTrivialProjectionInSuperType.kt") + public void testNonTrivialProjectionInSuperType() { + runTest("compiler/testData/codegen/box/funInterface/nonTrivialProjectionInSuperType.kt"); + } + @Test @TestMetadata("nullableSam.kt") public void testNullableSam() { @@ -16224,6 +17820,235 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe } } + @Nested + @TestMetadata("compiler/testData/codegen/box/function") + @TestDataPath("$PROJECT_ROOT") + @Tag("frontend-fir") + @FirPipeline() + @UseExtTestCaseGroupProvider() + public class Function { + @Test + public void testAllFilesPresentInFunction() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/function"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("arithmetic.kt") + public void testArithmetic() { + runTest("compiler/testData/codegen/box/function/arithmetic.kt"); + } + + @Test + @TestMetadata("boolean.kt") + public void testBoolean() { + runTest("compiler/testData/codegen/box/function/boolean.kt"); + } + + @Test + @TestMetadata("defaults.kt") + public void testDefaults() { + runTest("compiler/testData/codegen/box/function/defaults.kt"); + } + + @Test + @TestMetadata("defaults1.kt") + public void testDefaults1() { + runTest("compiler/testData/codegen/box/function/defaults1.kt"); + } + + @Test + @TestMetadata("defaults10.kt") + public void testDefaults10() { + runTest("compiler/testData/codegen/box/function/defaults10.kt"); + } + + @Test + @TestMetadata("defaults2.kt") + public void testDefaults2() { + runTest("compiler/testData/codegen/box/function/defaults2.kt"); + } + + @Test + @TestMetadata("defaults3.kt") + public void testDefaults3() { + runTest("compiler/testData/codegen/box/function/defaults3.kt"); + } + + @Test + @TestMetadata("defaults4.kt") + public void testDefaults4() { + runTest("compiler/testData/codegen/box/function/defaults4.kt"); + } + + @Test + @TestMetadata("defaults5.kt") + public void testDefaults5() { + runTest("compiler/testData/codegen/box/function/defaults5.kt"); + } + + @Test + @TestMetadata("defaults6.kt") + public void testDefaults6() { + runTest("compiler/testData/codegen/box/function/defaults6.kt"); + } + + @Test + @TestMetadata("defaults7.kt") + public void testDefaults7() { + runTest("compiler/testData/codegen/box/function/defaults7.kt"); + } + + @Test + @TestMetadata("defaults8.kt") + public void testDefaults8() { + runTest("compiler/testData/codegen/box/function/defaults8.kt"); + } + + @Test + @TestMetadata("defaults9.kt") + public void testDefaults9() { + runTest("compiler/testData/codegen/box/function/defaults9.kt"); + } + + @Test + @TestMetadata("defaultsFromFakeOverride.kt") + public void testDefaultsFromFakeOverride() { + runTest("compiler/testData/codegen/box/function/defaultsFromFakeOverride.kt"); + } + + @Test + @TestMetadata("defaultsWithInlineClasses.kt") + public void testDefaultsWithInlineClasses() { + runTest("compiler/testData/codegen/box/function/defaultsWithInlineClasses.kt"); + } + + @Test + @TestMetadata("defaultsWithVarArg1.kt") + public void testDefaultsWithVarArg1() { + runTest("compiler/testData/codegen/box/function/defaultsWithVarArg1.kt"); + } + + @Test + @TestMetadata("defaultsWithVarArg2.kt") + public void testDefaultsWithVarArg2() { + runTest("compiler/testData/codegen/box/function/defaultsWithVarArg2.kt"); + } + + @Test + @TestMetadata("eqeq.kt") + public void testEqeq() { + runTest("compiler/testData/codegen/box/function/eqeq.kt"); + } + + @Test + @TestMetadata("extension.kt") + public void testExtension() { + runTest("compiler/testData/codegen/box/function/extension.kt"); + } + + @Test + @TestMetadata("intrinsic.kt") + public void testIntrinsic() { + runTest("compiler/testData/codegen/box/function/intrinsic.kt"); + } + + @Test + @TestMetadata("localFunction.kt") + public void testLocalFunction() { + runTest("compiler/testData/codegen/box/function/localFunction.kt"); + } + + @Test + @TestMetadata("localFunction2.kt") + public void testLocalFunction2() { + runTest("compiler/testData/codegen/box/function/localFunction2.kt"); + } + + @Test + @TestMetadata("localFunction3.kt") + public void testLocalFunction3() { + runTest("compiler/testData/codegen/box/function/localFunction3.kt"); + } + + @Test + @TestMetadata("minus_eq.kt") + public void testMinus_eq() { + runTest("compiler/testData/codegen/box/function/minus_eq.kt"); + } + + @Test + @TestMetadata("named.kt") + public void testNamed() { + runTest("compiler/testData/codegen/box/function/named.kt"); + } + + @Test + @TestMetadata("nothingNReturningSafeCall.kt") + public void testNothingNReturningSafeCall() { + runTest("compiler/testData/codegen/box/function/nothingNReturningSafeCall.kt"); + } + + @Test + @TestMetadata("plus_eq.kt") + public void testPlus_eq() { + runTest("compiler/testData/codegen/box/function/plus_eq.kt"); + } + + @Test + @TestMetadata("referenceBigArity.kt") + public void testReferenceBigArity() { + runTest("compiler/testData/codegen/box/function/referenceBigArity.kt"); + } + + @Test + @TestMetadata("sum.kt") + public void testSum() { + runTest("compiler/testData/codegen/box/function/sum.kt"); + } + + @Test + @TestMetadata("sum_3const.kt") + public void testSum_3const() { + runTest("compiler/testData/codegen/box/function/sum_3const.kt"); + } + + @Test + @TestMetadata("sum_foo_bar.kt") + public void testSum_foo_bar() { + runTest("compiler/testData/codegen/box/function/sum_foo_bar.kt"); + } + + @Test + @TestMetadata("sum_func.kt") + public void testSum_func() { + runTest("compiler/testData/codegen/box/function/sum_func.kt"); + } + + @Test + @TestMetadata("sum_imm.kt") + public void testSum_imm() { + runTest("compiler/testData/codegen/box/function/sum_imm.kt"); + } + + @Test + @TestMetadata("sum_mixed.kt") + public void testSum_mixed() { + runTest("compiler/testData/codegen/box/function/sum_mixed.kt"); + } + + @Test + @TestMetadata("sum_silly.kt") + public void testSum_silly() { + runTest("compiler/testData/codegen/box/function/sum_silly.kt"); + } + + @Test + @TestMetadata("unreachableStatementAfterReturn.kt") + public void testUnreachableStatementAfterReturn() { + runTest("compiler/testData/codegen/box/function/unreachableStatementAfterReturn.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/functions") @TestDataPath("$PROJECT_ROOT") @@ -17811,6 +19636,483 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe } } + @Nested + @TestMetadata("compiler/testData/codegen/box/initializers") + @TestDataPath("$PROJECT_ROOT") + @Tag("frontend-fir") + @FirPipeline() + @UseExtTestCaseGroupProvider() + public class Initializers { + @Test + public void testAllFilesPresentInInitializers() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/initializers"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("correctOrder1.kt") + public void testCorrectOrder1() { + runTest("compiler/testData/codegen/box/initializers/correctOrder1.kt"); + } + + @Test + @TestMetadata("correctOrder2.kt") + public void testCorrectOrder2() { + runTest("compiler/testData/codegen/box/initializers/correctOrder2.kt"); + } + + @Test + @TestMetadata("initializers0.kt") + public void testInitializers0() { + runTest("compiler/testData/codegen/box/initializers/initializers0.kt"); + } + + @Test + @TestMetadata("initializers1.kt") + public void testInitializers1() { + runTest("compiler/testData/codegen/box/initializers/initializers1.kt"); + } + + @Test + @TestMetadata("initializers2.kt") + public void testInitializers2() { + runTest("compiler/testData/codegen/box/initializers/initializers2.kt"); + } + + @Test + @TestMetadata("initializers3.kt") + public void testInitializers3() { + runTest("compiler/testData/codegen/box/initializers/initializers3.kt"); + } + + @Test + @TestMetadata("initializers4.kt") + public void testInitializers4() { + runTest("compiler/testData/codegen/box/initializers/initializers4.kt"); + } + + @Test + @TestMetadata("initializers5.kt") + public void testInitializers5() { + runTest("compiler/testData/codegen/box/initializers/initializers5.kt"); + } + + @Test + @TestMetadata("initializers7.kt") + public void testInitializers7() { + runTest("compiler/testData/codegen/box/initializers/initializers7.kt"); + } + + @Test + @TestMetadata("initializers8.kt") + public void testInitializers8() { + runTest("compiler/testData/codegen/box/initializers/initializers8.kt"); + } + + @Test + @TestMetadata("multipleModules1.kt") + public void testMultipleModules1() { + runTest("compiler/testData/codegen/box/initializers/multipleModules1.kt"); + } + + @Test + @TestMetadata("object.kt") + public void testObject() { + runTest("compiler/testData/codegen/box/initializers/object.kt"); + } + + @Test + @TestMetadata("sharedVarInInitBlock.kt") + public void testSharedVarInInitBlock() { + runTest("compiler/testData/codegen/box/initializers/sharedVarInInitBlock.kt"); + } + + @Test + @TestMetadata("static_arrays.kt") + public void testStatic_arrays() { + runTest("compiler/testData/codegen/box/initializers/static_arrays.kt"); + } + + @Test + @TestMetadata("static_list.kt") + public void testStatic_list() { + runTest("compiler/testData/codegen/box/initializers/static_list.kt"); + } + + @Test + @TestMetadata("static_smallIntIdentity.kt") + public void testStatic_smallIntIdentity() { + runTest("compiler/testData/codegen/box/initializers/static_smallIntIdentity.kt"); + } + + @Test + @TestMetadata("static_varargChange.kt") + public void testStatic_varargChange() { + runTest("compiler/testData/codegen/box/initializers/static_varargChange.kt"); + } + + @Test + @TestMetadata("throw1.kt") + public void testThrow1() { + runTest("compiler/testData/codegen/box/initializers/throw1.kt"); + } + + @Test + @TestMetadata("throw2.kt") + public void testThrow2() { + runTest("compiler/testData/codegen/box/initializers/throw2.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/initializers/files") + @TestDataPath("$PROJECT_ROOT") + @Tag("frontend-fir") + @FirPipeline() + @UseExtTestCaseGroupProvider() + public class Files { + @Test + public void testAllFilesPresentInFiles() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/initializers/files"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("globalInitedAfterAccessingFile.kt") + public void testGlobalInitedAfterAccessingFile() { + runTest("compiler/testData/codegen/box/initializers/files/globalInitedAfterAccessingFile.kt"); + } + + @Test + @TestMetadata("globalNotInitedAfterAccessingClassInternals.kt") + public void testGlobalNotInitedAfterAccessingClassInternals() { + runTest("compiler/testData/codegen/box/initializers/files/globalNotInitedAfterAccessingClassInternals.kt"); + } + + @Test + @TestMetadata("simple.kt") + public void testSimple() { + runTest("compiler/testData/codegen/box/initializers/files/simple.kt"); + } + + @Test + @TestMetadata("simpleMultiModule.kt") + public void testSimpleMultiModule() { + runTest("compiler/testData/codegen/box/initializers/files/simpleMultiModule.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/inline") + @TestDataPath("$PROJECT_ROOT") + @Tag("frontend-fir") + @FirPipeline() + @UseExtTestCaseGroupProvider() + public class Inline { + @Test + public void testAllFilesPresentInInline() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inline"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("changingCapturedLocal.kt") + public void testChangingCapturedLocal() { + runTest("compiler/testData/codegen/box/inline/changingCapturedLocal.kt"); + } + + @Test + @TestMetadata("classDeclarationInsideInline.kt") + public void testClassDeclarationInsideInline() { + runTest("compiler/testData/codegen/box/inline/classDeclarationInsideInline.kt"); + } + + @Test + @TestMetadata("coercionToUnit.kt") + public void testCoercionToUnit() { + runTest("compiler/testData/codegen/box/inline/coercionToUnit.kt"); + } + + @Test + @TestMetadata("correctOrderFunctionReference.kt") + public void testCorrectOrderFunctionReference() { + runTest("compiler/testData/codegen/box/inline/correctOrderFunctionReference.kt"); + } + + @Test + @TestMetadata("defaultArgs.kt") + public void testDefaultArgs() { + runTest("compiler/testData/codegen/box/inline/defaultArgs.kt"); + } + + @Test + @TestMetadata("defaultArgsMultipleModules.kt") + public void testDefaultArgsMultipleModules() { + runTest("compiler/testData/codegen/box/inline/defaultArgsMultipleModules.kt"); + } + + @Test + @TestMetadata("genericFunctionReference.kt") + public void testGenericFunctionReference() { + runTest("compiler/testData/codegen/box/inline/genericFunctionReference.kt"); + } + + @Test + @TestMetadata("getClass.kt") + public void testGetClass() { + runTest("compiler/testData/codegen/box/inline/getClass.kt"); + } + + @Test + @TestMetadata("inline0.kt") + public void testInline0() { + runTest("compiler/testData/codegen/box/inline/inline0.kt"); + } + + @Test + @TestMetadata("inline1.kt") + public void testInline1() { + runTest("compiler/testData/codegen/box/inline/inline1.kt"); + } + + @Test + @TestMetadata("inline10.kt") + public void testInline10() { + runTest("compiler/testData/codegen/box/inline/inline10.kt"); + } + + @Test + @TestMetadata("inline11.kt") + public void testInline11() { + runTest("compiler/testData/codegen/box/inline/inline11.kt"); + } + + @Test + @TestMetadata("inline12.kt") + public void testInline12() { + runTest("compiler/testData/codegen/box/inline/inline12.kt"); + } + + @Test + @TestMetadata("inline13.kt") + public void testInline13() { + runTest("compiler/testData/codegen/box/inline/inline13.kt"); + } + + @Test + @TestMetadata("inline14.kt") + public void testInline14() { + runTest("compiler/testData/codegen/box/inline/inline14.kt"); + } + + @Test + @TestMetadata("inline15.kt") + public void testInline15() { + runTest("compiler/testData/codegen/box/inline/inline15.kt"); + } + + @Test + @TestMetadata("inline16.kt") + public void testInline16() { + runTest("compiler/testData/codegen/box/inline/inline16.kt"); + } + + @Test + @TestMetadata("inline17.kt") + public void testInline17() { + runTest("compiler/testData/codegen/box/inline/inline17.kt"); + } + + @Test + @TestMetadata("inline19.kt") + public void testInline19() { + runTest("compiler/testData/codegen/box/inline/inline19.kt"); + } + + @Test + @TestMetadata("inline2.kt") + public void testInline2() { + runTest("compiler/testData/codegen/box/inline/inline2.kt"); + } + + @Test + @TestMetadata("inline20.kt") + public void testInline20() { + runTest("compiler/testData/codegen/box/inline/inline20.kt"); + } + + @Test + @TestMetadata("inline21.kt") + public void testInline21() { + runTest("compiler/testData/codegen/box/inline/inline21.kt"); + } + + @Test + @TestMetadata("inline22.kt") + public void testInline22() { + runTest("compiler/testData/codegen/box/inline/inline22.kt"); + } + + @Test + @TestMetadata("inline23.kt") + public void testInline23() { + runTest("compiler/testData/codegen/box/inline/inline23.kt"); + } + + @Test + @TestMetadata("inline24.kt") + public void testInline24() { + runTest("compiler/testData/codegen/box/inline/inline24.kt"); + } + + @Test + @TestMetadata("inline25.kt") + public void testInline25() { + runTest("compiler/testData/codegen/box/inline/inline25.kt"); + } + + @Test + @TestMetadata("inline26.kt") + public void testInline26() { + runTest("compiler/testData/codegen/box/inline/inline26.kt"); + } + + @Test + @TestMetadata("inline3.kt") + public void testInline3() { + runTest("compiler/testData/codegen/box/inline/inline3.kt"); + } + + @Test + @TestMetadata("inline4.kt") + public void testInline4() { + runTest("compiler/testData/codegen/box/inline/inline4.kt"); + } + + @Test + @TestMetadata("inline5.kt") + public void testInline5() { + runTest("compiler/testData/codegen/box/inline/inline5.kt"); + } + + @Test + @TestMetadata("inline6.kt") + public void testInline6() { + runTest("compiler/testData/codegen/box/inline/inline6.kt"); + } + + @Test + @TestMetadata("inline7.kt") + public void testInline7() { + runTest("compiler/testData/codegen/box/inline/inline7.kt"); + } + + @Test + @TestMetadata("inline8.kt") + public void testInline8() { + runTest("compiler/testData/codegen/box/inline/inline8.kt"); + } + + @Test + @TestMetadata("inline9.kt") + public void testInline9() { + runTest("compiler/testData/codegen/box/inline/inline9.kt"); + } + + @Test + @TestMetadata("inlineCtor.kt") + public void testInlineCtor() { + runTest("compiler/testData/codegen/box/inline/inlineCtor.kt"); + } + + @Test + @TestMetadata("innerInlineFunCapturesOuter.kt") + public void testInnerInlineFunCapturesOuter() { + runTest("compiler/testData/codegen/box/inline/innerInlineFunCapturesOuter.kt"); + } + + @Test + @TestMetadata("lambdaAsAny.kt") + public void testLambdaAsAny() { + runTest("compiler/testData/codegen/box/inline/lambdaAsAny.kt"); + } + + @Test + @TestMetadata("lambdaInDefaultValue.kt") + public void testLambdaInDefaultValue() { + runTest("compiler/testData/codegen/box/inline/lambdaInDefaultValue.kt"); + } + + @Test + @TestMetadata("lateinitProperty.kt") + public void testLateinitProperty() { + runTest("compiler/testData/codegen/box/inline/lateinitProperty.kt"); + } + + @Test + @TestMetadata("localFunctionInInitializerBlock.kt") + public void testLocalFunctionInInitializerBlock() { + runTest("compiler/testData/codegen/box/inline/localFunctionInInitializerBlock.kt"); + } + + @Test + @TestMetadata("localObjectReturnedFromWhen.kt") + public void testLocalObjectReturnedFromWhen() { + runTest("compiler/testData/codegen/box/inline/localObjectReturnedFromWhen.kt"); + } + + @Test + @TestMetadata("propertyAccessorInline.kt") + public void testPropertyAccessorInline() { + runTest("compiler/testData/codegen/box/inline/propertyAccessorInline.kt"); + } + + @Test + @TestMetadata("redundantCoercionsCleaner.kt") + public void testRedundantCoercionsCleaner() { + runTest("compiler/testData/codegen/box/inline/redundantCoercionsCleaner.kt"); + } + + @Test + @TestMetadata("redundantCoercionsCleanerKT48876.kt") + public void testRedundantCoercionsCleanerKT48876() { + runTest("compiler/testData/codegen/box/inline/redundantCoercionsCleanerKT48876.kt"); + } + + @Test + @TestMetadata("redundantCoercionsCleanerKT49356.kt") + public void testRedundantCoercionsCleanerKT49356() { + runTest("compiler/testData/codegen/box/inline/redundantCoercionsCleanerKT49356.kt"); + } + + @Test + @TestMetadata("returnLocalClassFromBlock.kt") + public void testReturnLocalClassFromBlock() { + runTest("compiler/testData/codegen/box/inline/returnLocalClassFromBlock.kt"); + } + + @Test + @TestMetadata("sharedVar.kt") + public void testSharedVar() { + runTest("compiler/testData/codegen/box/inline/sharedVar.kt"); + } + + @Test + @TestMetadata("statementAsLastExprInBlock.kt") + public void testStatementAsLastExprInBlock() { + runTest("compiler/testData/codegen/box/inline/statementAsLastExprInBlock.kt"); + } + + @Test + @TestMetadata("twiceInlinedObject.kt") + public void testTwiceInlinedObject() { + runTest("compiler/testData/codegen/box/inline/twiceInlinedObject.kt"); + } + + @Test + @TestMetadata("typeSubstitutionInFakeOverride.kt") + public void testTypeSubstitutionInFakeOverride() { + runTest("compiler/testData/codegen/box/inline/typeSubstitutionInFakeOverride.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/inlineArgsInPlace") @TestDataPath("$PROJECT_ROOT") @@ -17890,6 +20192,43 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe } } + @Nested + @TestMetadata("compiler/testData/codegen/box/inlineClass") + @TestDataPath("$PROJECT_ROOT") + @Tag("frontend-fir") + @FirPipeline() + @UseExtTestCaseGroupProvider() + public class InlineClass { + @Test + public void testAllFilesPresentInInlineClass() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineClass"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("customEquals.kt") + public void testCustomEquals() { + runTest("compiler/testData/codegen/box/inlineClass/customEquals.kt"); + } + + @Test + @TestMetadata("defaultEquals.kt") + public void testDefaultEquals() { + runTest("compiler/testData/codegen/box/inlineClass/defaultEquals.kt"); + } + + @Test + @TestMetadata("nestedInlineClasses.kt") + public void testNestedInlineClasses() { + runTest("compiler/testData/codegen/box/inlineClass/nestedInlineClasses.kt"); + } + + @Test + @TestMetadata("secondaryConstructorWithGenerics.kt") + public void testSecondaryConstructorWithGenerics() { + runTest("compiler/testData/codegen/box/inlineClass/secondaryConstructorWithGenerics.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/inlineClasses") @TestDataPath("$PROJECT_ROOT") @@ -24357,6 +26696,91 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe } } + @Nested + @TestMetadata("compiler/testData/codegen/box/innerClass") + @TestDataPath("$PROJECT_ROOT") + @Tag("frontend-fir") + @FirPipeline() + @UseExtTestCaseGroupProvider() + public class InnerClass { + @Test + public void testAllFilesPresentInInnerClass() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/innerClass"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("doubleInner.kt") + public void testDoubleInner() { + runTest("compiler/testData/codegen/box/innerClass/doubleInner.kt"); + } + + @Test + @TestMetadata("generic.kt") + public void testGeneric() { + runTest("compiler/testData/codegen/box/innerClass/generic.kt"); + } + + @Test + @TestMetadata("getOuterVal.kt") + public void testGetOuterVal() { + runTest("compiler/testData/codegen/box/innerClass/getOuterVal.kt"); + } + + @Test + @TestMetadata("inheritanceMultipleModules1.kt") + public void testInheritanceMultipleModules1() { + runTest("compiler/testData/codegen/box/innerClass/inheritanceMultipleModules1.kt"); + } + + @Test + @TestMetadata("inheritanceMultipleModules2.kt") + public void testInheritanceMultipleModules2() { + runTest("compiler/testData/codegen/box/innerClass/inheritanceMultipleModules2.kt"); + } + + @Test + @TestMetadata("inheritanceMultipleModules3.kt") + public void testInheritanceMultipleModules3() { + runTest("compiler/testData/codegen/box/innerClass/inheritanceMultipleModules3.kt"); + } + + @Test + @TestMetadata("multipleModules.kt") + public void testMultipleModules() { + runTest("compiler/testData/codegen/box/innerClass/multipleModules.kt"); + } + + @Test + @TestMetadata("noPrimaryConstructor.kt") + public void testNoPrimaryConstructor() { + runTest("compiler/testData/codegen/box/innerClass/noPrimaryConstructor.kt"); + } + + @Test + @TestMetadata("qualifiedThis.kt") + public void testQualifiedThis() { + runTest("compiler/testData/codegen/box/innerClass/qualifiedThis.kt"); + } + + @Test + @TestMetadata("secondaryConstructor.kt") + public void testSecondaryConstructor() { + runTest("compiler/testData/codegen/box/innerClass/secondaryConstructor.kt"); + } + + @Test + @TestMetadata("simple.kt") + public void testSimple() { + runTest("compiler/testData/codegen/box/innerClass/simple.kt"); + } + + @Test + @TestMetadata("superOuter.kt") + public void testSuperOuter() { + runTest("compiler/testData/codegen/box/innerClass/superOuter.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/innerNested") @TestDataPath("$PROJECT_ROOT") @@ -24721,6 +27145,43 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe } } + @Nested + @TestMetadata("compiler/testData/codegen/box/interfaceCallsNCasts") + @TestDataPath("$PROJECT_ROOT") + @Tag("frontend-fir") + @FirPipeline() + @UseExtTestCaseGroupProvider() + public class InterfaceCallsNCasts { + @Test + public void testAllFilesPresentInInterfaceCallsNCasts() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/interfaceCallsNCasts"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("conservativeItable.kt") + public void testConservativeItable() { + runTest("compiler/testData/codegen/box/interfaceCallsNCasts/conservativeItable.kt"); + } + + @Test + @TestMetadata("diamond.kt") + public void testDiamond() { + runTest("compiler/testData/codegen/box/interfaceCallsNCasts/diamond.kt"); + } + + @Test + @TestMetadata("finalMethod.kt") + public void testFinalMethod() { + runTest("compiler/testData/codegen/box/interfaceCallsNCasts/finalMethod.kt"); + } + + @Test + @TestMetadata("interface0.kt") + public void testInterface0() { + runTest("compiler/testData/codegen/box/interfaceCallsNCasts/interface0.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/intrinsics") @TestDataPath("$PROJECT_ROOT") @@ -26154,6 +28615,86 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe } } + @Nested + @TestMetadata("compiler/testData/codegen/box/kclass") + @TestDataPath("$PROJECT_ROOT") + @Tag("frontend-fir") + @FirPipeline() + @UseExtTestCaseGroupProvider() + public class Kclass { + @Test + public void testAllFilesPresentInKclass() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/kclass"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("kClassEnumArgument.kt") + public void testKClassEnumArgument() { + runTest("compiler/testData/codegen/box/kclass/kClassEnumArgument.kt"); + } + + @Test + @TestMetadata("kclass1.kt") + public void testKclass1() { + runTest("compiler/testData/codegen/box/kclass/kclass1.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/ktype") + @TestDataPath("$PROJECT_ROOT") + @Tag("frontend-fir") + @FirPipeline() + @UseExtTestCaseGroupProvider() + public class Ktype { + @Test + public void testAllFilesPresentInKtype() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ktype"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("ktype1_basics1.kt") + public void testKtype1_basics1() { + runTest("compiler/testData/codegen/box/ktype/ktype1_basics1.kt"); + } + + @Test + @TestMetadata("ktype1_inner.kt") + public void testKtype1_inner() { + runTest("compiler/testData/codegen/box/ktype/ktype1_inner.kt"); + } + + @Test + @TestMetadata("nonReified_class.kt") + public void testNonReified_class() { + runTest("compiler/testData/codegen/box/ktype/nonReified_class.kt"); + } + + @Test + @TestMetadata("nonReified_equality.kt") + public void testNonReified_equality() { + runTest("compiler/testData/codegen/box/ktype/nonReified_equality.kt"); + } + + @Test + @TestMetadata("nonReified_fun.kt") + public void testNonReified_fun() { + runTest("compiler/testData/codegen/box/ktype/nonReified_fun.kt"); + } + + @Test + @TestMetadata("nonReified_recursionInReified.kt") + public void testNonReified_recursionInReified() { + runTest("compiler/testData/codegen/box/ktype/nonReified_recursionInReified.kt"); + } + + @Test + @TestMetadata("nonReified_reifiedUpperBound.kt") + public void testNonReified_reifiedUpperBound() { + runTest("compiler/testData/codegen/box/ktype/nonReified_reifiedUpperBound.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/labels") @TestDataPath("$PROJECT_ROOT") @@ -26215,6 +28756,194 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe } } + @Nested + @TestMetadata("compiler/testData/codegen/box/lambda") + @TestDataPath("$PROJECT_ROOT") + @Tag("frontend-fir") + @FirPipeline() + @UseExtTestCaseGroupProvider() + public class Lambda { + @Test + public void testAllFilesPresentInLambda() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/lambda"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("lambda1.kt") + public void testLambda1() { + runTest("compiler/testData/codegen/box/lambda/lambda1.kt"); + } + + @Test + @TestMetadata("lambda10.kt") + public void testLambda10() { + runTest("compiler/testData/codegen/box/lambda/lambda10.kt"); + } + + @Test + @TestMetadata("lambda11.kt") + public void testLambda11() { + runTest("compiler/testData/codegen/box/lambda/lambda11.kt"); + } + + @Test + @TestMetadata("lambda12.kt") + public void testLambda12() { + runTest("compiler/testData/codegen/box/lambda/lambda12.kt"); + } + + @Test + @TestMetadata("lambda13.kt") + public void testLambda13() { + runTest("compiler/testData/codegen/box/lambda/lambda13.kt"); + } + + @Test + @TestMetadata("lambda14.kt") + public void testLambda14() { + runTest("compiler/testData/codegen/box/lambda/lambda14.kt"); + } + + @Test + @TestMetadata("lambda2.kt") + public void testLambda2() { + runTest("compiler/testData/codegen/box/lambda/lambda2.kt"); + } + + @Test + @TestMetadata("lambda3.kt") + public void testLambda3() { + runTest("compiler/testData/codegen/box/lambda/lambda3.kt"); + } + + @Test + @TestMetadata("lambda4.kt") + public void testLambda4() { + runTest("compiler/testData/codegen/box/lambda/lambda4.kt"); + } + + @Test + @TestMetadata("lambda5.kt") + public void testLambda5() { + runTest("compiler/testData/codegen/box/lambda/lambda5.kt"); + } + + @Test + @TestMetadata("lambda6.kt") + public void testLambda6() { + runTest("compiler/testData/codegen/box/lambda/lambda6.kt"); + } + + @Test + @TestMetadata("lambda7.kt") + public void testLambda7() { + runTest("compiler/testData/codegen/box/lambda/lambda7.kt"); + } + + @Test + @TestMetadata("lambda8.kt") + public void testLambda8() { + runTest("compiler/testData/codegen/box/lambda/lambda8.kt"); + } + + @Test + @TestMetadata("lambda9.kt") + public void testLambda9() { + runTest("compiler/testData/codegen/box/lambda/lambda9.kt"); + } + + @Test + @TestMetadata("lambda_kt49360_trivial.kt") + public void testLambda_kt49360_trivial() { + runTest("compiler/testData/codegen/box/lambda/lambda_kt49360_trivial.kt"); + } + + @Test + @TestMetadata("lambda_kt49360_withFlow.kt") + public void testLambda_kt49360_withFlow() { + runTest("compiler/testData/codegen/box/lambda/lambda_kt49360_withFlow.kt"); + } + + @Test + @TestMetadata("lambda_kt49360_wrapBlock.kt") + public void testLambda_kt49360_wrapBlock() { + runTest("compiler/testData/codegen/box/lambda/lambda_kt49360_wrapBlock.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/lateinit") + @TestDataPath("$PROJECT_ROOT") + @Tag("frontend-fir") + @FirPipeline() + @UseExtTestCaseGroupProvider() + public class Lateinit { + @Test + public void testAllFilesPresentInLateinit() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/lateinit"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("globalIsInitialized.kt") + public void testGlobalIsInitialized() { + runTest("compiler/testData/codegen/box/lateinit/globalIsInitialized.kt"); + } + + @Test + @TestMetadata("inBaseClass.kt") + public void testInBaseClass() { + runTest("compiler/testData/codegen/box/lateinit/inBaseClass.kt"); + } + + @Test + @TestMetadata("initialized.kt") + public void testInitialized() { + runTest("compiler/testData/codegen/box/lateinit/initialized.kt"); + } + + @Test + @TestMetadata("innerIsInitialized.kt") + public void testInnerIsInitialized() { + runTest("compiler/testData/codegen/box/lateinit/innerIsInitialized.kt"); + } + + @Test + @TestMetadata("isInitialized.kt") + public void testIsInitialized() { + runTest("compiler/testData/codegen/box/lateinit/isInitialized.kt"); + } + + @Test + @TestMetadata("localCapturedInitialized.kt") + public void testLocalCapturedInitialized() { + runTest("compiler/testData/codegen/box/lateinit/localCapturedInitialized.kt"); + } + + @Test + @TestMetadata("localCapturedNotInitialized.kt") + public void testLocalCapturedNotInitialized() { + runTest("compiler/testData/codegen/box/lateinit/localCapturedNotInitialized.kt"); + } + + @Test + @TestMetadata("localInitialized.kt") + public void testLocalInitialized() { + runTest("compiler/testData/codegen/box/lateinit/localInitialized.kt"); + } + + @Test + @TestMetadata("localNotInitialized.kt") + public void testLocalNotInitialized() { + runTest("compiler/testData/codegen/box/lateinit/localNotInitialized.kt"); + } + + @Test + @TestMetadata("notInitialized.kt") + public void testNotInitialized() { + runTest("compiler/testData/codegen/box/lateinit/notInitialized.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/lazyCodegen") @TestDataPath("$PROJECT_ROOT") @@ -26349,6 +29078,104 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe } } + @Nested + @TestMetadata("compiler/testData/codegen/box/literals") + @TestDataPath("$PROJECT_ROOT") + @Tag("frontend-fir") + @FirPipeline() + @UseExtTestCaseGroupProvider() + public class Literals { + @Test + public void testAllFilesPresentInLiterals() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/literals"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("listof1.kt") + public void testListof1() { + runTest("compiler/testData/codegen/box/literals/listof1.kt"); + } + + @Test + @TestMetadata("strdedup1.kt") + public void testStrdedup1() { + runTest("compiler/testData/codegen/box/literals/strdedup1.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/localClass") + @TestDataPath("$PROJECT_ROOT") + @Tag("frontend-fir") + @FirPipeline() + @UseExtTestCaseGroupProvider() + public class LocalClass { + @Test + public void testAllFilesPresentInLocalClass() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/localClass"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("innerTakesCapturedFromOuter.kt") + public void testInnerTakesCapturedFromOuter() { + runTest("compiler/testData/codegen/box/localClass/innerTakesCapturedFromOuter.kt"); + } + + @Test + @TestMetadata("innerWithCapture.kt") + public void testInnerWithCapture() { + runTest("compiler/testData/codegen/box/localClass/innerWithCapture.kt"); + } + + @Test + @TestMetadata("localFunctionCallFromLocalClass.kt") + public void testLocalFunctionCallFromLocalClass() { + runTest("compiler/testData/codegen/box/localClass/localFunctionCallFromLocalClass.kt"); + } + + @Test + @TestMetadata("localFunctionInLocalClass.kt") + public void testLocalFunctionInLocalClass() { + runTest("compiler/testData/codegen/box/localClass/localFunctionInLocalClass.kt"); + } + + @Test + @TestMetadata("localHierarchy.kt") + public void testLocalHierarchy() { + runTest("compiler/testData/codegen/box/localClass/localHierarchy.kt"); + } + + @Test + @TestMetadata("noPrimaryConstructor.kt") + public void testNoPrimaryConstructor() { + runTest("compiler/testData/codegen/box/localClass/noPrimaryConstructor.kt"); + } + + @Test + @TestMetadata("objectExpressionInInitializer.kt") + public void testObjectExpressionInInitializer() { + runTest("compiler/testData/codegen/box/localClass/objectExpressionInInitializer.kt"); + } + + @Test + @TestMetadata("objectExpressionInProperty.kt") + public void testObjectExpressionInProperty() { + runTest("compiler/testData/codegen/box/localClass/objectExpressionInProperty.kt"); + } + + @Test + @TestMetadata("tryCatch.kt") + public void testTryCatch() { + runTest("compiler/testData/codegen/box/localClass/tryCatch.kt"); + } + + @Test + @TestMetadata("virtualCallFromConstructor.kt") + public void testVirtualCallFromConstructor() { + runTest("compiler/testData/codegen/box/localClass/virtualCallFromConstructor.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/localClasses") @TestDataPath("$PROJECT_ROOT") @@ -26602,6 +29429,44 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe } } + @Nested + @TestMetadata("compiler/testData/codegen/box/localEscapeAnalysis") + @TestDataPath("$PROJECT_ROOT") + @Tag("frontend-fir") + @FirPipeline() + @UseExtTestCaseGroupProvider() + public class LocalEscapeAnalysis { + @Test + public void testAllFilesPresentInLocalEscapeAnalysis() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/localEscapeAnalysis"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("arraysFieldWrite.kt") + public void testArraysFieldWrite() { + runTest("compiler/testData/codegen/box/localEscapeAnalysis/arraysFieldWrite.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/lower") + @TestDataPath("$PROJECT_ROOT") + @Tag("frontend-fir") + @FirPipeline() + @UseExtTestCaseGroupProvider() + public class Lower { + @Test + public void testAllFilesPresentInLower() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/lower"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("localDelegatedProperty.kt") + public void testLocalDelegatedProperty() { + runTest("compiler/testData/codegen/box/lower/localDelegatedProperty.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/mangling") @TestDataPath("$PROJECT_ROOT") @@ -26632,6 +29497,12 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe runTest("compiler/testData/codegen/box/mangling/internalOverrideSuperCall.kt"); } + @Test + @TestMetadata("multipleConstructors.kt") + public void testMultipleConstructors() { + runTest("compiler/testData/codegen/box/mangling/multipleConstructors.kt"); + } + @Test @TestMetadata("parentheses.kt") public void testParentheses() { @@ -28255,6 +31126,104 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe } } + @Nested + @TestMetadata("compiler/testData/codegen/box/object") + @TestDataPath("$PROJECT_ROOT") + @Tag("frontend-fir") + @FirPipeline() + @UseExtTestCaseGroupProvider() + public class Object { + @Test + public void testAllFilesPresentInObject() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/object"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("constructor0.kt") + public void testConstructor0() { + runTest("compiler/testData/codegen/box/object/constructor0.kt"); + } + + @Test + @TestMetadata("fields.kt") + public void testFields() { + runTest("compiler/testData/codegen/box/object/fields.kt"); + } + + @Test + @TestMetadata("fields1.kt") + public void testFields1() { + runTest("compiler/testData/codegen/box/object/fields1.kt"); + } + + @Test + @TestMetadata("fields2.kt") + public void testFields2() { + runTest("compiler/testData/codegen/box/object/fields2.kt"); + } + + @Test + @TestMetadata("globalInitializer.kt") + public void testGlobalInitializer() { + runTest("compiler/testData/codegen/box/object/globalInitializer.kt"); + } + + @Test + @TestMetadata("init0.kt") + public void testInit0() { + runTest("compiler/testData/codegen/box/object/init0.kt"); + } + + @Test + @TestMetadata("initialization.kt") + public void testInitialization() { + runTest("compiler/testData/codegen/box/object/initialization.kt"); + } + + @Test + @TestMetadata("initialization1.kt") + public void testInitialization1() { + runTest("compiler/testData/codegen/box/object/initialization1.kt"); + } + + @Test + @TestMetadata("method_call.kt") + public void testMethod_call() { + runTest("compiler/testData/codegen/box/object/method_call.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/objectExpression") + @TestDataPath("$PROJECT_ROOT") + @Tag("frontend-fir") + @FirPipeline() + @UseExtTestCaseGroupProvider() + public class ObjectExpression { + @Test + public void testAllFilesPresentInObjectExpression() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/objectExpression"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("expr1.kt") + public void testExpr1() { + runTest("compiler/testData/codegen/box/objectExpression/expr1.kt"); + } + + @Test + @TestMetadata("expr2.kt") + public void testExpr2() { + runTest("compiler/testData/codegen/box/objectExpression/expr2.kt"); + } + + @Test + @TestMetadata("expr3.kt") + public void testExpr3() { + runTest("compiler/testData/codegen/box/objectExpression/expr3.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/objectIntrinsics") @TestDataPath("$PROJECT_ROOT") @@ -31035,6 +34004,67 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe } } + @Nested + @TestMetadata("compiler/testData/codegen/box/propertyCallableReference") + @TestDataPath("$PROJECT_ROOT") + @Tag("frontend-fir") + @FirPipeline() + @UseExtTestCaseGroupProvider() + public class PropertyCallableReference { + @Test + public void testAllFilesPresentInPropertyCallableReference() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/propertyCallableReference"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("dynamicReceiver.kt") + public void testDynamicReceiver() { + runTest("compiler/testData/codegen/box/propertyCallableReference/dynamicReceiver.kt"); + } + + @Test + @TestMetadata("multipleModules.kt") + public void testMultipleModules() { + runTest("compiler/testData/codegen/box/propertyCallableReference/multipleModules.kt"); + } + + @Test + @TestMetadata("valClass.kt") + public void testValClass() { + runTest("compiler/testData/codegen/box/propertyCallableReference/valClass.kt"); + } + + @Test + @TestMetadata("valExtension.kt") + public void testValExtension() { + runTest("compiler/testData/codegen/box/propertyCallableReference/valExtension.kt"); + } + + @Test + @TestMetadata("valModule.kt") + public void testValModule() { + runTest("compiler/testData/codegen/box/propertyCallableReference/valModule.kt"); + } + + @Test + @TestMetadata("varClass.kt") + public void testVarClass() { + runTest("compiler/testData/codegen/box/propertyCallableReference/varClass.kt"); + } + + @Test + @TestMetadata("varExtension.kt") + public void testVarExtension() { + runTest("compiler/testData/codegen/box/propertyCallableReference/varExtension.kt"); + } + + @Test + @TestMetadata("varModule.kt") + public void testVarModule() { + runTest("compiler/testData/codegen/box/propertyCallableReference/varModule.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/publishedApi") @TestDataPath("$PROJECT_ROOT") @@ -39102,6 +42132,61 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe } } + @Nested + @TestMetadata("compiler/testData/codegen/box/serialization") + @TestDataPath("$PROJECT_ROOT") + @Tag("frontend-fir") + @FirPipeline() + @UseExtTestCaseGroupProvider() + public class Serialization { + @Test + public void testAllFilesPresentInSerialization() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/serialization"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("deserializedMembers.kt") + public void testDeserializedMembers() { + runTest("compiler/testData/codegen/box/serialization/deserializedMembers.kt"); + } + + @Test + @TestMetadata("serializedCatch.kt") + public void testSerializedCatch() { + runTest("compiler/testData/codegen/box/serialization/serializedCatch.kt"); + } + + @Test + @TestMetadata("serializedCharConstant.kt") + public void testSerializedCharConstant() { + runTest("compiler/testData/codegen/box/serialization/serializedCharConstant.kt"); + } + + @Test + @TestMetadata("serializedDefaultArgs.kt") + public void testSerializedDefaultArgs() { + runTest("compiler/testData/codegen/box/serialization/serializedDefaultArgs.kt"); + } + + @Test + @TestMetadata("serializedDoWhile.kt") + public void testSerializedDoWhile() { + runTest("compiler/testData/codegen/box/serialization/serializedDoWhile.kt"); + } + + @Test + @TestMetadata("serializedEnumOrdinal.kt") + public void testSerializedEnumOrdinal() { + runTest("compiler/testData/codegen/box/serialization/serializedEnumOrdinal.kt"); + } + + @Test + @TestMetadata("serializedVararg.kt") + public void testSerializedVararg() { + runTest("compiler/testData/codegen/box/serialization/serializedVararg.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/size") @TestDataPath("$PROJECT_ROOT") @@ -39582,6 +42667,25 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe } } + @Nested + @TestMetadata("compiler/testData/codegen/box/stringTrim") + @TestDataPath("$PROJECT_ROOT") + @Tag("frontend-fir") + @FirPipeline() + @UseExtTestCaseGroupProvider() + public class StringTrim { + @Test + public void testAllFilesPresentInStringTrim() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/stringTrim"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("stringTrim.kt") + public void testStringTrim() { + runTest("compiler/testData/codegen/box/stringTrim/stringTrim.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/strings") @TestDataPath("$PROJECT_ROOT") @@ -40702,6 +43806,145 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe } } + @Nested + @TestMetadata("compiler/testData/codegen/box/try") + @TestDataPath("$PROJECT_ROOT") + @Tag("frontend-fir") + @FirPipeline() + @UseExtTestCaseGroupProvider() + public class Try { + @Test + public void testAllFilesPresentInTry() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/try"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("catch3.kt") + public void testCatch3() { + runTest("compiler/testData/codegen/box/try/catch3.kt"); + } + + @Test + @TestMetadata("catch4.kt") + public void testCatch4() { + runTest("compiler/testData/codegen/box/try/catch4.kt"); + } + + @Test + @TestMetadata("catch5.kt") + public void testCatch5() { + runTest("compiler/testData/codegen/box/try/catch5.kt"); + } + + @Test + @TestMetadata("catch6.kt") + public void testCatch6() { + runTest("compiler/testData/codegen/box/try/catch6.kt"); + } + + @Test + @TestMetadata("catch8.kt") + public void testCatch8() { + runTest("compiler/testData/codegen/box/try/catch8.kt"); + } + + @Test + @TestMetadata("finally1.kt") + public void testFinally1() { + runTest("compiler/testData/codegen/box/try/finally1.kt"); + } + + @Test + @TestMetadata("finally10.kt") + public void testFinally10() { + runTest("compiler/testData/codegen/box/try/finally10.kt"); + } + + @Test + @TestMetadata("finally11.kt") + public void testFinally11() { + runTest("compiler/testData/codegen/box/try/finally11.kt"); + } + + @Test + @TestMetadata("finally2.kt") + public void testFinally2() { + runTest("compiler/testData/codegen/box/try/finally2.kt"); + } + + @Test + @TestMetadata("finally3.kt") + public void testFinally3() { + runTest("compiler/testData/codegen/box/try/finally3.kt"); + } + + @Test + @TestMetadata("finally4.kt") + public void testFinally4() { + runTest("compiler/testData/codegen/box/try/finally4.kt"); + } + + @Test + @TestMetadata("finally5.kt") + public void testFinally5() { + runTest("compiler/testData/codegen/box/try/finally5.kt"); + } + + @Test + @TestMetadata("finally6.kt") + public void testFinally6() { + runTest("compiler/testData/codegen/box/try/finally6.kt"); + } + + @Test + @TestMetadata("finally7.kt") + public void testFinally7() { + runTest("compiler/testData/codegen/box/try/finally7.kt"); + } + + @Test + @TestMetadata("finally8.kt") + public void testFinally8() { + runTest("compiler/testData/codegen/box/try/finally8.kt"); + } + + @Test + @TestMetadata("finally9.kt") + public void testFinally9() { + runTest("compiler/testData/codegen/box/try/finally9.kt"); + } + + @Test + @TestMetadata("returnsDifferentTypes.kt") + public void testReturnsDifferentTypes() { + runTest("compiler/testData/codegen/box/try/returnsDifferentTypes.kt"); + } + + @Test + @TestMetadata("try1.kt") + public void testTry1() { + runTest("compiler/testData/codegen/box/try/try1.kt"); + } + + @Test + @TestMetadata("try2.kt") + public void testTry2() { + runTest("compiler/testData/codegen/box/try/try2.kt"); + } + + @Test + @TestMetadata("try3.kt") + public void testTry3() { + runTest("compiler/testData/codegen/box/try/try3.kt"); + } + + @Test + @TestMetadata("try4.kt") + public void testTry4() { + runTest("compiler/testData/codegen/box/try/try4.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/typeInfo") @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 aa4288f311b..cfe97f2e12b 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 @@ -58,6 +58,12 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB runTest("compiler/testData/codegen/box/annotations/annotationWithDefaultArgInDifferentModule.kt"); } + @Test + @TestMetadata("annotations0.kt") + public void testAnnotations0() { + runTest("compiler/testData/codegen/box/annotations/annotations0.kt"); + } + @Test @TestMetadata("genericAnnotations.kt") public void testGenericAnnotations() { @@ -371,6 +377,87 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB } } + @Nested + @TestMetadata("compiler/testData/codegen/box/arithmetic") + @TestDataPath("$PROJECT_ROOT") + @Tag("frontend-fir") + @FirPipeline() + @UseExtTestCaseGroupProvider() + @UsePartialLinkage(mode = Mode.DISABLED) + @Tag("no-partial-linkage-may-be-skipped") + public class Arithmetic { + @Test + public void testAllFilesPresentInArithmetic() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/arithmetic"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("basic_charConversions.kt") + public void testBasic_charConversions() { + runTest("compiler/testData/codegen/box/arithmetic/basic_charConversions.kt"); + } + + @Test + @TestMetadata("basic_charCornerCases.kt") + public void testBasic_charCornerCases() { + runTest("compiler/testData/codegen/box/arithmetic/basic_charCornerCases.kt"); + } + + @Test + @TestMetadata("basic_compareIntToFloat.kt") + public void testBasic_compareIntToFloat() { + runTest("compiler/testData/codegen/box/arithmetic/basic_compareIntToFloat.kt"); + } + + @Test + @TestMetadata("basic_doubleBasic.kt") + public void testBasic_doubleBasic() { + runTest("compiler/testData/codegen/box/arithmetic/basic_doubleBasic.kt"); + } + + @Test + @TestMetadata("basic_integralToFloat.kt") + public void testBasic_integralToFloat() { + runTest("compiler/testData/codegen/box/arithmetic/basic_integralToFloat.kt"); + } + + @Test + @TestMetadata("basic_kt37412.kt") + public void testBasic_kt37412() { + runTest("compiler/testData/codegen/box/arithmetic/basic_kt37412.kt"); + } + + @Test + @TestMetadata("basic_selfComparison.kt") + public void testBasic_selfComparison() { + runTest("compiler/testData/codegen/box/arithmetic/basic_selfComparison.kt"); + } + + @Test + @TestMetadata("basic_shifts.kt") + public void testBasic_shifts() { + runTest("compiler/testData/codegen/box/arithmetic/basic_shifts.kt"); + } + + @Test + @TestMetadata("basic_uintTests.kt") + public void testBasic_uintTests() { + runTest("compiler/testData/codegen/box/arithmetic/basic_uintTests.kt"); + } + + @Test + @TestMetadata("division.kt") + public void testDivision() { + runTest("compiler/testData/codegen/box/arithmetic/division.kt"); + } + + @Test + @TestMetadata("github1856.kt") + public void testGithub1856() { + runTest("compiler/testData/codegen/box/arithmetic/github1856.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/arrays") @TestDataPath("$PROJECT_ROOT") @@ -1070,6 +1157,312 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB } } + @Nested + @TestMetadata("compiler/testData/codegen/box/basics") + @TestDataPath("$PROJECT_ROOT") + @Tag("frontend-fir") + @FirPipeline() + @UseExtTestCaseGroupProvider() + @UsePartialLinkage(mode = Mode.DISABLED) + @Tag("no-partial-linkage-may-be-skipped") + public class Basics { + @Test + public void testAllFilesPresentInBasics() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/basics"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("array_to_any.kt") + public void testArray_to_any() { + runTest("compiler/testData/codegen/box/basics/array_to_any.kt"); + } + + @Test + @TestMetadata("canonical_name.kt") + public void testCanonical_name() { + runTest("compiler/testData/codegen/box/basics/canonical_name.kt"); + } + + @Test + @TestMetadata("cast_null.kt") + public void testCast_null() { + runTest("compiler/testData/codegen/box/basics/cast_null.kt"); + } + + @Test + @TestMetadata("cast_simple.kt") + public void testCast_simple() { + runTest("compiler/testData/codegen/box/basics/cast_simple.kt"); + } + + @Test + @TestMetadata("check_type.kt") + public void testCheck_type() { + runTest("compiler/testData/codegen/box/basics/check_type.kt"); + } + + @Test + @TestMetadata("companion.kt") + public void testCompanion() { + runTest("compiler/testData/codegen/box/basics/companion.kt"); + } + + @Test + @TestMetadata("concatenation.kt") + public void testConcatenation() { + runTest("compiler/testData/codegen/box/basics/concatenation.kt"); + } + + @Test + @TestMetadata("const_infinity.kt") + public void testConst_infinity() { + runTest("compiler/testData/codegen/box/basics/const_infinity.kt"); + } + + @Test + @TestMetadata("expression_as_statement.kt") + public void testExpression_as_statement() { + runTest("compiler/testData/codegen/box/basics/expression_as_statement.kt"); + } + + @Test + @TestMetadata("k42000_1.kt") + public void testK42000_1() { + runTest("compiler/testData/codegen/box/basics/k42000_1.kt"); + } + + @Test + @TestMetadata("k42000_2.kt") + public void testK42000_2() { + runTest("compiler/testData/codegen/box/basics/k42000_2.kt"); + } + + @Test + @TestMetadata("local_variable.kt") + public void testLocal_variable() { + runTest("compiler/testData/codegen/box/basics/local_variable.kt"); + } + + @Test + @TestMetadata("null_check.kt") + public void testNull_check() { + runTest("compiler/testData/codegen/box/basics/null_check.kt"); + } + + @Test + @TestMetadata("safe_cast.kt") + public void testSafe_cast() { + runTest("compiler/testData/codegen/box/basics/safe_cast.kt"); + } + + @Test + @TestMetadata("spread_operator_0.kt") + public void testSpread_operator_0() { + runTest("compiler/testData/codegen/box/basics/spread_operator_0.kt"); + } + + @Test + @TestMetadata("statements0.kt") + public void testStatements0() { + runTest("compiler/testData/codegen/box/basics/statements0.kt"); + } + + @Test + @TestMetadata("superFunCall.kt") + public void testSuperFunCall() { + runTest("compiler/testData/codegen/box/basics/superFunCall.kt"); + } + + @Test + @TestMetadata("superGetterCall.kt") + public void testSuperGetterCall() { + runTest("compiler/testData/codegen/box/basics/superGetterCall.kt"); + } + + @Test + @TestMetadata("superSetterCall.kt") + public void testSuperSetterCall() { + runTest("compiler/testData/codegen/box/basics/superSetterCall.kt"); + } + + @Test + @TestMetadata("typealias1.kt") + public void testTypealias1() { + runTest("compiler/testData/codegen/box/basics/typealias1.kt"); + } + + @Test + @TestMetadata("unchecked_cast1.kt") + public void testUnchecked_cast1() { + runTest("compiler/testData/codegen/box/basics/unchecked_cast1.kt"); + } + + @Test + @TestMetadata("unchecked_cast2.kt") + public void testUnchecked_cast2() { + runTest("compiler/testData/codegen/box/basics/unchecked_cast2.kt"); + } + + @Test + @TestMetadata("unchecked_cast3.kt") + public void testUnchecked_cast3() { + runTest("compiler/testData/codegen/box/basics/unchecked_cast3.kt"); + } + + @Test + @TestMetadata("unchecked_cast4.kt") + public void testUnchecked_cast4() { + runTest("compiler/testData/codegen/box/basics/unchecked_cast4.kt"); + } + + @Test + @TestMetadata("unit1.kt") + public void testUnit1() { + runTest("compiler/testData/codegen/box/basics/unit1.kt"); + } + + @Test + @TestMetadata("unit2.kt") + public void testUnit2() { + runTest("compiler/testData/codegen/box/basics/unit2.kt"); + } + + @Test + @TestMetadata("unit3.kt") + public void testUnit3() { + runTest("compiler/testData/codegen/box/basics/unit3.kt"); + } + + @Test + @TestMetadata("unit4.kt") + public void testUnit4() { + runTest("compiler/testData/codegen/box/basics/unit4.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/bce") + @TestDataPath("$PROJECT_ROOT") + @Tag("frontend-fir") + @FirPipeline() + @UseExtTestCaseGroupProvider() + @UsePartialLinkage(mode = Mode.DISABLED) + @Tag("no-partial-linkage-may-be-skipped") + public class Bce { + @Test + public void testAllFilesPresentInBce() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/bce"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("bceCases.kt") + public void testBceCases() { + runTest("compiler/testData/codegen/box/bce/bceCases.kt"); + } + + @Test + @TestMetadata("customGetter.kt") + public void testCustomGetter() { + runTest("compiler/testData/codegen/box/bce/customGetter.kt"); + } + + @Test + @TestMetadata("delegatedProperty.kt") + public void testDelegatedProperty() { + runTest("compiler/testData/codegen/box/bce/delegatedProperty.kt"); + } + + @Test + @TestMetadata("differentArrays.kt") + public void testDifferentArrays() { + runTest("compiler/testData/codegen/box/bce/differentArrays.kt"); + } + + @Test + @TestMetadata("differentObjects.kt") + public void testDifferentObjects() { + runTest("compiler/testData/codegen/box/bce/differentObjects.kt"); + } + + @Test + @TestMetadata("forDownToSize.kt") + public void testForDownToSize() { + runTest("compiler/testData/codegen/box/bce/forDownToSize.kt"); + } + + @Test + @TestMetadata("forDownToWithStep.kt") + public void testForDownToWithStep() { + runTest("compiler/testData/codegen/box/bce/forDownToWithStep.kt"); + } + + @Test + @TestMetadata("forEachIndexedTest.kt") + public void testForEachIndexedTest() { + runTest("compiler/testData/codegen/box/bce/forEachIndexedTest.kt"); + } + + @Test + @TestMetadata("forEachIndicies.kt") + public void testForEachIndicies() { + runTest("compiler/testData/codegen/box/bce/forEachIndicies.kt"); + } + + @Test + @TestMetadata("forIndiciesWithStep.kt") + public void testForIndiciesWithStep() { + runTest("compiler/testData/codegen/box/bce/forIndiciesWithStep.kt"); + } + + @Test + @TestMetadata("forRangeToSize.kt") + public void testForRangeToSize() { + runTest("compiler/testData/codegen/box/bce/forRangeToSize.kt"); + } + + @Test + @TestMetadata("forRangeToWithStep.kt") + public void testForRangeToWithStep() { + runTest("compiler/testData/codegen/box/bce/forRangeToWithStep.kt"); + } + + @Test + @TestMetadata("forReversed.kt") + public void testForReversed() { + runTest("compiler/testData/codegen/box/bce/forReversed.kt"); + } + + @Test + @TestMetadata("forUntilSize.kt") + public void testForUntilSize() { + runTest("compiler/testData/codegen/box/bce/forUntilSize.kt"); + } + + @Test + @TestMetadata("forUntilWithStep.kt") + public void testForUntilWithStep() { + runTest("compiler/testData/codegen/box/bce/forUntilWithStep.kt"); + } + + @Test + @TestMetadata("forWithIndex.kt") + public void testForWithIndex() { + runTest("compiler/testData/codegen/box/bce/forWithIndex.kt"); + } + + @Test + @TestMetadata("inheritance.kt") + public void testInheritance() { + runTest("compiler/testData/codegen/box/bce/inheritance.kt"); + } + + @Test + @TestMetadata("withGetter.kt") + public void testWithGetter() { + runTest("compiler/testData/codegen/box/bce/withGetter.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/binaryOp") @TestDataPath("$PROJECT_ROOT") @@ -1241,6 +1634,129 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB } } + @Nested + @TestMetadata("compiler/testData/codegen/box/boxing") + @TestDataPath("$PROJECT_ROOT") + @Tag("frontend-fir") + @FirPipeline() + @UseExtTestCaseGroupProvider() + @UsePartialLinkage(mode = Mode.DISABLED) + @Tag("no-partial-linkage-may-be-skipped") + public class Boxing { + @Test + public void testAllFilesPresentInBoxing() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/boxing"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("box_cache0.kt") + public void testBox_cache0() { + runTest("compiler/testData/codegen/box/boxing/box_cache0.kt"); + } + + @Test + @TestMetadata("boxing0.kt") + public void testBoxing0() { + runTest("compiler/testData/codegen/box/boxing/boxing0.kt"); + } + + @Test + @TestMetadata("boxing1.kt") + public void testBoxing1() { + runTest("compiler/testData/codegen/box/boxing/boxing1.kt"); + } + + @Test + @TestMetadata("boxing10.kt") + public void testBoxing10() { + runTest("compiler/testData/codegen/box/boxing/boxing10.kt"); + } + + @Test + @TestMetadata("boxing11.kt") + public void testBoxing11() { + runTest("compiler/testData/codegen/box/boxing/boxing11.kt"); + } + + @Test + @TestMetadata("boxing12.kt") + public void testBoxing12() { + runTest("compiler/testData/codegen/box/boxing/boxing12.kt"); + } + + @Test + @TestMetadata("boxing13.kt") + public void testBoxing13() { + runTest("compiler/testData/codegen/box/boxing/boxing13.kt"); + } + + @Test + @TestMetadata("boxing14.kt") + public void testBoxing14() { + runTest("compiler/testData/codegen/box/boxing/boxing14.kt"); + } + + @Test + @TestMetadata("boxing15.kt") + public void testBoxing15() { + runTest("compiler/testData/codegen/box/boxing/boxing15.kt"); + } + + @Test + @TestMetadata("boxing2.kt") + public void testBoxing2() { + runTest("compiler/testData/codegen/box/boxing/boxing2.kt"); + } + + @Test + @TestMetadata("boxing3.kt") + public void testBoxing3() { + runTest("compiler/testData/codegen/box/boxing/boxing3.kt"); + } + + @Test + @TestMetadata("boxing4.kt") + public void testBoxing4() { + runTest("compiler/testData/codegen/box/boxing/boxing4.kt"); + } + + @Test + @TestMetadata("boxing5.kt") + public void testBoxing5() { + runTest("compiler/testData/codegen/box/boxing/boxing5.kt"); + } + + @Test + @TestMetadata("boxing6.kt") + public void testBoxing6() { + runTest("compiler/testData/codegen/box/boxing/boxing6.kt"); + } + + @Test + @TestMetadata("boxing7.kt") + public void testBoxing7() { + runTest("compiler/testData/codegen/box/boxing/boxing7.kt"); + } + + @Test + @TestMetadata("boxing8.kt") + public void testBoxing8() { + runTest("compiler/testData/codegen/box/boxing/boxing8.kt"); + } + + @Test + @TestMetadata("boxing9.kt") + public void testBoxing9() { + runTest("compiler/testData/codegen/box/boxing/boxing9.kt"); + } + + @Test + @TestMetadata("kt53100_casts.kt") + public void testKt53100_casts() { + runTest("compiler/testData/codegen/box/boxing/kt53100_casts.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/boxingOptimization") @TestDataPath("$PROJECT_ROOT") @@ -1490,6 +2006,93 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB } } + @Nested + @TestMetadata("compiler/testData/codegen/box/branching") + @TestDataPath("$PROJECT_ROOT") + @Tag("frontend-fir") + @FirPipeline() + @UseExtTestCaseGroupProvider() + @UsePartialLinkage(mode = Mode.DISABLED) + @Tag("no-partial-linkage-may-be-skipped") + public class Branching { + @Test + @TestMetadata("advanced_when2.kt") + public void testAdvanced_when2() { + runTest("compiler/testData/codegen/box/branching/advanced_when2.kt"); + } + + @Test + @TestMetadata("advanced_when5.kt") + public void testAdvanced_when5() { + runTest("compiler/testData/codegen/box/branching/advanced_when5.kt"); + } + + @Test + public void testAllFilesPresentInBranching() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/branching"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("if_else.kt") + public void testIf_else() { + runTest("compiler/testData/codegen/box/branching/if_else.kt"); + } + + @Test + @TestMetadata("when2.kt") + public void testWhen2() { + runTest("compiler/testData/codegen/box/branching/when2.kt"); + } + + @Test + @TestMetadata("when4.kt") + public void testWhen4() { + runTest("compiler/testData/codegen/box/branching/when4.kt"); + } + + @Test + @TestMetadata("when5.kt") + public void testWhen5() { + runTest("compiler/testData/codegen/box/branching/when5.kt"); + } + + @Test + @TestMetadata("when6.kt") + public void testWhen6() { + runTest("compiler/testData/codegen/box/branching/when6.kt"); + } + + @Test + @TestMetadata("when7.kt") + public void testWhen7() { + runTest("compiler/testData/codegen/box/branching/when7.kt"); + } + + @Test + @TestMetadata("when8.kt") + public void testWhen8() { + runTest("compiler/testData/codegen/box/branching/when8.kt"); + } + + @Test + @TestMetadata("when9.kt") + public void testWhen9() { + runTest("compiler/testData/codegen/box/branching/when9.kt"); + } + + @Test + @TestMetadata("when_through.kt") + public void testWhen_through() { + runTest("compiler/testData/codegen/box/branching/when_through.kt"); + } + + @Test + @TestMetadata("when_with_try1.kt") + public void testWhen_with_try1() { + runTest("compiler/testData/codegen/box/branching/when_with_try1.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/bridges") @TestDataPath("$PROJECT_ROOT") @@ -1732,6 +2335,18 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB runTest("compiler/testData/codegen/box/bridges/methodWithDefaultParameter.kt"); } + @Test + @TestMetadata("multipleModules1.kt") + public void testMultipleModules1() { + runTest("compiler/testData/codegen/box/bridges/multipleModules1.kt"); + } + + @Test + @TestMetadata("multipleModules2.kt") + public void testMultipleModules2() { + runTest("compiler/testData/codegen/box/bridges/multipleModules2.kt"); + } + @Test @TestMetadata("nestedClassTypeParameters.kt") public void testNestedClassTypeParameters() { @@ -1792,6 +2407,12 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB runTest("compiler/testData/codegen/box/bridges/propertySetter.kt"); } + @Test + @TestMetadata("returnTypeSignature.kt") + public void testReturnTypeSignature() { + runTest("compiler/testData/codegen/box/bridges/returnTypeSignature.kt"); + } + @Test @TestMetadata("simple.kt") public void testSimple() { @@ -1834,12 +2455,138 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB runTest("compiler/testData/codegen/box/bridges/simpleUpperBound.kt"); } + @Test + @TestMetadata("special.kt") + public void testSpecial() { + runTest("compiler/testData/codegen/box/bridges/special.kt"); + } + + @Test + @TestMetadata("specialGeneric.kt") + public void testSpecialGeneric() { + runTest("compiler/testData/codegen/box/bridges/specialGeneric.kt"); + } + @Test @TestMetadata("strListContains.kt") public void testStrListContains() { runTest("compiler/testData/codegen/box/bridges/strListContains.kt"); } + @Test + @TestMetadata("test0.kt") + public void testTest0() { + runTest("compiler/testData/codegen/box/bridges/test0.kt"); + } + + @Test + @TestMetadata("test1.kt") + public void testTest1() { + runTest("compiler/testData/codegen/box/bridges/test1.kt"); + } + + @Test + @TestMetadata("test10.kt") + public void testTest10() { + runTest("compiler/testData/codegen/box/bridges/test10.kt"); + } + + @Test + @TestMetadata("test11.kt") + public void testTest11() { + runTest("compiler/testData/codegen/box/bridges/test11.kt"); + } + + @Test + @TestMetadata("test12.kt") + public void testTest12() { + runTest("compiler/testData/codegen/box/bridges/test12.kt"); + } + + @Test + @TestMetadata("test13.kt") + public void testTest13() { + runTest("compiler/testData/codegen/box/bridges/test13.kt"); + } + + @Test + @TestMetadata("test14.kt") + public void testTest14() { + runTest("compiler/testData/codegen/box/bridges/test14.kt"); + } + + @Test + @TestMetadata("test15.kt") + public void testTest15() { + runTest("compiler/testData/codegen/box/bridges/test15.kt"); + } + + @Test + @TestMetadata("test16.kt") + public void testTest16() { + runTest("compiler/testData/codegen/box/bridges/test16.kt"); + } + + @Test + @TestMetadata("test17.kt") + public void testTest17() { + runTest("compiler/testData/codegen/box/bridges/test17.kt"); + } + + @Test + @TestMetadata("test18.kt") + public void testTest18() { + runTest("compiler/testData/codegen/box/bridges/test18.kt"); + } + + @Test + @TestMetadata("test2.kt") + public void testTest2() { + runTest("compiler/testData/codegen/box/bridges/test2.kt"); + } + + @Test + @TestMetadata("test3.kt") + public void testTest3() { + runTest("compiler/testData/codegen/box/bridges/test3.kt"); + } + + @Test + @TestMetadata("test4.kt") + public void testTest4() { + runTest("compiler/testData/codegen/box/bridges/test4.kt"); + } + + @Test + @TestMetadata("test5.kt") + public void testTest5() { + runTest("compiler/testData/codegen/box/bridges/test5.kt"); + } + + @Test + @TestMetadata("test6.kt") + public void testTest6() { + runTest("compiler/testData/codegen/box/bridges/test6.kt"); + } + + @Test + @TestMetadata("test7.kt") + public void testTest7() { + runTest("compiler/testData/codegen/box/bridges/test7.kt"); + } + + @Test + @TestMetadata("test8.kt") + public void testTest8() { + runTest("compiler/testData/codegen/box/bridges/test8.kt"); + } + + @Test + @TestMetadata("test9.kt") + public void testTest9() { + runTest("compiler/testData/codegen/box/bridges/test9.kt"); + } + @Test @TestMetadata("traitImplInheritsTraitImpl.kt") public void testTraitImplInheritsTraitImpl() { @@ -4904,6 +5651,51 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB } } + @Nested + @TestMetadata("compiler/testData/codegen/box/classDelegation") + @TestDataPath("$PROJECT_ROOT") + @Tag("frontend-fir") + @FirPipeline() + @UseExtTestCaseGroupProvider() + @UsePartialLinkage(mode = Mode.DISABLED) + @Tag("no-partial-linkage-may-be-skipped") + public class ClassDelegation { + @Test + public void testAllFilesPresentInClassDelegation() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/classDelegation"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("generic.kt") + public void testGeneric() { + runTest("compiler/testData/codegen/box/classDelegation/generic.kt"); + } + + @Test + @TestMetadata("method.kt") + public void testMethod() { + runTest("compiler/testData/codegen/box/classDelegation/method.kt"); + } + + @Test + @TestMetadata("multipleModules.kt") + public void testMultipleModules() { + runTest("compiler/testData/codegen/box/classDelegation/multipleModules.kt"); + } + + @Test + @TestMetadata("property.kt") + public void testProperty() { + runTest("compiler/testData/codegen/box/classDelegation/property.kt"); + } + + @Test + @TestMetadata("withBridge.kt") + public void testWithBridge() { + runTest("compiler/testData/codegen/box/classDelegation/withBridge.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/classLiteral") @TestDataPath("$PROJECT_ROOT") @@ -7357,6 +8149,12 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB runTest("compiler/testData/codegen/box/contracts/constructorArgument.kt"); } + @Test + @TestMetadata("contractForCast.kt") + public void testContractForCast() { + runTest("compiler/testData/codegen/box/contracts/contractForCast.kt"); + } + @Test @TestMetadata("destructuredVariable.kt") public void testDestructuredVariable() { @@ -7399,6 +8197,12 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB runTest("compiler/testData/codegen/box/contracts/functionParameter.kt"); } + @Test + @TestMetadata("isNullString.kt") + public void testIsNullString() { + runTest("compiler/testData/codegen/box/contracts/isNullString.kt"); + } + @Test @TestMetadata("kt39374.kt") public void testKt39374() { @@ -7441,6 +8245,24 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB runTest("compiler/testData/codegen/box/contracts/nestedLambdaInNonInlineCallExactlyOnce.kt"); } + @Test + @TestMetadata("nonNullSmartCast.kt") + public void testNonNullSmartCast() { + runTest("compiler/testData/codegen/box/contracts/nonNullSmartCast.kt"); + } + + @Test + @TestMetadata("require.kt") + public void testRequire() { + runTest("compiler/testData/codegen/box/contracts/require.kt"); + } + + @Test + @TestMetadata("runLambdaForVal.kt") + public void testRunLambdaForVal() { + runTest("compiler/testData/codegen/box/contracts/runLambdaForVal.kt"); + } + @Test @TestMetadata("valInWhen.kt") public void testValInWhen() { @@ -8882,6 +9704,129 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB } } + @Nested + @TestMetadata("compiler/testData/codegen/box/controlflow") + @TestDataPath("$PROJECT_ROOT") + @Tag("frontend-fir") + @FirPipeline() + @UseExtTestCaseGroupProvider() + @UsePartialLinkage(mode = Mode.DISABLED) + @Tag("no-partial-linkage-may-be-skipped") + public class Controlflow { + @Test + public void testAllFilesPresentInControlflow() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/controlflow"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("break.kt") + public void testBreak() { + runTest("compiler/testData/codegen/box/controlflow/break.kt"); + } + + @Test + @TestMetadata("break1.kt") + public void testBreak1() { + runTest("compiler/testData/codegen/box/controlflow/break1.kt"); + } + + @Test + @TestMetadata("for_loops.kt") + public void testFor_loops() { + runTest("compiler/testData/codegen/box/controlflow/for_loops.kt"); + } + + @Test + @TestMetadata("for_loops_array_break_continue.kt") + public void testFor_loops_array_break_continue() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_array_break_continue.kt"); + } + + @Test + @TestMetadata("for_loops_array_indices.kt") + public void testFor_loops_array_indices() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_array_indices.kt"); + } + + @Test + @TestMetadata("for_loops_array_mutation.kt") + public void testFor_loops_array_mutation() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_array_mutation.kt"); + } + + @Test + @TestMetadata("for_loops_array_nested.kt") + public void testFor_loops_array_nested() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_array_nested.kt"); + } + + @Test + @TestMetadata("for_loops_array_nullable.kt") + public void testFor_loops_array_nullable() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_array_nullable.kt"); + } + + @Test + @TestMetadata("for_loops_array_side_effects.kt") + public void testFor_loops_array_side_effects() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_array_side_effects.kt"); + } + + @Test + @TestMetadata("for_loops_call_order.kt") + public void testFor_loops_call_order() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_call_order.kt"); + } + + @Test + @TestMetadata("for_loops_coroutines.kt") + public void testFor_loops_coroutines() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_coroutines.kt"); + } + + @Test + @TestMetadata("for_loops_empty_range.kt") + public void testFor_loops_empty_range() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_empty_range.kt"); + } + + @Test + @TestMetadata("for_loops_errors.kt") + public void testFor_loops_errors() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_errors.kt"); + } + + @Test + @TestMetadata("for_loops_let_with_nullable.kt") + public void testFor_loops_let_with_nullable() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_let_with_nullable.kt"); + } + + @Test + @TestMetadata("for_loops_nested.kt") + public void testFor_loops_nested() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_nested.kt"); + } + + @Test + @TestMetadata("for_loops_overflow.kt") + public void testFor_loops_overflow() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_overflow.kt"); + } + + @Test + @TestMetadata("for_loops_types.kt") + public void testFor_loops_types() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_types.kt"); + } + + @Test + @TestMetadata("unreachable1.kt") + public void testUnreachable1() { + runTest("compiler/testData/codegen/box/controlflow/unreachable1.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/coroutines") @TestDataPath("$PROJECT_ROOT") @@ -8908,6 +9853,12 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); } + @Test + @TestMetadata("anonymousObject.kt") + public void testAnonymousObject() { + runTest("compiler/testData/codegen/box/coroutines/anonymousObject.kt"); + } + @Test @TestMetadata("asyncIteratorNullMerge_1_3.kt") public void testAsyncIteratorNullMerge_1_3() { @@ -8992,18 +9943,156 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB runTest("compiler/testData/codegen/box/coroutines/coercionToUnit.kt"); } + @Test + @TestMetadata("controlFlow_chain.kt") + public void testControlFlow_chain() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_chain.kt"); + } + + @Test + @TestMetadata("controlFlow_finally1.kt") + public void testControlFlow_finally1() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally1.kt"); + } + + @Test + @TestMetadata("controlFlow_finally2.kt") + public void testControlFlow_finally2() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally2.kt"); + } + + @Test + @TestMetadata("controlFlow_finally3.kt") + public void testControlFlow_finally3() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally3.kt"); + } + + @Test + @TestMetadata("controlFlow_finally4.kt") + public void testControlFlow_finally4() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally4.kt"); + } + + @Test + @TestMetadata("controlFlow_finally5.kt") + public void testControlFlow_finally5() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally5.kt"); + } + + @Test + @TestMetadata("controlFlow_finally6.kt") + public void testControlFlow_finally6() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally6.kt"); + } + + @Test + @TestMetadata("controlFlow_finally7.kt") + public void testControlFlow_finally7() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally7.kt"); + } + + @Test + @TestMetadata("controlFlow_if1.kt") + public void testControlFlow_if1() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_if1.kt"); + } + + @Test + @TestMetadata("controlFlow_if2.kt") + public void testControlFlow_if2() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_if2.kt"); + } + + @Test + @TestMetadata("controlFlow_inline1.kt") + public void testControlFlow_inline1() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_inline1.kt"); + } + + @Test + @TestMetadata("controlFlow_inline2.kt") + public void testControlFlow_inline2() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_inline2.kt"); + } + + @Test + @TestMetadata("controlFlow_inline3.kt") + public void testControlFlow_inline3() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_inline3.kt"); + } + + @Test + @TestMetadata("controlFlow_tryCatch1.kt") + public void testControlFlow_tryCatch1() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_tryCatch1.kt"); + } + + @Test + @TestMetadata("controlFlow_tryCatch2.kt") + public void testControlFlow_tryCatch2() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_tryCatch2.kt"); + } + + @Test + @TestMetadata("controlFlow_tryCatch3.kt") + public void testControlFlow_tryCatch3() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_tryCatch3.kt"); + } + + @Test + @TestMetadata("controlFlow_tryCatch4.kt") + public void testControlFlow_tryCatch4() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_tryCatch4.kt"); + } + + @Test + @TestMetadata("controlFlow_tryCatch5.kt") + public void testControlFlow_tryCatch5() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_tryCatch5.kt"); + } + + @Test + @TestMetadata("controlFlow_while1.kt") + public void testControlFlow_while1() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_while1.kt"); + } + + @Test + @TestMetadata("controlFlow_while2.kt") + public void testControlFlow_while2() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_while2.kt"); + } + @Test @TestMetadata("controllerAccessFromInnerLambda.kt") public void testControllerAccessFromInnerLambda() { runTest("compiler/testData/codegen/box/coroutines/controllerAccessFromInnerLambda.kt"); } + @Test + @TestMetadata("coroutineContext1.kt") + public void testCoroutineContext1() { + runTest("compiler/testData/codegen/box/coroutines/coroutineContext1.kt"); + } + + @Test + @TestMetadata("coroutineContext2.kt") + public void testCoroutineContext2() { + runTest("compiler/testData/codegen/box/coroutines/coroutineContext2.kt"); + } + @Test @TestMetadata("coroutineContextInInlinedLambda.kt") public void testCoroutineContextInInlinedLambda() { runTest("compiler/testData/codegen/box/coroutines/coroutineContextInInlinedLambda.kt"); } + @Test + @TestMetadata("correctOrder1.kt") + public void testCorrectOrder1() { + runTest("compiler/testData/codegen/box/coroutines/correctOrder1.kt"); + } + @Test @TestMetadata("createCoroutineSafe.kt") public void testCreateCoroutineSafe() { @@ -9034,6 +10123,18 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB runTest("compiler/testData/codegen/box/coroutines/defaultParametersInSuspend.kt"); } + @Test + @TestMetadata("degenerate1.kt") + public void testDegenerate1() { + runTest("compiler/testData/codegen/box/coroutines/degenerate1.kt"); + } + + @Test + @TestMetadata("degenerate2.kt") + public void testDegenerate2() { + runTest("compiler/testData/codegen/box/coroutines/degenerate2.kt"); + } + @Test @TestMetadata("delegatedSuspendMember.kt") public void testDelegatedSuspendMember() { @@ -9082,6 +10183,30 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB runTest("compiler/testData/codegen/box/coroutines/falseUnitCoercion.kt"); } + @Test + @TestMetadata("functionReference_eqeq_name.kt") + public void testFunctionReference_eqeq_name() { + runTest("compiler/testData/codegen/box/coroutines/functionReference_eqeq_name.kt"); + } + + @Test + @TestMetadata("functionReference_invokeAsFunction.kt") + public void testFunctionReference_invokeAsFunction() { + runTest("compiler/testData/codegen/box/coroutines/functionReference_invokeAsFunction.kt"); + } + + @Test + @TestMetadata("functionReference_lambdaAsSuspendLambda.kt") + public void testFunctionReference_lambdaAsSuspendLambda() { + runTest("compiler/testData/codegen/box/coroutines/functionReference_lambdaAsSuspendLambda.kt"); + } + + @Test + @TestMetadata("functionReference_simple.kt") + public void testFunctionReference_simple() { + runTest("compiler/testData/codegen/box/coroutines/functionReference_simple.kt"); + } + @Test @TestMetadata("generate.kt") public void testGenerate() { @@ -9256,6 +10381,12 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB runTest("compiler/testData/codegen/box/coroutines/kt35967.kt"); } + @Test + @TestMetadata("kt41394.kt") + public void testKt41394() { + runTest("compiler/testData/codegen/box/coroutines/kt41394.kt"); + } + @Test @TestMetadata("kt42028.kt") public void testKt42028() { @@ -9484,12 +10615,30 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB runTest("compiler/testData/codegen/box/coroutines/returnByLabel.kt"); } + @Test + @TestMetadata("returnsNothing1.kt") + public void testReturnsNothing1() { + runTest("compiler/testData/codegen/box/coroutines/returnsNothing1.kt"); + } + + @Test + @TestMetadata("returnsUnit1.kt") + public void testReturnsUnit1() { + runTest("compiler/testData/codegen/box/coroutines/returnsUnit1.kt"); + } + @Test @TestMetadata("simple.kt") public void testSimple() { runTest("compiler/testData/codegen/box/coroutines/simple.kt"); } + @Test + @TestMetadata("simple2.kt") + public void testSimple2() { + runTest("compiler/testData/codegen/box/coroutines/simple2.kt"); + } + @Test @TestMetadata("simpleException.kt") public void testSimpleException() { @@ -9532,6 +10681,12 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB runTest("compiler/testData/codegen/box/coroutines/suspendCallsInArguments.kt"); } + @Test + @TestMetadata("suspendConversion.kt") + public void testSuspendConversion() { + runTest("compiler/testData/codegen/box/coroutines/suspendConversion.kt"); + } + @Test @TestMetadata("suspendCoroutineFromStateMachine.kt") public void testSuspendCoroutineFromStateMachine() { @@ -9688,6 +10843,12 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB runTest("compiler/testData/codegen/box/coroutines/varargCallFromSuspend.kt"); } + @Test + @TestMetadata("withReceiver.kt") + public void testWithReceiver() { + runTest("compiler/testData/codegen/box/coroutines/withReceiver.kt"); + } + @Nested @TestMetadata("compiler/testData/codegen/box/coroutines/bridges") @TestDataPath("$PROJECT_ROOT") @@ -12095,6 +13256,39 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB } } + @Nested + @TestMetadata("compiler/testData/codegen/box/cycles") + @TestDataPath("$PROJECT_ROOT") + @Tag("frontend-fir") + @FirPipeline() + @UseExtTestCaseGroupProvider() + @UsePartialLinkage(mode = Mode.DISABLED) + @Tag("no-partial-linkage-may-be-skipped") + public class Cycles { + @Test + public void testAllFilesPresentInCycles() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cycles"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("cycle.kt") + public void testCycle() { + runTest("compiler/testData/codegen/box/cycles/cycle.kt"); + } + + @Test + @TestMetadata("cycle_do.kt") + public void testCycle_do() { + runTest("compiler/testData/codegen/box/cycles/cycle_do.kt"); + } + + @Test + @TestMetadata("cycle_for.kt") + public void testCycle_for() { + runTest("compiler/testData/codegen/box/cycles/cycle_for.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/dataClasses") @TestDataPath("$PROJECT_ROOT") @@ -12536,6 +13730,33 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB } } + @Nested + @TestMetadata("compiler/testData/codegen/box/dataflow") + @TestDataPath("$PROJECT_ROOT") + @Tag("frontend-fir") + @FirPipeline() + @UseExtTestCaseGroupProvider() + @UsePartialLinkage(mode = Mode.DISABLED) + @Tag("no-partial-linkage-may-be-skipped") + public class Dataflow { + @Test + public void testAllFilesPresentInDataflow() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/dataflow"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("scope1.kt") + public void testScope1() { + runTest("compiler/testData/codegen/box/dataflow/scope1.kt"); + } + + @Test + @TestMetadata("uninitialized_val.kt") + public void testUninitialized_val() { + runTest("compiler/testData/codegen/box/dataflow/uninitialized_val.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/deadCodeElimination") @TestDataPath("$PROJECT_ROOT") @@ -13195,6 +14416,12 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB runTest("compiler/testData/codegen/box/delegatedProperty/castSetParameter.kt"); } + @Test + @TestMetadata("correctFieldsOrder.kt") + public void testCorrectFieldsOrder() { + runTest("compiler/testData/codegen/box/delegatedProperty/correctFieldsOrder.kt"); + } + @Test @TestMetadata("delegateAsInnerClass.kt") public void testDelegateAsInnerClass() { @@ -13249,6 +14476,12 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB runTest("compiler/testData/codegen/box/delegatedProperty/delegateWithPrivateSet.kt"); } + @Test + @TestMetadata("delegatedOverride.kt") + public void testDelegatedOverride() { + runTest("compiler/testData/codegen/box/delegatedProperty/delegatedOverride.kt"); + } + @Test @TestMetadata("delegatedPropertyInEnum.kt") public void testDelegatedPropertyInEnum() { @@ -13381,12 +14614,42 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB runTest("compiler/testData/codegen/box/delegatedProperty/kt9712.kt"); } + @Test + @TestMetadata("lazy.kt") + public void testLazy() { + runTest("compiler/testData/codegen/box/delegatedProperty/lazy.kt"); + } + + @Test + @TestMetadata("local.kt") + public void testLocal() { + runTest("compiler/testData/codegen/box/delegatedProperty/local.kt"); + } + + @Test + @TestMetadata("map.kt") + public void testMap() { + runTest("compiler/testData/codegen/box/delegatedProperty/map.kt"); + } + @Test @TestMetadata("noTypeVariablesLeft.kt") public void testNoTypeVariablesLeft() { runTest("compiler/testData/codegen/box/delegatedProperty/noTypeVariablesLeft.kt"); } + @Test + @TestMetadata("observable.kt") + public void testObservable() { + runTest("compiler/testData/codegen/box/delegatedProperty/observable.kt"); + } + + @Test + @TestMetadata("packageLevel.kt") + public void testPackageLevel() { + runTest("compiler/testData/codegen/box/delegatedProperty/packageLevel.kt"); + } + @Test @TestMetadata("privateVar.kt") public void testPrivateVar() { @@ -13429,6 +14692,18 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB runTest("compiler/testData/codegen/box/delegatedProperty/setAsExtensionFunInClass.kt"); } + @Test + @TestMetadata("simpleVal.kt") + public void testSimpleVal() { + runTest("compiler/testData/codegen/box/delegatedProperty/simpleVal.kt"); + } + + @Test + @TestMetadata("simpleVar.kt") + public void testSimpleVar() { + runTest("compiler/testData/codegen/box/delegatedProperty/simpleVar.kt"); + } + @Test @TestMetadata("topLevelVal.kt") public void testTopLevelVal() { @@ -14291,6 +15566,45 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB } } + @Nested + @TestMetadata("compiler/testData/codegen/box/devirtualization") + @TestDataPath("$PROJECT_ROOT") + @Tag("frontend-fir") + @FirPipeline() + @UseExtTestCaseGroupProvider() + @UsePartialLinkage(mode = Mode.DISABLED) + @Tag("no-partial-linkage-may-be-skipped") + public class Devirtualization { + @Test + public void testAllFilesPresentInDevirtualization() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/devirtualization"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("anonymousObject.kt") + public void testAnonymousObject() { + runTest("compiler/testData/codegen/box/devirtualization/anonymousObject.kt"); + } + + @Test + @TestMetadata("getter_looking_as_box_function.kt") + public void testGetter_looking_as_box_function() { + runTest("compiler/testData/codegen/box/devirtualization/getter_looking_as_box_function.kt"); + } + + @Test + @TestMetadata("inline_getter.kt") + public void testInline_getter() { + runTest("compiler/testData/codegen/box/devirtualization/inline_getter.kt"); + } + + @Test + @TestMetadata("lateinitInterface.kt") + public void testLateinitInterface() { + runTest("compiler/testData/codegen/box/devirtualization/lateinitInterface.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/diagnostics") @TestDataPath("$PROJECT_ROOT") @@ -14959,6 +16273,12 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB runTest("compiler/testData/codegen/box/enum/companionAccessingEnumValue.kt"); } + @Test + @TestMetadata("companionObject.kt") + public void testCompanionObject() { + runTest("compiler/testData/codegen/box/enum/companionObject.kt"); + } + @Test @TestMetadata("companionObjectInEnum.kt") public void testCompanionObjectInEnum() { @@ -15103,6 +16423,12 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB runTest("compiler/testData/codegen/box/enum/enumWithLambdaParameter.kt"); } + @Test + @TestMetadata("enum_equals.kt") + public void testEnum_equals() { + runTest("compiler/testData/codegen/box/enum/enum_equals.kt"); + } + @Test @TestMetadata("getEnumEntityByOrdinal.kt") public void testGetEnumEntityByOrdinal() { @@ -15175,6 +16501,18 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB runTest("compiler/testData/codegen/box/enum/innerWithExistingClassObject.kt"); } + @Test + @TestMetadata("interfaceCallNoEntryClass.kt") + public void testInterfaceCallNoEntryClass() { + runTest("compiler/testData/codegen/box/enum/interfaceCallNoEntryClass.kt"); + } + + @Test + @TestMetadata("interfaceCallWithEntryClass.kt") + public void testInterfaceCallWithEntryClass() { + runTest("compiler/testData/codegen/box/enum/interfaceCallWithEntryClass.kt"); + } + @Test @TestMetadata("k54079.kt") public void testK54079() { @@ -15229,6 +16567,12 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB runTest("compiler/testData/codegen/box/enum/kt2350.kt"); } + @Test + @TestMetadata("kt38540.kt") + public void testKt38540() { + runTest("compiler/testData/codegen/box/enum/kt38540.kt"); + } + @Test @TestMetadata("kt38996.kt") public void testKt38996() { @@ -15325,12 +16669,42 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB runTest("compiler/testData/codegen/box/enum/kt9711_2.kt"); } + @Test + @TestMetadata("lambdaInDefault.kt") + public void testLambdaInDefault() { + runTest("compiler/testData/codegen/box/enum/lambdaInDefault.kt"); + } + + @Test + @TestMetadata("loop.kt") + public void testLoop() { + runTest("compiler/testData/codegen/box/enum/loop.kt"); + } + @Test @TestMetadata("manyDefaultParameters.kt") public void testManyDefaultParameters() { runTest("compiler/testData/codegen/box/enum/manyDefaultParameters.kt"); } + @Test + @TestMetadata("multipleModules.kt") + public void testMultipleModules() { + runTest("compiler/testData/codegen/box/enum/multipleModules.kt"); + } + + @Test + @TestMetadata("nested.kt") + public void testNested() { + runTest("compiler/testData/codegen/box/enum/nested.kt"); + } + + @Test + @TestMetadata("openMethodNoOverrides.kt") + public void testOpenMethodNoOverrides() { + runTest("compiler/testData/codegen/box/enum/openMethodNoOverrides.kt"); + } + @Test @TestMetadata("ordinal.kt") public void testOrdinal() { @@ -15355,6 +16729,12 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB runTest("compiler/testData/codegen/box/enum/refToThis.kt"); } + @Test + @TestMetadata("reorderedArguments.kt") + public void testReorderedArguments() { + runTest("compiler/testData/codegen/box/enum/reorderedArguments.kt"); + } + @Test @TestMetadata("simple.kt") public void testSimple() { @@ -15373,18 +16753,66 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB runTest("compiler/testData/codegen/box/enum/superCallInEnumLiteral.kt"); } + @Test + @TestMetadata("switchLowering.kt") + public void testSwitchLowering() { + runTest("compiler/testData/codegen/box/enum/switchLowering.kt"); + } + + @Test + @TestMetadata("test0.kt") + public void testTest0() { + runTest("compiler/testData/codegen/box/enum/test0.kt"); + } + + @Test + @TestMetadata("test1.kt") + public void testTest1() { + runTest("compiler/testData/codegen/box/enum/test1.kt"); + } + @Test @TestMetadata("toString.kt") public void testToString() { runTest("compiler/testData/codegen/box/enum/toString.kt"); } + @Test + @TestMetadata("vCallNoEntryClass.kt") + public void testVCallNoEntryClass() { + runTest("compiler/testData/codegen/box/enum/vCallNoEntryClass.kt"); + } + + @Test + @TestMetadata("vCallWithEntryClass.kt") + public void testVCallWithEntryClass() { + runTest("compiler/testData/codegen/box/enum/vCallWithEntryClass.kt"); + } + + @Test + @TestMetadata("valueOf2.kt") + public void testValueOf2() { + runTest("compiler/testData/codegen/box/enum/valueOf2.kt"); + } + @Test @TestMetadata("valueof.kt") public void testValueof() { runTest("compiler/testData/codegen/box/enum/valueof.kt"); } + @Test + @TestMetadata("values.kt") + public void testValues() { + runTest("compiler/testData/codegen/box/enum/values.kt"); + } + + @Test + @TestMetadata("varargParam.kt") + public void testVarargParam() { + runTest("compiler/testData/codegen/box/enum/varargParam.kt"); + } + @Test @TestMetadata("whenInObject.kt") public void testWhenInObject() { @@ -15470,6 +16898,117 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB } } + @Nested + @TestMetadata("compiler/testData/codegen/box/escapeAnalysis") + @TestDataPath("$PROJECT_ROOT") + @Tag("frontend-fir") + @FirPipeline() + @UseExtTestCaseGroupProvider() + @UsePartialLinkage(mode = Mode.DISABLED) + @Tag("no-partial-linkage-may-be-skipped") + public class EscapeAnalysis { + @Test + public void testAllFilesPresentInEscapeAnalysis() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/escapeAnalysis"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("recursion.kt") + public void testRecursion() { + runTest("compiler/testData/codegen/box/escapeAnalysis/recursion.kt"); + } + + @Test + @TestMetadata("stack_array.kt") + public void testStack_array() { + runTest("compiler/testData/codegen/box/escapeAnalysis/stack_array.kt"); + } + + @Test + @TestMetadata("test1.kt") + public void testTest1() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test1.kt"); + } + + @Test + @TestMetadata("test10.kt") + public void testTest10() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test10.kt"); + } + + @Test + @TestMetadata("test11.kt") + public void testTest11() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test11.kt"); + } + + @Test + @TestMetadata("test12.kt") + public void testTest12() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test12.kt"); + } + + @Test + @TestMetadata("test13.kt") + public void testTest13() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test13.kt"); + } + + @Test + @TestMetadata("test2.kt") + public void testTest2() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test2.kt"); + } + + @Test + @TestMetadata("test3.kt") + public void testTest3() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test3.kt"); + } + + @Test + @TestMetadata("test4.kt") + public void testTest4() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test4.kt"); + } + + @Test + @TestMetadata("test5.kt") + public void testTest5() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test5.kt"); + } + + @Test + @TestMetadata("test6.kt") + public void testTest6() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test6.kt"); + } + + @Test + @TestMetadata("test7.kt") + public void testTest7() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test7.kt"); + } + + @Test + @TestMetadata("test8.kt") + public void testTest8() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test8.kt"); + } + + @Test + @TestMetadata("test9.kt") + public void testTest9() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test9.kt"); + } + + @Test + @TestMetadata("zeroOutObjectOnAlloc.kt") + public void testZeroOutObjectOnAlloc() { + runTest("compiler/testData/codegen/box/escapeAnalysis/zeroOutObjectOnAlloc.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/evaluate") @TestDataPath("$PROJECT_ROOT") @@ -15491,6 +17030,63 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB } } + @Nested + @TestMetadata("compiler/testData/codegen/box/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() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/exceptions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("catch1.kt") + public void testCatch1() { + runTest("compiler/testData/codegen/box/exceptions/catch1.kt"); + } + + @Test + @TestMetadata("catch2.kt") + public void testCatch2() { + runTest("compiler/testData/codegen/box/exceptions/catch2.kt"); + } + + @Test + @TestMetadata("catch7.kt") + public void testCatch7() { + runTest("compiler/testData/codegen/box/exceptions/catch7.kt"); + } + + @Test + @TestMetadata("extend0.kt") + public void testExtend0() { + runTest("compiler/testData/codegen/box/exceptions/extend0.kt"); + } + + @Test + @TestMetadata("rethrow.kt") + public void testRethrow() { + runTest("compiler/testData/codegen/box/exceptions/rethrow.kt"); + } + + @Test + @TestMetadata("throw0.kt") + public void testThrow0() { + runTest("compiler/testData/codegen/box/exceptions/throw0.kt"); + } + + @Test + @TestMetadata("throw_from_catch.kt") + public void testThrow_from_catch() { + runTest("compiler/testData/codegen/box/exceptions/throw_from_catch.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/exclExcl") @TestDataPath("$PROJECT_ROOT") @@ -16450,6 +18046,12 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB runTest("compiler/testData/codegen/box/funInterface/funInterfaceWithReceiver.kt"); } + @Test + @TestMetadata("implIsNotFunction.kt") + public void testImplIsNotFunction() { + runTest("compiler/testData/codegen/box/funInterface/implIsNotFunction.kt"); + } + @Test @TestMetadata("inlinedSamWrapper.kt") public void testInlinedSamWrapper() { @@ -16492,6 +18094,18 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB runTest("compiler/testData/codegen/box/funInterface/kt46908_functionSupertype.kt"); } + @Test + @TestMetadata("kt49384.kt") + public void testKt49384() { + runTest("compiler/testData/codegen/box/funInterface/kt49384.kt"); + } + + @Test + @TestMetadata("kt49384_getSame.kt") + public void testKt49384_getSame() { + runTest("compiler/testData/codegen/box/funInterface/kt49384_getSame.kt"); + } + @Test @TestMetadata("multimodule.kt") public void testMultimodule() { @@ -16510,6 +18124,12 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB runTest("compiler/testData/codegen/box/funInterface/nonAbstractMethod.kt"); } + @Test + @TestMetadata("nonTrivialProjectionInSuperType.kt") + public void testNonTrivialProjectionInSuperType() { + runTest("compiler/testData/codegen/box/funInterface/nonTrivialProjectionInSuperType.kt"); + } + @Test @TestMetadata("nullableSam.kt") public void testNullableSam() { @@ -16604,6 +18224,237 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB } } + @Nested + @TestMetadata("compiler/testData/codegen/box/function") + @TestDataPath("$PROJECT_ROOT") + @Tag("frontend-fir") + @FirPipeline() + @UseExtTestCaseGroupProvider() + @UsePartialLinkage(mode = Mode.DISABLED) + @Tag("no-partial-linkage-may-be-skipped") + public class Function { + @Test + public void testAllFilesPresentInFunction() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/function"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("arithmetic.kt") + public void testArithmetic() { + runTest("compiler/testData/codegen/box/function/arithmetic.kt"); + } + + @Test + @TestMetadata("boolean.kt") + public void testBoolean() { + runTest("compiler/testData/codegen/box/function/boolean.kt"); + } + + @Test + @TestMetadata("defaults.kt") + public void testDefaults() { + runTest("compiler/testData/codegen/box/function/defaults.kt"); + } + + @Test + @TestMetadata("defaults1.kt") + public void testDefaults1() { + runTest("compiler/testData/codegen/box/function/defaults1.kt"); + } + + @Test + @TestMetadata("defaults10.kt") + public void testDefaults10() { + runTest("compiler/testData/codegen/box/function/defaults10.kt"); + } + + @Test + @TestMetadata("defaults2.kt") + public void testDefaults2() { + runTest("compiler/testData/codegen/box/function/defaults2.kt"); + } + + @Test + @TestMetadata("defaults3.kt") + public void testDefaults3() { + runTest("compiler/testData/codegen/box/function/defaults3.kt"); + } + + @Test + @TestMetadata("defaults4.kt") + public void testDefaults4() { + runTest("compiler/testData/codegen/box/function/defaults4.kt"); + } + + @Test + @TestMetadata("defaults5.kt") + public void testDefaults5() { + runTest("compiler/testData/codegen/box/function/defaults5.kt"); + } + + @Test + @TestMetadata("defaults6.kt") + public void testDefaults6() { + runTest("compiler/testData/codegen/box/function/defaults6.kt"); + } + + @Test + @TestMetadata("defaults7.kt") + public void testDefaults7() { + runTest("compiler/testData/codegen/box/function/defaults7.kt"); + } + + @Test + @TestMetadata("defaults8.kt") + public void testDefaults8() { + runTest("compiler/testData/codegen/box/function/defaults8.kt"); + } + + @Test + @TestMetadata("defaults9.kt") + public void testDefaults9() { + runTest("compiler/testData/codegen/box/function/defaults9.kt"); + } + + @Test + @TestMetadata("defaultsFromFakeOverride.kt") + public void testDefaultsFromFakeOverride() { + runTest("compiler/testData/codegen/box/function/defaultsFromFakeOverride.kt"); + } + + @Test + @TestMetadata("defaultsWithInlineClasses.kt") + public void testDefaultsWithInlineClasses() { + runTest("compiler/testData/codegen/box/function/defaultsWithInlineClasses.kt"); + } + + @Test + @TestMetadata("defaultsWithVarArg1.kt") + public void testDefaultsWithVarArg1() { + runTest("compiler/testData/codegen/box/function/defaultsWithVarArg1.kt"); + } + + @Test + @TestMetadata("defaultsWithVarArg2.kt") + public void testDefaultsWithVarArg2() { + runTest("compiler/testData/codegen/box/function/defaultsWithVarArg2.kt"); + } + + @Test + @TestMetadata("eqeq.kt") + public void testEqeq() { + runTest("compiler/testData/codegen/box/function/eqeq.kt"); + } + + @Test + @TestMetadata("extension.kt") + public void testExtension() { + runTest("compiler/testData/codegen/box/function/extension.kt"); + } + + @Test + @TestMetadata("intrinsic.kt") + public void testIntrinsic() { + runTest("compiler/testData/codegen/box/function/intrinsic.kt"); + } + + @Test + @TestMetadata("localFunction.kt") + public void testLocalFunction() { + runTest("compiler/testData/codegen/box/function/localFunction.kt"); + } + + @Test + @TestMetadata("localFunction2.kt") + public void testLocalFunction2() { + runTest("compiler/testData/codegen/box/function/localFunction2.kt"); + } + + @Test + @TestMetadata("localFunction3.kt") + public void testLocalFunction3() { + runTest("compiler/testData/codegen/box/function/localFunction3.kt"); + } + + @Test + @TestMetadata("minus_eq.kt") + public void testMinus_eq() { + runTest("compiler/testData/codegen/box/function/minus_eq.kt"); + } + + @Test + @TestMetadata("named.kt") + public void testNamed() { + runTest("compiler/testData/codegen/box/function/named.kt"); + } + + @Test + @TestMetadata("nothingNReturningSafeCall.kt") + public void testNothingNReturningSafeCall() { + runTest("compiler/testData/codegen/box/function/nothingNReturningSafeCall.kt"); + } + + @Test + @TestMetadata("plus_eq.kt") + public void testPlus_eq() { + runTest("compiler/testData/codegen/box/function/plus_eq.kt"); + } + + @Test + @TestMetadata("referenceBigArity.kt") + public void testReferenceBigArity() { + runTest("compiler/testData/codegen/box/function/referenceBigArity.kt"); + } + + @Test + @TestMetadata("sum.kt") + public void testSum() { + runTest("compiler/testData/codegen/box/function/sum.kt"); + } + + @Test + @TestMetadata("sum_3const.kt") + public void testSum_3const() { + runTest("compiler/testData/codegen/box/function/sum_3const.kt"); + } + + @Test + @TestMetadata("sum_foo_bar.kt") + public void testSum_foo_bar() { + runTest("compiler/testData/codegen/box/function/sum_foo_bar.kt"); + } + + @Test + @TestMetadata("sum_func.kt") + public void testSum_func() { + runTest("compiler/testData/codegen/box/function/sum_func.kt"); + } + + @Test + @TestMetadata("sum_imm.kt") + public void testSum_imm() { + runTest("compiler/testData/codegen/box/function/sum_imm.kt"); + } + + @Test + @TestMetadata("sum_mixed.kt") + public void testSum_mixed() { + runTest("compiler/testData/codegen/box/function/sum_mixed.kt"); + } + + @Test + @TestMetadata("sum_silly.kt") + public void testSum_silly() { + runTest("compiler/testData/codegen/box/function/sum_silly.kt"); + } + + @Test + @TestMetadata("unreachableStatementAfterReturn.kt") + public void testUnreachableStatementAfterReturn() { + runTest("compiler/testData/codegen/box/function/unreachableStatementAfterReturn.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/functions") @TestDataPath("$PROJECT_ROOT") @@ -18209,6 +20060,489 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB } } + @Nested + @TestMetadata("compiler/testData/codegen/box/initializers") + @TestDataPath("$PROJECT_ROOT") + @Tag("frontend-fir") + @FirPipeline() + @UseExtTestCaseGroupProvider() + @UsePartialLinkage(mode = Mode.DISABLED) + @Tag("no-partial-linkage-may-be-skipped") + public class Initializers { + @Test + public void testAllFilesPresentInInitializers() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/initializers"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("correctOrder1.kt") + public void testCorrectOrder1() { + runTest("compiler/testData/codegen/box/initializers/correctOrder1.kt"); + } + + @Test + @TestMetadata("correctOrder2.kt") + public void testCorrectOrder2() { + runTest("compiler/testData/codegen/box/initializers/correctOrder2.kt"); + } + + @Test + @TestMetadata("initializers0.kt") + public void testInitializers0() { + runTest("compiler/testData/codegen/box/initializers/initializers0.kt"); + } + + @Test + @TestMetadata("initializers1.kt") + public void testInitializers1() { + runTest("compiler/testData/codegen/box/initializers/initializers1.kt"); + } + + @Test + @TestMetadata("initializers2.kt") + public void testInitializers2() { + runTest("compiler/testData/codegen/box/initializers/initializers2.kt"); + } + + @Test + @TestMetadata("initializers3.kt") + public void testInitializers3() { + runTest("compiler/testData/codegen/box/initializers/initializers3.kt"); + } + + @Test + @TestMetadata("initializers4.kt") + public void testInitializers4() { + runTest("compiler/testData/codegen/box/initializers/initializers4.kt"); + } + + @Test + @TestMetadata("initializers5.kt") + public void testInitializers5() { + runTest("compiler/testData/codegen/box/initializers/initializers5.kt"); + } + + @Test + @TestMetadata("initializers7.kt") + public void testInitializers7() { + runTest("compiler/testData/codegen/box/initializers/initializers7.kt"); + } + + @Test + @TestMetadata("initializers8.kt") + public void testInitializers8() { + runTest("compiler/testData/codegen/box/initializers/initializers8.kt"); + } + + @Test + @TestMetadata("multipleModules1.kt") + public void testMultipleModules1() { + runTest("compiler/testData/codegen/box/initializers/multipleModules1.kt"); + } + + @Test + @TestMetadata("object.kt") + public void testObject() { + runTest("compiler/testData/codegen/box/initializers/object.kt"); + } + + @Test + @TestMetadata("sharedVarInInitBlock.kt") + public void testSharedVarInInitBlock() { + runTest("compiler/testData/codegen/box/initializers/sharedVarInInitBlock.kt"); + } + + @Test + @TestMetadata("static_arrays.kt") + public void testStatic_arrays() { + runTest("compiler/testData/codegen/box/initializers/static_arrays.kt"); + } + + @Test + @TestMetadata("static_list.kt") + public void testStatic_list() { + runTest("compiler/testData/codegen/box/initializers/static_list.kt"); + } + + @Test + @TestMetadata("static_smallIntIdentity.kt") + public void testStatic_smallIntIdentity() { + runTest("compiler/testData/codegen/box/initializers/static_smallIntIdentity.kt"); + } + + @Test + @TestMetadata("static_varargChange.kt") + public void testStatic_varargChange() { + runTest("compiler/testData/codegen/box/initializers/static_varargChange.kt"); + } + + @Test + @TestMetadata("throw1.kt") + public void testThrow1() { + runTest("compiler/testData/codegen/box/initializers/throw1.kt"); + } + + @Test + @TestMetadata("throw2.kt") + public void testThrow2() { + runTest("compiler/testData/codegen/box/initializers/throw2.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/initializers/files") + @TestDataPath("$PROJECT_ROOT") + @Tag("frontend-fir") + @FirPipeline() + @UseExtTestCaseGroupProvider() + @UsePartialLinkage(mode = Mode.DISABLED) + @Tag("no-partial-linkage-may-be-skipped") + public class Files { + @Test + public void testAllFilesPresentInFiles() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/initializers/files"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("globalInitedAfterAccessingFile.kt") + public void testGlobalInitedAfterAccessingFile() { + runTest("compiler/testData/codegen/box/initializers/files/globalInitedAfterAccessingFile.kt"); + } + + @Test + @TestMetadata("globalNotInitedAfterAccessingClassInternals.kt") + public void testGlobalNotInitedAfterAccessingClassInternals() { + runTest("compiler/testData/codegen/box/initializers/files/globalNotInitedAfterAccessingClassInternals.kt"); + } + + @Test + @TestMetadata("simple.kt") + public void testSimple() { + runTest("compiler/testData/codegen/box/initializers/files/simple.kt"); + } + + @Test + @TestMetadata("simpleMultiModule.kt") + public void testSimpleMultiModule() { + runTest("compiler/testData/codegen/box/initializers/files/simpleMultiModule.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/inline") + @TestDataPath("$PROJECT_ROOT") + @Tag("frontend-fir") + @FirPipeline() + @UseExtTestCaseGroupProvider() + @UsePartialLinkage(mode = Mode.DISABLED) + @Tag("no-partial-linkage-may-be-skipped") + public class Inline { + @Test + public void testAllFilesPresentInInline() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inline"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("changingCapturedLocal.kt") + public void testChangingCapturedLocal() { + runTest("compiler/testData/codegen/box/inline/changingCapturedLocal.kt"); + } + + @Test + @TestMetadata("classDeclarationInsideInline.kt") + public void testClassDeclarationInsideInline() { + runTest("compiler/testData/codegen/box/inline/classDeclarationInsideInline.kt"); + } + + @Test + @TestMetadata("coercionToUnit.kt") + public void testCoercionToUnit() { + runTest("compiler/testData/codegen/box/inline/coercionToUnit.kt"); + } + + @Test + @TestMetadata("correctOrderFunctionReference.kt") + public void testCorrectOrderFunctionReference() { + runTest("compiler/testData/codegen/box/inline/correctOrderFunctionReference.kt"); + } + + @Test + @TestMetadata("defaultArgs.kt") + public void testDefaultArgs() { + runTest("compiler/testData/codegen/box/inline/defaultArgs.kt"); + } + + @Test + @TestMetadata("defaultArgsMultipleModules.kt") + public void testDefaultArgsMultipleModules() { + runTest("compiler/testData/codegen/box/inline/defaultArgsMultipleModules.kt"); + } + + @Test + @TestMetadata("genericFunctionReference.kt") + public void testGenericFunctionReference() { + runTest("compiler/testData/codegen/box/inline/genericFunctionReference.kt"); + } + + @Test + @TestMetadata("getClass.kt") + public void testGetClass() { + runTest("compiler/testData/codegen/box/inline/getClass.kt"); + } + + @Test + @TestMetadata("inline0.kt") + public void testInline0() { + runTest("compiler/testData/codegen/box/inline/inline0.kt"); + } + + @Test + @TestMetadata("inline1.kt") + public void testInline1() { + runTest("compiler/testData/codegen/box/inline/inline1.kt"); + } + + @Test + @TestMetadata("inline10.kt") + public void testInline10() { + runTest("compiler/testData/codegen/box/inline/inline10.kt"); + } + + @Test + @TestMetadata("inline11.kt") + public void testInline11() { + runTest("compiler/testData/codegen/box/inline/inline11.kt"); + } + + @Test + @TestMetadata("inline12.kt") + public void testInline12() { + runTest("compiler/testData/codegen/box/inline/inline12.kt"); + } + + @Test + @TestMetadata("inline13.kt") + public void testInline13() { + runTest("compiler/testData/codegen/box/inline/inline13.kt"); + } + + @Test + @TestMetadata("inline14.kt") + public void testInline14() { + runTest("compiler/testData/codegen/box/inline/inline14.kt"); + } + + @Test + @TestMetadata("inline15.kt") + public void testInline15() { + runTest("compiler/testData/codegen/box/inline/inline15.kt"); + } + + @Test + @TestMetadata("inline16.kt") + public void testInline16() { + runTest("compiler/testData/codegen/box/inline/inline16.kt"); + } + + @Test + @TestMetadata("inline17.kt") + public void testInline17() { + runTest("compiler/testData/codegen/box/inline/inline17.kt"); + } + + @Test + @TestMetadata("inline19.kt") + public void testInline19() { + runTest("compiler/testData/codegen/box/inline/inline19.kt"); + } + + @Test + @TestMetadata("inline2.kt") + public void testInline2() { + runTest("compiler/testData/codegen/box/inline/inline2.kt"); + } + + @Test + @TestMetadata("inline20.kt") + public void testInline20() { + runTest("compiler/testData/codegen/box/inline/inline20.kt"); + } + + @Test + @TestMetadata("inline21.kt") + public void testInline21() { + runTest("compiler/testData/codegen/box/inline/inline21.kt"); + } + + @Test + @TestMetadata("inline22.kt") + public void testInline22() { + runTest("compiler/testData/codegen/box/inline/inline22.kt"); + } + + @Test + @TestMetadata("inline23.kt") + public void testInline23() { + runTest("compiler/testData/codegen/box/inline/inline23.kt"); + } + + @Test + @TestMetadata("inline24.kt") + public void testInline24() { + runTest("compiler/testData/codegen/box/inline/inline24.kt"); + } + + @Test + @TestMetadata("inline25.kt") + public void testInline25() { + runTest("compiler/testData/codegen/box/inline/inline25.kt"); + } + + @Test + @TestMetadata("inline26.kt") + public void testInline26() { + runTest("compiler/testData/codegen/box/inline/inline26.kt"); + } + + @Test + @TestMetadata("inline3.kt") + public void testInline3() { + runTest("compiler/testData/codegen/box/inline/inline3.kt"); + } + + @Test + @TestMetadata("inline4.kt") + public void testInline4() { + runTest("compiler/testData/codegen/box/inline/inline4.kt"); + } + + @Test + @TestMetadata("inline5.kt") + public void testInline5() { + runTest("compiler/testData/codegen/box/inline/inline5.kt"); + } + + @Test + @TestMetadata("inline6.kt") + public void testInline6() { + runTest("compiler/testData/codegen/box/inline/inline6.kt"); + } + + @Test + @TestMetadata("inline7.kt") + public void testInline7() { + runTest("compiler/testData/codegen/box/inline/inline7.kt"); + } + + @Test + @TestMetadata("inline8.kt") + public void testInline8() { + runTest("compiler/testData/codegen/box/inline/inline8.kt"); + } + + @Test + @TestMetadata("inline9.kt") + public void testInline9() { + runTest("compiler/testData/codegen/box/inline/inline9.kt"); + } + + @Test + @TestMetadata("inlineCtor.kt") + public void testInlineCtor() { + runTest("compiler/testData/codegen/box/inline/inlineCtor.kt"); + } + + @Test + @TestMetadata("innerInlineFunCapturesOuter.kt") + public void testInnerInlineFunCapturesOuter() { + runTest("compiler/testData/codegen/box/inline/innerInlineFunCapturesOuter.kt"); + } + + @Test + @TestMetadata("lambdaAsAny.kt") + public void testLambdaAsAny() { + runTest("compiler/testData/codegen/box/inline/lambdaAsAny.kt"); + } + + @Test + @TestMetadata("lambdaInDefaultValue.kt") + public void testLambdaInDefaultValue() { + runTest("compiler/testData/codegen/box/inline/lambdaInDefaultValue.kt"); + } + + @Test + @TestMetadata("lateinitProperty.kt") + public void testLateinitProperty() { + runTest("compiler/testData/codegen/box/inline/lateinitProperty.kt"); + } + + @Test + @TestMetadata("localFunctionInInitializerBlock.kt") + public void testLocalFunctionInInitializerBlock() { + runTest("compiler/testData/codegen/box/inline/localFunctionInInitializerBlock.kt"); + } + + @Test + @TestMetadata("localObjectReturnedFromWhen.kt") + public void testLocalObjectReturnedFromWhen() { + runTest("compiler/testData/codegen/box/inline/localObjectReturnedFromWhen.kt"); + } + + @Test + @TestMetadata("propertyAccessorInline.kt") + public void testPropertyAccessorInline() { + runTest("compiler/testData/codegen/box/inline/propertyAccessorInline.kt"); + } + + @Test + @TestMetadata("redundantCoercionsCleaner.kt") + public void testRedundantCoercionsCleaner() { + runTest("compiler/testData/codegen/box/inline/redundantCoercionsCleaner.kt"); + } + + @Test + @TestMetadata("redundantCoercionsCleanerKT48876.kt") + public void testRedundantCoercionsCleanerKT48876() { + runTest("compiler/testData/codegen/box/inline/redundantCoercionsCleanerKT48876.kt"); + } + + @Test + @TestMetadata("redundantCoercionsCleanerKT49356.kt") + public void testRedundantCoercionsCleanerKT49356() { + runTest("compiler/testData/codegen/box/inline/redundantCoercionsCleanerKT49356.kt"); + } + + @Test + @TestMetadata("returnLocalClassFromBlock.kt") + public void testReturnLocalClassFromBlock() { + runTest("compiler/testData/codegen/box/inline/returnLocalClassFromBlock.kt"); + } + + @Test + @TestMetadata("sharedVar.kt") + public void testSharedVar() { + runTest("compiler/testData/codegen/box/inline/sharedVar.kt"); + } + + @Test + @TestMetadata("statementAsLastExprInBlock.kt") + public void testStatementAsLastExprInBlock() { + runTest("compiler/testData/codegen/box/inline/statementAsLastExprInBlock.kt"); + } + + @Test + @TestMetadata("twiceInlinedObject.kt") + public void testTwiceInlinedObject() { + runTest("compiler/testData/codegen/box/inline/twiceInlinedObject.kt"); + } + + @Test + @TestMetadata("typeSubstitutionInFakeOverride.kt") + public void testTypeSubstitutionInFakeOverride() { + runTest("compiler/testData/codegen/box/inline/typeSubstitutionInFakeOverride.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/inlineArgsInPlace") @TestDataPath("$PROJECT_ROOT") @@ -18290,6 +20624,45 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB } } + @Nested + @TestMetadata("compiler/testData/codegen/box/inlineClass") + @TestDataPath("$PROJECT_ROOT") + @Tag("frontend-fir") + @FirPipeline() + @UseExtTestCaseGroupProvider() + @UsePartialLinkage(mode = Mode.DISABLED) + @Tag("no-partial-linkage-may-be-skipped") + public class InlineClass { + @Test + public void testAllFilesPresentInInlineClass() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineClass"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("customEquals.kt") + public void testCustomEquals() { + runTest("compiler/testData/codegen/box/inlineClass/customEquals.kt"); + } + + @Test + @TestMetadata("defaultEquals.kt") + public void testDefaultEquals() { + runTest("compiler/testData/codegen/box/inlineClass/defaultEquals.kt"); + } + + @Test + @TestMetadata("nestedInlineClasses.kt") + public void testNestedInlineClasses() { + runTest("compiler/testData/codegen/box/inlineClass/nestedInlineClasses.kt"); + } + + @Test + @TestMetadata("secondaryConstructorWithGenerics.kt") + public void testSecondaryConstructorWithGenerics() { + runTest("compiler/testData/codegen/box/inlineClass/secondaryConstructorWithGenerics.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/inlineClasses") @TestDataPath("$PROJECT_ROOT") @@ -24809,6 +27182,93 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB } } + @Nested + @TestMetadata("compiler/testData/codegen/box/innerClass") + @TestDataPath("$PROJECT_ROOT") + @Tag("frontend-fir") + @FirPipeline() + @UseExtTestCaseGroupProvider() + @UsePartialLinkage(mode = Mode.DISABLED) + @Tag("no-partial-linkage-may-be-skipped") + public class InnerClass { + @Test + public void testAllFilesPresentInInnerClass() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/innerClass"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("doubleInner.kt") + public void testDoubleInner() { + runTest("compiler/testData/codegen/box/innerClass/doubleInner.kt"); + } + + @Test + @TestMetadata("generic.kt") + public void testGeneric() { + runTest("compiler/testData/codegen/box/innerClass/generic.kt"); + } + + @Test + @TestMetadata("getOuterVal.kt") + public void testGetOuterVal() { + runTest("compiler/testData/codegen/box/innerClass/getOuterVal.kt"); + } + + @Test + @TestMetadata("inheritanceMultipleModules1.kt") + public void testInheritanceMultipleModules1() { + runTest("compiler/testData/codegen/box/innerClass/inheritanceMultipleModules1.kt"); + } + + @Test + @TestMetadata("inheritanceMultipleModules2.kt") + public void testInheritanceMultipleModules2() { + runTest("compiler/testData/codegen/box/innerClass/inheritanceMultipleModules2.kt"); + } + + @Test + @TestMetadata("inheritanceMultipleModules3.kt") + public void testInheritanceMultipleModules3() { + runTest("compiler/testData/codegen/box/innerClass/inheritanceMultipleModules3.kt"); + } + + @Test + @TestMetadata("multipleModules.kt") + public void testMultipleModules() { + runTest("compiler/testData/codegen/box/innerClass/multipleModules.kt"); + } + + @Test + @TestMetadata("noPrimaryConstructor.kt") + public void testNoPrimaryConstructor() { + runTest("compiler/testData/codegen/box/innerClass/noPrimaryConstructor.kt"); + } + + @Test + @TestMetadata("qualifiedThis.kt") + public void testQualifiedThis() { + runTest("compiler/testData/codegen/box/innerClass/qualifiedThis.kt"); + } + + @Test + @TestMetadata("secondaryConstructor.kt") + public void testSecondaryConstructor() { + runTest("compiler/testData/codegen/box/innerClass/secondaryConstructor.kt"); + } + + @Test + @TestMetadata("simple.kt") + public void testSimple() { + runTest("compiler/testData/codegen/box/innerClass/simple.kt"); + } + + @Test + @TestMetadata("superOuter.kt") + public void testSuperOuter() { + runTest("compiler/testData/codegen/box/innerClass/superOuter.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/innerNested") @TestDataPath("$PROJECT_ROOT") @@ -25181,6 +27641,45 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB } } + @Nested + @TestMetadata("compiler/testData/codegen/box/interfaceCallsNCasts") + @TestDataPath("$PROJECT_ROOT") + @Tag("frontend-fir") + @FirPipeline() + @UseExtTestCaseGroupProvider() + @UsePartialLinkage(mode = Mode.DISABLED) + @Tag("no-partial-linkage-may-be-skipped") + public class InterfaceCallsNCasts { + @Test + public void testAllFilesPresentInInterfaceCallsNCasts() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/interfaceCallsNCasts"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("conservativeItable.kt") + public void testConservativeItable() { + runTest("compiler/testData/codegen/box/interfaceCallsNCasts/conservativeItable.kt"); + } + + @Test + @TestMetadata("diamond.kt") + public void testDiamond() { + runTest("compiler/testData/codegen/box/interfaceCallsNCasts/diamond.kt"); + } + + @Test + @TestMetadata("finalMethod.kt") + public void testFinalMethod() { + runTest("compiler/testData/codegen/box/interfaceCallsNCasts/finalMethod.kt"); + } + + @Test + @TestMetadata("interface0.kt") + public void testInterface0() { + runTest("compiler/testData/codegen/box/interfaceCallsNCasts/interface0.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/intrinsics") @TestDataPath("$PROJECT_ROOT") @@ -26732,6 +29231,90 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB } } + @Nested + @TestMetadata("compiler/testData/codegen/box/kclass") + @TestDataPath("$PROJECT_ROOT") + @Tag("frontend-fir") + @FirPipeline() + @UseExtTestCaseGroupProvider() + @UsePartialLinkage(mode = Mode.DISABLED) + @Tag("no-partial-linkage-may-be-skipped") + public class Kclass { + @Test + public void testAllFilesPresentInKclass() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/kclass"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("kClassEnumArgument.kt") + public void testKClassEnumArgument() { + runTest("compiler/testData/codegen/box/kclass/kClassEnumArgument.kt"); + } + + @Test + @TestMetadata("kclass1.kt") + public void testKclass1() { + runTest("compiler/testData/codegen/box/kclass/kclass1.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/ktype") + @TestDataPath("$PROJECT_ROOT") + @Tag("frontend-fir") + @FirPipeline() + @UseExtTestCaseGroupProvider() + @UsePartialLinkage(mode = Mode.DISABLED) + @Tag("no-partial-linkage-may-be-skipped") + public class Ktype { + @Test + public void testAllFilesPresentInKtype() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ktype"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("ktype1_basics1.kt") + public void testKtype1_basics1() { + runTest("compiler/testData/codegen/box/ktype/ktype1_basics1.kt"); + } + + @Test + @TestMetadata("ktype1_inner.kt") + public void testKtype1_inner() { + runTest("compiler/testData/codegen/box/ktype/ktype1_inner.kt"); + } + + @Test + @TestMetadata("nonReified_class.kt") + public void testNonReified_class() { + runTest("compiler/testData/codegen/box/ktype/nonReified_class.kt"); + } + + @Test + @TestMetadata("nonReified_equality.kt") + public void testNonReified_equality() { + runTest("compiler/testData/codegen/box/ktype/nonReified_equality.kt"); + } + + @Test + @TestMetadata("nonReified_fun.kt") + public void testNonReified_fun() { + runTest("compiler/testData/codegen/box/ktype/nonReified_fun.kt"); + } + + @Test + @TestMetadata("nonReified_recursionInReified.kt") + public void testNonReified_recursionInReified() { + runTest("compiler/testData/codegen/box/ktype/nonReified_recursionInReified.kt"); + } + + @Test + @TestMetadata("nonReified_reifiedUpperBound.kt") + public void testNonReified_reifiedUpperBound() { + runTest("compiler/testData/codegen/box/ktype/nonReified_reifiedUpperBound.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/labels") @TestDataPath("$PROJECT_ROOT") @@ -26795,6 +29378,198 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB } } + @Nested + @TestMetadata("compiler/testData/codegen/box/lambda") + @TestDataPath("$PROJECT_ROOT") + @Tag("frontend-fir") + @FirPipeline() + @UseExtTestCaseGroupProvider() + @UsePartialLinkage(mode = Mode.DISABLED) + @Tag("no-partial-linkage-may-be-skipped") + public class Lambda { + @Test + public void testAllFilesPresentInLambda() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/lambda"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("lambda1.kt") + public void testLambda1() { + runTest("compiler/testData/codegen/box/lambda/lambda1.kt"); + } + + @Test + @TestMetadata("lambda10.kt") + public void testLambda10() { + runTest("compiler/testData/codegen/box/lambda/lambda10.kt"); + } + + @Test + @TestMetadata("lambda11.kt") + public void testLambda11() { + runTest("compiler/testData/codegen/box/lambda/lambda11.kt"); + } + + @Test + @TestMetadata("lambda12.kt") + public void testLambda12() { + runTest("compiler/testData/codegen/box/lambda/lambda12.kt"); + } + + @Test + @TestMetadata("lambda13.kt") + public void testLambda13() { + runTest("compiler/testData/codegen/box/lambda/lambda13.kt"); + } + + @Test + @TestMetadata("lambda14.kt") + public void testLambda14() { + runTest("compiler/testData/codegen/box/lambda/lambda14.kt"); + } + + @Test + @TestMetadata("lambda2.kt") + public void testLambda2() { + runTest("compiler/testData/codegen/box/lambda/lambda2.kt"); + } + + @Test + @TestMetadata("lambda3.kt") + public void testLambda3() { + runTest("compiler/testData/codegen/box/lambda/lambda3.kt"); + } + + @Test + @TestMetadata("lambda4.kt") + public void testLambda4() { + runTest("compiler/testData/codegen/box/lambda/lambda4.kt"); + } + + @Test + @TestMetadata("lambda5.kt") + public void testLambda5() { + runTest("compiler/testData/codegen/box/lambda/lambda5.kt"); + } + + @Test + @TestMetadata("lambda6.kt") + public void testLambda6() { + runTest("compiler/testData/codegen/box/lambda/lambda6.kt"); + } + + @Test + @TestMetadata("lambda7.kt") + public void testLambda7() { + runTest("compiler/testData/codegen/box/lambda/lambda7.kt"); + } + + @Test + @TestMetadata("lambda8.kt") + public void testLambda8() { + runTest("compiler/testData/codegen/box/lambda/lambda8.kt"); + } + + @Test + @TestMetadata("lambda9.kt") + public void testLambda9() { + runTest("compiler/testData/codegen/box/lambda/lambda9.kt"); + } + + @Test + @TestMetadata("lambda_kt49360_trivial.kt") + public void testLambda_kt49360_trivial() { + runTest("compiler/testData/codegen/box/lambda/lambda_kt49360_trivial.kt"); + } + + @Test + @TestMetadata("lambda_kt49360_withFlow.kt") + public void testLambda_kt49360_withFlow() { + runTest("compiler/testData/codegen/box/lambda/lambda_kt49360_withFlow.kt"); + } + + @Test + @TestMetadata("lambda_kt49360_wrapBlock.kt") + public void testLambda_kt49360_wrapBlock() { + runTest("compiler/testData/codegen/box/lambda/lambda_kt49360_wrapBlock.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/lateinit") + @TestDataPath("$PROJECT_ROOT") + @Tag("frontend-fir") + @FirPipeline() + @UseExtTestCaseGroupProvider() + @UsePartialLinkage(mode = Mode.DISABLED) + @Tag("no-partial-linkage-may-be-skipped") + public class Lateinit { + @Test + public void testAllFilesPresentInLateinit() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/lateinit"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("globalIsInitialized.kt") + public void testGlobalIsInitialized() { + runTest("compiler/testData/codegen/box/lateinit/globalIsInitialized.kt"); + } + + @Test + @TestMetadata("inBaseClass.kt") + public void testInBaseClass() { + runTest("compiler/testData/codegen/box/lateinit/inBaseClass.kt"); + } + + @Test + @TestMetadata("initialized.kt") + public void testInitialized() { + runTest("compiler/testData/codegen/box/lateinit/initialized.kt"); + } + + @Test + @TestMetadata("innerIsInitialized.kt") + public void testInnerIsInitialized() { + runTest("compiler/testData/codegen/box/lateinit/innerIsInitialized.kt"); + } + + @Test + @TestMetadata("isInitialized.kt") + public void testIsInitialized() { + runTest("compiler/testData/codegen/box/lateinit/isInitialized.kt"); + } + + @Test + @TestMetadata("localCapturedInitialized.kt") + public void testLocalCapturedInitialized() { + runTest("compiler/testData/codegen/box/lateinit/localCapturedInitialized.kt"); + } + + @Test + @TestMetadata("localCapturedNotInitialized.kt") + public void testLocalCapturedNotInitialized() { + runTest("compiler/testData/codegen/box/lateinit/localCapturedNotInitialized.kt"); + } + + @Test + @TestMetadata("localInitialized.kt") + public void testLocalInitialized() { + runTest("compiler/testData/codegen/box/lateinit/localInitialized.kt"); + } + + @Test + @TestMetadata("localNotInitialized.kt") + public void testLocalNotInitialized() { + runTest("compiler/testData/codegen/box/lateinit/localNotInitialized.kt"); + } + + @Test + @TestMetadata("notInitialized.kt") + public void testNotInitialized() { + runTest("compiler/testData/codegen/box/lateinit/notInitialized.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/lazyCodegen") @TestDataPath("$PROJECT_ROOT") @@ -26933,6 +29708,108 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB } } + @Nested + @TestMetadata("compiler/testData/codegen/box/literals") + @TestDataPath("$PROJECT_ROOT") + @Tag("frontend-fir") + @FirPipeline() + @UseExtTestCaseGroupProvider() + @UsePartialLinkage(mode = Mode.DISABLED) + @Tag("no-partial-linkage-may-be-skipped") + public class Literals { + @Test + public void testAllFilesPresentInLiterals() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/literals"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("listof1.kt") + public void testListof1() { + runTest("compiler/testData/codegen/box/literals/listof1.kt"); + } + + @Test + @TestMetadata("strdedup1.kt") + public void testStrdedup1() { + runTest("compiler/testData/codegen/box/literals/strdedup1.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/localClass") + @TestDataPath("$PROJECT_ROOT") + @Tag("frontend-fir") + @FirPipeline() + @UseExtTestCaseGroupProvider() + @UsePartialLinkage(mode = Mode.DISABLED) + @Tag("no-partial-linkage-may-be-skipped") + public class LocalClass { + @Test + public void testAllFilesPresentInLocalClass() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/localClass"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("innerTakesCapturedFromOuter.kt") + public void testInnerTakesCapturedFromOuter() { + runTest("compiler/testData/codegen/box/localClass/innerTakesCapturedFromOuter.kt"); + } + + @Test + @TestMetadata("innerWithCapture.kt") + public void testInnerWithCapture() { + runTest("compiler/testData/codegen/box/localClass/innerWithCapture.kt"); + } + + @Test + @TestMetadata("localFunctionCallFromLocalClass.kt") + public void testLocalFunctionCallFromLocalClass() { + runTest("compiler/testData/codegen/box/localClass/localFunctionCallFromLocalClass.kt"); + } + + @Test + @TestMetadata("localFunctionInLocalClass.kt") + public void testLocalFunctionInLocalClass() { + runTest("compiler/testData/codegen/box/localClass/localFunctionInLocalClass.kt"); + } + + @Test + @TestMetadata("localHierarchy.kt") + public void testLocalHierarchy() { + runTest("compiler/testData/codegen/box/localClass/localHierarchy.kt"); + } + + @Test + @TestMetadata("noPrimaryConstructor.kt") + public void testNoPrimaryConstructor() { + runTest("compiler/testData/codegen/box/localClass/noPrimaryConstructor.kt"); + } + + @Test + @TestMetadata("objectExpressionInInitializer.kt") + public void testObjectExpressionInInitializer() { + runTest("compiler/testData/codegen/box/localClass/objectExpressionInInitializer.kt"); + } + + @Test + @TestMetadata("objectExpressionInProperty.kt") + public void testObjectExpressionInProperty() { + runTest("compiler/testData/codegen/box/localClass/objectExpressionInProperty.kt"); + } + + @Test + @TestMetadata("tryCatch.kt") + public void testTryCatch() { + runTest("compiler/testData/codegen/box/localClass/tryCatch.kt"); + } + + @Test + @TestMetadata("virtualCallFromConstructor.kt") + public void testVirtualCallFromConstructor() { + runTest("compiler/testData/codegen/box/localClass/virtualCallFromConstructor.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/localClasses") @TestDataPath("$PROJECT_ROOT") @@ -27188,6 +30065,48 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB } } + @Nested + @TestMetadata("compiler/testData/codegen/box/localEscapeAnalysis") + @TestDataPath("$PROJECT_ROOT") + @Tag("frontend-fir") + @FirPipeline() + @UseExtTestCaseGroupProvider() + @UsePartialLinkage(mode = Mode.DISABLED) + @Tag("no-partial-linkage-may-be-skipped") + public class LocalEscapeAnalysis { + @Test + public void testAllFilesPresentInLocalEscapeAnalysis() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/localEscapeAnalysis"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("arraysFieldWrite.kt") + public void testArraysFieldWrite() { + runTest("compiler/testData/codegen/box/localEscapeAnalysis/arraysFieldWrite.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/lower") + @TestDataPath("$PROJECT_ROOT") + @Tag("frontend-fir") + @FirPipeline() + @UseExtTestCaseGroupProvider() + @UsePartialLinkage(mode = Mode.DISABLED) + @Tag("no-partial-linkage-may-be-skipped") + public class Lower { + @Test + public void testAllFilesPresentInLower() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/lower"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("localDelegatedProperty.kt") + public void testLocalDelegatedProperty() { + runTest("compiler/testData/codegen/box/lower/localDelegatedProperty.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/mangling") @TestDataPath("$PROJECT_ROOT") @@ -27220,6 +30139,12 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB runTest("compiler/testData/codegen/box/mangling/internalOverrideSuperCall.kt"); } + @Test + @TestMetadata("multipleConstructors.kt") + public void testMultipleConstructors() { + runTest("compiler/testData/codegen/box/mangling/multipleConstructors.kt"); + } + @Test @TestMetadata("parentheses.kt") public void testParentheses() { @@ -28907,6 +31832,108 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB } } + @Nested + @TestMetadata("compiler/testData/codegen/box/object") + @TestDataPath("$PROJECT_ROOT") + @Tag("frontend-fir") + @FirPipeline() + @UseExtTestCaseGroupProvider() + @UsePartialLinkage(mode = Mode.DISABLED) + @Tag("no-partial-linkage-may-be-skipped") + public class Object { + @Test + public void testAllFilesPresentInObject() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/object"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("constructor0.kt") + public void testConstructor0() { + runTest("compiler/testData/codegen/box/object/constructor0.kt"); + } + + @Test + @TestMetadata("fields.kt") + public void testFields() { + runTest("compiler/testData/codegen/box/object/fields.kt"); + } + + @Test + @TestMetadata("fields1.kt") + public void testFields1() { + runTest("compiler/testData/codegen/box/object/fields1.kt"); + } + + @Test + @TestMetadata("fields2.kt") + public void testFields2() { + runTest("compiler/testData/codegen/box/object/fields2.kt"); + } + + @Test + @TestMetadata("globalInitializer.kt") + public void testGlobalInitializer() { + runTest("compiler/testData/codegen/box/object/globalInitializer.kt"); + } + + @Test + @TestMetadata("init0.kt") + public void testInit0() { + runTest("compiler/testData/codegen/box/object/init0.kt"); + } + + @Test + @TestMetadata("initialization.kt") + public void testInitialization() { + runTest("compiler/testData/codegen/box/object/initialization.kt"); + } + + @Test + @TestMetadata("initialization1.kt") + public void testInitialization1() { + runTest("compiler/testData/codegen/box/object/initialization1.kt"); + } + + @Test + @TestMetadata("method_call.kt") + public void testMethod_call() { + runTest("compiler/testData/codegen/box/object/method_call.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/objectExpression") + @TestDataPath("$PROJECT_ROOT") + @Tag("frontend-fir") + @FirPipeline() + @UseExtTestCaseGroupProvider() + @UsePartialLinkage(mode = Mode.DISABLED) + @Tag("no-partial-linkage-may-be-skipped") + public class ObjectExpression { + @Test + public void testAllFilesPresentInObjectExpression() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/objectExpression"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("expr1.kt") + public void testExpr1() { + runTest("compiler/testData/codegen/box/objectExpression/expr1.kt"); + } + + @Test + @TestMetadata("expr2.kt") + public void testExpr2() { + runTest("compiler/testData/codegen/box/objectExpression/expr2.kt"); + } + + @Test + @TestMetadata("expr3.kt") + public void testExpr3() { + runTest("compiler/testData/codegen/box/objectExpression/expr3.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/objectIntrinsics") @TestDataPath("$PROJECT_ROOT") @@ -31739,6 +34766,69 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB } } + @Nested + @TestMetadata("compiler/testData/codegen/box/propertyCallableReference") + @TestDataPath("$PROJECT_ROOT") + @Tag("frontend-fir") + @FirPipeline() + @UseExtTestCaseGroupProvider() + @UsePartialLinkage(mode = Mode.DISABLED) + @Tag("no-partial-linkage-may-be-skipped") + public class PropertyCallableReference { + @Test + public void testAllFilesPresentInPropertyCallableReference() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/propertyCallableReference"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("dynamicReceiver.kt") + public void testDynamicReceiver() { + runTest("compiler/testData/codegen/box/propertyCallableReference/dynamicReceiver.kt"); + } + + @Test + @TestMetadata("multipleModules.kt") + public void testMultipleModules() { + runTest("compiler/testData/codegen/box/propertyCallableReference/multipleModules.kt"); + } + + @Test + @TestMetadata("valClass.kt") + public void testValClass() { + runTest("compiler/testData/codegen/box/propertyCallableReference/valClass.kt"); + } + + @Test + @TestMetadata("valExtension.kt") + public void testValExtension() { + runTest("compiler/testData/codegen/box/propertyCallableReference/valExtension.kt"); + } + + @Test + @TestMetadata("valModule.kt") + public void testValModule() { + runTest("compiler/testData/codegen/box/propertyCallableReference/valModule.kt"); + } + + @Test + @TestMetadata("varClass.kt") + public void testVarClass() { + runTest("compiler/testData/codegen/box/propertyCallableReference/varClass.kt"); + } + + @Test + @TestMetadata("varExtension.kt") + public void testVarExtension() { + runTest("compiler/testData/codegen/box/propertyCallableReference/varExtension.kt"); + } + + @Test + @TestMetadata("varModule.kt") + public void testVarModule() { + runTest("compiler/testData/codegen/box/propertyCallableReference/varModule.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/publishedApi") @TestDataPath("$PROJECT_ROOT") @@ -40100,6 +43190,63 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB } } + @Nested + @TestMetadata("compiler/testData/codegen/box/serialization") + @TestDataPath("$PROJECT_ROOT") + @Tag("frontend-fir") + @FirPipeline() + @UseExtTestCaseGroupProvider() + @UsePartialLinkage(mode = Mode.DISABLED) + @Tag("no-partial-linkage-may-be-skipped") + public class Serialization { + @Test + public void testAllFilesPresentInSerialization() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/serialization"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("deserializedMembers.kt") + public void testDeserializedMembers() { + runTest("compiler/testData/codegen/box/serialization/deserializedMembers.kt"); + } + + @Test + @TestMetadata("serializedCatch.kt") + public void testSerializedCatch() { + runTest("compiler/testData/codegen/box/serialization/serializedCatch.kt"); + } + + @Test + @TestMetadata("serializedCharConstant.kt") + public void testSerializedCharConstant() { + runTest("compiler/testData/codegen/box/serialization/serializedCharConstant.kt"); + } + + @Test + @TestMetadata("serializedDefaultArgs.kt") + public void testSerializedDefaultArgs() { + runTest("compiler/testData/codegen/box/serialization/serializedDefaultArgs.kt"); + } + + @Test + @TestMetadata("serializedDoWhile.kt") + public void testSerializedDoWhile() { + runTest("compiler/testData/codegen/box/serialization/serializedDoWhile.kt"); + } + + @Test + @TestMetadata("serializedEnumOrdinal.kt") + public void testSerializedEnumOrdinal() { + runTest("compiler/testData/codegen/box/serialization/serializedEnumOrdinal.kt"); + } + + @Test + @TestMetadata("serializedVararg.kt") + public void testSerializedVararg() { + runTest("compiler/testData/codegen/box/serialization/serializedVararg.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/size") @TestDataPath("$PROJECT_ROOT") @@ -40592,6 +43739,27 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB } } + @Nested + @TestMetadata("compiler/testData/codegen/box/stringTrim") + @TestDataPath("$PROJECT_ROOT") + @Tag("frontend-fir") + @FirPipeline() + @UseExtTestCaseGroupProvider() + @UsePartialLinkage(mode = Mode.DISABLED) + @Tag("no-partial-linkage-may-be-skipped") + public class StringTrim { + @Test + public void testAllFilesPresentInStringTrim() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/stringTrim"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("stringTrim.kt") + public void testStringTrim() { + runTest("compiler/testData/codegen/box/stringTrim/stringTrim.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/strings") @TestDataPath("$PROJECT_ROOT") @@ -41744,6 +44912,147 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB } } + @Nested + @TestMetadata("compiler/testData/codegen/box/try") + @TestDataPath("$PROJECT_ROOT") + @Tag("frontend-fir") + @FirPipeline() + @UseExtTestCaseGroupProvider() + @UsePartialLinkage(mode = Mode.DISABLED) + @Tag("no-partial-linkage-may-be-skipped") + public class Try { + @Test + public void testAllFilesPresentInTry() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/try"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("catch3.kt") + public void testCatch3() { + runTest("compiler/testData/codegen/box/try/catch3.kt"); + } + + @Test + @TestMetadata("catch4.kt") + public void testCatch4() { + runTest("compiler/testData/codegen/box/try/catch4.kt"); + } + + @Test + @TestMetadata("catch5.kt") + public void testCatch5() { + runTest("compiler/testData/codegen/box/try/catch5.kt"); + } + + @Test + @TestMetadata("catch6.kt") + public void testCatch6() { + runTest("compiler/testData/codegen/box/try/catch6.kt"); + } + + @Test + @TestMetadata("catch8.kt") + public void testCatch8() { + runTest("compiler/testData/codegen/box/try/catch8.kt"); + } + + @Test + @TestMetadata("finally1.kt") + public void testFinally1() { + runTest("compiler/testData/codegen/box/try/finally1.kt"); + } + + @Test + @TestMetadata("finally10.kt") + public void testFinally10() { + runTest("compiler/testData/codegen/box/try/finally10.kt"); + } + + @Test + @TestMetadata("finally11.kt") + public void testFinally11() { + runTest("compiler/testData/codegen/box/try/finally11.kt"); + } + + @Test + @TestMetadata("finally2.kt") + public void testFinally2() { + runTest("compiler/testData/codegen/box/try/finally2.kt"); + } + + @Test + @TestMetadata("finally3.kt") + public void testFinally3() { + runTest("compiler/testData/codegen/box/try/finally3.kt"); + } + + @Test + @TestMetadata("finally4.kt") + public void testFinally4() { + runTest("compiler/testData/codegen/box/try/finally4.kt"); + } + + @Test + @TestMetadata("finally5.kt") + public void testFinally5() { + runTest("compiler/testData/codegen/box/try/finally5.kt"); + } + + @Test + @TestMetadata("finally6.kt") + public void testFinally6() { + runTest("compiler/testData/codegen/box/try/finally6.kt"); + } + + @Test + @TestMetadata("finally7.kt") + public void testFinally7() { + runTest("compiler/testData/codegen/box/try/finally7.kt"); + } + + @Test + @TestMetadata("finally8.kt") + public void testFinally8() { + runTest("compiler/testData/codegen/box/try/finally8.kt"); + } + + @Test + @TestMetadata("finally9.kt") + public void testFinally9() { + runTest("compiler/testData/codegen/box/try/finally9.kt"); + } + + @Test + @TestMetadata("returnsDifferentTypes.kt") + public void testReturnsDifferentTypes() { + runTest("compiler/testData/codegen/box/try/returnsDifferentTypes.kt"); + } + + @Test + @TestMetadata("try1.kt") + public void testTry1() { + runTest("compiler/testData/codegen/box/try/try1.kt"); + } + + @Test + @TestMetadata("try2.kt") + public void testTry2() { + runTest("compiler/testData/codegen/box/try/try2.kt"); + } + + @Test + @TestMetadata("try3.kt") + public void testTry3() { + runTest("compiler/testData/codegen/box/try/try3.kt"); + } + + @Test + @TestMetadata("try4.kt") + public void testTry4() { + runTest("compiler/testData/codegen/box/try/try4.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/typeInfo") @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 1b0a0bfa5e3..9b88eb2f9f4 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 @@ -37,104 +37,6 @@ public class FirNativeCodegenLocalTestGenerated extends AbstractNativeCodegenBox runTest("native/native.tests/testData/codegen/kt62262.kt"); } - @Nested - @TestMetadata("native/native.tests/testData/codegen/annotations") - @TestDataPath("$PROJECT_ROOT") - @Tag("frontend-fir") - @FirPipeline() - @UseExtTestCaseGroupProvider() - public class Annotations { - @Test - public void testAllFilesPresentInAnnotations() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/native.tests/testData/codegen/annotations"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); - } - - @Test - @TestMetadata("annotations0.kt") - public void testAnnotations0() { - runTest("native/native.tests/testData/codegen/annotations/annotations0.kt"); - } - } - - @Nested - @TestMetadata("native/native.tests/testData/codegen/arithmetic") - @TestDataPath("$PROJECT_ROOT") - @Tag("frontend-fir") - @FirPipeline() - @UseExtTestCaseGroupProvider() - public class Arithmetic { - @Test - public void testAllFilesPresentInArithmetic() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/native.tests/testData/codegen/arithmetic"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); - } - - @Test - @TestMetadata("basic_charConversions.kt") - public void testBasic_charConversions() { - runTest("native/native.tests/testData/codegen/arithmetic/basic_charConversions.kt"); - } - - @Test - @TestMetadata("basic_charCornerCases.kt") - public void testBasic_charCornerCases() { - runTest("native/native.tests/testData/codegen/arithmetic/basic_charCornerCases.kt"); - } - - @Test - @TestMetadata("basic_compareIntToFloat.kt") - public void testBasic_compareIntToFloat() { - runTest("native/native.tests/testData/codegen/arithmetic/basic_compareIntToFloat.kt"); - } - - @Test - @TestMetadata("basic_doubleBasic.kt") - public void testBasic_doubleBasic() { - runTest("native/native.tests/testData/codegen/arithmetic/basic_doubleBasic.kt"); - } - - @Test - @TestMetadata("basic_integralToFloat.kt") - public void testBasic_integralToFloat() { - runTest("native/native.tests/testData/codegen/arithmetic/basic_integralToFloat.kt"); - } - - @Test - @TestMetadata("basic_kt37412.kt") - public void testBasic_kt37412() { - runTest("native/native.tests/testData/codegen/arithmetic/basic_kt37412.kt"); - } - - @Test - @TestMetadata("basic_selfComparison.kt") - public void testBasic_selfComparison() { - runTest("native/native.tests/testData/codegen/arithmetic/basic_selfComparison.kt"); - } - - @Test - @TestMetadata("basic_shifts.kt") - public void testBasic_shifts() { - runTest("native/native.tests/testData/codegen/arithmetic/basic_shifts.kt"); - } - - @Test - @TestMetadata("basic_uintTests.kt") - public void testBasic_uintTests() { - runTest("native/native.tests/testData/codegen/arithmetic/basic_uintTests.kt"); - } - - @Test - @TestMetadata("division.kt") - public void testDivision() { - runTest("native/native.tests/testData/codegen/arithmetic/division.kt"); - } - - @Test - @TestMetadata("github1856.kt") - public void testGithub1856() { - runTest("native/native.tests/testData/codegen/arithmetic/github1856.kt"); - } - } - @Nested @TestMetadata("native/native.tests/testData/codegen/associatedObjects") @TestDataPath("$PROJECT_ROOT") @@ -166,514 +68,6 @@ public class FirNativeCodegenLocalTestGenerated extends AbstractNativeCodegenBox } } - @Nested - @TestMetadata("native/native.tests/testData/codegen/basics") - @TestDataPath("$PROJECT_ROOT") - @Tag("frontend-fir") - @FirPipeline() - @UseExtTestCaseGroupProvider() - public class Basics { - @Test - public void testAllFilesPresentInBasics() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/native.tests/testData/codegen/basics"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); - } - - @Test - @TestMetadata("array_to_any.kt") - public void testArray_to_any() { - runTest("native/native.tests/testData/codegen/basics/array_to_any.kt"); - } - - @Test - @TestMetadata("canonical_name.kt") - public void testCanonical_name() { - runTest("native/native.tests/testData/codegen/basics/canonical_name.kt"); - } - - @Test - @TestMetadata("cast_null.kt") - public void testCast_null() { - runTest("native/native.tests/testData/codegen/basics/cast_null.kt"); - } - - @Test - @TestMetadata("cast_simple.kt") - public void testCast_simple() { - runTest("native/native.tests/testData/codegen/basics/cast_simple.kt"); - } - - @Test - @TestMetadata("check_type.kt") - public void testCheck_type() { - runTest("native/native.tests/testData/codegen/basics/check_type.kt"); - } - - @Test - @TestMetadata("companion.kt") - public void testCompanion() { - runTest("native/native.tests/testData/codegen/basics/companion.kt"); - } - - @Test - @TestMetadata("concatenation.kt") - public void testConcatenation() { - runTest("native/native.tests/testData/codegen/basics/concatenation.kt"); - } - - @Test - @TestMetadata("const_infinity.kt") - public void testConst_infinity() { - runTest("native/native.tests/testData/codegen/basics/const_infinity.kt"); - } - - @Test - @TestMetadata("expression_as_statement.kt") - public void testExpression_as_statement() { - runTest("native/native.tests/testData/codegen/basics/expression_as_statement.kt"); - } - - @Test - @TestMetadata("k42000_1.kt") - public void testK42000_1() { - runTest("native/native.tests/testData/codegen/basics/k42000_1.kt"); - } - - @Test - @TestMetadata("k42000_2.kt") - public void testK42000_2() { - runTest("native/native.tests/testData/codegen/basics/k42000_2.kt"); - } - - @Test - @TestMetadata("local_variable.kt") - public void testLocal_variable() { - runTest("native/native.tests/testData/codegen/basics/local_variable.kt"); - } - - @Test - @TestMetadata("null_check.kt") - public void testNull_check() { - runTest("native/native.tests/testData/codegen/basics/null_check.kt"); - } - - @Test - @TestMetadata("safe_cast.kt") - public void testSafe_cast() { - runTest("native/native.tests/testData/codegen/basics/safe_cast.kt"); - } - - @Test - @TestMetadata("spread_operator_0.kt") - public void testSpread_operator_0() { - runTest("native/native.tests/testData/codegen/basics/spread_operator_0.kt"); - } - - @Test - @TestMetadata("statements0.kt") - public void testStatements0() { - runTest("native/native.tests/testData/codegen/basics/statements0.kt"); - } - - @Test - @TestMetadata("superFunCall.kt") - public void testSuperFunCall() { - runTest("native/native.tests/testData/codegen/basics/superFunCall.kt"); - } - - @Test - @TestMetadata("superGetterCall.kt") - public void testSuperGetterCall() { - runTest("native/native.tests/testData/codegen/basics/superGetterCall.kt"); - } - - @Test - @TestMetadata("superSetterCall.kt") - public void testSuperSetterCall() { - runTest("native/native.tests/testData/codegen/basics/superSetterCall.kt"); - } - - @Test - @TestMetadata("typealias1.kt") - public void testTypealias1() { - runTest("native/native.tests/testData/codegen/basics/typealias1.kt"); - } - - @Test - @TestMetadata("unchecked_cast1.kt") - public void testUnchecked_cast1() { - runTest("native/native.tests/testData/codegen/basics/unchecked_cast1.kt"); - } - - @Test - @TestMetadata("unchecked_cast2.kt") - public void testUnchecked_cast2() { - runTest("native/native.tests/testData/codegen/basics/unchecked_cast2.kt"); - } - - @Test - @TestMetadata("unchecked_cast3.kt") - public void testUnchecked_cast3() { - runTest("native/native.tests/testData/codegen/basics/unchecked_cast3.kt"); - } - - @Test - @TestMetadata("unchecked_cast4.kt") - public void testUnchecked_cast4() { - runTest("native/native.tests/testData/codegen/basics/unchecked_cast4.kt"); - } - - @Test - @TestMetadata("unit1.kt") - public void testUnit1() { - runTest("native/native.tests/testData/codegen/basics/unit1.kt"); - } - - @Test - @TestMetadata("unit2.kt") - public void testUnit2() { - runTest("native/native.tests/testData/codegen/basics/unit2.kt"); - } - - @Test - @TestMetadata("unit3.kt") - public void testUnit3() { - runTest("native/native.tests/testData/codegen/basics/unit3.kt"); - } - - @Test - @TestMetadata("unit4.kt") - public void testUnit4() { - runTest("native/native.tests/testData/codegen/basics/unit4.kt"); - } - } - - @Nested - @TestMetadata("native/native.tests/testData/codegen/bce") - @TestDataPath("$PROJECT_ROOT") - @Tag("frontend-fir") - @FirPipeline() - @UseExtTestCaseGroupProvider() - public class Bce { - @Test - public void testAllFilesPresentInBce() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/native.tests/testData/codegen/bce"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); - } - - @Test - @TestMetadata("bceCases.kt") - public void testBceCases() { - runTest("native/native.tests/testData/codegen/bce/bceCases.kt"); - } - - @Test - @TestMetadata("customGetter.kt") - public void testCustomGetter() { - runTest("native/native.tests/testData/codegen/bce/customGetter.kt"); - } - - @Test - @TestMetadata("delegatedProperty.kt") - public void testDelegatedProperty() { - runTest("native/native.tests/testData/codegen/bce/delegatedProperty.kt"); - } - - @Test - @TestMetadata("differentArrays.kt") - public void testDifferentArrays() { - runTest("native/native.tests/testData/codegen/bce/differentArrays.kt"); - } - - @Test - @TestMetadata("differentObjects.kt") - public void testDifferentObjects() { - runTest("native/native.tests/testData/codegen/bce/differentObjects.kt"); - } - - @Test - @TestMetadata("forDownToSize.kt") - public void testForDownToSize() { - runTest("native/native.tests/testData/codegen/bce/forDownToSize.kt"); - } - - @Test - @TestMetadata("forDownToWithStep.kt") - public void testForDownToWithStep() { - runTest("native/native.tests/testData/codegen/bce/forDownToWithStep.kt"); - } - - @Test - @TestMetadata("forEachIndexedTest.kt") - public void testForEachIndexedTest() { - runTest("native/native.tests/testData/codegen/bce/forEachIndexedTest.kt"); - } - - @Test - @TestMetadata("forEachIndicies.kt") - public void testForEachIndicies() { - runTest("native/native.tests/testData/codegen/bce/forEachIndicies.kt"); - } - - @Test - @TestMetadata("forIndiciesWithStep.kt") - public void testForIndiciesWithStep() { - runTest("native/native.tests/testData/codegen/bce/forIndiciesWithStep.kt"); - } - - @Test - @TestMetadata("forRangeToSize.kt") - public void testForRangeToSize() { - runTest("native/native.tests/testData/codegen/bce/forRangeToSize.kt"); - } - - @Test - @TestMetadata("forRangeToWithStep.kt") - public void testForRangeToWithStep() { - runTest("native/native.tests/testData/codegen/bce/forRangeToWithStep.kt"); - } - - @Test - @TestMetadata("forReversed.kt") - public void testForReversed() { - runTest("native/native.tests/testData/codegen/bce/forReversed.kt"); - } - - @Test - @TestMetadata("forUntilSize.kt") - public void testForUntilSize() { - runTest("native/native.tests/testData/codegen/bce/forUntilSize.kt"); - } - - @Test - @TestMetadata("forUntilWithStep.kt") - public void testForUntilWithStep() { - runTest("native/native.tests/testData/codegen/bce/forUntilWithStep.kt"); - } - - @Test - @TestMetadata("forWithIndex.kt") - public void testForWithIndex() { - runTest("native/native.tests/testData/codegen/bce/forWithIndex.kt"); - } - - @Test - @TestMetadata("inheritance.kt") - public void testInheritance() { - runTest("native/native.tests/testData/codegen/bce/inheritance.kt"); - } - - @Test - @TestMetadata("withGetter.kt") - public void testWithGetter() { - runTest("native/native.tests/testData/codegen/bce/withGetter.kt"); - } - } - - @Nested - @TestMetadata("native/native.tests/testData/codegen/boxing") - @TestDataPath("$PROJECT_ROOT") - @Tag("frontend-fir") - @FirPipeline() - @UseExtTestCaseGroupProvider() - public class Boxing { - @Test - public void testAllFilesPresentInBoxing() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/native.tests/testData/codegen/boxing"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); - } - - @Test - @TestMetadata("box_cache0.kt") - public void testBox_cache0() { - runTest("native/native.tests/testData/codegen/boxing/box_cache0.kt"); - } - - @Test - @TestMetadata("boxing0.kt") - public void testBoxing0() { - runTest("native/native.tests/testData/codegen/boxing/boxing0.kt"); - } - - @Test - @TestMetadata("boxing1.kt") - public void testBoxing1() { - runTest("native/native.tests/testData/codegen/boxing/boxing1.kt"); - } - - @Test - @TestMetadata("boxing10.kt") - public void testBoxing10() { - runTest("native/native.tests/testData/codegen/boxing/boxing10.kt"); - } - - @Test - @TestMetadata("boxing11.kt") - public void testBoxing11() { - runTest("native/native.tests/testData/codegen/boxing/boxing11.kt"); - } - - @Test - @TestMetadata("boxing12.kt") - public void testBoxing12() { - runTest("native/native.tests/testData/codegen/boxing/boxing12.kt"); - } - - @Test - @TestMetadata("boxing13.kt") - public void testBoxing13() { - runTest("native/native.tests/testData/codegen/boxing/boxing13.kt"); - } - - @Test - @TestMetadata("boxing14.kt") - public void testBoxing14() { - runTest("native/native.tests/testData/codegen/boxing/boxing14.kt"); - } - - @Test - @TestMetadata("boxing15.kt") - public void testBoxing15() { - runTest("native/native.tests/testData/codegen/boxing/boxing15.kt"); - } - - @Test - @TestMetadata("boxing2.kt") - public void testBoxing2() { - runTest("native/native.tests/testData/codegen/boxing/boxing2.kt"); - } - - @Test - @TestMetadata("boxing3.kt") - public void testBoxing3() { - runTest("native/native.tests/testData/codegen/boxing/boxing3.kt"); - } - - @Test - @TestMetadata("boxing4.kt") - public void testBoxing4() { - runTest("native/native.tests/testData/codegen/boxing/boxing4.kt"); - } - - @Test - @TestMetadata("boxing5.kt") - public void testBoxing5() { - runTest("native/native.tests/testData/codegen/boxing/boxing5.kt"); - } - - @Test - @TestMetadata("boxing6.kt") - public void testBoxing6() { - runTest("native/native.tests/testData/codegen/boxing/boxing6.kt"); - } - - @Test - @TestMetadata("boxing7.kt") - public void testBoxing7() { - runTest("native/native.tests/testData/codegen/boxing/boxing7.kt"); - } - - @Test - @TestMetadata("boxing8.kt") - public void testBoxing8() { - runTest("native/native.tests/testData/codegen/boxing/boxing8.kt"); - } - - @Test - @TestMetadata("boxing9.kt") - public void testBoxing9() { - runTest("native/native.tests/testData/codegen/boxing/boxing9.kt"); - } - - @Test - @TestMetadata("kt53100_casts.kt") - public void testKt53100_casts() { - runTest("native/native.tests/testData/codegen/boxing/kt53100_casts.kt"); - } - } - - @Nested - @TestMetadata("native/native.tests/testData/codegen/branching") - @TestDataPath("$PROJECT_ROOT") - @Tag("frontend-fir") - @FirPipeline() - @UseExtTestCaseGroupProvider() - public class Branching { - @Test - @TestMetadata("advanced_when2.kt") - public void testAdvanced_when2() { - runTest("native/native.tests/testData/codegen/branching/advanced_when2.kt"); - } - - @Test - @TestMetadata("advanced_when5.kt") - public void testAdvanced_when5() { - runTest("native/native.tests/testData/codegen/branching/advanced_when5.kt"); - } - - @Test - public void testAllFilesPresentInBranching() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/native.tests/testData/codegen/branching"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); - } - - @Test - @TestMetadata("if_else.kt") - public void testIf_else() { - runTest("native/native.tests/testData/codegen/branching/if_else.kt"); - } - - @Test - @TestMetadata("when2.kt") - public void testWhen2() { - runTest("native/native.tests/testData/codegen/branching/when2.kt"); - } - - @Test - @TestMetadata("when4.kt") - public void testWhen4() { - runTest("native/native.tests/testData/codegen/branching/when4.kt"); - } - - @Test - @TestMetadata("when5.kt") - public void testWhen5() { - runTest("native/native.tests/testData/codegen/branching/when5.kt"); - } - - @Test - @TestMetadata("when6.kt") - public void testWhen6() { - runTest("native/native.tests/testData/codegen/branching/when6.kt"); - } - - @Test - @TestMetadata("when7.kt") - public void testWhen7() { - runTest("native/native.tests/testData/codegen/branching/when7.kt"); - } - - @Test - @TestMetadata("when8.kt") - public void testWhen8() { - runTest("native/native.tests/testData/codegen/branching/when8.kt"); - } - - @Test - @TestMetadata("when9.kt") - public void testWhen9() { - runTest("native/native.tests/testData/codegen/branching/when9.kt"); - } - - @Test - @TestMetadata("when_through.kt") - public void testWhen_through() { - runTest("native/native.tests/testData/codegen/branching/when_through.kt"); - } - - @Test - @TestMetadata("when_with_try1.kt") - public void testWhen_with_try1() { - runTest("native/native.tests/testData/codegen/branching/when_with_try1.kt"); - } - } - @Nested @TestMetadata("native/native.tests/testData/codegen/bridges") @TestDataPath("$PROJECT_ROOT") @@ -686,155 +80,11 @@ public class FirNativeCodegenLocalTestGenerated extends AbstractNativeCodegenBox KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/native.tests/testData/codegen/bridges"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); } - @Test - @TestMetadata("multipleModules1.kt") - public void testMultipleModules1() { - runTest("native/native.tests/testData/codegen/bridges/multipleModules1.kt"); - } - - @Test - @TestMetadata("multipleModules2.kt") - public void testMultipleModules2() { - runTest("native/native.tests/testData/codegen/bridges/multipleModules2.kt"); - } - @Test @TestMetadata("nativePointed.kt") public void testNativePointed() { runTest("native/native.tests/testData/codegen/bridges/nativePointed.kt"); } - - @Test - @TestMetadata("returnTypeSignature.kt") - public void testReturnTypeSignature() { - runTest("native/native.tests/testData/codegen/bridges/returnTypeSignature.kt"); - } - - @Test - @TestMetadata("special.kt") - public void testSpecial() { - runTest("native/native.tests/testData/codegen/bridges/special.kt"); - } - - @Test - @TestMetadata("specialGeneric.kt") - public void testSpecialGeneric() { - runTest("native/native.tests/testData/codegen/bridges/specialGeneric.kt"); - } - - @Test - @TestMetadata("test0.kt") - public void testTest0() { - runTest("native/native.tests/testData/codegen/bridges/test0.kt"); - } - - @Test - @TestMetadata("test1.kt") - public void testTest1() { - runTest("native/native.tests/testData/codegen/bridges/test1.kt"); - } - - @Test - @TestMetadata("test10.kt") - public void testTest10() { - runTest("native/native.tests/testData/codegen/bridges/test10.kt"); - } - - @Test - @TestMetadata("test11.kt") - public void testTest11() { - runTest("native/native.tests/testData/codegen/bridges/test11.kt"); - } - - @Test - @TestMetadata("test12.kt") - public void testTest12() { - runTest("native/native.tests/testData/codegen/bridges/test12.kt"); - } - - @Test - @TestMetadata("test13.kt") - public void testTest13() { - runTest("native/native.tests/testData/codegen/bridges/test13.kt"); - } - - @Test - @TestMetadata("test14.kt") - public void testTest14() { - runTest("native/native.tests/testData/codegen/bridges/test14.kt"); - } - - @Test - @TestMetadata("test15.kt") - public void testTest15() { - runTest("native/native.tests/testData/codegen/bridges/test15.kt"); - } - - @Test - @TestMetadata("test16.kt") - public void testTest16() { - runTest("native/native.tests/testData/codegen/bridges/test16.kt"); - } - - @Test - @TestMetadata("test17.kt") - public void testTest17() { - runTest("native/native.tests/testData/codegen/bridges/test17.kt"); - } - - @Test - @TestMetadata("test18.kt") - public void testTest18() { - runTest("native/native.tests/testData/codegen/bridges/test18.kt"); - } - - @Test - @TestMetadata("test2.kt") - public void testTest2() { - runTest("native/native.tests/testData/codegen/bridges/test2.kt"); - } - - @Test - @TestMetadata("test3.kt") - public void testTest3() { - runTest("native/native.tests/testData/codegen/bridges/test3.kt"); - } - - @Test - @TestMetadata("test4.kt") - public void testTest4() { - runTest("native/native.tests/testData/codegen/bridges/test4.kt"); - } - - @Test - @TestMetadata("test5.kt") - public void testTest5() { - runTest("native/native.tests/testData/codegen/bridges/test5.kt"); - } - - @Test - @TestMetadata("test6.kt") - public void testTest6() { - runTest("native/native.tests/testData/codegen/bridges/test6.kt"); - } - - @Test - @TestMetadata("test7.kt") - public void testTest7() { - runTest("native/native.tests/testData/codegen/bridges/test7.kt"); - } - - @Test - @TestMetadata("test8.kt") - public void testTest8() { - runTest("native/native.tests/testData/codegen/bridges/test8.kt"); - } - - @Test - @TestMetadata("test9.kt") - public void testTest9() { - runTest("native/native.tests/testData/codegen/bridges/test9.kt"); - } } @Nested @@ -1353,92 +603,6 @@ public class FirNativeCodegenLocalTestGenerated extends AbstractNativeCodegenBox } } - @Nested - @TestMetadata("native/native.tests/testData/codegen/classDelegation") - @TestDataPath("$PROJECT_ROOT") - @Tag("frontend-fir") - @FirPipeline() - @UseExtTestCaseGroupProvider() - public class ClassDelegation { - @Test - public void testAllFilesPresentInClassDelegation() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/native.tests/testData/codegen/classDelegation"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); - } - - @Test - @TestMetadata("generic.kt") - public void testGeneric() { - runTest("native/native.tests/testData/codegen/classDelegation/generic.kt"); - } - - @Test - @TestMetadata("method.kt") - public void testMethod() { - runTest("native/native.tests/testData/codegen/classDelegation/method.kt"); - } - - @Test - @TestMetadata("multipleModules.kt") - public void testMultipleModules() { - runTest("native/native.tests/testData/codegen/classDelegation/multipleModules.kt"); - } - - @Test - @TestMetadata("property.kt") - public void testProperty() { - runTest("native/native.tests/testData/codegen/classDelegation/property.kt"); - } - - @Test - @TestMetadata("withBridge.kt") - public void testWithBridge() { - runTest("native/native.tests/testData/codegen/classDelegation/withBridge.kt"); - } - } - - @Nested - @TestMetadata("native/native.tests/testData/codegen/contracts") - @TestDataPath("$PROJECT_ROOT") - @Tag("frontend-fir") - @FirPipeline() - @UseExtTestCaseGroupProvider() - public class Contracts { - @Test - public void testAllFilesPresentInContracts() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/native.tests/testData/codegen/contracts"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); - } - - @Test - @TestMetadata("contractForCast.kt") - public void testContractForCast() { - runTest("native/native.tests/testData/codegen/contracts/contractForCast.kt"); - } - - @Test - @TestMetadata("isNullString.kt") - public void testIsNullString() { - runTest("native/native.tests/testData/codegen/contracts/isNullString.kt"); - } - - @Test - @TestMetadata("nonNullSmartCast.kt") - public void testNonNullSmartCast() { - runTest("native/native.tests/testData/codegen/contracts/nonNullSmartCast.kt"); - } - - @Test - @TestMetadata("require.kt") - public void testRequire() { - runTest("native/native.tests/testData/codegen/contracts/require.kt"); - } - - @Test - @TestMetadata("runLambdaForVal.kt") - public void testRunLambdaForVal() { - runTest("native/native.tests/testData/codegen/contracts/runLambdaForVal.kt"); - } - } - @Nested @TestMetadata("native/native.tests/testData/codegen/controlflow") @TestDataPath("$PROJECT_ROOT") @@ -1451,119 +615,11 @@ public class FirNativeCodegenLocalTestGenerated extends AbstractNativeCodegenBox KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/native.tests/testData/codegen/controlflow"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); } - @Test - @TestMetadata("break.kt") - public void testBreak() { - runTest("native/native.tests/testData/codegen/controlflow/break.kt"); - } - - @Test - @TestMetadata("break1.kt") - public void testBreak1() { - runTest("native/native.tests/testData/codegen/controlflow/break1.kt"); - } - - @Test - @TestMetadata("for_loops.kt") - public void testFor_loops() { - runTest("native/native.tests/testData/codegen/controlflow/for_loops.kt"); - } - @Test @TestMetadata("for_loops_array.kt") public void testFor_loops_array() { runTest("native/native.tests/testData/codegen/controlflow/for_loops_array.kt"); } - - @Test - @TestMetadata("for_loops_array_break_continue.kt") - public void testFor_loops_array_break_continue() { - runTest("native/native.tests/testData/codegen/controlflow/for_loops_array_break_continue.kt"); - } - - @Test - @TestMetadata("for_loops_array_indices.kt") - public void testFor_loops_array_indices() { - runTest("native/native.tests/testData/codegen/controlflow/for_loops_array_indices.kt"); - } - - @Test - @TestMetadata("for_loops_array_mutation.kt") - public void testFor_loops_array_mutation() { - runTest("native/native.tests/testData/codegen/controlflow/for_loops_array_mutation.kt"); - } - - @Test - @TestMetadata("for_loops_array_nested.kt") - public void testFor_loops_array_nested() { - runTest("native/native.tests/testData/codegen/controlflow/for_loops_array_nested.kt"); - } - - @Test - @TestMetadata("for_loops_array_nullable.kt") - public void testFor_loops_array_nullable() { - runTest("native/native.tests/testData/codegen/controlflow/for_loops_array_nullable.kt"); - } - - @Test - @TestMetadata("for_loops_array_side_effects.kt") - public void testFor_loops_array_side_effects() { - runTest("native/native.tests/testData/codegen/controlflow/for_loops_array_side_effects.kt"); - } - - @Test - @TestMetadata("for_loops_call_order.kt") - public void testFor_loops_call_order() { - runTest("native/native.tests/testData/codegen/controlflow/for_loops_call_order.kt"); - } - - @Test - @TestMetadata("for_loops_coroutines.kt") - public void testFor_loops_coroutines() { - runTest("native/native.tests/testData/codegen/controlflow/for_loops_coroutines.kt"); - } - - @Test - @TestMetadata("for_loops_empty_range.kt") - public void testFor_loops_empty_range() { - runTest("native/native.tests/testData/codegen/controlflow/for_loops_empty_range.kt"); - } - - @Test - @TestMetadata("for_loops_errors.kt") - public void testFor_loops_errors() { - runTest("native/native.tests/testData/codegen/controlflow/for_loops_errors.kt"); - } - - @Test - @TestMetadata("for_loops_let_with_nullable.kt") - public void testFor_loops_let_with_nullable() { - runTest("native/native.tests/testData/codegen/controlflow/for_loops_let_with_nullable.kt"); - } - - @Test - @TestMetadata("for_loops_nested.kt") - public void testFor_loops_nested() { - runTest("native/native.tests/testData/codegen/controlflow/for_loops_nested.kt"); - } - - @Test - @TestMetadata("for_loops_overflow.kt") - public void testFor_loops_overflow() { - runTest("native/native.tests/testData/codegen/controlflow/for_loops_overflow.kt"); - } - - @Test - @TestMetadata("for_loops_types.kt") - public void testFor_loops_types() { - runTest("native/native.tests/testData/codegen/controlflow/for_loops_types.kt"); - } - - @Test - @TestMetadata("unreachable1.kt") - public void testUnreachable1() { - runTest("native/native.tests/testData/codegen/controlflow/unreachable1.kt"); - } } @Nested @@ -1578,387 +634,11 @@ public class FirNativeCodegenLocalTestGenerated extends AbstractNativeCodegenBox KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/native.tests/testData/codegen/coroutines"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); } - @Test - @TestMetadata("anonymousObject.kt") - public void testAnonymousObject() { - runTest("native/native.tests/testData/codegen/coroutines/anonymousObject.kt"); - } - - @Test - @TestMetadata("controlFlow_chain.kt") - public void testControlFlow_chain() { - runTest("native/native.tests/testData/codegen/coroutines/controlFlow_chain.kt"); - } - - @Test - @TestMetadata("controlFlow_finally1.kt") - public void testControlFlow_finally1() { - runTest("native/native.tests/testData/codegen/coroutines/controlFlow_finally1.kt"); - } - - @Test - @TestMetadata("controlFlow_finally2.kt") - public void testControlFlow_finally2() { - runTest("native/native.tests/testData/codegen/coroutines/controlFlow_finally2.kt"); - } - - @Test - @TestMetadata("controlFlow_finally3.kt") - public void testControlFlow_finally3() { - runTest("native/native.tests/testData/codegen/coroutines/controlFlow_finally3.kt"); - } - - @Test - @TestMetadata("controlFlow_finally4.kt") - public void testControlFlow_finally4() { - runTest("native/native.tests/testData/codegen/coroutines/controlFlow_finally4.kt"); - } - - @Test - @TestMetadata("controlFlow_finally5.kt") - public void testControlFlow_finally5() { - runTest("native/native.tests/testData/codegen/coroutines/controlFlow_finally5.kt"); - } - - @Test - @TestMetadata("controlFlow_finally6.kt") - public void testControlFlow_finally6() { - runTest("native/native.tests/testData/codegen/coroutines/controlFlow_finally6.kt"); - } - - @Test - @TestMetadata("controlFlow_finally7.kt") - public void testControlFlow_finally7() { - runTest("native/native.tests/testData/codegen/coroutines/controlFlow_finally7.kt"); - } - - @Test - @TestMetadata("controlFlow_if1.kt") - public void testControlFlow_if1() { - runTest("native/native.tests/testData/codegen/coroutines/controlFlow_if1.kt"); - } - - @Test - @TestMetadata("controlFlow_if2.kt") - public void testControlFlow_if2() { - runTest("native/native.tests/testData/codegen/coroutines/controlFlow_if2.kt"); - } - - @Test - @TestMetadata("controlFlow_inline1.kt") - public void testControlFlow_inline1() { - runTest("native/native.tests/testData/codegen/coroutines/controlFlow_inline1.kt"); - } - - @Test - @TestMetadata("controlFlow_inline2.kt") - public void testControlFlow_inline2() { - runTest("native/native.tests/testData/codegen/coroutines/controlFlow_inline2.kt"); - } - - @Test - @TestMetadata("controlFlow_inline3.kt") - public void testControlFlow_inline3() { - runTest("native/native.tests/testData/codegen/coroutines/controlFlow_inline3.kt"); - } - - @Test - @TestMetadata("controlFlow_tryCatch1.kt") - public void testControlFlow_tryCatch1() { - runTest("native/native.tests/testData/codegen/coroutines/controlFlow_tryCatch1.kt"); - } - - @Test - @TestMetadata("controlFlow_tryCatch2.kt") - public void testControlFlow_tryCatch2() { - runTest("native/native.tests/testData/codegen/coroutines/controlFlow_tryCatch2.kt"); - } - - @Test - @TestMetadata("controlFlow_tryCatch3.kt") - public void testControlFlow_tryCatch3() { - runTest("native/native.tests/testData/codegen/coroutines/controlFlow_tryCatch3.kt"); - } - - @Test - @TestMetadata("controlFlow_tryCatch4.kt") - public void testControlFlow_tryCatch4() { - runTest("native/native.tests/testData/codegen/coroutines/controlFlow_tryCatch4.kt"); - } - - @Test - @TestMetadata("controlFlow_tryCatch5.kt") - public void testControlFlow_tryCatch5() { - runTest("native/native.tests/testData/codegen/coroutines/controlFlow_tryCatch5.kt"); - } - - @Test - @TestMetadata("controlFlow_while1.kt") - public void testControlFlow_while1() { - runTest("native/native.tests/testData/codegen/coroutines/controlFlow_while1.kt"); - } - - @Test - @TestMetadata("controlFlow_while2.kt") - public void testControlFlow_while2() { - runTest("native/native.tests/testData/codegen/coroutines/controlFlow_while2.kt"); - } - - @Test - @TestMetadata("coroutineContext1.kt") - public void testCoroutineContext1() { - runTest("native/native.tests/testData/codegen/coroutines/coroutineContext1.kt"); - } - - @Test - @TestMetadata("coroutineContext2.kt") - public void testCoroutineContext2() { - runTest("native/native.tests/testData/codegen/coroutines/coroutineContext2.kt"); - } - - @Test - @TestMetadata("correctOrder1.kt") - public void testCorrectOrder1() { - runTest("native/native.tests/testData/codegen/coroutines/correctOrder1.kt"); - } - - @Test - @TestMetadata("degenerate1.kt") - public void testDegenerate1() { - runTest("native/native.tests/testData/codegen/coroutines/degenerate1.kt"); - } - - @Test - @TestMetadata("degenerate2.kt") - public void testDegenerate2() { - runTest("native/native.tests/testData/codegen/coroutines/degenerate2.kt"); - } - - @Test - @TestMetadata("functionReference_eqeq_name.kt") - public void testFunctionReference_eqeq_name() { - runTest("native/native.tests/testData/codegen/coroutines/functionReference_eqeq_name.kt"); - } - - @Test - @TestMetadata("functionReference_invokeAsFunction.kt") - public void testFunctionReference_invokeAsFunction() { - runTest("native/native.tests/testData/codegen/coroutines/functionReference_invokeAsFunction.kt"); - } - - @Test - @TestMetadata("functionReference_lambdaAsSuspendLambda.kt") - public void testFunctionReference_lambdaAsSuspendLambda() { - runTest("native/native.tests/testData/codegen/coroutines/functionReference_lambdaAsSuspendLambda.kt"); - } - - @Test - @TestMetadata("functionReference_simple.kt") - public void testFunctionReference_simple() { - runTest("native/native.tests/testData/codegen/coroutines/functionReference_simple.kt"); - } - @Test @TestMetadata("inheritance.kt") public void testInheritance() { runTest("native/native.tests/testData/codegen/coroutines/inheritance.kt"); } - - @Test - @TestMetadata("kt41394.kt") - public void testKt41394() { - runTest("native/native.tests/testData/codegen/coroutines/kt41394.kt"); - } - - @Test - @TestMetadata("returnsNothing1.kt") - public void testReturnsNothing1() { - runTest("native/native.tests/testData/codegen/coroutines/returnsNothing1.kt"); - } - - @Test - @TestMetadata("returnsUnit1.kt") - public void testReturnsUnit1() { - runTest("native/native.tests/testData/codegen/coroutines/returnsUnit1.kt"); - } - - @Test - @TestMetadata("simple.kt") - public void testSimple() { - runTest("native/native.tests/testData/codegen/coroutines/simple.kt"); - } - - @Test - @TestMetadata("suspendConversion.kt") - public void testSuspendConversion() { - runTest("native/native.tests/testData/codegen/coroutines/suspendConversion.kt"); - } - - @Test - @TestMetadata("withReceiver.kt") - public void testWithReceiver() { - runTest("native/native.tests/testData/codegen/coroutines/withReceiver.kt"); - } - } - - @Nested - @TestMetadata("native/native.tests/testData/codegen/cycles") - @TestDataPath("$PROJECT_ROOT") - @Tag("frontend-fir") - @FirPipeline() - @UseExtTestCaseGroupProvider() - public class Cycles { - @Test - public void testAllFilesPresentInCycles() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/native.tests/testData/codegen/cycles"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); - } - - @Test - @TestMetadata("cycle.kt") - public void testCycle() { - runTest("native/native.tests/testData/codegen/cycles/cycle.kt"); - } - - @Test - @TestMetadata("cycle_do.kt") - public void testCycle_do() { - runTest("native/native.tests/testData/codegen/cycles/cycle_do.kt"); - } - - @Test - @TestMetadata("cycle_for.kt") - public void testCycle_for() { - runTest("native/native.tests/testData/codegen/cycles/cycle_for.kt"); - } - } - - @Nested - @TestMetadata("native/native.tests/testData/codegen/dataflow") - @TestDataPath("$PROJECT_ROOT") - @Tag("frontend-fir") - @FirPipeline() - @UseExtTestCaseGroupProvider() - public class Dataflow { - @Test - public void testAllFilesPresentInDataflow() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/native.tests/testData/codegen/dataflow"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); - } - - @Test - @TestMetadata("scope1.kt") - public void testScope1() { - runTest("native/native.tests/testData/codegen/dataflow/scope1.kt"); - } - - @Test - @TestMetadata("uninitialized_val.kt") - public void testUninitialized_val() { - runTest("native/native.tests/testData/codegen/dataflow/uninitialized_val.kt"); - } - } - - @Nested - @TestMetadata("native/native.tests/testData/codegen/delegatedProperty") - @TestDataPath("$PROJECT_ROOT") - @Tag("frontend-fir") - @FirPipeline() - @UseExtTestCaseGroupProvider() - public class DelegatedProperty { - @Test - public void testAllFilesPresentInDelegatedProperty() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/native.tests/testData/codegen/delegatedProperty"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); - } - - @Test - @TestMetadata("correctFieldsOrder.kt") - public void testCorrectFieldsOrder() { - runTest("native/native.tests/testData/codegen/delegatedProperty/correctFieldsOrder.kt"); - } - - @Test - @TestMetadata("delegatedOverride.kt") - public void testDelegatedOverride() { - runTest("native/native.tests/testData/codegen/delegatedProperty/delegatedOverride.kt"); - } - - @Test - @TestMetadata("lazy.kt") - public void testLazy() { - runTest("native/native.tests/testData/codegen/delegatedProperty/lazy.kt"); - } - - @Test - @TestMetadata("local.kt") - public void testLocal() { - runTest("native/native.tests/testData/codegen/delegatedProperty/local.kt"); - } - - @Test - @TestMetadata("map.kt") - public void testMap() { - runTest("native/native.tests/testData/codegen/delegatedProperty/map.kt"); - } - - @Test - @TestMetadata("observable.kt") - public void testObservable() { - runTest("native/native.tests/testData/codegen/delegatedProperty/observable.kt"); - } - - @Test - @TestMetadata("packageLevel.kt") - public void testPackageLevel() { - runTest("native/native.tests/testData/codegen/delegatedProperty/packageLevel.kt"); - } - - @Test - @TestMetadata("simpleVal.kt") - public void testSimpleVal() { - runTest("native/native.tests/testData/codegen/delegatedProperty/simpleVal.kt"); - } - - @Test - @TestMetadata("simpleVar.kt") - public void testSimpleVar() { - runTest("native/native.tests/testData/codegen/delegatedProperty/simpleVar.kt"); - } - } - - @Nested - @TestMetadata("native/native.tests/testData/codegen/devirtualization") - @TestDataPath("$PROJECT_ROOT") - @Tag("frontend-fir") - @FirPipeline() - @UseExtTestCaseGroupProvider() - public class Devirtualization { - @Test - public void testAllFilesPresentInDevirtualization() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/native.tests/testData/codegen/devirtualization"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); - } - - @Test - @TestMetadata("anonymousObject.kt") - public void testAnonymousObject() { - runTest("native/native.tests/testData/codegen/devirtualization/anonymousObject.kt"); - } - - @Test - @TestMetadata("getter_looking_as_box_function.kt") - public void testGetter_looking_as_box_function() { - runTest("native/native.tests/testData/codegen/devirtualization/getter_looking_as_box_function.kt"); - } - - @Test - @TestMetadata("inline_getter.kt") - public void testInline_getter() { - runTest("native/native.tests/testData/codegen/devirtualization/inline_getter.kt"); - } - - @Test - @TestMetadata("lateinitInterface.kt") - public void testLateinitInterface() { - runTest("native/native.tests/testData/codegen/devirtualization/lateinitInterface.kt"); - } } @Nested @@ -1973,125 +653,11 @@ public class FirNativeCodegenLocalTestGenerated extends AbstractNativeCodegenBox KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/native.tests/testData/codegen/enum"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); } - @Test - @TestMetadata("companionObject.kt") - public void testCompanionObject() { - runTest("native/native.tests/testData/codegen/enum/companionObject.kt"); - } - - @Test - @TestMetadata("enum_equals.kt") - public void testEnum_equals() { - runTest("native/native.tests/testData/codegen/enum/enum_equals.kt"); - } - - @Test - @TestMetadata("interfaceCallNoEntryClass.kt") - public void testInterfaceCallNoEntryClass() { - runTest("native/native.tests/testData/codegen/enum/interfaceCallNoEntryClass.kt"); - } - - @Test - @TestMetadata("interfaceCallWithEntryClass.kt") - public void testInterfaceCallWithEntryClass() { - runTest("native/native.tests/testData/codegen/enum/interfaceCallWithEntryClass.kt"); - } - @Test @TestMetadata("isFrozen.kt") public void testIsFrozen() { runTest("native/native.tests/testData/codegen/enum/isFrozen.kt"); } - - @Test - @TestMetadata("kt38540.kt") - public void testKt38540() { - runTest("native/native.tests/testData/codegen/enum/kt38540.kt"); - } - - @Test - @TestMetadata("lambdaInDefault.kt") - public void testLambdaInDefault() { - runTest("native/native.tests/testData/codegen/enum/lambdaInDefault.kt"); - } - - @Test - @TestMetadata("loop.kt") - public void testLoop() { - runTest("native/native.tests/testData/codegen/enum/loop.kt"); - } - - @Test - @TestMetadata("multipleModules.kt") - public void testMultipleModules() { - runTest("native/native.tests/testData/codegen/enum/multipleModules.kt"); - } - - @Test - @TestMetadata("nested.kt") - public void testNested() { - runTest("native/native.tests/testData/codegen/enum/nested.kt"); - } - - @Test - @TestMetadata("openMethodNoOverrides.kt") - public void testOpenMethodNoOverrides() { - runTest("native/native.tests/testData/codegen/enum/openMethodNoOverrides.kt"); - } - - @Test - @TestMetadata("reorderedArguments.kt") - public void testReorderedArguments() { - runTest("native/native.tests/testData/codegen/enum/reorderedArguments.kt"); - } - - @Test - @TestMetadata("switchLowering.kt") - public void testSwitchLowering() { - runTest("native/native.tests/testData/codegen/enum/switchLowering.kt"); - } - - @Test - @TestMetadata("test0.kt") - public void testTest0() { - runTest("native/native.tests/testData/codegen/enum/test0.kt"); - } - - @Test - @TestMetadata("test1.kt") - public void testTest1() { - runTest("native/native.tests/testData/codegen/enum/test1.kt"); - } - - @Test - @TestMetadata("vCallNoEntryClass.kt") - public void testVCallNoEntryClass() { - runTest("native/native.tests/testData/codegen/enum/vCallNoEntryClass.kt"); - } - - @Test - @TestMetadata("vCallWithEntryClass.kt") - public void testVCallWithEntryClass() { - runTest("native/native.tests/testData/codegen/enum/vCallWithEntryClass.kt"); - } - - @Test - @TestMetadata("valueOf.kt") - public void testValueOf() { - runTest("native/native.tests/testData/codegen/enum/valueOf.kt"); - } - - @Test - @TestMetadata("values.kt") - public void testValues() { - runTest("native/native.tests/testData/codegen/enum/values.kt"); - } - - @Test - @TestMetadata("varargParam.kt") - public void testVarargParam() { - runTest("native/native.tests/testData/codegen/enum/varargParam.kt"); - } } @Nested @@ -2112,12 +678,6 @@ public class FirNativeCodegenLocalTestGenerated extends AbstractNativeCodegenBox runTest("native/native.tests/testData/codegen/escapeAnalysis/negativeArraySize.kt"); } - @Test - @TestMetadata("recursion.kt") - public void testRecursion() { - runTest("native/native.tests/testData/codegen/escapeAnalysis/recursion.kt"); - } - @Test @TestMetadata("stackAllocated.kt") public void testStackAllocated() { @@ -2141,151 +701,6 @@ public class FirNativeCodegenLocalTestGenerated extends AbstractNativeCodegenBox public void testStackNotAllocatedString() { runTest("native/native.tests/testData/codegen/escapeAnalysis/stackNotAllocatedString.kt"); } - - @Test - @TestMetadata("stack_array.kt") - public void testStack_array() { - runTest("native/native.tests/testData/codegen/escapeAnalysis/stack_array.kt"); - } - - @Test - @TestMetadata("test1.kt") - public void testTest1() { - runTest("native/native.tests/testData/codegen/escapeAnalysis/test1.kt"); - } - - @Test - @TestMetadata("test10.kt") - public void testTest10() { - runTest("native/native.tests/testData/codegen/escapeAnalysis/test10.kt"); - } - - @Test - @TestMetadata("test11.kt") - public void testTest11() { - runTest("native/native.tests/testData/codegen/escapeAnalysis/test11.kt"); - } - - @Test - @TestMetadata("test12.kt") - public void testTest12() { - runTest("native/native.tests/testData/codegen/escapeAnalysis/test12.kt"); - } - - @Test - @TestMetadata("test13.kt") - public void testTest13() { - runTest("native/native.tests/testData/codegen/escapeAnalysis/test13.kt"); - } - - @Test - @TestMetadata("test2.kt") - public void testTest2() { - runTest("native/native.tests/testData/codegen/escapeAnalysis/test2.kt"); - } - - @Test - @TestMetadata("test3.kt") - public void testTest3() { - runTest("native/native.tests/testData/codegen/escapeAnalysis/test3.kt"); - } - - @Test - @TestMetadata("test4.kt") - public void testTest4() { - runTest("native/native.tests/testData/codegen/escapeAnalysis/test4.kt"); - } - - @Test - @TestMetadata("test5.kt") - public void testTest5() { - runTest("native/native.tests/testData/codegen/escapeAnalysis/test5.kt"); - } - - @Test - @TestMetadata("test6.kt") - public void testTest6() { - runTest("native/native.tests/testData/codegen/escapeAnalysis/test6.kt"); - } - - @Test - @TestMetadata("test7.kt") - public void testTest7() { - runTest("native/native.tests/testData/codegen/escapeAnalysis/test7.kt"); - } - - @Test - @TestMetadata("test8.kt") - public void testTest8() { - runTest("native/native.tests/testData/codegen/escapeAnalysis/test8.kt"); - } - - @Test - @TestMetadata("test9.kt") - public void testTest9() { - runTest("native/native.tests/testData/codegen/escapeAnalysis/test9.kt"); - } - - @Test - @TestMetadata("zeroOutObjectOnAlloc.kt") - public void testZeroOutObjectOnAlloc() { - runTest("native/native.tests/testData/codegen/escapeAnalysis/zeroOutObjectOnAlloc.kt"); - } - } - - @Nested - @TestMetadata("native/native.tests/testData/codegen/exceptions") - @TestDataPath("$PROJECT_ROOT") - @Tag("frontend-fir") - @FirPipeline() - @UseExtTestCaseGroupProvider() - public class Exceptions { - @Test - public void testAllFilesPresentInExceptions() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/native.tests/testData/codegen/exceptions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); - } - - @Test - @TestMetadata("catch1.kt") - public void testCatch1() { - runTest("native/native.tests/testData/codegen/exceptions/catch1.kt"); - } - - @Test - @TestMetadata("catch2.kt") - public void testCatch2() { - runTest("native/native.tests/testData/codegen/exceptions/catch2.kt"); - } - - @Test - @TestMetadata("catch7.kt") - public void testCatch7() { - runTest("native/native.tests/testData/codegen/exceptions/catch7.kt"); - } - - @Test - @TestMetadata("extend0.kt") - public void testExtend0() { - runTest("native/native.tests/testData/codegen/exceptions/extend0.kt"); - } - - @Test - @TestMetadata("rethrow.kt") - public void testRethrow() { - runTest("native/native.tests/testData/codegen/exceptions/rethrow.kt"); - } - - @Test - @TestMetadata("throw0.kt") - public void testThrow0() { - runTest("native/native.tests/testData/codegen/exceptions/throw0.kt"); - } - - @Test - @TestMetadata("throw_from_catch.kt") - public void testThrow_from_catch() { - runTest("native/native.tests/testData/codegen/exceptions/throw_from_catch.kt"); - } } @Nested @@ -2646,264 +1061,11 @@ public class FirNativeCodegenLocalTestGenerated extends AbstractNativeCodegenBox KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/native.tests/testData/codegen/funInterface"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); } - @Test - @TestMetadata("implIsNotFunction.kt") - public void testImplIsNotFunction() { - runTest("native/native.tests/testData/codegen/funInterface/implIsNotFunction.kt"); - } - @Test @TestMetadata("kt43887.kt") public void testKt43887() { runTest("native/native.tests/testData/codegen/funInterface/kt43887.kt"); } - - @Test - @TestMetadata("kt49384.kt") - public void testKt49384() { - runTest("native/native.tests/testData/codegen/funInterface/kt49384.kt"); - } - - @Test - @TestMetadata("kt49384_getSame.kt") - public void testKt49384_getSame() { - runTest("native/native.tests/testData/codegen/funInterface/kt49384_getSame.kt"); - } - - @Test - @TestMetadata("nonTrivialProjectionInSuperType.kt") - public void testNonTrivialProjectionInSuperType() { - runTest("native/native.tests/testData/codegen/funInterface/nonTrivialProjectionInSuperType.kt"); - } - } - - @Nested - @TestMetadata("native/native.tests/testData/codegen/function") - @TestDataPath("$PROJECT_ROOT") - @Tag("frontend-fir") - @FirPipeline() - @UseExtTestCaseGroupProvider() - public class Function { - @Test - public void testAllFilesPresentInFunction() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/native.tests/testData/codegen/function"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); - } - - @Test - @TestMetadata("arithmetic.kt") - public void testArithmetic() { - runTest("native/native.tests/testData/codegen/function/arithmetic.kt"); - } - - @Test - @TestMetadata("boolean.kt") - public void testBoolean() { - runTest("native/native.tests/testData/codegen/function/boolean.kt"); - } - - @Test - @TestMetadata("defaults.kt") - public void testDefaults() { - runTest("native/native.tests/testData/codegen/function/defaults.kt"); - } - - @Test - @TestMetadata("defaults1.kt") - public void testDefaults1() { - runTest("native/native.tests/testData/codegen/function/defaults1.kt"); - } - - @Test - @TestMetadata("defaults10.kt") - public void testDefaults10() { - runTest("native/native.tests/testData/codegen/function/defaults10.kt"); - } - - @Test - @TestMetadata("defaults2.kt") - public void testDefaults2() { - runTest("native/native.tests/testData/codegen/function/defaults2.kt"); - } - - @Test - @TestMetadata("defaults3.kt") - public void testDefaults3() { - runTest("native/native.tests/testData/codegen/function/defaults3.kt"); - } - - @Test - @TestMetadata("defaults4.kt") - public void testDefaults4() { - runTest("native/native.tests/testData/codegen/function/defaults4.kt"); - } - - @Test - @TestMetadata("defaults5.kt") - public void testDefaults5() { - runTest("native/native.tests/testData/codegen/function/defaults5.kt"); - } - - @Test - @TestMetadata("defaults6.kt") - public void testDefaults6() { - runTest("native/native.tests/testData/codegen/function/defaults6.kt"); - } - - @Test - @TestMetadata("defaults7.kt") - public void testDefaults7() { - runTest("native/native.tests/testData/codegen/function/defaults7.kt"); - } - - @Test - @TestMetadata("defaults8.kt") - public void testDefaults8() { - runTest("native/native.tests/testData/codegen/function/defaults8.kt"); - } - - @Test - @TestMetadata("defaults9.kt") - public void testDefaults9() { - runTest("native/native.tests/testData/codegen/function/defaults9.kt"); - } - - @Test - @TestMetadata("defaultsFromFakeOverride.kt") - public void testDefaultsFromFakeOverride() { - runTest("native/native.tests/testData/codegen/function/defaultsFromFakeOverride.kt"); - } - - @Test - @TestMetadata("defaultsWithInlineClasses.kt") - public void testDefaultsWithInlineClasses() { - runTest("native/native.tests/testData/codegen/function/defaultsWithInlineClasses.kt"); - } - - @Test - @TestMetadata("defaultsWithVarArg1.kt") - public void testDefaultsWithVarArg1() { - runTest("native/native.tests/testData/codegen/function/defaultsWithVarArg1.kt"); - } - - @Test - @TestMetadata("defaultsWithVarArg2.kt") - public void testDefaultsWithVarArg2() { - runTest("native/native.tests/testData/codegen/function/defaultsWithVarArg2.kt"); - } - - @Test - @TestMetadata("eqeq.kt") - public void testEqeq() { - runTest("native/native.tests/testData/codegen/function/eqeq.kt"); - } - - @Test - @TestMetadata("extension.kt") - public void testExtension() { - runTest("native/native.tests/testData/codegen/function/extension.kt"); - } - - @Test - @TestMetadata("intrinsic.kt") - public void testIntrinsic() { - runTest("native/native.tests/testData/codegen/function/intrinsic.kt"); - } - - @Test - @TestMetadata("localFunction.kt") - public void testLocalFunction() { - runTest("native/native.tests/testData/codegen/function/localFunction.kt"); - } - - @Test - @TestMetadata("localFunction2.kt") - public void testLocalFunction2() { - runTest("native/native.tests/testData/codegen/function/localFunction2.kt"); - } - - @Test - @TestMetadata("localFunction3.kt") - public void testLocalFunction3() { - runTest("native/native.tests/testData/codegen/function/localFunction3.kt"); - } - - @Test - @TestMetadata("minus_eq.kt") - public void testMinus_eq() { - runTest("native/native.tests/testData/codegen/function/minus_eq.kt"); - } - - @Test - @TestMetadata("named.kt") - public void testNamed() { - runTest("native/native.tests/testData/codegen/function/named.kt"); - } - - @Test - @TestMetadata("nothingNReturningSafeCall.kt") - public void testNothingNReturningSafeCall() { - runTest("native/native.tests/testData/codegen/function/nothingNReturningSafeCall.kt"); - } - - @Test - @TestMetadata("plus_eq.kt") - public void testPlus_eq() { - runTest("native/native.tests/testData/codegen/function/plus_eq.kt"); - } - - @Test - @TestMetadata("referenceBigArity.kt") - public void testReferenceBigArity() { - runTest("native/native.tests/testData/codegen/function/referenceBigArity.kt"); - } - - @Test - @TestMetadata("sum.kt") - public void testSum() { - runTest("native/native.tests/testData/codegen/function/sum.kt"); - } - - @Test - @TestMetadata("sum_3const.kt") - public void testSum_3const() { - runTest("native/native.tests/testData/codegen/function/sum_3const.kt"); - } - - @Test - @TestMetadata("sum_foo_bar.kt") - public void testSum_foo_bar() { - runTest("native/native.tests/testData/codegen/function/sum_foo_bar.kt"); - } - - @Test - @TestMetadata("sum_func.kt") - public void testSum_func() { - runTest("native/native.tests/testData/codegen/function/sum_func.kt"); - } - - @Test - @TestMetadata("sum_imm.kt") - public void testSum_imm() { - runTest("native/native.tests/testData/codegen/function/sum_imm.kt"); - } - - @Test - @TestMetadata("sum_mixed.kt") - public void testSum_mixed() { - runTest("native/native.tests/testData/codegen/function/sum_mixed.kt"); - } - - @Test - @TestMetadata("sum_silly.kt") - public void testSum_silly() { - runTest("native/native.tests/testData/codegen/function/sum_silly.kt"); - } - - @Test - @TestMetadata("unreachableStatementAfterReturn.kt") - public void testUnreachableStatementAfterReturn() { - runTest("native/native.tests/testData/codegen/function/unreachableStatementAfterReturn.kt"); - } } @Nested @@ -2918,84 +1080,12 @@ public class FirNativeCodegenLocalTestGenerated extends AbstractNativeCodegenBox KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/native.tests/testData/codegen/initializers"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); } - @Test - @TestMetadata("correctOrder1.kt") - public void testCorrectOrder1() { - runTest("native/native.tests/testData/codegen/initializers/correctOrder1.kt"); - } - - @Test - @TestMetadata("correctOrder2.kt") - public void testCorrectOrder2() { - runTest("native/native.tests/testData/codegen/initializers/correctOrder2.kt"); - } - - @Test - @TestMetadata("initializers0.kt") - public void testInitializers0() { - runTest("native/native.tests/testData/codegen/initializers/initializers0.kt"); - } - - @Test - @TestMetadata("initializers1.kt") - public void testInitializers1() { - runTest("native/native.tests/testData/codegen/initializers/initializers1.kt"); - } - - @Test - @TestMetadata("initializers2.kt") - public void testInitializers2() { - runTest("native/native.tests/testData/codegen/initializers/initializers2.kt"); - } - - @Test - @TestMetadata("initializers3.kt") - public void testInitializers3() { - runTest("native/native.tests/testData/codegen/initializers/initializers3.kt"); - } - - @Test - @TestMetadata("initializers4.kt") - public void testInitializers4() { - runTest("native/native.tests/testData/codegen/initializers/initializers4.kt"); - } - - @Test - @TestMetadata("initializers5.kt") - public void testInitializers5() { - runTest("native/native.tests/testData/codegen/initializers/initializers5.kt"); - } - - @Test - @TestMetadata("initializers7.kt") - public void testInitializers7() { - runTest("native/native.tests/testData/codegen/initializers/initializers7.kt"); - } - - @Test - @TestMetadata("initializers8.kt") - public void testInitializers8() { - runTest("native/native.tests/testData/codegen/initializers/initializers8.kt"); - } - - @Test - @TestMetadata("multipleModules1.kt") - public void testMultipleModules1() { - runTest("native/native.tests/testData/codegen/initializers/multipleModules1.kt"); - } - @Test @TestMetadata("multipleModules2.kt") public void testMultipleModules2() { runTest("native/native.tests/testData/codegen/initializers/multipleModules2.kt"); } - @Test - @TestMetadata("object.kt") - public void testObject() { - runTest("native/native.tests/testData/codegen/initializers/object.kt"); - } - @Test @TestMetadata("return1.kt") public void testReturn1() { @@ -3008,18 +1098,6 @@ public class FirNativeCodegenLocalTestGenerated extends AbstractNativeCodegenBox runTest("native/native.tests/testData/codegen/initializers/return2.kt"); } - @Test - @TestMetadata("sharedVarInInitBlock.kt") - public void testSharedVarInInitBlock() { - runTest("native/native.tests/testData/codegen/initializers/sharedVarInInitBlock.kt"); - } - - @Test - @TestMetadata("static_arrays.kt") - public void testStatic_arrays() { - runTest("native/native.tests/testData/codegen/initializers/static_arrays.kt"); - } - @Test @TestMetadata("static_constantObjectInFinally.kt") public void testStatic_constantObjectInFinally() { @@ -3032,12 +1110,6 @@ public class FirNativeCodegenLocalTestGenerated extends AbstractNativeCodegenBox runTest("native/native.tests/testData/codegen/initializers/static_kType.kt"); } - @Test - @TestMetadata("static_list.kt") - public void testStatic_list() { - runTest("native/native.tests/testData/codegen/initializers/static_list.kt"); - } - @Test @TestMetadata("static_permanent.kt") public void testStatic_permanent() { @@ -3050,30 +1122,6 @@ public class FirNativeCodegenLocalTestGenerated extends AbstractNativeCodegenBox runTest("native/native.tests/testData/codegen/initializers/static_reifiedKType.kt"); } - @Test - @TestMetadata("static_smallIntIdentity.kt") - public void testStatic_smallIntIdentity() { - runTest("native/native.tests/testData/codegen/initializers/static_smallIntIdentity.kt"); - } - - @Test - @TestMetadata("static_varargChange.kt") - public void testStatic_varargChange() { - runTest("native/native.tests/testData/codegen/initializers/static_varargChange.kt"); - } - - @Test - @TestMetadata("throw1.kt") - public void testThrow1() { - runTest("native/native.tests/testData/codegen/initializers/throw1.kt"); - } - - @Test - @TestMetadata("throw2.kt") - public void testThrow2() { - runTest("native/native.tests/testData/codegen/initializers/throw2.kt"); - } - @Test @TestMetadata("when1.kt") public void testWhen1() { @@ -3116,36 +1164,12 @@ public class FirNativeCodegenLocalTestGenerated extends AbstractNativeCodegenBox KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/native.tests/testData/codegen/initializers/files"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); } - @Test - @TestMetadata("globalInitedAfterAccessingFile.kt") - public void testGlobalInitedAfterAccessingFile() { - runTest("native/native.tests/testData/codegen/initializers/files/globalInitedAfterAccessingFile.kt"); - } - @Test @TestMetadata("globalInitedBeforeThreadLocal.kt") public void testGlobalInitedBeforeThreadLocal() { runTest("native/native.tests/testData/codegen/initializers/files/globalInitedBeforeThreadLocal.kt"); } - @Test - @TestMetadata("globalNotInitedAfterAccessingClassInternals.kt") - public void testGlobalNotInitedAfterAccessingClassInternals() { - runTest("native/native.tests/testData/codegen/initializers/files/globalNotInitedAfterAccessingClassInternals.kt"); - } - - @Test - @TestMetadata("simple.kt") - public void testSimple() { - runTest("native/native.tests/testData/codegen/initializers/files/simple.kt"); - } - - @Test - @TestMetadata("simpleMultiModule.kt") - public void testSimpleMultiModule() { - runTest("native/native.tests/testData/codegen/initializers/files/simpleMultiModule.kt"); - } - @Test @TestMetadata("workers1.kt") public void testWorkers1() { @@ -3246,311 +1270,11 @@ public class FirNativeCodegenLocalTestGenerated extends AbstractNativeCodegenBox KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/native.tests/testData/codegen/inline"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); } - @Test - @TestMetadata("changingCapturedLocal.kt") - public void testChangingCapturedLocal() { - runTest("native/native.tests/testData/codegen/inline/changingCapturedLocal.kt"); - } - - @Test - @TestMetadata("classDeclarationInsideInline.kt") - public void testClassDeclarationInsideInline() { - runTest("native/native.tests/testData/codegen/inline/classDeclarationInsideInline.kt"); - } - - @Test - @TestMetadata("coercionToUnit.kt") - public void testCoercionToUnit() { - runTest("native/native.tests/testData/codegen/inline/coercionToUnit.kt"); - } - - @Test - @TestMetadata("correctOrderFunctionReference.kt") - public void testCorrectOrderFunctionReference() { - runTest("native/native.tests/testData/codegen/inline/correctOrderFunctionReference.kt"); - } - - @Test - @TestMetadata("defaultArgs.kt") - public void testDefaultArgs() { - runTest("native/native.tests/testData/codegen/inline/defaultArgs.kt"); - } - - @Test - @TestMetadata("defaultArgsMultipleModules.kt") - public void testDefaultArgsMultipleModules() { - runTest("native/native.tests/testData/codegen/inline/defaultArgsMultipleModules.kt"); - } - - @Test - @TestMetadata("genericFunctionReference.kt") - public void testGenericFunctionReference() { - runTest("native/native.tests/testData/codegen/inline/genericFunctionReference.kt"); - } - - @Test - @TestMetadata("getClass.kt") - public void testGetClass() { - runTest("native/native.tests/testData/codegen/inline/getClass.kt"); - } - - @Test - @TestMetadata("inline0.kt") - public void testInline0() { - runTest("native/native.tests/testData/codegen/inline/inline0.kt"); - } - - @Test - @TestMetadata("inline1.kt") - public void testInline1() { - runTest("native/native.tests/testData/codegen/inline/inline1.kt"); - } - - @Test - @TestMetadata("inline10.kt") - public void testInline10() { - runTest("native/native.tests/testData/codegen/inline/inline10.kt"); - } - - @Test - @TestMetadata("inline11.kt") - public void testInline11() { - runTest("native/native.tests/testData/codegen/inline/inline11.kt"); - } - - @Test - @TestMetadata("inline12.kt") - public void testInline12() { - runTest("native/native.tests/testData/codegen/inline/inline12.kt"); - } - - @Test - @TestMetadata("inline13.kt") - public void testInline13() { - runTest("native/native.tests/testData/codegen/inline/inline13.kt"); - } - - @Test - @TestMetadata("inline14.kt") - public void testInline14() { - runTest("native/native.tests/testData/codegen/inline/inline14.kt"); - } - - @Test - @TestMetadata("inline15.kt") - public void testInline15() { - runTest("native/native.tests/testData/codegen/inline/inline15.kt"); - } - - @Test - @TestMetadata("inline16.kt") - public void testInline16() { - runTest("native/native.tests/testData/codegen/inline/inline16.kt"); - } - - @Test - @TestMetadata("inline17.kt") - public void testInline17() { - runTest("native/native.tests/testData/codegen/inline/inline17.kt"); - } - @Test @TestMetadata("inline18.kt") public void testInline18() { runTest("native/native.tests/testData/codegen/inline/inline18.kt"); } - - @Test - @TestMetadata("inline19.kt") - public void testInline19() { - runTest("native/native.tests/testData/codegen/inline/inline19.kt"); - } - - @Test - @TestMetadata("inline2.kt") - public void testInline2() { - runTest("native/native.tests/testData/codegen/inline/inline2.kt"); - } - - @Test - @TestMetadata("inline20.kt") - public void testInline20() { - runTest("native/native.tests/testData/codegen/inline/inline20.kt"); - } - - @Test - @TestMetadata("inline21.kt") - public void testInline21() { - runTest("native/native.tests/testData/codegen/inline/inline21.kt"); - } - - @Test - @TestMetadata("inline22.kt") - public void testInline22() { - runTest("native/native.tests/testData/codegen/inline/inline22.kt"); - } - - @Test - @TestMetadata("inline23.kt") - public void testInline23() { - runTest("native/native.tests/testData/codegen/inline/inline23.kt"); - } - - @Test - @TestMetadata("inline24.kt") - public void testInline24() { - runTest("native/native.tests/testData/codegen/inline/inline24.kt"); - } - - @Test - @TestMetadata("inline25.kt") - public void testInline25() { - runTest("native/native.tests/testData/codegen/inline/inline25.kt"); - } - - @Test - @TestMetadata("inline26.kt") - public void testInline26() { - runTest("native/native.tests/testData/codegen/inline/inline26.kt"); - } - - @Test - @TestMetadata("inline3.kt") - public void testInline3() { - runTest("native/native.tests/testData/codegen/inline/inline3.kt"); - } - - @Test - @TestMetadata("inline4.kt") - public void testInline4() { - runTest("native/native.tests/testData/codegen/inline/inline4.kt"); - } - - @Test - @TestMetadata("inline5.kt") - public void testInline5() { - runTest("native/native.tests/testData/codegen/inline/inline5.kt"); - } - - @Test - @TestMetadata("inline6.kt") - public void testInline6() { - runTest("native/native.tests/testData/codegen/inline/inline6.kt"); - } - - @Test - @TestMetadata("inline7.kt") - public void testInline7() { - runTest("native/native.tests/testData/codegen/inline/inline7.kt"); - } - - @Test - @TestMetadata("inline8.kt") - public void testInline8() { - runTest("native/native.tests/testData/codegen/inline/inline8.kt"); - } - - @Test - @TestMetadata("inline9.kt") - public void testInline9() { - runTest("native/native.tests/testData/codegen/inline/inline9.kt"); - } - - @Test - @TestMetadata("inlineCtor.kt") - public void testInlineCtor() { - runTest("native/native.tests/testData/codegen/inline/inlineCtor.kt"); - } - - @Test - @TestMetadata("innerInlineFunCapturesOuter.kt") - public void testInnerInlineFunCapturesOuter() { - runTest("native/native.tests/testData/codegen/inline/innerInlineFunCapturesOuter.kt"); - } - - @Test - @TestMetadata("lambdaAsAny.kt") - public void testLambdaAsAny() { - runTest("native/native.tests/testData/codegen/inline/lambdaAsAny.kt"); - } - - @Test - @TestMetadata("lambdaInDefaultValue.kt") - public void testLambdaInDefaultValue() { - runTest("native/native.tests/testData/codegen/inline/lambdaInDefaultValue.kt"); - } - - @Test - @TestMetadata("lateinitProperty.kt") - public void testLateinitProperty() { - runTest("native/native.tests/testData/codegen/inline/lateinitProperty.kt"); - } - - @Test - @TestMetadata("localFunctionInInitializerBlock.kt") - public void testLocalFunctionInInitializerBlock() { - runTest("native/native.tests/testData/codegen/inline/localFunctionInInitializerBlock.kt"); - } - - @Test - @TestMetadata("localObjectReturnedFromWhen.kt") - public void testLocalObjectReturnedFromWhen() { - runTest("native/native.tests/testData/codegen/inline/localObjectReturnedFromWhen.kt"); - } - - @Test - @TestMetadata("propertyAccessorInline.kt") - public void testPropertyAccessorInline() { - runTest("native/native.tests/testData/codegen/inline/propertyAccessorInline.kt"); - } - - @Test - @TestMetadata("redundantCoercionsCleaner.kt") - public void testRedundantCoercionsCleaner() { - runTest("native/native.tests/testData/codegen/inline/redundantCoercionsCleaner.kt"); - } - - @Test - @TestMetadata("redundantCoercionsCleanerKT48876.kt") - public void testRedundantCoercionsCleanerKT48876() { - runTest("native/native.tests/testData/codegen/inline/redundantCoercionsCleanerKT48876.kt"); - } - - @Test - @TestMetadata("redundantCoercionsCleanerKT49356.kt") - public void testRedundantCoercionsCleanerKT49356() { - runTest("native/native.tests/testData/codegen/inline/redundantCoercionsCleanerKT49356.kt"); - } - - @Test - @TestMetadata("returnLocalClassFromBlock.kt") - public void testReturnLocalClassFromBlock() { - runTest("native/native.tests/testData/codegen/inline/returnLocalClassFromBlock.kt"); - } - - @Test - @TestMetadata("sharedVar.kt") - public void testSharedVar() { - runTest("native/native.tests/testData/codegen/inline/sharedVar.kt"); - } - - @Test - @TestMetadata("statementAsLastExprInBlock.kt") - public void testStatementAsLastExprInBlock() { - runTest("native/native.tests/testData/codegen/inline/statementAsLastExprInBlock.kt"); - } - - @Test - @TestMetadata("twiceInlinedObject.kt") - public void testTwiceInlinedObject() { - runTest("native/native.tests/testData/codegen/inline/twiceInlinedObject.kt"); - } - - @Test - @TestMetadata("typeSubstitutionInFakeOverride.kt") - public void testTypeSubstitutionInFakeOverride() { - runTest("native/native.tests/testData/codegen/inline/typeSubstitutionInFakeOverride.kt"); - } } @Nested @@ -3565,36 +1289,12 @@ public class FirNativeCodegenLocalTestGenerated extends AbstractNativeCodegenBox KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/native.tests/testData/codegen/inlineClass"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); } - @Test - @TestMetadata("customEquals.kt") - public void testCustomEquals() { - runTest("native/native.tests/testData/codegen/inlineClass/customEquals.kt"); - } - - @Test - @TestMetadata("defaultEquals.kt") - public void testDefaultEquals() { - runTest("native/native.tests/testData/codegen/inlineClass/defaultEquals.kt"); - } - @Test @TestMetadata("inlineClass0.kt") public void testInlineClass0() { runTest("native/native.tests/testData/codegen/inlineClass/inlineClass0.kt"); } - @Test - @TestMetadata("nestedInlineClasses.kt") - public void testNestedInlineClasses() { - runTest("native/native.tests/testData/codegen/inlineClass/nestedInlineClasses.kt"); - } - - @Test - @TestMetadata("secondaryConstructorWithGenerics.kt") - public void testSecondaryConstructorWithGenerics() { - runTest("native/native.tests/testData/codegen/inlineClass/secondaryConstructorWithGenerics.kt"); - } - @Test @TestMetadata("valueClass0.kt") public void testValueClass0() { @@ -3602,91 +1302,6 @@ public class FirNativeCodegenLocalTestGenerated extends AbstractNativeCodegenBox } } - @Nested - @TestMetadata("native/native.tests/testData/codegen/innerClass") - @TestDataPath("$PROJECT_ROOT") - @Tag("frontend-fir") - @FirPipeline() - @UseExtTestCaseGroupProvider() - public class InnerClass { - @Test - public void testAllFilesPresentInInnerClass() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/native.tests/testData/codegen/innerClass"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); - } - - @Test - @TestMetadata("doubleInner.kt") - public void testDoubleInner() { - runTest("native/native.tests/testData/codegen/innerClass/doubleInner.kt"); - } - - @Test - @TestMetadata("generic.kt") - public void testGeneric() { - runTest("native/native.tests/testData/codegen/innerClass/generic.kt"); - } - - @Test - @TestMetadata("getOuterVal.kt") - public void testGetOuterVal() { - runTest("native/native.tests/testData/codegen/innerClass/getOuterVal.kt"); - } - - @Test - @TestMetadata("inheritanceMultipleModules1.kt") - public void testInheritanceMultipleModules1() { - runTest("native/native.tests/testData/codegen/innerClass/inheritanceMultipleModules1.kt"); - } - - @Test - @TestMetadata("inheritanceMultipleModules2.kt") - public void testInheritanceMultipleModules2() { - runTest("native/native.tests/testData/codegen/innerClass/inheritanceMultipleModules2.kt"); - } - - @Test - @TestMetadata("inheritanceMultipleModules3.kt") - public void testInheritanceMultipleModules3() { - runTest("native/native.tests/testData/codegen/innerClass/inheritanceMultipleModules3.kt"); - } - - @Test - @TestMetadata("multipleModules.kt") - public void testMultipleModules() { - runTest("native/native.tests/testData/codegen/innerClass/multipleModules.kt"); - } - - @Test - @TestMetadata("noPrimaryConstructor.kt") - public void testNoPrimaryConstructor() { - runTest("native/native.tests/testData/codegen/innerClass/noPrimaryConstructor.kt"); - } - - @Test - @TestMetadata("qualifiedThis.kt") - public void testQualifiedThis() { - runTest("native/native.tests/testData/codegen/innerClass/qualifiedThis.kt"); - } - - @Test - @TestMetadata("secondaryConstructor.kt") - public void testSecondaryConstructor() { - runTest("native/native.tests/testData/codegen/innerClass/secondaryConstructor.kt"); - } - - @Test - @TestMetadata("simple.kt") - public void testSimple() { - runTest("native/native.tests/testData/codegen/innerClass/simple.kt"); - } - - @Test - @TestMetadata("superOuter.kt") - public void testSuperOuter() { - runTest("native/native.tests/testData/codegen/innerClass/superOuter.kt"); - } - } - @Nested @TestMetadata("native/native.tests/testData/codegen/interfaceCallsNCasts") @TestDataPath("$PROJECT_ROOT") @@ -3699,35 +1314,11 @@ public class FirNativeCodegenLocalTestGenerated extends AbstractNativeCodegenBox KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/native.tests/testData/codegen/interfaceCallsNCasts"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); } - @Test - @TestMetadata("conservativeItable.kt") - public void testConservativeItable() { - runTest("native/native.tests/testData/codegen/interfaceCallsNCasts/conservativeItable.kt"); - } - - @Test - @TestMetadata("diamond.kt") - public void testDiamond() { - runTest("native/native.tests/testData/codegen/interfaceCallsNCasts/diamond.kt"); - } - - @Test - @TestMetadata("finalMethod.kt") - public void testFinalMethod() { - runTest("native/native.tests/testData/codegen/interfaceCallsNCasts/finalMethod.kt"); - } - @Test @TestMetadata("functionNameClash.kt") public void testFunctionNameClash() { runTest("native/native.tests/testData/codegen/interfaceCallsNCasts/functionNameClash.kt"); } - - @Test - @TestMetadata("interface0.kt") - public void testInterface0() { - runTest("native/native.tests/testData/codegen/interfaceCallsNCasts/interface0.kt"); - } } @Nested @@ -3816,23 +1407,11 @@ public class FirNativeCodegenLocalTestGenerated extends AbstractNativeCodegenBox runTest("native/native.tests/testData/codegen/kclass/anonymousObjectInInlineFunctionWithCache.kt"); } - @Test - @TestMetadata("kClassEnumArgument.kt") - public void testKClassEnumArgument() { - runTest("native/native.tests/testData/codegen/kclass/kClassEnumArgument.kt"); - } - @Test @TestMetadata("kclass0.kt") public void testKclass0() { runTest("native/native.tests/testData/codegen/kclass/kclass0.kt"); } - - @Test - @TestMetadata("kclass1.kt") - public void testKclass1() { - runTest("native/native.tests/testData/codegen/kclass/kclass1.kt"); - } } @Nested @@ -3852,236 +1431,6 @@ public class FirNativeCodegenLocalTestGenerated extends AbstractNativeCodegenBox public void testKtype1_anonymousObject() { runTest("native/native.tests/testData/codegen/ktype/ktype1_anonymousObject.kt"); } - - @Test - @TestMetadata("ktype1_basics1.kt") - public void testKtype1_basics1() { - runTest("native/native.tests/testData/codegen/ktype/ktype1_basics1.kt"); - } - - @Test - @TestMetadata("ktype1_inner.kt") - public void testKtype1_inner() { - runTest("native/native.tests/testData/codegen/ktype/ktype1_inner.kt"); - } - - @Test - @TestMetadata("nonReified_class.kt") - public void testNonReified_class() { - runTest("native/native.tests/testData/codegen/ktype/nonReified_class.kt"); - } - - @Test - @TestMetadata("nonReified_equality.kt") - public void testNonReified_equality() { - runTest("native/native.tests/testData/codegen/ktype/nonReified_equality.kt"); - } - - @Test - @TestMetadata("nonReified_fun.kt") - public void testNonReified_fun() { - runTest("native/native.tests/testData/codegen/ktype/nonReified_fun.kt"); - } - - @Test - @TestMetadata("nonReified_recursionInReified.kt") - public void testNonReified_recursionInReified() { - runTest("native/native.tests/testData/codegen/ktype/nonReified_recursionInReified.kt"); - } - - @Test - @TestMetadata("nonReified_reifiedUpperBound.kt") - public void testNonReified_reifiedUpperBound() { - runTest("native/native.tests/testData/codegen/ktype/nonReified_reifiedUpperBound.kt"); - } - } - - @Nested - @TestMetadata("native/native.tests/testData/codegen/lambda") - @TestDataPath("$PROJECT_ROOT") - @Tag("frontend-fir") - @FirPipeline() - @UseExtTestCaseGroupProvider() - public class Lambda { - @Test - public void testAllFilesPresentInLambda() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/native.tests/testData/codegen/lambda"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); - } - - @Test - @TestMetadata("lambda1.kt") - public void testLambda1() { - runTest("native/native.tests/testData/codegen/lambda/lambda1.kt"); - } - - @Test - @TestMetadata("lambda10.kt") - public void testLambda10() { - runTest("native/native.tests/testData/codegen/lambda/lambda10.kt"); - } - - @Test - @TestMetadata("lambda11.kt") - public void testLambda11() { - runTest("native/native.tests/testData/codegen/lambda/lambda11.kt"); - } - - @Test - @TestMetadata("lambda12.kt") - public void testLambda12() { - runTest("native/native.tests/testData/codegen/lambda/lambda12.kt"); - } - - @Test - @TestMetadata("lambda13.kt") - public void testLambda13() { - runTest("native/native.tests/testData/codegen/lambda/lambda13.kt"); - } - - @Test - @TestMetadata("lambda14.kt") - public void testLambda14() { - runTest("native/native.tests/testData/codegen/lambda/lambda14.kt"); - } - - @Test - @TestMetadata("lambda2.kt") - public void testLambda2() { - runTest("native/native.tests/testData/codegen/lambda/lambda2.kt"); - } - - @Test - @TestMetadata("lambda3.kt") - public void testLambda3() { - runTest("native/native.tests/testData/codegen/lambda/lambda3.kt"); - } - - @Test - @TestMetadata("lambda4.kt") - public void testLambda4() { - runTest("native/native.tests/testData/codegen/lambda/lambda4.kt"); - } - - @Test - @TestMetadata("lambda5.kt") - public void testLambda5() { - runTest("native/native.tests/testData/codegen/lambda/lambda5.kt"); - } - - @Test - @TestMetadata("lambda6.kt") - public void testLambda6() { - runTest("native/native.tests/testData/codegen/lambda/lambda6.kt"); - } - - @Test - @TestMetadata("lambda7.kt") - public void testLambda7() { - runTest("native/native.tests/testData/codegen/lambda/lambda7.kt"); - } - - @Test - @TestMetadata("lambda8.kt") - public void testLambda8() { - runTest("native/native.tests/testData/codegen/lambda/lambda8.kt"); - } - - @Test - @TestMetadata("lambda9.kt") - public void testLambda9() { - runTest("native/native.tests/testData/codegen/lambda/lambda9.kt"); - } - - @Test - @TestMetadata("lambda_kt49360_trivial.kt") - public void testLambda_kt49360_trivial() { - runTest("native/native.tests/testData/codegen/lambda/lambda_kt49360_trivial.kt"); - } - - @Test - @TestMetadata("lambda_kt49360_withFlow.kt") - public void testLambda_kt49360_withFlow() { - runTest("native/native.tests/testData/codegen/lambda/lambda_kt49360_withFlow.kt"); - } - - @Test - @TestMetadata("lambda_kt49360_wrapBlock.kt") - public void testLambda_kt49360_wrapBlock() { - runTest("native/native.tests/testData/codegen/lambda/lambda_kt49360_wrapBlock.kt"); - } - } - - @Nested - @TestMetadata("native/native.tests/testData/codegen/lateinit") - @TestDataPath("$PROJECT_ROOT") - @Tag("frontend-fir") - @FirPipeline() - @UseExtTestCaseGroupProvider() - public class Lateinit { - @Test - public void testAllFilesPresentInLateinit() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/native.tests/testData/codegen/lateinit"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); - } - - @Test - @TestMetadata("globalIsInitialized.kt") - public void testGlobalIsInitialized() { - runTest("native/native.tests/testData/codegen/lateinit/globalIsInitialized.kt"); - } - - @Test - @TestMetadata("inBaseClass.kt") - public void testInBaseClass() { - runTest("native/native.tests/testData/codegen/lateinit/inBaseClass.kt"); - } - - @Test - @TestMetadata("initialized.kt") - public void testInitialized() { - runTest("native/native.tests/testData/codegen/lateinit/initialized.kt"); - } - - @Test - @TestMetadata("innerIsInitialized.kt") - public void testInnerIsInitialized() { - runTest("native/native.tests/testData/codegen/lateinit/innerIsInitialized.kt"); - } - - @Test - @TestMetadata("isInitialized.kt") - public void testIsInitialized() { - runTest("native/native.tests/testData/codegen/lateinit/isInitialized.kt"); - } - - @Test - @TestMetadata("localCapturedInitialized.kt") - public void testLocalCapturedInitialized() { - runTest("native/native.tests/testData/codegen/lateinit/localCapturedInitialized.kt"); - } - - @Test - @TestMetadata("localCapturedNotInitialized.kt") - public void testLocalCapturedNotInitialized() { - runTest("native/native.tests/testData/codegen/lateinit/localCapturedNotInitialized.kt"); - } - - @Test - @TestMetadata("localInitialized.kt") - public void testLocalInitialized() { - runTest("native/native.tests/testData/codegen/lateinit/localInitialized.kt"); - } - - @Test - @TestMetadata("localNotInitialized.kt") - public void testLocalNotInitialized() { - runTest("native/native.tests/testData/codegen/lateinit/localNotInitialized.kt"); - } - - @Test - @TestMetadata("notInitialized.kt") - public void testNotInitialized() { - runTest("native/native.tests/testData/codegen/lateinit/notInitialized.kt"); - } } @Nested @@ -4145,18 +1494,6 @@ public class FirNativeCodegenLocalTestGenerated extends AbstractNativeCodegenBox KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/native.tests/testData/codegen/literals"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); } - @Test - @TestMetadata("listof1.kt") - public void testListof1() { - runTest("native/native.tests/testData/codegen/literals/listof1.kt"); - } - - @Test - @TestMetadata("strdedup1.kt") - public void testStrdedup1() { - runTest("native/native.tests/testData/codegen/literals/strdedup1.kt"); - } - @Test @TestMetadata("strdedup2.kt") public void testStrdedup2() { @@ -4164,117 +1501,6 @@ public class FirNativeCodegenLocalTestGenerated extends AbstractNativeCodegenBox } } - @Nested - @TestMetadata("native/native.tests/testData/codegen/localClass") - @TestDataPath("$PROJECT_ROOT") - @Tag("frontend-fir") - @FirPipeline() - @UseExtTestCaseGroupProvider() - public class LocalClass { - @Test - public void testAllFilesPresentInLocalClass() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/native.tests/testData/codegen/localClass"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); - } - - @Test - @TestMetadata("innerTakesCapturedFromOuter.kt") - public void testInnerTakesCapturedFromOuter() { - runTest("native/native.tests/testData/codegen/localClass/innerTakesCapturedFromOuter.kt"); - } - - @Test - @TestMetadata("innerWithCapture.kt") - public void testInnerWithCapture() { - runTest("native/native.tests/testData/codegen/localClass/innerWithCapture.kt"); - } - - @Test - @TestMetadata("localFunctionCallFromLocalClass.kt") - public void testLocalFunctionCallFromLocalClass() { - runTest("native/native.tests/testData/codegen/localClass/localFunctionCallFromLocalClass.kt"); - } - - @Test - @TestMetadata("localFunctionInLocalClass.kt") - public void testLocalFunctionInLocalClass() { - runTest("native/native.tests/testData/codegen/localClass/localFunctionInLocalClass.kt"); - } - - @Test - @TestMetadata("localHierarchy.kt") - public void testLocalHierarchy() { - runTest("native/native.tests/testData/codegen/localClass/localHierarchy.kt"); - } - - @Test - @TestMetadata("noPrimaryConstructor.kt") - public void testNoPrimaryConstructor() { - runTest("native/native.tests/testData/codegen/localClass/noPrimaryConstructor.kt"); - } - - @Test - @TestMetadata("objectExpressionInInitializer.kt") - public void testObjectExpressionInInitializer() { - runTest("native/native.tests/testData/codegen/localClass/objectExpressionInInitializer.kt"); - } - - @Test - @TestMetadata("objectExpressionInProperty.kt") - public void testObjectExpressionInProperty() { - runTest("native/native.tests/testData/codegen/localClass/objectExpressionInProperty.kt"); - } - - @Test - @TestMetadata("tryCatch.kt") - public void testTryCatch() { - runTest("native/native.tests/testData/codegen/localClass/tryCatch.kt"); - } - - @Test - @TestMetadata("virtualCallFromConstructor.kt") - public void testVirtualCallFromConstructor() { - runTest("native/native.tests/testData/codegen/localClass/virtualCallFromConstructor.kt"); - } - } - - @Nested - @TestMetadata("native/native.tests/testData/codegen/localEscapeAnalysis") - @TestDataPath("$PROJECT_ROOT") - @Tag("frontend-fir") - @FirPipeline() - @UseExtTestCaseGroupProvider() - public class LocalEscapeAnalysis { - @Test - public void testAllFilesPresentInLocalEscapeAnalysis() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/native.tests/testData/codegen/localEscapeAnalysis"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); - } - - @Test - @TestMetadata("arraysFieldWrite.kt") - public void testArraysFieldWrite() { - runTest("native/native.tests/testData/codegen/localEscapeAnalysis/arraysFieldWrite.kt"); - } - } - - @Nested - @TestMetadata("native/native.tests/testData/codegen/lower") - @TestDataPath("$PROJECT_ROOT") - @Tag("frontend-fir") - @FirPipeline() - @UseExtTestCaseGroupProvider() - public class Lower { - @Test - public void testAllFilesPresentInLower() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/native.tests/testData/codegen/lower"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); - } - - @Test - @TestMetadata("localDelegatedProperty.kt") - public void testLocalDelegatedProperty() { - runTest("native/native.tests/testData/codegen/lower/localDelegatedProperty.kt"); - } - } - @Nested @TestMetadata("native/native.tests/testData/codegen/mangling") @TestDataPath("$PROJECT_ROOT") @@ -4293,12 +1519,6 @@ public class FirNativeCodegenLocalTestGenerated extends AbstractNativeCodegenBox runTest("native/native.tests/testData/codegen/mangling/direct.kt"); } - @Test - @TestMetadata("multipleConstructors.kt") - public void testMultipleConstructors() { - runTest("native/native.tests/testData/codegen/mangling/multipleConstructors.kt"); - } - @Test @TestMetadata("param.kt") public void testParam() { @@ -4318,65 +1538,11 @@ public class FirNativeCodegenLocalTestGenerated extends AbstractNativeCodegenBox KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/native.tests/testData/codegen/object"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); } - @Test - @TestMetadata("constructor0.kt") - public void testConstructor0() { - runTest("native/native.tests/testData/codegen/object/constructor0.kt"); - } - - @Test - @TestMetadata("fields.kt") - public void testFields() { - runTest("native/native.tests/testData/codegen/object/fields.kt"); - } - - @Test - @TestMetadata("fields1.kt") - public void testFields1() { - runTest("native/native.tests/testData/codegen/object/fields1.kt"); - } - - @Test - @TestMetadata("fields2.kt") - public void testFields2() { - runTest("native/native.tests/testData/codegen/object/fields2.kt"); - } - @Test @TestMetadata("fields2_2.kt") public void testFields2_2() { runTest("native/native.tests/testData/codegen/object/fields2_2.kt"); } - - @Test - @TestMetadata("globalInitializer.kt") - public void testGlobalInitializer() { - runTest("native/native.tests/testData/codegen/object/globalInitializer.kt"); - } - - @Test - @TestMetadata("init0.kt") - public void testInit0() { - runTest("native/native.tests/testData/codegen/object/init0.kt"); - } - - @Test - @TestMetadata("initialization.kt") - public void testInitialization() { - runTest("native/native.tests/testData/codegen/object/initialization.kt"); - } - - @Test - @TestMetadata("initialization1.kt") - public void testInitialization1() { - runTest("native/native.tests/testData/codegen/object/initialization1.kt"); - } - - @Test - @TestMetadata("method_call.kt") - public void testMethod_call() { - runTest("native/native.tests/testData/codegen/object/method_call.kt"); - } } @Nested @@ -4428,98 +1594,6 @@ public class FirNativeCodegenLocalTestGenerated extends AbstractNativeCodegenBox } } - @Nested - @TestMetadata("native/native.tests/testData/codegen/objectExpression") - @TestDataPath("$PROJECT_ROOT") - @Tag("frontend-fir") - @FirPipeline() - @UseExtTestCaseGroupProvider() - public class ObjectExpression { - @Test - public void testAllFilesPresentInObjectExpression() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/native.tests/testData/codegen/objectExpression"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); - } - - @Test - @TestMetadata("expr1.kt") - public void testExpr1() { - runTest("native/native.tests/testData/codegen/objectExpression/expr1.kt"); - } - - @Test - @TestMetadata("expr2.kt") - public void testExpr2() { - runTest("native/native.tests/testData/codegen/objectExpression/expr2.kt"); - } - - @Test - @TestMetadata("expr3.kt") - public void testExpr3() { - runTest("native/native.tests/testData/codegen/objectExpression/expr3.kt"); - } - } - - @Nested - @TestMetadata("native/native.tests/testData/codegen/propertyCallableReference") - @TestDataPath("$PROJECT_ROOT") - @Tag("frontend-fir") - @FirPipeline() - @UseExtTestCaseGroupProvider() - public class PropertyCallableReference { - @Test - public void testAllFilesPresentInPropertyCallableReference() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/native.tests/testData/codegen/propertyCallableReference"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); - } - - @Test - @TestMetadata("dynamicReceiver.kt") - public void testDynamicReceiver() { - runTest("native/native.tests/testData/codegen/propertyCallableReference/dynamicReceiver.kt"); - } - - @Test - @TestMetadata("multipleModules.kt") - public void testMultipleModules() { - runTest("native/native.tests/testData/codegen/propertyCallableReference/multipleModules.kt"); - } - - @Test - @TestMetadata("valClass.kt") - public void testValClass() { - runTest("native/native.tests/testData/codegen/propertyCallableReference/valClass.kt"); - } - - @Test - @TestMetadata("valExtension.kt") - public void testValExtension() { - runTest("native/native.tests/testData/codegen/propertyCallableReference/valExtension.kt"); - } - - @Test - @TestMetadata("valModule.kt") - public void testValModule() { - runTest("native/native.tests/testData/codegen/propertyCallableReference/valModule.kt"); - } - - @Test - @TestMetadata("varClass.kt") - public void testVarClass() { - runTest("native/native.tests/testData/codegen/propertyCallableReference/varClass.kt"); - } - - @Test - @TestMetadata("varExtension.kt") - public void testVarExtension() { - runTest("native/native.tests/testData/codegen/propertyCallableReference/varExtension.kt"); - } - - @Test - @TestMetadata("varModule.kt") - public void testVarModule() { - runTest("native/native.tests/testData/codegen/propertyCallableReference/varModule.kt"); - } - } - @Nested @TestMetadata("native/native.tests/testData/codegen/reflection") @TestDataPath("$PROJECT_ROOT") @@ -4588,219 +1662,6 @@ public class FirNativeCodegenLocalTestGenerated extends AbstractNativeCodegenBox } } - @Nested - @TestMetadata("native/native.tests/testData/codegen/serialization") - @TestDataPath("$PROJECT_ROOT") - @Tag("frontend-fir") - @FirPipeline() - @UseExtTestCaseGroupProvider() - public class Serialization { - @Test - public void testAllFilesPresentInSerialization() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/native.tests/testData/codegen/serialization"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); - } - - @Test - @TestMetadata("deserializedMembers.kt") - public void testDeserializedMembers() { - runTest("native/native.tests/testData/codegen/serialization/deserializedMembers.kt"); - } - - @Test - @TestMetadata("serializedCatch.kt") - public void testSerializedCatch() { - runTest("native/native.tests/testData/codegen/serialization/serializedCatch.kt"); - } - - @Test - @TestMetadata("serializedCharConstant.kt") - public void testSerializedCharConstant() { - runTest("native/native.tests/testData/codegen/serialization/serializedCharConstant.kt"); - } - - @Test - @TestMetadata("serializedDefaultArgs.kt") - public void testSerializedDefaultArgs() { - runTest("native/native.tests/testData/codegen/serialization/serializedDefaultArgs.kt"); - } - - @Test - @TestMetadata("serializedDoWhile.kt") - public void testSerializedDoWhile() { - runTest("native/native.tests/testData/codegen/serialization/serializedDoWhile.kt"); - } - - @Test - @TestMetadata("serializedEnumOrdinal.kt") - public void testSerializedEnumOrdinal() { - runTest("native/native.tests/testData/codegen/serialization/serializedEnumOrdinal.kt"); - } - - @Test - @TestMetadata("serializedVararg.kt") - public void testSerializedVararg() { - runTest("native/native.tests/testData/codegen/serialization/serializedVararg.kt"); - } - } - - @Nested - @TestMetadata("native/native.tests/testData/codegen/stringTrim") - @TestDataPath("$PROJECT_ROOT") - @Tag("frontend-fir") - @FirPipeline() - @UseExtTestCaseGroupProvider() - public class StringTrim { - @Test - public void testAllFilesPresentInStringTrim() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/native.tests/testData/codegen/stringTrim"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); - } - - @Test - @TestMetadata("stringTrim.kt") - public void testStringTrim() { - runTest("native/native.tests/testData/codegen/stringTrim/stringTrim.kt"); - } - } - - @Nested - @TestMetadata("native/native.tests/testData/codegen/try") - @TestDataPath("$PROJECT_ROOT") - @Tag("frontend-fir") - @FirPipeline() - @UseExtTestCaseGroupProvider() - public class Try { - @Test - public void testAllFilesPresentInTry() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/native.tests/testData/codegen/try"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); - } - - @Test - @TestMetadata("catch3.kt") - public void testCatch3() { - runTest("native/native.tests/testData/codegen/try/catch3.kt"); - } - - @Test - @TestMetadata("catch4.kt") - public void testCatch4() { - runTest("native/native.tests/testData/codegen/try/catch4.kt"); - } - - @Test - @TestMetadata("catch5.kt") - public void testCatch5() { - runTest("native/native.tests/testData/codegen/try/catch5.kt"); - } - - @Test - @TestMetadata("catch6.kt") - public void testCatch6() { - runTest("native/native.tests/testData/codegen/try/catch6.kt"); - } - - @Test - @TestMetadata("catch8.kt") - public void testCatch8() { - runTest("native/native.tests/testData/codegen/try/catch8.kt"); - } - - @Test - @TestMetadata("finally1.kt") - public void testFinally1() { - runTest("native/native.tests/testData/codegen/try/finally1.kt"); - } - - @Test - @TestMetadata("finally10.kt") - public void testFinally10() { - runTest("native/native.tests/testData/codegen/try/finally10.kt"); - } - - @Test - @TestMetadata("finally11.kt") - public void testFinally11() { - runTest("native/native.tests/testData/codegen/try/finally11.kt"); - } - - @Test - @TestMetadata("finally2.kt") - public void testFinally2() { - runTest("native/native.tests/testData/codegen/try/finally2.kt"); - } - - @Test - @TestMetadata("finally3.kt") - public void testFinally3() { - runTest("native/native.tests/testData/codegen/try/finally3.kt"); - } - - @Test - @TestMetadata("finally4.kt") - public void testFinally4() { - runTest("native/native.tests/testData/codegen/try/finally4.kt"); - } - - @Test - @TestMetadata("finally5.kt") - public void testFinally5() { - runTest("native/native.tests/testData/codegen/try/finally5.kt"); - } - - @Test - @TestMetadata("finally6.kt") - public void testFinally6() { - runTest("native/native.tests/testData/codegen/try/finally6.kt"); - } - - @Test - @TestMetadata("finally7.kt") - public void testFinally7() { - runTest("native/native.tests/testData/codegen/try/finally7.kt"); - } - - @Test - @TestMetadata("finally8.kt") - public void testFinally8() { - runTest("native/native.tests/testData/codegen/try/finally8.kt"); - } - - @Test - @TestMetadata("finally9.kt") - public void testFinally9() { - runTest("native/native.tests/testData/codegen/try/finally9.kt"); - } - - @Test - @TestMetadata("returnsDifferentTypes.kt") - public void testReturnsDifferentTypes() { - runTest("native/native.tests/testData/codegen/try/returnsDifferentTypes.kt"); - } - - @Test - @TestMetadata("try1.kt") - public void testTry1() { - runTest("native/native.tests/testData/codegen/try/try1.kt"); - } - - @Test - @TestMetadata("try2.kt") - public void testTry2() { - runTest("native/native.tests/testData/codegen/try/try2.kt"); - } - - @Test - @TestMetadata("try3.kt") - public void testTry3() { - runTest("native/native.tests/testData/codegen/try/try3.kt"); - } - - @Test - @TestMetadata("try4.kt") - public void testTry4() { - runTest("native/native.tests/testData/codegen/try/try4.kt"); - } - } - @Nested @TestMetadata("native/native.tests/testData/codegen/vector") @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 e37186fef39..088f191b601 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 @@ -46,6 +46,12 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/annotations/annotationWithDefaultArgInDifferentModule.kt"); } + @Test + @TestMetadata("annotations0.kt") + public void testAnnotations0() { + runTest("compiler/testData/codegen/box/annotations/annotations0.kt"); + } + @Test @TestMetadata("genericAnnotations.kt") public void testGenericAnnotations() { @@ -335,6 +341,83 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest } } + @Nested + @TestMetadata("compiler/testData/codegen/box/arithmetic") + @TestDataPath("$PROJECT_ROOT") + @UseExtTestCaseGroupProvider() + public class Arithmetic { + @Test + public void testAllFilesPresentInArithmetic() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/arithmetic"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("basic_charConversions.kt") + public void testBasic_charConversions() { + runTest("compiler/testData/codegen/box/arithmetic/basic_charConversions.kt"); + } + + @Test + @TestMetadata("basic_charCornerCases.kt") + public void testBasic_charCornerCases() { + runTest("compiler/testData/codegen/box/arithmetic/basic_charCornerCases.kt"); + } + + @Test + @TestMetadata("basic_compareIntToFloat.kt") + public void testBasic_compareIntToFloat() { + runTest("compiler/testData/codegen/box/arithmetic/basic_compareIntToFloat.kt"); + } + + @Test + @TestMetadata("basic_doubleBasic.kt") + public void testBasic_doubleBasic() { + runTest("compiler/testData/codegen/box/arithmetic/basic_doubleBasic.kt"); + } + + @Test + @TestMetadata("basic_integralToFloat.kt") + public void testBasic_integralToFloat() { + runTest("compiler/testData/codegen/box/arithmetic/basic_integralToFloat.kt"); + } + + @Test + @TestMetadata("basic_kt37412.kt") + public void testBasic_kt37412() { + runTest("compiler/testData/codegen/box/arithmetic/basic_kt37412.kt"); + } + + @Test + @TestMetadata("basic_selfComparison.kt") + public void testBasic_selfComparison() { + runTest("compiler/testData/codegen/box/arithmetic/basic_selfComparison.kt"); + } + + @Test + @TestMetadata("basic_shifts.kt") + public void testBasic_shifts() { + runTest("compiler/testData/codegen/box/arithmetic/basic_shifts.kt"); + } + + @Test + @TestMetadata("basic_uintTests.kt") + public void testBasic_uintTests() { + runTest("compiler/testData/codegen/box/arithmetic/basic_uintTests.kt"); + } + + @Test + @TestMetadata("division.kt") + public void testDivision() { + runTest("compiler/testData/codegen/box/arithmetic/division.kt"); + } + + @Test + @TestMetadata("github1856.kt") + public void testGithub1856() { + runTest("compiler/testData/codegen/box/arithmetic/github1856.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/arrays") @TestDataPath("$PROJECT_ROOT") @@ -998,6 +1081,304 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest } } + @Nested + @TestMetadata("compiler/testData/codegen/box/basics") + @TestDataPath("$PROJECT_ROOT") + @UseExtTestCaseGroupProvider() + public class Basics { + @Test + public void testAllFilesPresentInBasics() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/basics"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("array_to_any.kt") + public void testArray_to_any() { + runTest("compiler/testData/codegen/box/basics/array_to_any.kt"); + } + + @Test + @TestMetadata("canonical_name.kt") + public void testCanonical_name() { + runTest("compiler/testData/codegen/box/basics/canonical_name.kt"); + } + + @Test + @TestMetadata("cast_null.kt") + public void testCast_null() { + runTest("compiler/testData/codegen/box/basics/cast_null.kt"); + } + + @Test + @TestMetadata("cast_simple.kt") + public void testCast_simple() { + runTest("compiler/testData/codegen/box/basics/cast_simple.kt"); + } + + @Test + @TestMetadata("check_type.kt") + public void testCheck_type() { + runTest("compiler/testData/codegen/box/basics/check_type.kt"); + } + + @Test + @TestMetadata("companion.kt") + public void testCompanion() { + runTest("compiler/testData/codegen/box/basics/companion.kt"); + } + + @Test + @TestMetadata("concatenation.kt") + public void testConcatenation() { + runTest("compiler/testData/codegen/box/basics/concatenation.kt"); + } + + @Test + @TestMetadata("const_infinity.kt") + public void testConst_infinity() { + runTest("compiler/testData/codegen/box/basics/const_infinity.kt"); + } + + @Test + @TestMetadata("expression_as_statement.kt") + public void testExpression_as_statement() { + runTest("compiler/testData/codegen/box/basics/expression_as_statement.kt"); + } + + @Test + @TestMetadata("k42000_1.kt") + public void testK42000_1() { + runTest("compiler/testData/codegen/box/basics/k42000_1.kt"); + } + + @Test + @TestMetadata("k42000_2.kt") + public void testK42000_2() { + runTest("compiler/testData/codegen/box/basics/k42000_2.kt"); + } + + @Test + @TestMetadata("local_variable.kt") + public void testLocal_variable() { + runTest("compiler/testData/codegen/box/basics/local_variable.kt"); + } + + @Test + @TestMetadata("null_check.kt") + public void testNull_check() { + runTest("compiler/testData/codegen/box/basics/null_check.kt"); + } + + @Test + @TestMetadata("safe_cast.kt") + public void testSafe_cast() { + runTest("compiler/testData/codegen/box/basics/safe_cast.kt"); + } + + @Test + @TestMetadata("spread_operator_0.kt") + public void testSpread_operator_0() { + runTest("compiler/testData/codegen/box/basics/spread_operator_0.kt"); + } + + @Test + @TestMetadata("statements0.kt") + public void testStatements0() { + runTest("compiler/testData/codegen/box/basics/statements0.kt"); + } + + @Test + @TestMetadata("superFunCall.kt") + public void testSuperFunCall() { + runTest("compiler/testData/codegen/box/basics/superFunCall.kt"); + } + + @Test + @TestMetadata("superGetterCall.kt") + public void testSuperGetterCall() { + runTest("compiler/testData/codegen/box/basics/superGetterCall.kt"); + } + + @Test + @TestMetadata("superSetterCall.kt") + public void testSuperSetterCall() { + runTest("compiler/testData/codegen/box/basics/superSetterCall.kt"); + } + + @Test + @TestMetadata("typealias1.kt") + public void testTypealias1() { + runTest("compiler/testData/codegen/box/basics/typealias1.kt"); + } + + @Test + @TestMetadata("unchecked_cast1.kt") + public void testUnchecked_cast1() { + runTest("compiler/testData/codegen/box/basics/unchecked_cast1.kt"); + } + + @Test + @TestMetadata("unchecked_cast2.kt") + public void testUnchecked_cast2() { + runTest("compiler/testData/codegen/box/basics/unchecked_cast2.kt"); + } + + @Test + @TestMetadata("unchecked_cast3.kt") + public void testUnchecked_cast3() { + runTest("compiler/testData/codegen/box/basics/unchecked_cast3.kt"); + } + + @Test + @TestMetadata("unchecked_cast4.kt") + public void testUnchecked_cast4() { + runTest("compiler/testData/codegen/box/basics/unchecked_cast4.kt"); + } + + @Test + @TestMetadata("unit1.kt") + public void testUnit1() { + runTest("compiler/testData/codegen/box/basics/unit1.kt"); + } + + @Test + @TestMetadata("unit2.kt") + public void testUnit2() { + runTest("compiler/testData/codegen/box/basics/unit2.kt"); + } + + @Test + @TestMetadata("unit3.kt") + public void testUnit3() { + runTest("compiler/testData/codegen/box/basics/unit3.kt"); + } + + @Test + @TestMetadata("unit4.kt") + public void testUnit4() { + runTest("compiler/testData/codegen/box/basics/unit4.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/bce") + @TestDataPath("$PROJECT_ROOT") + @UseExtTestCaseGroupProvider() + public class Bce { + @Test + public void testAllFilesPresentInBce() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/bce"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("bceCases.kt") + public void testBceCases() { + runTest("compiler/testData/codegen/box/bce/bceCases.kt"); + } + + @Test + @TestMetadata("customGetter.kt") + public void testCustomGetter() { + runTest("compiler/testData/codegen/box/bce/customGetter.kt"); + } + + @Test + @TestMetadata("delegatedProperty.kt") + public void testDelegatedProperty() { + runTest("compiler/testData/codegen/box/bce/delegatedProperty.kt"); + } + + @Test + @TestMetadata("differentArrays.kt") + public void testDifferentArrays() { + runTest("compiler/testData/codegen/box/bce/differentArrays.kt"); + } + + @Test + @TestMetadata("differentObjects.kt") + public void testDifferentObjects() { + runTest("compiler/testData/codegen/box/bce/differentObjects.kt"); + } + + @Test + @TestMetadata("forDownToSize.kt") + public void testForDownToSize() { + runTest("compiler/testData/codegen/box/bce/forDownToSize.kt"); + } + + @Test + @TestMetadata("forDownToWithStep.kt") + public void testForDownToWithStep() { + runTest("compiler/testData/codegen/box/bce/forDownToWithStep.kt"); + } + + @Test + @TestMetadata("forEachIndexedTest.kt") + public void testForEachIndexedTest() { + runTest("compiler/testData/codegen/box/bce/forEachIndexedTest.kt"); + } + + @Test + @TestMetadata("forEachIndicies.kt") + public void testForEachIndicies() { + runTest("compiler/testData/codegen/box/bce/forEachIndicies.kt"); + } + + @Test + @TestMetadata("forIndiciesWithStep.kt") + public void testForIndiciesWithStep() { + runTest("compiler/testData/codegen/box/bce/forIndiciesWithStep.kt"); + } + + @Test + @TestMetadata("forRangeToSize.kt") + public void testForRangeToSize() { + runTest("compiler/testData/codegen/box/bce/forRangeToSize.kt"); + } + + @Test + @TestMetadata("forRangeToWithStep.kt") + public void testForRangeToWithStep() { + runTest("compiler/testData/codegen/box/bce/forRangeToWithStep.kt"); + } + + @Test + @TestMetadata("forReversed.kt") + public void testForReversed() { + runTest("compiler/testData/codegen/box/bce/forReversed.kt"); + } + + @Test + @TestMetadata("forUntilSize.kt") + public void testForUntilSize() { + runTest("compiler/testData/codegen/box/bce/forUntilSize.kt"); + } + + @Test + @TestMetadata("forUntilWithStep.kt") + public void testForUntilWithStep() { + runTest("compiler/testData/codegen/box/bce/forUntilWithStep.kt"); + } + + @Test + @TestMetadata("forWithIndex.kt") + public void testForWithIndex() { + runTest("compiler/testData/codegen/box/bce/forWithIndex.kt"); + } + + @Test + @TestMetadata("inheritance.kt") + public void testInheritance() { + runTest("compiler/testData/codegen/box/bce/inheritance.kt"); + } + + @Test + @TestMetadata("withGetter.kt") + public void testWithGetter() { + runTest("compiler/testData/codegen/box/bce/withGetter.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/binaryOp") @TestDataPath("$PROJECT_ROOT") @@ -1165,6 +1546,125 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest } } + @Nested + @TestMetadata("compiler/testData/codegen/box/boxing") + @TestDataPath("$PROJECT_ROOT") + @UseExtTestCaseGroupProvider() + public class Boxing { + @Test + public void testAllFilesPresentInBoxing() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/boxing"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("box_cache0.kt") + public void testBox_cache0() { + runTest("compiler/testData/codegen/box/boxing/box_cache0.kt"); + } + + @Test + @TestMetadata("boxing0.kt") + public void testBoxing0() { + runTest("compiler/testData/codegen/box/boxing/boxing0.kt"); + } + + @Test + @TestMetadata("boxing1.kt") + public void testBoxing1() { + runTest("compiler/testData/codegen/box/boxing/boxing1.kt"); + } + + @Test + @TestMetadata("boxing10.kt") + public void testBoxing10() { + runTest("compiler/testData/codegen/box/boxing/boxing10.kt"); + } + + @Test + @TestMetadata("boxing11.kt") + public void testBoxing11() { + runTest("compiler/testData/codegen/box/boxing/boxing11.kt"); + } + + @Test + @TestMetadata("boxing12.kt") + public void testBoxing12() { + runTest("compiler/testData/codegen/box/boxing/boxing12.kt"); + } + + @Test + @TestMetadata("boxing13.kt") + public void testBoxing13() { + runTest("compiler/testData/codegen/box/boxing/boxing13.kt"); + } + + @Test + @TestMetadata("boxing14.kt") + public void testBoxing14() { + runTest("compiler/testData/codegen/box/boxing/boxing14.kt"); + } + + @Test + @TestMetadata("boxing15.kt") + public void testBoxing15() { + runTest("compiler/testData/codegen/box/boxing/boxing15.kt"); + } + + @Test + @TestMetadata("boxing2.kt") + public void testBoxing2() { + runTest("compiler/testData/codegen/box/boxing/boxing2.kt"); + } + + @Test + @TestMetadata("boxing3.kt") + public void testBoxing3() { + runTest("compiler/testData/codegen/box/boxing/boxing3.kt"); + } + + @Test + @TestMetadata("boxing4.kt") + public void testBoxing4() { + runTest("compiler/testData/codegen/box/boxing/boxing4.kt"); + } + + @Test + @TestMetadata("boxing5.kt") + public void testBoxing5() { + runTest("compiler/testData/codegen/box/boxing/boxing5.kt"); + } + + @Test + @TestMetadata("boxing6.kt") + public void testBoxing6() { + runTest("compiler/testData/codegen/box/boxing/boxing6.kt"); + } + + @Test + @TestMetadata("boxing7.kt") + public void testBoxing7() { + runTest("compiler/testData/codegen/box/boxing/boxing7.kt"); + } + + @Test + @TestMetadata("boxing8.kt") + public void testBoxing8() { + runTest("compiler/testData/codegen/box/boxing/boxing8.kt"); + } + + @Test + @TestMetadata("boxing9.kt") + public void testBoxing9() { + runTest("compiler/testData/codegen/box/boxing/boxing9.kt"); + } + + @Test + @TestMetadata("kt53100_casts.kt") + public void testKt53100_casts() { + runTest("compiler/testData/codegen/box/boxing/kt53100_casts.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/boxingOptimization") @TestDataPath("$PROJECT_ROOT") @@ -1410,6 +1910,89 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest } } + @Nested + @TestMetadata("compiler/testData/codegen/box/branching") + @TestDataPath("$PROJECT_ROOT") + @UseExtTestCaseGroupProvider() + public class Branching { + @Test + @TestMetadata("advanced_when2.kt") + public void testAdvanced_when2() { + runTest("compiler/testData/codegen/box/branching/advanced_when2.kt"); + } + + @Test + @TestMetadata("advanced_when5.kt") + public void testAdvanced_when5() { + runTest("compiler/testData/codegen/box/branching/advanced_when5.kt"); + } + + @Test + public void testAllFilesPresentInBranching() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/branching"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("if_else.kt") + public void testIf_else() { + runTest("compiler/testData/codegen/box/branching/if_else.kt"); + } + + @Test + @TestMetadata("when2.kt") + public void testWhen2() { + runTest("compiler/testData/codegen/box/branching/when2.kt"); + } + + @Test + @TestMetadata("when4.kt") + public void testWhen4() { + runTest("compiler/testData/codegen/box/branching/when4.kt"); + } + + @Test + @TestMetadata("when5.kt") + public void testWhen5() { + runTest("compiler/testData/codegen/box/branching/when5.kt"); + } + + @Test + @TestMetadata("when6.kt") + public void testWhen6() { + runTest("compiler/testData/codegen/box/branching/when6.kt"); + } + + @Test + @TestMetadata("when7.kt") + public void testWhen7() { + runTest("compiler/testData/codegen/box/branching/when7.kt"); + } + + @Test + @TestMetadata("when8.kt") + public void testWhen8() { + runTest("compiler/testData/codegen/box/branching/when8.kt"); + } + + @Test + @TestMetadata("when9.kt") + public void testWhen9() { + runTest("compiler/testData/codegen/box/branching/when9.kt"); + } + + @Test + @TestMetadata("when_through.kt") + public void testWhen_through() { + runTest("compiler/testData/codegen/box/branching/when_through.kt"); + } + + @Test + @TestMetadata("when_with_try1.kt") + public void testWhen_with_try1() { + runTest("compiler/testData/codegen/box/branching/when_with_try1.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/bridges") @TestDataPath("$PROJECT_ROOT") @@ -1648,6 +2231,18 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/bridges/methodWithDefaultParameter.kt"); } + @Test + @TestMetadata("multipleModules1.kt") + public void testMultipleModules1() { + runTest("compiler/testData/codegen/box/bridges/multipleModules1.kt"); + } + + @Test + @TestMetadata("multipleModules2.kt") + public void testMultipleModules2() { + runTest("compiler/testData/codegen/box/bridges/multipleModules2.kt"); + } + @Test @TestMetadata("nestedClassTypeParameters.kt") public void testNestedClassTypeParameters() { @@ -1708,6 +2303,12 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/bridges/propertySetter.kt"); } + @Test + @TestMetadata("returnTypeSignature.kt") + public void testReturnTypeSignature() { + runTest("compiler/testData/codegen/box/bridges/returnTypeSignature.kt"); + } + @Test @TestMetadata("simple.kt") public void testSimple() { @@ -1750,12 +2351,138 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/bridges/simpleUpperBound.kt"); } + @Test + @TestMetadata("special.kt") + public void testSpecial() { + runTest("compiler/testData/codegen/box/bridges/special.kt"); + } + + @Test + @TestMetadata("specialGeneric.kt") + public void testSpecialGeneric() { + runTest("compiler/testData/codegen/box/bridges/specialGeneric.kt"); + } + @Test @TestMetadata("strListContains.kt") public void testStrListContains() { runTest("compiler/testData/codegen/box/bridges/strListContains.kt"); } + @Test + @TestMetadata("test0.kt") + public void testTest0() { + runTest("compiler/testData/codegen/box/bridges/test0.kt"); + } + + @Test + @TestMetadata("test1.kt") + public void testTest1() { + runTest("compiler/testData/codegen/box/bridges/test1.kt"); + } + + @Test + @TestMetadata("test10.kt") + public void testTest10() { + runTest("compiler/testData/codegen/box/bridges/test10.kt"); + } + + @Test + @TestMetadata("test11.kt") + public void testTest11() { + runTest("compiler/testData/codegen/box/bridges/test11.kt"); + } + + @Test + @TestMetadata("test12.kt") + public void testTest12() { + runTest("compiler/testData/codegen/box/bridges/test12.kt"); + } + + @Test + @TestMetadata("test13.kt") + public void testTest13() { + runTest("compiler/testData/codegen/box/bridges/test13.kt"); + } + + @Test + @TestMetadata("test14.kt") + public void testTest14() { + runTest("compiler/testData/codegen/box/bridges/test14.kt"); + } + + @Test + @TestMetadata("test15.kt") + public void testTest15() { + runTest("compiler/testData/codegen/box/bridges/test15.kt"); + } + + @Test + @TestMetadata("test16.kt") + public void testTest16() { + runTest("compiler/testData/codegen/box/bridges/test16.kt"); + } + + @Test + @TestMetadata("test17.kt") + public void testTest17() { + runTest("compiler/testData/codegen/box/bridges/test17.kt"); + } + + @Test + @TestMetadata("test18.kt") + public void testTest18() { + runTest("compiler/testData/codegen/box/bridges/test18.kt"); + } + + @Test + @TestMetadata("test2.kt") + public void testTest2() { + runTest("compiler/testData/codegen/box/bridges/test2.kt"); + } + + @Test + @TestMetadata("test3.kt") + public void testTest3() { + runTest("compiler/testData/codegen/box/bridges/test3.kt"); + } + + @Test + @TestMetadata("test4.kt") + public void testTest4() { + runTest("compiler/testData/codegen/box/bridges/test4.kt"); + } + + @Test + @TestMetadata("test5.kt") + public void testTest5() { + runTest("compiler/testData/codegen/box/bridges/test5.kt"); + } + + @Test + @TestMetadata("test6.kt") + public void testTest6() { + runTest("compiler/testData/codegen/box/bridges/test6.kt"); + } + + @Test + @TestMetadata("test7.kt") + public void testTest7() { + runTest("compiler/testData/codegen/box/bridges/test7.kt"); + } + + @Test + @TestMetadata("test8.kt") + public void testTest8() { + runTest("compiler/testData/codegen/box/bridges/test8.kt"); + } + + @Test + @TestMetadata("test9.kt") + public void testTest9() { + runTest("compiler/testData/codegen/box/bridges/test9.kt"); + } + @Test @TestMetadata("traitImplInheritsTraitImpl.kt") public void testTraitImplInheritsTraitImpl() { @@ -4688,6 +5415,47 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest } } + @Nested + @TestMetadata("compiler/testData/codegen/box/classDelegation") + @TestDataPath("$PROJECT_ROOT") + @UseExtTestCaseGroupProvider() + public class ClassDelegation { + @Test + public void testAllFilesPresentInClassDelegation() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/classDelegation"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("generic.kt") + public void testGeneric() { + runTest("compiler/testData/codegen/box/classDelegation/generic.kt"); + } + + @Test + @TestMetadata("method.kt") + public void testMethod() { + runTest("compiler/testData/codegen/box/classDelegation/method.kt"); + } + + @Test + @TestMetadata("multipleModules.kt") + public void testMultipleModules() { + runTest("compiler/testData/codegen/box/classDelegation/multipleModules.kt"); + } + + @Test + @TestMetadata("property.kt") + public void testProperty() { + runTest("compiler/testData/codegen/box/classDelegation/property.kt"); + } + + @Test + @TestMetadata("withBridge.kt") + public void testWithBridge() { + runTest("compiler/testData/codegen/box/classDelegation/withBridge.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/classLiteral") @TestDataPath("$PROJECT_ROOT") @@ -7021,6 +7789,12 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/contracts/constructorArgument.kt"); } + @Test + @TestMetadata("contractForCast.kt") + public void testContractForCast() { + runTest("compiler/testData/codegen/box/contracts/contractForCast.kt"); + } + @Test @TestMetadata("destructuredVariable.kt") public void testDestructuredVariable() { @@ -7063,6 +7837,12 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/contracts/functionParameter.kt"); } + @Test + @TestMetadata("isNullString.kt") + public void testIsNullString() { + runTest("compiler/testData/codegen/box/contracts/isNullString.kt"); + } + @Test @TestMetadata("kt39374.kt") public void testKt39374() { @@ -7105,6 +7885,24 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/contracts/nestedLambdaInNonInlineCallExactlyOnce.kt"); } + @Test + @TestMetadata("nonNullSmartCast.kt") + public void testNonNullSmartCast() { + runTest("compiler/testData/codegen/box/contracts/nonNullSmartCast.kt"); + } + + @Test + @TestMetadata("require.kt") + public void testRequire() { + runTest("compiler/testData/codegen/box/contracts/require.kt"); + } + + @Test + @TestMetadata("runLambdaForVal.kt") + public void testRunLambdaForVal() { + runTest("compiler/testData/codegen/box/contracts/runLambdaForVal.kt"); + } + @Test @TestMetadata("valInWhen.kt") public void testValInWhen() { @@ -8498,6 +9296,125 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest } } + @Nested + @TestMetadata("compiler/testData/codegen/box/controlflow") + @TestDataPath("$PROJECT_ROOT") + @UseExtTestCaseGroupProvider() + public class Controlflow { + @Test + public void testAllFilesPresentInControlflow() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/controlflow"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("break.kt") + public void testBreak() { + runTest("compiler/testData/codegen/box/controlflow/break.kt"); + } + + @Test + @TestMetadata("break1.kt") + public void testBreak1() { + runTest("compiler/testData/codegen/box/controlflow/break1.kt"); + } + + @Test + @TestMetadata("for_loops.kt") + public void testFor_loops() { + runTest("compiler/testData/codegen/box/controlflow/for_loops.kt"); + } + + @Test + @TestMetadata("for_loops_array_break_continue.kt") + public void testFor_loops_array_break_continue() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_array_break_continue.kt"); + } + + @Test + @TestMetadata("for_loops_array_indices.kt") + public void testFor_loops_array_indices() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_array_indices.kt"); + } + + @Test + @TestMetadata("for_loops_array_mutation.kt") + public void testFor_loops_array_mutation() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_array_mutation.kt"); + } + + @Test + @TestMetadata("for_loops_array_nested.kt") + public void testFor_loops_array_nested() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_array_nested.kt"); + } + + @Test + @TestMetadata("for_loops_array_nullable.kt") + public void testFor_loops_array_nullable() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_array_nullable.kt"); + } + + @Test + @TestMetadata("for_loops_array_side_effects.kt") + public void testFor_loops_array_side_effects() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_array_side_effects.kt"); + } + + @Test + @TestMetadata("for_loops_call_order.kt") + public void testFor_loops_call_order() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_call_order.kt"); + } + + @Test + @TestMetadata("for_loops_coroutines.kt") + public void testFor_loops_coroutines() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_coroutines.kt"); + } + + @Test + @TestMetadata("for_loops_empty_range.kt") + public void testFor_loops_empty_range() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_empty_range.kt"); + } + + @Test + @TestMetadata("for_loops_errors.kt") + public void testFor_loops_errors() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_errors.kt"); + } + + @Test + @TestMetadata("for_loops_let_with_nullable.kt") + public void testFor_loops_let_with_nullable() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_let_with_nullable.kt"); + } + + @Test + @TestMetadata("for_loops_nested.kt") + public void testFor_loops_nested() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_nested.kt"); + } + + @Test + @TestMetadata("for_loops_overflow.kt") + public void testFor_loops_overflow() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_overflow.kt"); + } + + @Test + @TestMetadata("for_loops_types.kt") + public void testFor_loops_types() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_types.kt"); + } + + @Test + @TestMetadata("unreachable1.kt") + public void testUnreachable1() { + runTest("compiler/testData/codegen/box/controlflow/unreachable1.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/coroutines") @TestDataPath("$PROJECT_ROOT") @@ -8520,6 +9437,12 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); } + @Test + @TestMetadata("anonymousObject.kt") + public void testAnonymousObject() { + runTest("compiler/testData/codegen/box/coroutines/anonymousObject.kt"); + } + @Test @TestMetadata("asyncIteratorNullMerge_1_3.kt") public void testAsyncIteratorNullMerge_1_3() { @@ -8604,18 +9527,156 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/coroutines/coercionToUnit.kt"); } + @Test + @TestMetadata("controlFlow_chain.kt") + public void testControlFlow_chain() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_chain.kt"); + } + + @Test + @TestMetadata("controlFlow_finally1.kt") + public void testControlFlow_finally1() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally1.kt"); + } + + @Test + @TestMetadata("controlFlow_finally2.kt") + public void testControlFlow_finally2() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally2.kt"); + } + + @Test + @TestMetadata("controlFlow_finally3.kt") + public void testControlFlow_finally3() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally3.kt"); + } + + @Test + @TestMetadata("controlFlow_finally4.kt") + public void testControlFlow_finally4() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally4.kt"); + } + + @Test + @TestMetadata("controlFlow_finally5.kt") + public void testControlFlow_finally5() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally5.kt"); + } + + @Test + @TestMetadata("controlFlow_finally6.kt") + public void testControlFlow_finally6() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally6.kt"); + } + + @Test + @TestMetadata("controlFlow_finally7.kt") + public void testControlFlow_finally7() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally7.kt"); + } + + @Test + @TestMetadata("controlFlow_if1.kt") + public void testControlFlow_if1() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_if1.kt"); + } + + @Test + @TestMetadata("controlFlow_if2.kt") + public void testControlFlow_if2() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_if2.kt"); + } + + @Test + @TestMetadata("controlFlow_inline1.kt") + public void testControlFlow_inline1() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_inline1.kt"); + } + + @Test + @TestMetadata("controlFlow_inline2.kt") + public void testControlFlow_inline2() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_inline2.kt"); + } + + @Test + @TestMetadata("controlFlow_inline3.kt") + public void testControlFlow_inline3() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_inline3.kt"); + } + + @Test + @TestMetadata("controlFlow_tryCatch1.kt") + public void testControlFlow_tryCatch1() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_tryCatch1.kt"); + } + + @Test + @TestMetadata("controlFlow_tryCatch2.kt") + public void testControlFlow_tryCatch2() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_tryCatch2.kt"); + } + + @Test + @TestMetadata("controlFlow_tryCatch3.kt") + public void testControlFlow_tryCatch3() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_tryCatch3.kt"); + } + + @Test + @TestMetadata("controlFlow_tryCatch4.kt") + public void testControlFlow_tryCatch4() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_tryCatch4.kt"); + } + + @Test + @TestMetadata("controlFlow_tryCatch5.kt") + public void testControlFlow_tryCatch5() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_tryCatch5.kt"); + } + + @Test + @TestMetadata("controlFlow_while1.kt") + public void testControlFlow_while1() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_while1.kt"); + } + + @Test + @TestMetadata("controlFlow_while2.kt") + public void testControlFlow_while2() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_while2.kt"); + } + @Test @TestMetadata("controllerAccessFromInnerLambda.kt") public void testControllerAccessFromInnerLambda() { runTest("compiler/testData/codegen/box/coroutines/controllerAccessFromInnerLambda.kt"); } + @Test + @TestMetadata("coroutineContext1.kt") + public void testCoroutineContext1() { + runTest("compiler/testData/codegen/box/coroutines/coroutineContext1.kt"); + } + + @Test + @TestMetadata("coroutineContext2.kt") + public void testCoroutineContext2() { + runTest("compiler/testData/codegen/box/coroutines/coroutineContext2.kt"); + } + @Test @TestMetadata("coroutineContextInInlinedLambda.kt") public void testCoroutineContextInInlinedLambda() { runTest("compiler/testData/codegen/box/coroutines/coroutineContextInInlinedLambda.kt"); } + @Test + @TestMetadata("correctOrder1.kt") + public void testCorrectOrder1() { + runTest("compiler/testData/codegen/box/coroutines/correctOrder1.kt"); + } + @Test @TestMetadata("createCoroutineSafe.kt") public void testCreateCoroutineSafe() { @@ -8646,6 +9707,18 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/coroutines/defaultParametersInSuspend.kt"); } + @Test + @TestMetadata("degenerate1.kt") + public void testDegenerate1() { + runTest("compiler/testData/codegen/box/coroutines/degenerate1.kt"); + } + + @Test + @TestMetadata("degenerate2.kt") + public void testDegenerate2() { + runTest("compiler/testData/codegen/box/coroutines/degenerate2.kt"); + } + @Test @TestMetadata("delegatedSuspendMember.kt") public void testDelegatedSuspendMember() { @@ -8694,6 +9767,30 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/coroutines/falseUnitCoercion.kt"); } + @Test + @TestMetadata("functionReference_eqeq_name.kt") + public void testFunctionReference_eqeq_name() { + runTest("compiler/testData/codegen/box/coroutines/functionReference_eqeq_name.kt"); + } + + @Test + @TestMetadata("functionReference_invokeAsFunction.kt") + public void testFunctionReference_invokeAsFunction() { + runTest("compiler/testData/codegen/box/coroutines/functionReference_invokeAsFunction.kt"); + } + + @Test + @TestMetadata("functionReference_lambdaAsSuspendLambda.kt") + public void testFunctionReference_lambdaAsSuspendLambda() { + runTest("compiler/testData/codegen/box/coroutines/functionReference_lambdaAsSuspendLambda.kt"); + } + + @Test + @TestMetadata("functionReference_simple.kt") + public void testFunctionReference_simple() { + runTest("compiler/testData/codegen/box/coroutines/functionReference_simple.kt"); + } + @Test @TestMetadata("generate.kt") public void testGenerate() { @@ -8868,6 +9965,12 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/coroutines/kt35967.kt"); } + @Test + @TestMetadata("kt41394.kt") + public void testKt41394() { + runTest("compiler/testData/codegen/box/coroutines/kt41394.kt"); + } + @Test @TestMetadata("kt42028.kt") public void testKt42028() { @@ -9096,12 +10199,30 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/coroutines/returnByLabel.kt"); } + @Test + @TestMetadata("returnsNothing1.kt") + public void testReturnsNothing1() { + runTest("compiler/testData/codegen/box/coroutines/returnsNothing1.kt"); + } + + @Test + @TestMetadata("returnsUnit1.kt") + public void testReturnsUnit1() { + runTest("compiler/testData/codegen/box/coroutines/returnsUnit1.kt"); + } + @Test @TestMetadata("simple.kt") public void testSimple() { runTest("compiler/testData/codegen/box/coroutines/simple.kt"); } + @Test + @TestMetadata("simple2.kt") + public void testSimple2() { + runTest("compiler/testData/codegen/box/coroutines/simple2.kt"); + } + @Test @TestMetadata("simpleException.kt") public void testSimpleException() { @@ -9144,6 +10265,12 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/coroutines/suspendCallsInArguments.kt"); } + @Test + @TestMetadata("suspendConversion.kt") + public void testSuspendConversion() { + runTest("compiler/testData/codegen/box/coroutines/suspendConversion.kt"); + } + @Test @TestMetadata("suspendCoroutineFromStateMachine.kt") public void testSuspendCoroutineFromStateMachine() { @@ -9300,6 +10427,12 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/coroutines/varargCallFromSuspend.kt"); } + @Test + @TestMetadata("withReceiver.kt") + public void testWithReceiver() { + runTest("compiler/testData/codegen/box/coroutines/withReceiver.kt"); + } + @Nested @TestMetadata("compiler/testData/codegen/box/coroutines/bridges") @TestDataPath("$PROJECT_ROOT") @@ -11563,6 +12696,35 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest } } + @Nested + @TestMetadata("compiler/testData/codegen/box/cycles") + @TestDataPath("$PROJECT_ROOT") + @UseExtTestCaseGroupProvider() + public class Cycles { + @Test + public void testAllFilesPresentInCycles() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cycles"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("cycle.kt") + public void testCycle() { + runTest("compiler/testData/codegen/box/cycles/cycle.kt"); + } + + @Test + @TestMetadata("cycle_do.kt") + public void testCycle_do() { + runTest("compiler/testData/codegen/box/cycles/cycle_do.kt"); + } + + @Test + @TestMetadata("cycle_for.kt") + public void testCycle_for() { + runTest("compiler/testData/codegen/box/cycles/cycle_for.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/dataClasses") @TestDataPath("$PROJECT_ROOT") @@ -11976,6 +13138,29 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest } } + @Nested + @TestMetadata("compiler/testData/codegen/box/dataflow") + @TestDataPath("$PROJECT_ROOT") + @UseExtTestCaseGroupProvider() + public class Dataflow { + @Test + public void testAllFilesPresentInDataflow() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/dataflow"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("scope1.kt") + public void testScope1() { + runTest("compiler/testData/codegen/box/dataflow/scope1.kt"); + } + + @Test + @TestMetadata("uninitialized_val.kt") + public void testUninitialized_val() { + runTest("compiler/testData/codegen/box/dataflow/uninitialized_val.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/deadCodeElimination") @TestDataPath("$PROJECT_ROOT") @@ -12603,6 +13788,12 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/delegatedProperty/castSetParameter.kt"); } + @Test + @TestMetadata("correctFieldsOrder.kt") + public void testCorrectFieldsOrder() { + runTest("compiler/testData/codegen/box/delegatedProperty/correctFieldsOrder.kt"); + } + @Test @TestMetadata("delegateAsInnerClass.kt") public void testDelegateAsInnerClass() { @@ -12657,6 +13848,12 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/delegatedProperty/delegateWithPrivateSet.kt"); } + @Test + @TestMetadata("delegatedOverride.kt") + public void testDelegatedOverride() { + runTest("compiler/testData/codegen/box/delegatedProperty/delegatedOverride.kt"); + } + @Test @TestMetadata("delegatedPropertyInEnum.kt") public void testDelegatedPropertyInEnum() { @@ -12789,12 +13986,42 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/delegatedProperty/kt9712.kt"); } + @Test + @TestMetadata("lazy.kt") + public void testLazy() { + runTest("compiler/testData/codegen/box/delegatedProperty/lazy.kt"); + } + + @Test + @TestMetadata("local.kt") + public void testLocal() { + runTest("compiler/testData/codegen/box/delegatedProperty/local.kt"); + } + + @Test + @TestMetadata("map.kt") + public void testMap() { + runTest("compiler/testData/codegen/box/delegatedProperty/map.kt"); + } + @Test @TestMetadata("noTypeVariablesLeft.kt") public void testNoTypeVariablesLeft() { runTest("compiler/testData/codegen/box/delegatedProperty/noTypeVariablesLeft.kt"); } + @Test + @TestMetadata("observable.kt") + public void testObservable() { + runTest("compiler/testData/codegen/box/delegatedProperty/observable.kt"); + } + + @Test + @TestMetadata("packageLevel.kt") + public void testPackageLevel() { + runTest("compiler/testData/codegen/box/delegatedProperty/packageLevel.kt"); + } + @Test @TestMetadata("privateVar.kt") public void testPrivateVar() { @@ -12837,6 +14064,18 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/delegatedProperty/setAsExtensionFunInClass.kt"); } + @Test + @TestMetadata("simpleVal.kt") + public void testSimpleVal() { + runTest("compiler/testData/codegen/box/delegatedProperty/simpleVal.kt"); + } + + @Test + @TestMetadata("simpleVar.kt") + public void testSimpleVar() { + runTest("compiler/testData/codegen/box/delegatedProperty/simpleVar.kt"); + } + @Test @TestMetadata("topLevelVal.kt") public void testTopLevelVal() { @@ -13655,6 +14894,41 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest } } + @Nested + @TestMetadata("compiler/testData/codegen/box/devirtualization") + @TestDataPath("$PROJECT_ROOT") + @UseExtTestCaseGroupProvider() + public class Devirtualization { + @Test + public void testAllFilesPresentInDevirtualization() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/devirtualization"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("anonymousObject.kt") + public void testAnonymousObject() { + runTest("compiler/testData/codegen/box/devirtualization/anonymousObject.kt"); + } + + @Test + @TestMetadata("getter_looking_as_box_function.kt") + public void testGetter_looking_as_box_function() { + runTest("compiler/testData/codegen/box/devirtualization/getter_looking_as_box_function.kt"); + } + + @Test + @TestMetadata("inline_getter.kt") + public void testInline_getter() { + runTest("compiler/testData/codegen/box/devirtualization/inline_getter.kt"); + } + + @Test + @TestMetadata("lateinitInterface.kt") + public void testLateinitInterface() { + runTest("compiler/testData/codegen/box/devirtualization/lateinitInterface.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/diagnostics") @TestDataPath("$PROJECT_ROOT") @@ -14279,6 +15553,12 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/enum/companionAccessingEnumValue.kt"); } + @Test + @TestMetadata("companionObject.kt") + public void testCompanionObject() { + runTest("compiler/testData/codegen/box/enum/companionObject.kt"); + } + @Test @TestMetadata("companionObjectInEnum.kt") public void testCompanionObjectInEnum() { @@ -14423,6 +15703,12 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/enum/enumWithLambdaParameter.kt"); } + @Test + @TestMetadata("enum_equals.kt") + public void testEnum_equals() { + runTest("compiler/testData/codegen/box/enum/enum_equals.kt"); + } + @Test @TestMetadata("getEnumEntityByOrdinal.kt") public void testGetEnumEntityByOrdinal() { @@ -14495,6 +15781,18 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/enum/innerWithExistingClassObject.kt"); } + @Test + @TestMetadata("interfaceCallNoEntryClass.kt") + public void testInterfaceCallNoEntryClass() { + runTest("compiler/testData/codegen/box/enum/interfaceCallNoEntryClass.kt"); + } + + @Test + @TestMetadata("interfaceCallWithEntryClass.kt") + public void testInterfaceCallWithEntryClass() { + runTest("compiler/testData/codegen/box/enum/interfaceCallWithEntryClass.kt"); + } + @Test @TestMetadata("k54079.kt") public void testK54079() { @@ -14549,6 +15847,12 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/enum/kt2350.kt"); } + @Test + @TestMetadata("kt38540.kt") + public void testKt38540() { + runTest("compiler/testData/codegen/box/enum/kt38540.kt"); + } + @Test @TestMetadata("kt38996.kt") public void testKt38996() { @@ -14645,12 +15949,42 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/enum/kt9711_2.kt"); } + @Test + @TestMetadata("lambdaInDefault.kt") + public void testLambdaInDefault() { + runTest("compiler/testData/codegen/box/enum/lambdaInDefault.kt"); + } + + @Test + @TestMetadata("loop.kt") + public void testLoop() { + runTest("compiler/testData/codegen/box/enum/loop.kt"); + } + @Test @TestMetadata("manyDefaultParameters.kt") public void testManyDefaultParameters() { runTest("compiler/testData/codegen/box/enum/manyDefaultParameters.kt"); } + @Test + @TestMetadata("multipleModules.kt") + public void testMultipleModules() { + runTest("compiler/testData/codegen/box/enum/multipleModules.kt"); + } + + @Test + @TestMetadata("nested.kt") + public void testNested() { + runTest("compiler/testData/codegen/box/enum/nested.kt"); + } + + @Test + @TestMetadata("openMethodNoOverrides.kt") + public void testOpenMethodNoOverrides() { + runTest("compiler/testData/codegen/box/enum/openMethodNoOverrides.kt"); + } + @Test @TestMetadata("ordinal.kt") public void testOrdinal() { @@ -14675,6 +16009,12 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/enum/refToThis.kt"); } + @Test + @TestMetadata("reorderedArguments.kt") + public void testReorderedArguments() { + runTest("compiler/testData/codegen/box/enum/reorderedArguments.kt"); + } + @Test @TestMetadata("simple.kt") public void testSimple() { @@ -14693,18 +16033,66 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/enum/superCallInEnumLiteral.kt"); } + @Test + @TestMetadata("switchLowering.kt") + public void testSwitchLowering() { + runTest("compiler/testData/codegen/box/enum/switchLowering.kt"); + } + + @Test + @TestMetadata("test0.kt") + public void testTest0() { + runTest("compiler/testData/codegen/box/enum/test0.kt"); + } + + @Test + @TestMetadata("test1.kt") + public void testTest1() { + runTest("compiler/testData/codegen/box/enum/test1.kt"); + } + @Test @TestMetadata("toString.kt") public void testToString() { runTest("compiler/testData/codegen/box/enum/toString.kt"); } + @Test + @TestMetadata("vCallNoEntryClass.kt") + public void testVCallNoEntryClass() { + runTest("compiler/testData/codegen/box/enum/vCallNoEntryClass.kt"); + } + + @Test + @TestMetadata("vCallWithEntryClass.kt") + public void testVCallWithEntryClass() { + runTest("compiler/testData/codegen/box/enum/vCallWithEntryClass.kt"); + } + + @Test + @TestMetadata("valueOf2.kt") + public void testValueOf2() { + runTest("compiler/testData/codegen/box/enum/valueOf2.kt"); + } + @Test @TestMetadata("valueof.kt") public void testValueof() { runTest("compiler/testData/codegen/box/enum/valueof.kt"); } + @Test + @TestMetadata("values.kt") + public void testValues() { + runTest("compiler/testData/codegen/box/enum/values.kt"); + } + + @Test + @TestMetadata("varargParam.kt") + public void testVarargParam() { + runTest("compiler/testData/codegen/box/enum/varargParam.kt"); + } + @Test @TestMetadata("whenInObject.kt") public void testWhenInObject() { @@ -14782,6 +16170,113 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest } } + @Nested + @TestMetadata("compiler/testData/codegen/box/escapeAnalysis") + @TestDataPath("$PROJECT_ROOT") + @UseExtTestCaseGroupProvider() + public class EscapeAnalysis { + @Test + public void testAllFilesPresentInEscapeAnalysis() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/escapeAnalysis"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("recursion.kt") + public void testRecursion() { + runTest("compiler/testData/codegen/box/escapeAnalysis/recursion.kt"); + } + + @Test + @TestMetadata("stack_array.kt") + public void testStack_array() { + runTest("compiler/testData/codegen/box/escapeAnalysis/stack_array.kt"); + } + + @Test + @TestMetadata("test1.kt") + public void testTest1() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test1.kt"); + } + + @Test + @TestMetadata("test10.kt") + public void testTest10() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test10.kt"); + } + + @Test + @TestMetadata("test11.kt") + public void testTest11() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test11.kt"); + } + + @Test + @TestMetadata("test12.kt") + public void testTest12() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test12.kt"); + } + + @Test + @TestMetadata("test13.kt") + public void testTest13() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test13.kt"); + } + + @Test + @TestMetadata("test2.kt") + public void testTest2() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test2.kt"); + } + + @Test + @TestMetadata("test3.kt") + public void testTest3() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test3.kt"); + } + + @Test + @TestMetadata("test4.kt") + public void testTest4() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test4.kt"); + } + + @Test + @TestMetadata("test5.kt") + public void testTest5() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test5.kt"); + } + + @Test + @TestMetadata("test6.kt") + public void testTest6() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test6.kt"); + } + + @Test + @TestMetadata("test7.kt") + public void testTest7() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test7.kt"); + } + + @Test + @TestMetadata("test8.kt") + public void testTest8() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test8.kt"); + } + + @Test + @TestMetadata("test9.kt") + public void testTest9() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test9.kt"); + } + + @Test + @TestMetadata("zeroOutObjectOnAlloc.kt") + public void testZeroOutObjectOnAlloc() { + runTest("compiler/testData/codegen/box/escapeAnalysis/zeroOutObjectOnAlloc.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/evaluate") @TestDataPath("$PROJECT_ROOT") @@ -14799,6 +16294,59 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest } } + @Nested + @TestMetadata("compiler/testData/codegen/box/exceptions") + @TestDataPath("$PROJECT_ROOT") + @UseExtTestCaseGroupProvider() + public class Exceptions { + @Test + public void testAllFilesPresentInExceptions() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/exceptions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("catch1.kt") + public void testCatch1() { + runTest("compiler/testData/codegen/box/exceptions/catch1.kt"); + } + + @Test + @TestMetadata("catch2.kt") + public void testCatch2() { + runTest("compiler/testData/codegen/box/exceptions/catch2.kt"); + } + + @Test + @TestMetadata("catch7.kt") + public void testCatch7() { + runTest("compiler/testData/codegen/box/exceptions/catch7.kt"); + } + + @Test + @TestMetadata("extend0.kt") + public void testExtend0() { + runTest("compiler/testData/codegen/box/exceptions/extend0.kt"); + } + + @Test + @TestMetadata("rethrow.kt") + public void testRethrow() { + runTest("compiler/testData/codegen/box/exceptions/rethrow.kt"); + } + + @Test + @TestMetadata("throw0.kt") + public void testThrow0() { + runTest("compiler/testData/codegen/box/exceptions/throw0.kt"); + } + + @Test + @TestMetadata("throw_from_catch.kt") + public void testThrow_from_catch() { + runTest("compiler/testData/codegen/box/exceptions/throw_from_catch.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/exclExcl") @TestDataPath("$PROJECT_ROOT") @@ -15694,6 +17242,12 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/funInterface/funInterfaceWithReceiver.kt"); } + @Test + @TestMetadata("implIsNotFunction.kt") + public void testImplIsNotFunction() { + runTest("compiler/testData/codegen/box/funInterface/implIsNotFunction.kt"); + } + @Test @TestMetadata("inlinedSamWrapper.kt") public void testInlinedSamWrapper() { @@ -15736,6 +17290,18 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/funInterface/kt46908_functionSupertype.kt"); } + @Test + @TestMetadata("kt49384.kt") + public void testKt49384() { + runTest("compiler/testData/codegen/box/funInterface/kt49384.kt"); + } + + @Test + @TestMetadata("kt49384_getSame.kt") + public void testKt49384_getSame() { + runTest("compiler/testData/codegen/box/funInterface/kt49384_getSame.kt"); + } + @Test @TestMetadata("multimodule.kt") public void testMultimodule() { @@ -15754,6 +17320,12 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/funInterface/nonAbstractMethod.kt"); } + @Test + @TestMetadata("nonTrivialProjectionInSuperType.kt") + public void testNonTrivialProjectionInSuperType() { + runTest("compiler/testData/codegen/box/funInterface/nonTrivialProjectionInSuperType.kt"); + } + @Test @TestMetadata("nullableSam.kt") public void testNullableSam() { @@ -15844,6 +17416,233 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest } } + @Nested + @TestMetadata("compiler/testData/codegen/box/function") + @TestDataPath("$PROJECT_ROOT") + @UseExtTestCaseGroupProvider() + public class Function { + @Test + public void testAllFilesPresentInFunction() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/function"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("arithmetic.kt") + public void testArithmetic() { + runTest("compiler/testData/codegen/box/function/arithmetic.kt"); + } + + @Test + @TestMetadata("boolean.kt") + public void testBoolean() { + runTest("compiler/testData/codegen/box/function/boolean.kt"); + } + + @Test + @TestMetadata("defaults.kt") + public void testDefaults() { + runTest("compiler/testData/codegen/box/function/defaults.kt"); + } + + @Test + @TestMetadata("defaults1.kt") + public void testDefaults1() { + runTest("compiler/testData/codegen/box/function/defaults1.kt"); + } + + @Test + @TestMetadata("defaults10.kt") + public void testDefaults10() { + runTest("compiler/testData/codegen/box/function/defaults10.kt"); + } + + @Test + @TestMetadata("defaults2.kt") + public void testDefaults2() { + runTest("compiler/testData/codegen/box/function/defaults2.kt"); + } + + @Test + @TestMetadata("defaults3.kt") + public void testDefaults3() { + runTest("compiler/testData/codegen/box/function/defaults3.kt"); + } + + @Test + @TestMetadata("defaults4.kt") + public void testDefaults4() { + runTest("compiler/testData/codegen/box/function/defaults4.kt"); + } + + @Test + @TestMetadata("defaults5.kt") + public void testDefaults5() { + runTest("compiler/testData/codegen/box/function/defaults5.kt"); + } + + @Test + @TestMetadata("defaults6.kt") + public void testDefaults6() { + runTest("compiler/testData/codegen/box/function/defaults6.kt"); + } + + @Test + @TestMetadata("defaults7.kt") + public void testDefaults7() { + runTest("compiler/testData/codegen/box/function/defaults7.kt"); + } + + @Test + @TestMetadata("defaults8.kt") + public void testDefaults8() { + runTest("compiler/testData/codegen/box/function/defaults8.kt"); + } + + @Test + @TestMetadata("defaults9.kt") + public void testDefaults9() { + runTest("compiler/testData/codegen/box/function/defaults9.kt"); + } + + @Test + @TestMetadata("defaultsFromFakeOverride.kt") + public void testDefaultsFromFakeOverride() { + runTest("compiler/testData/codegen/box/function/defaultsFromFakeOverride.kt"); + } + + @Test + @TestMetadata("defaultsWithInlineClasses.kt") + public void testDefaultsWithInlineClasses() { + runTest("compiler/testData/codegen/box/function/defaultsWithInlineClasses.kt"); + } + + @Test + @TestMetadata("defaultsWithVarArg1.kt") + public void testDefaultsWithVarArg1() { + runTest("compiler/testData/codegen/box/function/defaultsWithVarArg1.kt"); + } + + @Test + @TestMetadata("defaultsWithVarArg2.kt") + public void testDefaultsWithVarArg2() { + runTest("compiler/testData/codegen/box/function/defaultsWithVarArg2.kt"); + } + + @Test + @TestMetadata("eqeq.kt") + public void testEqeq() { + runTest("compiler/testData/codegen/box/function/eqeq.kt"); + } + + @Test + @TestMetadata("extension.kt") + public void testExtension() { + runTest("compiler/testData/codegen/box/function/extension.kt"); + } + + @Test + @TestMetadata("intrinsic.kt") + public void testIntrinsic() { + runTest("compiler/testData/codegen/box/function/intrinsic.kt"); + } + + @Test + @TestMetadata("localFunction.kt") + public void testLocalFunction() { + runTest("compiler/testData/codegen/box/function/localFunction.kt"); + } + + @Test + @TestMetadata("localFunction2.kt") + public void testLocalFunction2() { + runTest("compiler/testData/codegen/box/function/localFunction2.kt"); + } + + @Test + @TestMetadata("localFunction3.kt") + public void testLocalFunction3() { + runTest("compiler/testData/codegen/box/function/localFunction3.kt"); + } + + @Test + @TestMetadata("minus_eq.kt") + public void testMinus_eq() { + runTest("compiler/testData/codegen/box/function/minus_eq.kt"); + } + + @Test + @TestMetadata("named.kt") + public void testNamed() { + runTest("compiler/testData/codegen/box/function/named.kt"); + } + + @Test + @TestMetadata("nothingNReturningSafeCall.kt") + public void testNothingNReturningSafeCall() { + runTest("compiler/testData/codegen/box/function/nothingNReturningSafeCall.kt"); + } + + @Test + @TestMetadata("plus_eq.kt") + public void testPlus_eq() { + runTest("compiler/testData/codegen/box/function/plus_eq.kt"); + } + + @Test + @TestMetadata("referenceBigArity.kt") + public void testReferenceBigArity() { + runTest("compiler/testData/codegen/box/function/referenceBigArity.kt"); + } + + @Test + @TestMetadata("sum.kt") + public void testSum() { + runTest("compiler/testData/codegen/box/function/sum.kt"); + } + + @Test + @TestMetadata("sum_3const.kt") + public void testSum_3const() { + runTest("compiler/testData/codegen/box/function/sum_3const.kt"); + } + + @Test + @TestMetadata("sum_foo_bar.kt") + public void testSum_foo_bar() { + runTest("compiler/testData/codegen/box/function/sum_foo_bar.kt"); + } + + @Test + @TestMetadata("sum_func.kt") + public void testSum_func() { + runTest("compiler/testData/codegen/box/function/sum_func.kt"); + } + + @Test + @TestMetadata("sum_imm.kt") + public void testSum_imm() { + runTest("compiler/testData/codegen/box/function/sum_imm.kt"); + } + + @Test + @TestMetadata("sum_mixed.kt") + public void testSum_mixed() { + runTest("compiler/testData/codegen/box/function/sum_mixed.kt"); + } + + @Test + @TestMetadata("sum_silly.kt") + public void testSum_silly() { + runTest("compiler/testData/codegen/box/function/sum_silly.kt"); + } + + @Test + @TestMetadata("unreachableStatementAfterReturn.kt") + public void testUnreachableStatementAfterReturn() { + runTest("compiler/testData/codegen/box/function/unreachableStatementAfterReturn.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/functions") @TestDataPath("$PROJECT_ROOT") @@ -17413,6 +19212,477 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest } } + @Nested + @TestMetadata("compiler/testData/codegen/box/initializers") + @TestDataPath("$PROJECT_ROOT") + @UseExtTestCaseGroupProvider() + public class Initializers { + @Test + public void testAllFilesPresentInInitializers() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/initializers"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("correctOrder1.kt") + public void testCorrectOrder1() { + runTest("compiler/testData/codegen/box/initializers/correctOrder1.kt"); + } + + @Test + @TestMetadata("correctOrder2.kt") + public void testCorrectOrder2() { + runTest("compiler/testData/codegen/box/initializers/correctOrder2.kt"); + } + + @Test + @TestMetadata("initializers0.kt") + public void testInitializers0() { + runTest("compiler/testData/codegen/box/initializers/initializers0.kt"); + } + + @Test + @TestMetadata("initializers1.kt") + public void testInitializers1() { + runTest("compiler/testData/codegen/box/initializers/initializers1.kt"); + } + + @Test + @TestMetadata("initializers2.kt") + public void testInitializers2() { + runTest("compiler/testData/codegen/box/initializers/initializers2.kt"); + } + + @Test + @TestMetadata("initializers3.kt") + public void testInitializers3() { + runTest("compiler/testData/codegen/box/initializers/initializers3.kt"); + } + + @Test + @TestMetadata("initializers4.kt") + public void testInitializers4() { + runTest("compiler/testData/codegen/box/initializers/initializers4.kt"); + } + + @Test + @TestMetadata("initializers5.kt") + public void testInitializers5() { + runTest("compiler/testData/codegen/box/initializers/initializers5.kt"); + } + + @Test + @TestMetadata("initializers7.kt") + public void testInitializers7() { + runTest("compiler/testData/codegen/box/initializers/initializers7.kt"); + } + + @Test + @TestMetadata("initializers8.kt") + public void testInitializers8() { + runTest("compiler/testData/codegen/box/initializers/initializers8.kt"); + } + + @Test + @TestMetadata("multipleModules1.kt") + public void testMultipleModules1() { + runTest("compiler/testData/codegen/box/initializers/multipleModules1.kt"); + } + + @Test + @TestMetadata("object.kt") + public void testObject() { + runTest("compiler/testData/codegen/box/initializers/object.kt"); + } + + @Test + @TestMetadata("sharedVarInInitBlock.kt") + public void testSharedVarInInitBlock() { + runTest("compiler/testData/codegen/box/initializers/sharedVarInInitBlock.kt"); + } + + @Test + @TestMetadata("static_arrays.kt") + public void testStatic_arrays() { + runTest("compiler/testData/codegen/box/initializers/static_arrays.kt"); + } + + @Test + @TestMetadata("static_list.kt") + public void testStatic_list() { + runTest("compiler/testData/codegen/box/initializers/static_list.kt"); + } + + @Test + @TestMetadata("static_smallIntIdentity.kt") + public void testStatic_smallIntIdentity() { + runTest("compiler/testData/codegen/box/initializers/static_smallIntIdentity.kt"); + } + + @Test + @TestMetadata("static_varargChange.kt") + public void testStatic_varargChange() { + runTest("compiler/testData/codegen/box/initializers/static_varargChange.kt"); + } + + @Test + @TestMetadata("throw1.kt") + public void testThrow1() { + runTest("compiler/testData/codegen/box/initializers/throw1.kt"); + } + + @Test + @TestMetadata("throw2.kt") + public void testThrow2() { + runTest("compiler/testData/codegen/box/initializers/throw2.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/initializers/files") + @TestDataPath("$PROJECT_ROOT") + @UseExtTestCaseGroupProvider() + public class Files { + @Test + public void testAllFilesPresentInFiles() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/initializers/files"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("globalInitedAfterAccessingFile.kt") + public void testGlobalInitedAfterAccessingFile() { + runTest("compiler/testData/codegen/box/initializers/files/globalInitedAfterAccessingFile.kt"); + } + + @Test + @TestMetadata("globalNotInitedAfterAccessingClassInternals.kt") + public void testGlobalNotInitedAfterAccessingClassInternals() { + runTest("compiler/testData/codegen/box/initializers/files/globalNotInitedAfterAccessingClassInternals.kt"); + } + + @Test + @TestMetadata("simple.kt") + public void testSimple() { + runTest("compiler/testData/codegen/box/initializers/files/simple.kt"); + } + + @Test + @TestMetadata("simpleMultiModule.kt") + public void testSimpleMultiModule() { + runTest("compiler/testData/codegen/box/initializers/files/simpleMultiModule.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/inline") + @TestDataPath("$PROJECT_ROOT") + @UseExtTestCaseGroupProvider() + public class Inline { + @Test + public void testAllFilesPresentInInline() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inline"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("changingCapturedLocal.kt") + public void testChangingCapturedLocal() { + runTest("compiler/testData/codegen/box/inline/changingCapturedLocal.kt"); + } + + @Test + @TestMetadata("classDeclarationInsideInline.kt") + public void testClassDeclarationInsideInline() { + runTest("compiler/testData/codegen/box/inline/classDeclarationInsideInline.kt"); + } + + @Test + @TestMetadata("coercionToUnit.kt") + public void testCoercionToUnit() { + runTest("compiler/testData/codegen/box/inline/coercionToUnit.kt"); + } + + @Test + @TestMetadata("correctOrderFunctionReference.kt") + public void testCorrectOrderFunctionReference() { + runTest("compiler/testData/codegen/box/inline/correctOrderFunctionReference.kt"); + } + + @Test + @TestMetadata("defaultArgs.kt") + public void testDefaultArgs() { + runTest("compiler/testData/codegen/box/inline/defaultArgs.kt"); + } + + @Test + @TestMetadata("defaultArgsMultipleModules.kt") + public void testDefaultArgsMultipleModules() { + runTest("compiler/testData/codegen/box/inline/defaultArgsMultipleModules.kt"); + } + + @Test + @TestMetadata("genericFunctionReference.kt") + public void testGenericFunctionReference() { + runTest("compiler/testData/codegen/box/inline/genericFunctionReference.kt"); + } + + @Test + @TestMetadata("getClass.kt") + public void testGetClass() { + runTest("compiler/testData/codegen/box/inline/getClass.kt"); + } + + @Test + @TestMetadata("inline0.kt") + public void testInline0() { + runTest("compiler/testData/codegen/box/inline/inline0.kt"); + } + + @Test + @TestMetadata("inline1.kt") + public void testInline1() { + runTest("compiler/testData/codegen/box/inline/inline1.kt"); + } + + @Test + @TestMetadata("inline10.kt") + public void testInline10() { + runTest("compiler/testData/codegen/box/inline/inline10.kt"); + } + + @Test + @TestMetadata("inline11.kt") + public void testInline11() { + runTest("compiler/testData/codegen/box/inline/inline11.kt"); + } + + @Test + @TestMetadata("inline12.kt") + public void testInline12() { + runTest("compiler/testData/codegen/box/inline/inline12.kt"); + } + + @Test + @TestMetadata("inline13.kt") + public void testInline13() { + runTest("compiler/testData/codegen/box/inline/inline13.kt"); + } + + @Test + @TestMetadata("inline14.kt") + public void testInline14() { + runTest("compiler/testData/codegen/box/inline/inline14.kt"); + } + + @Test + @TestMetadata("inline15.kt") + public void testInline15() { + runTest("compiler/testData/codegen/box/inline/inline15.kt"); + } + + @Test + @TestMetadata("inline16.kt") + public void testInline16() { + runTest("compiler/testData/codegen/box/inline/inline16.kt"); + } + + @Test + @TestMetadata("inline17.kt") + public void testInline17() { + runTest("compiler/testData/codegen/box/inline/inline17.kt"); + } + + @Test + @TestMetadata("inline19.kt") + public void testInline19() { + runTest("compiler/testData/codegen/box/inline/inline19.kt"); + } + + @Test + @TestMetadata("inline2.kt") + public void testInline2() { + runTest("compiler/testData/codegen/box/inline/inline2.kt"); + } + + @Test + @TestMetadata("inline20.kt") + public void testInline20() { + runTest("compiler/testData/codegen/box/inline/inline20.kt"); + } + + @Test + @TestMetadata("inline21.kt") + public void testInline21() { + runTest("compiler/testData/codegen/box/inline/inline21.kt"); + } + + @Test + @TestMetadata("inline22.kt") + public void testInline22() { + runTest("compiler/testData/codegen/box/inline/inline22.kt"); + } + + @Test + @TestMetadata("inline23.kt") + public void testInline23() { + runTest("compiler/testData/codegen/box/inline/inline23.kt"); + } + + @Test + @TestMetadata("inline24.kt") + public void testInline24() { + runTest("compiler/testData/codegen/box/inline/inline24.kt"); + } + + @Test + @TestMetadata("inline25.kt") + public void testInline25() { + runTest("compiler/testData/codegen/box/inline/inline25.kt"); + } + + @Test + @TestMetadata("inline26.kt") + public void testInline26() { + runTest("compiler/testData/codegen/box/inline/inline26.kt"); + } + + @Test + @TestMetadata("inline3.kt") + public void testInline3() { + runTest("compiler/testData/codegen/box/inline/inline3.kt"); + } + + @Test + @TestMetadata("inline4.kt") + public void testInline4() { + runTest("compiler/testData/codegen/box/inline/inline4.kt"); + } + + @Test + @TestMetadata("inline5.kt") + public void testInline5() { + runTest("compiler/testData/codegen/box/inline/inline5.kt"); + } + + @Test + @TestMetadata("inline6.kt") + public void testInline6() { + runTest("compiler/testData/codegen/box/inline/inline6.kt"); + } + + @Test + @TestMetadata("inline7.kt") + public void testInline7() { + runTest("compiler/testData/codegen/box/inline/inline7.kt"); + } + + @Test + @TestMetadata("inline8.kt") + public void testInline8() { + runTest("compiler/testData/codegen/box/inline/inline8.kt"); + } + + @Test + @TestMetadata("inline9.kt") + public void testInline9() { + runTest("compiler/testData/codegen/box/inline/inline9.kt"); + } + + @Test + @TestMetadata("inlineCtor.kt") + public void testInlineCtor() { + runTest("compiler/testData/codegen/box/inline/inlineCtor.kt"); + } + + @Test + @TestMetadata("innerInlineFunCapturesOuter.kt") + public void testInnerInlineFunCapturesOuter() { + runTest("compiler/testData/codegen/box/inline/innerInlineFunCapturesOuter.kt"); + } + + @Test + @TestMetadata("lambdaAsAny.kt") + public void testLambdaAsAny() { + runTest("compiler/testData/codegen/box/inline/lambdaAsAny.kt"); + } + + @Test + @TestMetadata("lambdaInDefaultValue.kt") + public void testLambdaInDefaultValue() { + runTest("compiler/testData/codegen/box/inline/lambdaInDefaultValue.kt"); + } + + @Test + @TestMetadata("lateinitProperty.kt") + public void testLateinitProperty() { + runTest("compiler/testData/codegen/box/inline/lateinitProperty.kt"); + } + + @Test + @TestMetadata("localFunctionInInitializerBlock.kt") + public void testLocalFunctionInInitializerBlock() { + runTest("compiler/testData/codegen/box/inline/localFunctionInInitializerBlock.kt"); + } + + @Test + @TestMetadata("localObjectReturnedFromWhen.kt") + public void testLocalObjectReturnedFromWhen() { + runTest("compiler/testData/codegen/box/inline/localObjectReturnedFromWhen.kt"); + } + + @Test + @TestMetadata("propertyAccessorInline.kt") + public void testPropertyAccessorInline() { + runTest("compiler/testData/codegen/box/inline/propertyAccessorInline.kt"); + } + + @Test + @TestMetadata("redundantCoercionsCleaner.kt") + public void testRedundantCoercionsCleaner() { + runTest("compiler/testData/codegen/box/inline/redundantCoercionsCleaner.kt"); + } + + @Test + @TestMetadata("redundantCoercionsCleanerKT48876.kt") + public void testRedundantCoercionsCleanerKT48876() { + runTest("compiler/testData/codegen/box/inline/redundantCoercionsCleanerKT48876.kt"); + } + + @Test + @TestMetadata("redundantCoercionsCleanerKT49356.kt") + public void testRedundantCoercionsCleanerKT49356() { + runTest("compiler/testData/codegen/box/inline/redundantCoercionsCleanerKT49356.kt"); + } + + @Test + @TestMetadata("returnLocalClassFromBlock.kt") + public void testReturnLocalClassFromBlock() { + runTest("compiler/testData/codegen/box/inline/returnLocalClassFromBlock.kt"); + } + + @Test + @TestMetadata("sharedVar.kt") + public void testSharedVar() { + runTest("compiler/testData/codegen/box/inline/sharedVar.kt"); + } + + @Test + @TestMetadata("statementAsLastExprInBlock.kt") + public void testStatementAsLastExprInBlock() { + runTest("compiler/testData/codegen/box/inline/statementAsLastExprInBlock.kt"); + } + + @Test + @TestMetadata("twiceInlinedObject.kt") + public void testTwiceInlinedObject() { + runTest("compiler/testData/codegen/box/inline/twiceInlinedObject.kt"); + } + + @Test + @TestMetadata("typeSubstitutionInFakeOverride.kt") + public void testTypeSubstitutionInFakeOverride() { + runTest("compiler/testData/codegen/box/inline/typeSubstitutionInFakeOverride.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/inlineArgsInPlace") @TestDataPath("$PROJECT_ROOT") @@ -17490,6 +19760,41 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest } } + @Nested + @TestMetadata("compiler/testData/codegen/box/inlineClass") + @TestDataPath("$PROJECT_ROOT") + @UseExtTestCaseGroupProvider() + public class InlineClass { + @Test + public void testAllFilesPresentInInlineClass() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineClass"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("customEquals.kt") + public void testCustomEquals() { + runTest("compiler/testData/codegen/box/inlineClass/customEquals.kt"); + } + + @Test + @TestMetadata("defaultEquals.kt") + public void testDefaultEquals() { + runTest("compiler/testData/codegen/box/inlineClass/defaultEquals.kt"); + } + + @Test + @TestMetadata("nestedInlineClasses.kt") + public void testNestedInlineClasses() { + runTest("compiler/testData/codegen/box/inlineClass/nestedInlineClasses.kt"); + } + + @Test + @TestMetadata("secondaryConstructorWithGenerics.kt") + public void testSecondaryConstructorWithGenerics() { + runTest("compiler/testData/codegen/box/inlineClass/secondaryConstructorWithGenerics.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/inlineClasses") @TestDataPath("$PROJECT_ROOT") @@ -23905,6 +26210,89 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest } } + @Nested + @TestMetadata("compiler/testData/codegen/box/innerClass") + @TestDataPath("$PROJECT_ROOT") + @UseExtTestCaseGroupProvider() + public class InnerClass { + @Test + public void testAllFilesPresentInInnerClass() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/innerClass"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("doubleInner.kt") + public void testDoubleInner() { + runTest("compiler/testData/codegen/box/innerClass/doubleInner.kt"); + } + + @Test + @TestMetadata("generic.kt") + public void testGeneric() { + runTest("compiler/testData/codegen/box/innerClass/generic.kt"); + } + + @Test + @TestMetadata("getOuterVal.kt") + public void testGetOuterVal() { + runTest("compiler/testData/codegen/box/innerClass/getOuterVal.kt"); + } + + @Test + @TestMetadata("inheritanceMultipleModules1.kt") + public void testInheritanceMultipleModules1() { + runTest("compiler/testData/codegen/box/innerClass/inheritanceMultipleModules1.kt"); + } + + @Test + @TestMetadata("inheritanceMultipleModules2.kt") + public void testInheritanceMultipleModules2() { + runTest("compiler/testData/codegen/box/innerClass/inheritanceMultipleModules2.kt"); + } + + @Test + @TestMetadata("inheritanceMultipleModules3.kt") + public void testInheritanceMultipleModules3() { + runTest("compiler/testData/codegen/box/innerClass/inheritanceMultipleModules3.kt"); + } + + @Test + @TestMetadata("multipleModules.kt") + public void testMultipleModules() { + runTest("compiler/testData/codegen/box/innerClass/multipleModules.kt"); + } + + @Test + @TestMetadata("noPrimaryConstructor.kt") + public void testNoPrimaryConstructor() { + runTest("compiler/testData/codegen/box/innerClass/noPrimaryConstructor.kt"); + } + + @Test + @TestMetadata("qualifiedThis.kt") + public void testQualifiedThis() { + runTest("compiler/testData/codegen/box/innerClass/qualifiedThis.kt"); + } + + @Test + @TestMetadata("secondaryConstructor.kt") + public void testSecondaryConstructor() { + runTest("compiler/testData/codegen/box/innerClass/secondaryConstructor.kt"); + } + + @Test + @TestMetadata("simple.kt") + public void testSimple() { + runTest("compiler/testData/codegen/box/innerClass/simple.kt"); + } + + @Test + @TestMetadata("superOuter.kt") + public void testSuperOuter() { + runTest("compiler/testData/codegen/box/innerClass/superOuter.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/innerNested") @TestDataPath("$PROJECT_ROOT") @@ -24261,6 +26649,41 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest } } + @Nested + @TestMetadata("compiler/testData/codegen/box/interfaceCallsNCasts") + @TestDataPath("$PROJECT_ROOT") + @UseExtTestCaseGroupProvider() + public class InterfaceCallsNCasts { + @Test + public void testAllFilesPresentInInterfaceCallsNCasts() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/interfaceCallsNCasts"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("conservativeItable.kt") + public void testConservativeItable() { + runTest("compiler/testData/codegen/box/interfaceCallsNCasts/conservativeItable.kt"); + } + + @Test + @TestMetadata("diamond.kt") + public void testDiamond() { + runTest("compiler/testData/codegen/box/interfaceCallsNCasts/diamond.kt"); + } + + @Test + @TestMetadata("finalMethod.kt") + public void testFinalMethod() { + runTest("compiler/testData/codegen/box/interfaceCallsNCasts/finalMethod.kt"); + } + + @Test + @TestMetadata("interface0.kt") + public void testInterface0() { + runTest("compiler/testData/codegen/box/interfaceCallsNCasts/interface0.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/intrinsics") @TestDataPath("$PROJECT_ROOT") @@ -25576,6 +27999,82 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest } } + @Nested + @TestMetadata("compiler/testData/codegen/box/kclass") + @TestDataPath("$PROJECT_ROOT") + @UseExtTestCaseGroupProvider() + public class Kclass { + @Test + public void testAllFilesPresentInKclass() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/kclass"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("kClassEnumArgument.kt") + public void testKClassEnumArgument() { + runTest("compiler/testData/codegen/box/kclass/kClassEnumArgument.kt"); + } + + @Test + @TestMetadata("kclass1.kt") + public void testKclass1() { + runTest("compiler/testData/codegen/box/kclass/kclass1.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/ktype") + @TestDataPath("$PROJECT_ROOT") + @UseExtTestCaseGroupProvider() + public class Ktype { + @Test + public void testAllFilesPresentInKtype() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ktype"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("ktype1_basics1.kt") + public void testKtype1_basics1() { + runTest("compiler/testData/codegen/box/ktype/ktype1_basics1.kt"); + } + + @Test + @TestMetadata("ktype1_inner.kt") + public void testKtype1_inner() { + runTest("compiler/testData/codegen/box/ktype/ktype1_inner.kt"); + } + + @Test + @TestMetadata("nonReified_class.kt") + public void testNonReified_class() { + runTest("compiler/testData/codegen/box/ktype/nonReified_class.kt"); + } + + @Test + @TestMetadata("nonReified_equality.kt") + public void testNonReified_equality() { + runTest("compiler/testData/codegen/box/ktype/nonReified_equality.kt"); + } + + @Test + @TestMetadata("nonReified_fun.kt") + public void testNonReified_fun() { + runTest("compiler/testData/codegen/box/ktype/nonReified_fun.kt"); + } + + @Test + @TestMetadata("nonReified_recursionInReified.kt") + public void testNonReified_recursionInReified() { + runTest("compiler/testData/codegen/box/ktype/nonReified_recursionInReified.kt"); + } + + @Test + @TestMetadata("nonReified_reifiedUpperBound.kt") + public void testNonReified_reifiedUpperBound() { + runTest("compiler/testData/codegen/box/ktype/nonReified_reifiedUpperBound.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/labels") @TestDataPath("$PROJECT_ROOT") @@ -25635,6 +28134,190 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest } } + @Nested + @TestMetadata("compiler/testData/codegen/box/lambda") + @TestDataPath("$PROJECT_ROOT") + @UseExtTestCaseGroupProvider() + public class Lambda { + @Test + public void testAllFilesPresentInLambda() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/lambda"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("lambda1.kt") + public void testLambda1() { + runTest("compiler/testData/codegen/box/lambda/lambda1.kt"); + } + + @Test + @TestMetadata("lambda10.kt") + public void testLambda10() { + runTest("compiler/testData/codegen/box/lambda/lambda10.kt"); + } + + @Test + @TestMetadata("lambda11.kt") + public void testLambda11() { + runTest("compiler/testData/codegen/box/lambda/lambda11.kt"); + } + + @Test + @TestMetadata("lambda12.kt") + public void testLambda12() { + runTest("compiler/testData/codegen/box/lambda/lambda12.kt"); + } + + @Test + @TestMetadata("lambda13.kt") + public void testLambda13() { + runTest("compiler/testData/codegen/box/lambda/lambda13.kt"); + } + + @Test + @TestMetadata("lambda14.kt") + public void testLambda14() { + runTest("compiler/testData/codegen/box/lambda/lambda14.kt"); + } + + @Test + @TestMetadata("lambda2.kt") + public void testLambda2() { + runTest("compiler/testData/codegen/box/lambda/lambda2.kt"); + } + + @Test + @TestMetadata("lambda3.kt") + public void testLambda3() { + runTest("compiler/testData/codegen/box/lambda/lambda3.kt"); + } + + @Test + @TestMetadata("lambda4.kt") + public void testLambda4() { + runTest("compiler/testData/codegen/box/lambda/lambda4.kt"); + } + + @Test + @TestMetadata("lambda5.kt") + public void testLambda5() { + runTest("compiler/testData/codegen/box/lambda/lambda5.kt"); + } + + @Test + @TestMetadata("lambda6.kt") + public void testLambda6() { + runTest("compiler/testData/codegen/box/lambda/lambda6.kt"); + } + + @Test + @TestMetadata("lambda7.kt") + public void testLambda7() { + runTest("compiler/testData/codegen/box/lambda/lambda7.kt"); + } + + @Test + @TestMetadata("lambda8.kt") + public void testLambda8() { + runTest("compiler/testData/codegen/box/lambda/lambda8.kt"); + } + + @Test + @TestMetadata("lambda9.kt") + public void testLambda9() { + runTest("compiler/testData/codegen/box/lambda/lambda9.kt"); + } + + @Test + @TestMetadata("lambda_kt49360_trivial.kt") + public void testLambda_kt49360_trivial() { + runTest("compiler/testData/codegen/box/lambda/lambda_kt49360_trivial.kt"); + } + + @Test + @TestMetadata("lambda_kt49360_withFlow.kt") + public void testLambda_kt49360_withFlow() { + runTest("compiler/testData/codegen/box/lambda/lambda_kt49360_withFlow.kt"); + } + + @Test + @TestMetadata("lambda_kt49360_wrapBlock.kt") + public void testLambda_kt49360_wrapBlock() { + runTest("compiler/testData/codegen/box/lambda/lambda_kt49360_wrapBlock.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/lateinit") + @TestDataPath("$PROJECT_ROOT") + @UseExtTestCaseGroupProvider() + public class Lateinit { + @Test + public void testAllFilesPresentInLateinit() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/lateinit"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("globalIsInitialized.kt") + public void testGlobalIsInitialized() { + runTest("compiler/testData/codegen/box/lateinit/globalIsInitialized.kt"); + } + + @Test + @TestMetadata("inBaseClass.kt") + public void testInBaseClass() { + runTest("compiler/testData/codegen/box/lateinit/inBaseClass.kt"); + } + + @Test + @TestMetadata("initialized.kt") + public void testInitialized() { + runTest("compiler/testData/codegen/box/lateinit/initialized.kt"); + } + + @Test + @TestMetadata("innerIsInitialized.kt") + public void testInnerIsInitialized() { + runTest("compiler/testData/codegen/box/lateinit/innerIsInitialized.kt"); + } + + @Test + @TestMetadata("isInitialized.kt") + public void testIsInitialized() { + runTest("compiler/testData/codegen/box/lateinit/isInitialized.kt"); + } + + @Test + @TestMetadata("localCapturedInitialized.kt") + public void testLocalCapturedInitialized() { + runTest("compiler/testData/codegen/box/lateinit/localCapturedInitialized.kt"); + } + + @Test + @TestMetadata("localCapturedNotInitialized.kt") + public void testLocalCapturedNotInitialized() { + runTest("compiler/testData/codegen/box/lateinit/localCapturedNotInitialized.kt"); + } + + @Test + @TestMetadata("localInitialized.kt") + public void testLocalInitialized() { + runTest("compiler/testData/codegen/box/lateinit/localInitialized.kt"); + } + + @Test + @TestMetadata("localNotInitialized.kt") + public void testLocalNotInitialized() { + runTest("compiler/testData/codegen/box/lateinit/localNotInitialized.kt"); + } + + @Test + @TestMetadata("notInitialized.kt") + public void testNotInitialized() { + runTest("compiler/testData/codegen/box/lateinit/notInitialized.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/lazyCodegen") @TestDataPath("$PROJECT_ROOT") @@ -25765,6 +28448,100 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest } } + @Nested + @TestMetadata("compiler/testData/codegen/box/literals") + @TestDataPath("$PROJECT_ROOT") + @UseExtTestCaseGroupProvider() + public class Literals { + @Test + public void testAllFilesPresentInLiterals() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/literals"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("listof1.kt") + public void testListof1() { + runTest("compiler/testData/codegen/box/literals/listof1.kt"); + } + + @Test + @TestMetadata("strdedup1.kt") + public void testStrdedup1() { + runTest("compiler/testData/codegen/box/literals/strdedup1.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/localClass") + @TestDataPath("$PROJECT_ROOT") + @UseExtTestCaseGroupProvider() + public class LocalClass { + @Test + public void testAllFilesPresentInLocalClass() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/localClass"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("innerTakesCapturedFromOuter.kt") + public void testInnerTakesCapturedFromOuter() { + runTest("compiler/testData/codegen/box/localClass/innerTakesCapturedFromOuter.kt"); + } + + @Test + @TestMetadata("innerWithCapture.kt") + public void testInnerWithCapture() { + runTest("compiler/testData/codegen/box/localClass/innerWithCapture.kt"); + } + + @Test + @TestMetadata("localFunctionCallFromLocalClass.kt") + public void testLocalFunctionCallFromLocalClass() { + runTest("compiler/testData/codegen/box/localClass/localFunctionCallFromLocalClass.kt"); + } + + @Test + @TestMetadata("localFunctionInLocalClass.kt") + public void testLocalFunctionInLocalClass() { + runTest("compiler/testData/codegen/box/localClass/localFunctionInLocalClass.kt"); + } + + @Test + @TestMetadata("localHierarchy.kt") + public void testLocalHierarchy() { + runTest("compiler/testData/codegen/box/localClass/localHierarchy.kt"); + } + + @Test + @TestMetadata("noPrimaryConstructor.kt") + public void testNoPrimaryConstructor() { + runTest("compiler/testData/codegen/box/localClass/noPrimaryConstructor.kt"); + } + + @Test + @TestMetadata("objectExpressionInInitializer.kt") + public void testObjectExpressionInInitializer() { + runTest("compiler/testData/codegen/box/localClass/objectExpressionInInitializer.kt"); + } + + @Test + @TestMetadata("objectExpressionInProperty.kt") + public void testObjectExpressionInProperty() { + runTest("compiler/testData/codegen/box/localClass/objectExpressionInProperty.kt"); + } + + @Test + @TestMetadata("tryCatch.kt") + public void testTryCatch() { + runTest("compiler/testData/codegen/box/localClass/tryCatch.kt"); + } + + @Test + @TestMetadata("virtualCallFromConstructor.kt") + public void testVirtualCallFromConstructor() { + runTest("compiler/testData/codegen/box/localClass/virtualCallFromConstructor.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/localClasses") @TestDataPath("$PROJECT_ROOT") @@ -26016,6 +28793,40 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest } } + @Nested + @TestMetadata("compiler/testData/codegen/box/localEscapeAnalysis") + @TestDataPath("$PROJECT_ROOT") + @UseExtTestCaseGroupProvider() + public class LocalEscapeAnalysis { + @Test + public void testAllFilesPresentInLocalEscapeAnalysis() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/localEscapeAnalysis"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("arraysFieldWrite.kt") + public void testArraysFieldWrite() { + runTest("compiler/testData/codegen/box/localEscapeAnalysis/arraysFieldWrite.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/lower") + @TestDataPath("$PROJECT_ROOT") + @UseExtTestCaseGroupProvider() + public class Lower { + @Test + public void testAllFilesPresentInLower() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/lower"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("localDelegatedProperty.kt") + public void testLocalDelegatedProperty() { + runTest("compiler/testData/codegen/box/lower/localDelegatedProperty.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/mangling") @TestDataPath("$PROJECT_ROOT") @@ -26044,6 +28855,12 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/mangling/internalOverrideSuperCall.kt"); } + @Test + @TestMetadata("multipleConstructors.kt") + public void testMultipleConstructors() { + runTest("compiler/testData/codegen/box/mangling/multipleConstructors.kt"); + } + @Test @TestMetadata("parentheses.kt") public void testParentheses() { @@ -27027,6 +29844,100 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest } } + @Nested + @TestMetadata("compiler/testData/codegen/box/object") + @TestDataPath("$PROJECT_ROOT") + @UseExtTestCaseGroupProvider() + public class Object { + @Test + public void testAllFilesPresentInObject() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/object"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("constructor0.kt") + public void testConstructor0() { + runTest("compiler/testData/codegen/box/object/constructor0.kt"); + } + + @Test + @TestMetadata("fields.kt") + public void testFields() { + runTest("compiler/testData/codegen/box/object/fields.kt"); + } + + @Test + @TestMetadata("fields1.kt") + public void testFields1() { + runTest("compiler/testData/codegen/box/object/fields1.kt"); + } + + @Test + @TestMetadata("fields2.kt") + public void testFields2() { + runTest("compiler/testData/codegen/box/object/fields2.kt"); + } + + @Test + @TestMetadata("globalInitializer.kt") + public void testGlobalInitializer() { + runTest("compiler/testData/codegen/box/object/globalInitializer.kt"); + } + + @Test + @TestMetadata("init0.kt") + public void testInit0() { + runTest("compiler/testData/codegen/box/object/init0.kt"); + } + + @Test + @TestMetadata("initialization.kt") + public void testInitialization() { + runTest("compiler/testData/codegen/box/object/initialization.kt"); + } + + @Test + @TestMetadata("initialization1.kt") + public void testInitialization1() { + runTest("compiler/testData/codegen/box/object/initialization1.kt"); + } + + @Test + @TestMetadata("method_call.kt") + public void testMethod_call() { + runTest("compiler/testData/codegen/box/object/method_call.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/objectExpression") + @TestDataPath("$PROJECT_ROOT") + @UseExtTestCaseGroupProvider() + public class ObjectExpression { + @Test + public void testAllFilesPresentInObjectExpression() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/objectExpression"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("expr1.kt") + public void testExpr1() { + runTest("compiler/testData/codegen/box/objectExpression/expr1.kt"); + } + + @Test + @TestMetadata("expr2.kt") + public void testExpr2() { + runTest("compiler/testData/codegen/box/objectExpression/expr2.kt"); + } + + @Test + @TestMetadata("expr3.kt") + public void testExpr3() { + runTest("compiler/testData/codegen/box/objectExpression/expr3.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/objectIntrinsics") @TestDataPath("$PROJECT_ROOT") @@ -29755,6 +32666,65 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest } } + @Nested + @TestMetadata("compiler/testData/codegen/box/propertyCallableReference") + @TestDataPath("$PROJECT_ROOT") + @UseExtTestCaseGroupProvider() + public class PropertyCallableReference { + @Test + public void testAllFilesPresentInPropertyCallableReference() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/propertyCallableReference"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("dynamicReceiver.kt") + public void testDynamicReceiver() { + runTest("compiler/testData/codegen/box/propertyCallableReference/dynamicReceiver.kt"); + } + + @Test + @TestMetadata("multipleModules.kt") + public void testMultipleModules() { + runTest("compiler/testData/codegen/box/propertyCallableReference/multipleModules.kt"); + } + + @Test + @TestMetadata("valClass.kt") + public void testValClass() { + runTest("compiler/testData/codegen/box/propertyCallableReference/valClass.kt"); + } + + @Test + @TestMetadata("valExtension.kt") + public void testValExtension() { + runTest("compiler/testData/codegen/box/propertyCallableReference/valExtension.kt"); + } + + @Test + @TestMetadata("valModule.kt") + public void testValModule() { + runTest("compiler/testData/codegen/box/propertyCallableReference/valModule.kt"); + } + + @Test + @TestMetadata("varClass.kt") + public void testVarClass() { + runTest("compiler/testData/codegen/box/propertyCallableReference/varClass.kt"); + } + + @Test + @TestMetadata("varExtension.kt") + public void testVarExtension() { + runTest("compiler/testData/codegen/box/propertyCallableReference/varExtension.kt"); + } + + @Test + @TestMetadata("varModule.kt") + public void testVarModule() { + runTest("compiler/testData/codegen/box/propertyCallableReference/varModule.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/publishedApi") @TestDataPath("$PROJECT_ROOT") @@ -37528,6 +40498,59 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest } } + @Nested + @TestMetadata("compiler/testData/codegen/box/serialization") + @TestDataPath("$PROJECT_ROOT") + @UseExtTestCaseGroupProvider() + public class Serialization { + @Test + public void testAllFilesPresentInSerialization() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/serialization"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("deserializedMembers.kt") + public void testDeserializedMembers() { + runTest("compiler/testData/codegen/box/serialization/deserializedMembers.kt"); + } + + @Test + @TestMetadata("serializedCatch.kt") + public void testSerializedCatch() { + runTest("compiler/testData/codegen/box/serialization/serializedCatch.kt"); + } + + @Test + @TestMetadata("serializedCharConstant.kt") + public void testSerializedCharConstant() { + runTest("compiler/testData/codegen/box/serialization/serializedCharConstant.kt"); + } + + @Test + @TestMetadata("serializedDefaultArgs.kt") + public void testSerializedDefaultArgs() { + runTest("compiler/testData/codegen/box/serialization/serializedDefaultArgs.kt"); + } + + @Test + @TestMetadata("serializedDoWhile.kt") + public void testSerializedDoWhile() { + runTest("compiler/testData/codegen/box/serialization/serializedDoWhile.kt"); + } + + @Test + @TestMetadata("serializedEnumOrdinal.kt") + public void testSerializedEnumOrdinal() { + runTest("compiler/testData/codegen/box/serialization/serializedEnumOrdinal.kt"); + } + + @Test + @TestMetadata("serializedVararg.kt") + public void testSerializedVararg() { + runTest("compiler/testData/codegen/box/serialization/serializedVararg.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/size") @TestDataPath("$PROJECT_ROOT") @@ -37996,6 +41019,23 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest } } + @Nested + @TestMetadata("compiler/testData/codegen/box/stringTrim") + @TestDataPath("$PROJECT_ROOT") + @UseExtTestCaseGroupProvider() + public class StringTrim { + @Test + public void testAllFilesPresentInStringTrim() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/stringTrim"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("stringTrim.kt") + public void testStringTrim() { + runTest("compiler/testData/codegen/box/stringTrim/stringTrim.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/strings") @TestDataPath("$PROJECT_ROOT") @@ -39084,6 +42124,143 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest } } + @Nested + @TestMetadata("compiler/testData/codegen/box/try") + @TestDataPath("$PROJECT_ROOT") + @UseExtTestCaseGroupProvider() + public class Try { + @Test + public void testAllFilesPresentInTry() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/try"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("catch3.kt") + public void testCatch3() { + runTest("compiler/testData/codegen/box/try/catch3.kt"); + } + + @Test + @TestMetadata("catch4.kt") + public void testCatch4() { + runTest("compiler/testData/codegen/box/try/catch4.kt"); + } + + @Test + @TestMetadata("catch5.kt") + public void testCatch5() { + runTest("compiler/testData/codegen/box/try/catch5.kt"); + } + + @Test + @TestMetadata("catch6.kt") + public void testCatch6() { + runTest("compiler/testData/codegen/box/try/catch6.kt"); + } + + @Test + @TestMetadata("catch8.kt") + public void testCatch8() { + runTest("compiler/testData/codegen/box/try/catch8.kt"); + } + + @Test + @TestMetadata("finally1.kt") + public void testFinally1() { + runTest("compiler/testData/codegen/box/try/finally1.kt"); + } + + @Test + @TestMetadata("finally10.kt") + public void testFinally10() { + runTest("compiler/testData/codegen/box/try/finally10.kt"); + } + + @Test + @TestMetadata("finally11.kt") + public void testFinally11() { + runTest("compiler/testData/codegen/box/try/finally11.kt"); + } + + @Test + @TestMetadata("finally2.kt") + public void testFinally2() { + runTest("compiler/testData/codegen/box/try/finally2.kt"); + } + + @Test + @TestMetadata("finally3.kt") + public void testFinally3() { + runTest("compiler/testData/codegen/box/try/finally3.kt"); + } + + @Test + @TestMetadata("finally4.kt") + public void testFinally4() { + runTest("compiler/testData/codegen/box/try/finally4.kt"); + } + + @Test + @TestMetadata("finally5.kt") + public void testFinally5() { + runTest("compiler/testData/codegen/box/try/finally5.kt"); + } + + @Test + @TestMetadata("finally6.kt") + public void testFinally6() { + runTest("compiler/testData/codegen/box/try/finally6.kt"); + } + + @Test + @TestMetadata("finally7.kt") + public void testFinally7() { + runTest("compiler/testData/codegen/box/try/finally7.kt"); + } + + @Test + @TestMetadata("finally8.kt") + public void testFinally8() { + runTest("compiler/testData/codegen/box/try/finally8.kt"); + } + + @Test + @TestMetadata("finally9.kt") + public void testFinally9() { + runTest("compiler/testData/codegen/box/try/finally9.kt"); + } + + @Test + @TestMetadata("returnsDifferentTypes.kt") + public void testReturnsDifferentTypes() { + runTest("compiler/testData/codegen/box/try/returnsDifferentTypes.kt"); + } + + @Test + @TestMetadata("try1.kt") + public void testTry1() { + runTest("compiler/testData/codegen/box/try/try1.kt"); + } + + @Test + @TestMetadata("try2.kt") + public void testTry2() { + runTest("compiler/testData/codegen/box/try/try2.kt"); + } + + @Test + @TestMetadata("try3.kt") + public void testTry3() { + runTest("compiler/testData/codegen/box/try/try3.kt"); + } + + @Test + @TestMetadata("try4.kt") + public void testTry4() { + runTest("compiler/testData/codegen/box/try/try4.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/typeInfo") @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 5bd9e9e7825..c6243458eeb 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 @@ -53,6 +53,12 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT runTest("compiler/testData/codegen/box/annotations/annotationWithDefaultArgInDifferentModule.kt"); } + @Test + @TestMetadata("annotations0.kt") + public void testAnnotations0() { + runTest("compiler/testData/codegen/box/annotations/annotations0.kt"); + } + @Test @TestMetadata("genericAnnotations.kt") public void testGenericAnnotations() { @@ -354,6 +360,85 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT } } + @Nested + @TestMetadata("compiler/testData/codegen/box/arithmetic") + @TestDataPath("$PROJECT_ROOT") + @UseExtTestCaseGroupProvider() + @UsePartialLinkage(mode = Mode.DISABLED) + @Tag("no-partial-linkage-may-be-skipped") + public class Arithmetic { + @Test + public void testAllFilesPresentInArithmetic() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/arithmetic"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("basic_charConversions.kt") + public void testBasic_charConversions() { + runTest("compiler/testData/codegen/box/arithmetic/basic_charConversions.kt"); + } + + @Test + @TestMetadata("basic_charCornerCases.kt") + public void testBasic_charCornerCases() { + runTest("compiler/testData/codegen/box/arithmetic/basic_charCornerCases.kt"); + } + + @Test + @TestMetadata("basic_compareIntToFloat.kt") + public void testBasic_compareIntToFloat() { + runTest("compiler/testData/codegen/box/arithmetic/basic_compareIntToFloat.kt"); + } + + @Test + @TestMetadata("basic_doubleBasic.kt") + public void testBasic_doubleBasic() { + runTest("compiler/testData/codegen/box/arithmetic/basic_doubleBasic.kt"); + } + + @Test + @TestMetadata("basic_integralToFloat.kt") + public void testBasic_integralToFloat() { + runTest("compiler/testData/codegen/box/arithmetic/basic_integralToFloat.kt"); + } + + @Test + @TestMetadata("basic_kt37412.kt") + public void testBasic_kt37412() { + runTest("compiler/testData/codegen/box/arithmetic/basic_kt37412.kt"); + } + + @Test + @TestMetadata("basic_selfComparison.kt") + public void testBasic_selfComparison() { + runTest("compiler/testData/codegen/box/arithmetic/basic_selfComparison.kt"); + } + + @Test + @TestMetadata("basic_shifts.kt") + public void testBasic_shifts() { + runTest("compiler/testData/codegen/box/arithmetic/basic_shifts.kt"); + } + + @Test + @TestMetadata("basic_uintTests.kt") + public void testBasic_uintTests() { + runTest("compiler/testData/codegen/box/arithmetic/basic_uintTests.kt"); + } + + @Test + @TestMetadata("division.kt") + public void testDivision() { + runTest("compiler/testData/codegen/box/arithmetic/division.kt"); + } + + @Test + @TestMetadata("github1856.kt") + public void testGithub1856() { + runTest("compiler/testData/codegen/box/arithmetic/github1856.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/arrays") @TestDataPath("$PROJECT_ROOT") @@ -1035,6 +1120,308 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT } } + @Nested + @TestMetadata("compiler/testData/codegen/box/basics") + @TestDataPath("$PROJECT_ROOT") + @UseExtTestCaseGroupProvider() + @UsePartialLinkage(mode = Mode.DISABLED) + @Tag("no-partial-linkage-may-be-skipped") + public class Basics { + @Test + public void testAllFilesPresentInBasics() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/basics"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("array_to_any.kt") + public void testArray_to_any() { + runTest("compiler/testData/codegen/box/basics/array_to_any.kt"); + } + + @Test + @TestMetadata("canonical_name.kt") + public void testCanonical_name() { + runTest("compiler/testData/codegen/box/basics/canonical_name.kt"); + } + + @Test + @TestMetadata("cast_null.kt") + public void testCast_null() { + runTest("compiler/testData/codegen/box/basics/cast_null.kt"); + } + + @Test + @TestMetadata("cast_simple.kt") + public void testCast_simple() { + runTest("compiler/testData/codegen/box/basics/cast_simple.kt"); + } + + @Test + @TestMetadata("check_type.kt") + public void testCheck_type() { + runTest("compiler/testData/codegen/box/basics/check_type.kt"); + } + + @Test + @TestMetadata("companion.kt") + public void testCompanion() { + runTest("compiler/testData/codegen/box/basics/companion.kt"); + } + + @Test + @TestMetadata("concatenation.kt") + public void testConcatenation() { + runTest("compiler/testData/codegen/box/basics/concatenation.kt"); + } + + @Test + @TestMetadata("const_infinity.kt") + public void testConst_infinity() { + runTest("compiler/testData/codegen/box/basics/const_infinity.kt"); + } + + @Test + @TestMetadata("expression_as_statement.kt") + public void testExpression_as_statement() { + runTest("compiler/testData/codegen/box/basics/expression_as_statement.kt"); + } + + @Test + @TestMetadata("k42000_1.kt") + public void testK42000_1() { + runTest("compiler/testData/codegen/box/basics/k42000_1.kt"); + } + + @Test + @TestMetadata("k42000_2.kt") + public void testK42000_2() { + runTest("compiler/testData/codegen/box/basics/k42000_2.kt"); + } + + @Test + @TestMetadata("local_variable.kt") + public void testLocal_variable() { + runTest("compiler/testData/codegen/box/basics/local_variable.kt"); + } + + @Test + @TestMetadata("null_check.kt") + public void testNull_check() { + runTest("compiler/testData/codegen/box/basics/null_check.kt"); + } + + @Test + @TestMetadata("safe_cast.kt") + public void testSafe_cast() { + runTest("compiler/testData/codegen/box/basics/safe_cast.kt"); + } + + @Test + @TestMetadata("spread_operator_0.kt") + public void testSpread_operator_0() { + runTest("compiler/testData/codegen/box/basics/spread_operator_0.kt"); + } + + @Test + @TestMetadata("statements0.kt") + public void testStatements0() { + runTest("compiler/testData/codegen/box/basics/statements0.kt"); + } + + @Test + @TestMetadata("superFunCall.kt") + public void testSuperFunCall() { + runTest("compiler/testData/codegen/box/basics/superFunCall.kt"); + } + + @Test + @TestMetadata("superGetterCall.kt") + public void testSuperGetterCall() { + runTest("compiler/testData/codegen/box/basics/superGetterCall.kt"); + } + + @Test + @TestMetadata("superSetterCall.kt") + public void testSuperSetterCall() { + runTest("compiler/testData/codegen/box/basics/superSetterCall.kt"); + } + + @Test + @TestMetadata("typealias1.kt") + public void testTypealias1() { + runTest("compiler/testData/codegen/box/basics/typealias1.kt"); + } + + @Test + @TestMetadata("unchecked_cast1.kt") + public void testUnchecked_cast1() { + runTest("compiler/testData/codegen/box/basics/unchecked_cast1.kt"); + } + + @Test + @TestMetadata("unchecked_cast2.kt") + public void testUnchecked_cast2() { + runTest("compiler/testData/codegen/box/basics/unchecked_cast2.kt"); + } + + @Test + @TestMetadata("unchecked_cast3.kt") + public void testUnchecked_cast3() { + runTest("compiler/testData/codegen/box/basics/unchecked_cast3.kt"); + } + + @Test + @TestMetadata("unchecked_cast4.kt") + public void testUnchecked_cast4() { + runTest("compiler/testData/codegen/box/basics/unchecked_cast4.kt"); + } + + @Test + @TestMetadata("unit1.kt") + public void testUnit1() { + runTest("compiler/testData/codegen/box/basics/unit1.kt"); + } + + @Test + @TestMetadata("unit2.kt") + public void testUnit2() { + runTest("compiler/testData/codegen/box/basics/unit2.kt"); + } + + @Test + @TestMetadata("unit3.kt") + public void testUnit3() { + runTest("compiler/testData/codegen/box/basics/unit3.kt"); + } + + @Test + @TestMetadata("unit4.kt") + public void testUnit4() { + runTest("compiler/testData/codegen/box/basics/unit4.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/bce") + @TestDataPath("$PROJECT_ROOT") + @UseExtTestCaseGroupProvider() + @UsePartialLinkage(mode = Mode.DISABLED) + @Tag("no-partial-linkage-may-be-skipped") + public class Bce { + @Test + public void testAllFilesPresentInBce() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/bce"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("bceCases.kt") + public void testBceCases() { + runTest("compiler/testData/codegen/box/bce/bceCases.kt"); + } + + @Test + @TestMetadata("customGetter.kt") + public void testCustomGetter() { + runTest("compiler/testData/codegen/box/bce/customGetter.kt"); + } + + @Test + @TestMetadata("delegatedProperty.kt") + public void testDelegatedProperty() { + runTest("compiler/testData/codegen/box/bce/delegatedProperty.kt"); + } + + @Test + @TestMetadata("differentArrays.kt") + public void testDifferentArrays() { + runTest("compiler/testData/codegen/box/bce/differentArrays.kt"); + } + + @Test + @TestMetadata("differentObjects.kt") + public void testDifferentObjects() { + runTest("compiler/testData/codegen/box/bce/differentObjects.kt"); + } + + @Test + @TestMetadata("forDownToSize.kt") + public void testForDownToSize() { + runTest("compiler/testData/codegen/box/bce/forDownToSize.kt"); + } + + @Test + @TestMetadata("forDownToWithStep.kt") + public void testForDownToWithStep() { + runTest("compiler/testData/codegen/box/bce/forDownToWithStep.kt"); + } + + @Test + @TestMetadata("forEachIndexedTest.kt") + public void testForEachIndexedTest() { + runTest("compiler/testData/codegen/box/bce/forEachIndexedTest.kt"); + } + + @Test + @TestMetadata("forEachIndicies.kt") + public void testForEachIndicies() { + runTest("compiler/testData/codegen/box/bce/forEachIndicies.kt"); + } + + @Test + @TestMetadata("forIndiciesWithStep.kt") + public void testForIndiciesWithStep() { + runTest("compiler/testData/codegen/box/bce/forIndiciesWithStep.kt"); + } + + @Test + @TestMetadata("forRangeToSize.kt") + public void testForRangeToSize() { + runTest("compiler/testData/codegen/box/bce/forRangeToSize.kt"); + } + + @Test + @TestMetadata("forRangeToWithStep.kt") + public void testForRangeToWithStep() { + runTest("compiler/testData/codegen/box/bce/forRangeToWithStep.kt"); + } + + @Test + @TestMetadata("forReversed.kt") + public void testForReversed() { + runTest("compiler/testData/codegen/box/bce/forReversed.kt"); + } + + @Test + @TestMetadata("forUntilSize.kt") + public void testForUntilSize() { + runTest("compiler/testData/codegen/box/bce/forUntilSize.kt"); + } + + @Test + @TestMetadata("forUntilWithStep.kt") + public void testForUntilWithStep() { + runTest("compiler/testData/codegen/box/bce/forUntilWithStep.kt"); + } + + @Test + @TestMetadata("forWithIndex.kt") + public void testForWithIndex() { + runTest("compiler/testData/codegen/box/bce/forWithIndex.kt"); + } + + @Test + @TestMetadata("inheritance.kt") + public void testInheritance() { + runTest("compiler/testData/codegen/box/bce/inheritance.kt"); + } + + @Test + @TestMetadata("withGetter.kt") + public void testWithGetter() { + runTest("compiler/testData/codegen/box/bce/withGetter.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/binaryOp") @TestDataPath("$PROJECT_ROOT") @@ -1204,6 +1591,127 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT } } + @Nested + @TestMetadata("compiler/testData/codegen/box/boxing") + @TestDataPath("$PROJECT_ROOT") + @UseExtTestCaseGroupProvider() + @UsePartialLinkage(mode = Mode.DISABLED) + @Tag("no-partial-linkage-may-be-skipped") + public class Boxing { + @Test + public void testAllFilesPresentInBoxing() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/boxing"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("box_cache0.kt") + public void testBox_cache0() { + runTest("compiler/testData/codegen/box/boxing/box_cache0.kt"); + } + + @Test + @TestMetadata("boxing0.kt") + public void testBoxing0() { + runTest("compiler/testData/codegen/box/boxing/boxing0.kt"); + } + + @Test + @TestMetadata("boxing1.kt") + public void testBoxing1() { + runTest("compiler/testData/codegen/box/boxing/boxing1.kt"); + } + + @Test + @TestMetadata("boxing10.kt") + public void testBoxing10() { + runTest("compiler/testData/codegen/box/boxing/boxing10.kt"); + } + + @Test + @TestMetadata("boxing11.kt") + public void testBoxing11() { + runTest("compiler/testData/codegen/box/boxing/boxing11.kt"); + } + + @Test + @TestMetadata("boxing12.kt") + public void testBoxing12() { + runTest("compiler/testData/codegen/box/boxing/boxing12.kt"); + } + + @Test + @TestMetadata("boxing13.kt") + public void testBoxing13() { + runTest("compiler/testData/codegen/box/boxing/boxing13.kt"); + } + + @Test + @TestMetadata("boxing14.kt") + public void testBoxing14() { + runTest("compiler/testData/codegen/box/boxing/boxing14.kt"); + } + + @Test + @TestMetadata("boxing15.kt") + public void testBoxing15() { + runTest("compiler/testData/codegen/box/boxing/boxing15.kt"); + } + + @Test + @TestMetadata("boxing2.kt") + public void testBoxing2() { + runTest("compiler/testData/codegen/box/boxing/boxing2.kt"); + } + + @Test + @TestMetadata("boxing3.kt") + public void testBoxing3() { + runTest("compiler/testData/codegen/box/boxing/boxing3.kt"); + } + + @Test + @TestMetadata("boxing4.kt") + public void testBoxing4() { + runTest("compiler/testData/codegen/box/boxing/boxing4.kt"); + } + + @Test + @TestMetadata("boxing5.kt") + public void testBoxing5() { + runTest("compiler/testData/codegen/box/boxing/boxing5.kt"); + } + + @Test + @TestMetadata("boxing6.kt") + public void testBoxing6() { + runTest("compiler/testData/codegen/box/boxing/boxing6.kt"); + } + + @Test + @TestMetadata("boxing7.kt") + public void testBoxing7() { + runTest("compiler/testData/codegen/box/boxing/boxing7.kt"); + } + + @Test + @TestMetadata("boxing8.kt") + public void testBoxing8() { + runTest("compiler/testData/codegen/box/boxing/boxing8.kt"); + } + + @Test + @TestMetadata("boxing9.kt") + public void testBoxing9() { + runTest("compiler/testData/codegen/box/boxing/boxing9.kt"); + } + + @Test + @TestMetadata("kt53100_casts.kt") + public void testKt53100_casts() { + runTest("compiler/testData/codegen/box/boxing/kt53100_casts.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/boxingOptimization") @TestDataPath("$PROJECT_ROOT") @@ -1451,6 +1959,91 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT } } + @Nested + @TestMetadata("compiler/testData/codegen/box/branching") + @TestDataPath("$PROJECT_ROOT") + @UseExtTestCaseGroupProvider() + @UsePartialLinkage(mode = Mode.DISABLED) + @Tag("no-partial-linkage-may-be-skipped") + public class Branching { + @Test + @TestMetadata("advanced_when2.kt") + public void testAdvanced_when2() { + runTest("compiler/testData/codegen/box/branching/advanced_when2.kt"); + } + + @Test + @TestMetadata("advanced_when5.kt") + public void testAdvanced_when5() { + runTest("compiler/testData/codegen/box/branching/advanced_when5.kt"); + } + + @Test + public void testAllFilesPresentInBranching() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/branching"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("if_else.kt") + public void testIf_else() { + runTest("compiler/testData/codegen/box/branching/if_else.kt"); + } + + @Test + @TestMetadata("when2.kt") + public void testWhen2() { + runTest("compiler/testData/codegen/box/branching/when2.kt"); + } + + @Test + @TestMetadata("when4.kt") + public void testWhen4() { + runTest("compiler/testData/codegen/box/branching/when4.kt"); + } + + @Test + @TestMetadata("when5.kt") + public void testWhen5() { + runTest("compiler/testData/codegen/box/branching/when5.kt"); + } + + @Test + @TestMetadata("when6.kt") + public void testWhen6() { + runTest("compiler/testData/codegen/box/branching/when6.kt"); + } + + @Test + @TestMetadata("when7.kt") + public void testWhen7() { + runTest("compiler/testData/codegen/box/branching/when7.kt"); + } + + @Test + @TestMetadata("when8.kt") + public void testWhen8() { + runTest("compiler/testData/codegen/box/branching/when8.kt"); + } + + @Test + @TestMetadata("when9.kt") + public void testWhen9() { + runTest("compiler/testData/codegen/box/branching/when9.kt"); + } + + @Test + @TestMetadata("when_through.kt") + public void testWhen_through() { + runTest("compiler/testData/codegen/box/branching/when_through.kt"); + } + + @Test + @TestMetadata("when_with_try1.kt") + public void testWhen_with_try1() { + runTest("compiler/testData/codegen/box/branching/when_with_try1.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/bridges") @TestDataPath("$PROJECT_ROOT") @@ -1691,6 +2284,18 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT runTest("compiler/testData/codegen/box/bridges/methodWithDefaultParameter.kt"); } + @Test + @TestMetadata("multipleModules1.kt") + public void testMultipleModules1() { + runTest("compiler/testData/codegen/box/bridges/multipleModules1.kt"); + } + + @Test + @TestMetadata("multipleModules2.kt") + public void testMultipleModules2() { + runTest("compiler/testData/codegen/box/bridges/multipleModules2.kt"); + } + @Test @TestMetadata("nestedClassTypeParameters.kt") public void testNestedClassTypeParameters() { @@ -1751,6 +2356,12 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT runTest("compiler/testData/codegen/box/bridges/propertySetter.kt"); } + @Test + @TestMetadata("returnTypeSignature.kt") + public void testReturnTypeSignature() { + runTest("compiler/testData/codegen/box/bridges/returnTypeSignature.kt"); + } + @Test @TestMetadata("simple.kt") public void testSimple() { @@ -1793,12 +2404,138 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT runTest("compiler/testData/codegen/box/bridges/simpleUpperBound.kt"); } + @Test + @TestMetadata("special.kt") + public void testSpecial() { + runTest("compiler/testData/codegen/box/bridges/special.kt"); + } + + @Test + @TestMetadata("specialGeneric.kt") + public void testSpecialGeneric() { + runTest("compiler/testData/codegen/box/bridges/specialGeneric.kt"); + } + @Test @TestMetadata("strListContains.kt") public void testStrListContains() { runTest("compiler/testData/codegen/box/bridges/strListContains.kt"); } + @Test + @TestMetadata("test0.kt") + public void testTest0() { + runTest("compiler/testData/codegen/box/bridges/test0.kt"); + } + + @Test + @TestMetadata("test1.kt") + public void testTest1() { + runTest("compiler/testData/codegen/box/bridges/test1.kt"); + } + + @Test + @TestMetadata("test10.kt") + public void testTest10() { + runTest("compiler/testData/codegen/box/bridges/test10.kt"); + } + + @Test + @TestMetadata("test11.kt") + public void testTest11() { + runTest("compiler/testData/codegen/box/bridges/test11.kt"); + } + + @Test + @TestMetadata("test12.kt") + public void testTest12() { + runTest("compiler/testData/codegen/box/bridges/test12.kt"); + } + + @Test + @TestMetadata("test13.kt") + public void testTest13() { + runTest("compiler/testData/codegen/box/bridges/test13.kt"); + } + + @Test + @TestMetadata("test14.kt") + public void testTest14() { + runTest("compiler/testData/codegen/box/bridges/test14.kt"); + } + + @Test + @TestMetadata("test15.kt") + public void testTest15() { + runTest("compiler/testData/codegen/box/bridges/test15.kt"); + } + + @Test + @TestMetadata("test16.kt") + public void testTest16() { + runTest("compiler/testData/codegen/box/bridges/test16.kt"); + } + + @Test + @TestMetadata("test17.kt") + public void testTest17() { + runTest("compiler/testData/codegen/box/bridges/test17.kt"); + } + + @Test + @TestMetadata("test18.kt") + public void testTest18() { + runTest("compiler/testData/codegen/box/bridges/test18.kt"); + } + + @Test + @TestMetadata("test2.kt") + public void testTest2() { + runTest("compiler/testData/codegen/box/bridges/test2.kt"); + } + + @Test + @TestMetadata("test3.kt") + public void testTest3() { + runTest("compiler/testData/codegen/box/bridges/test3.kt"); + } + + @Test + @TestMetadata("test4.kt") + public void testTest4() { + runTest("compiler/testData/codegen/box/bridges/test4.kt"); + } + + @Test + @TestMetadata("test5.kt") + public void testTest5() { + runTest("compiler/testData/codegen/box/bridges/test5.kt"); + } + + @Test + @TestMetadata("test6.kt") + public void testTest6() { + runTest("compiler/testData/codegen/box/bridges/test6.kt"); + } + + @Test + @TestMetadata("test7.kt") + public void testTest7() { + runTest("compiler/testData/codegen/box/bridges/test7.kt"); + } + + @Test + @TestMetadata("test8.kt") + public void testTest8() { + runTest("compiler/testData/codegen/box/bridges/test8.kt"); + } + + @Test + @TestMetadata("test9.kt") + public void testTest9() { + runTest("compiler/testData/codegen/box/bridges/test9.kt"); + } + @Test @TestMetadata("traitImplInheritsTraitImpl.kt") public void testTraitImplInheritsTraitImpl() { @@ -4797,6 +5534,49 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT } } + @Nested + @TestMetadata("compiler/testData/codegen/box/classDelegation") + @TestDataPath("$PROJECT_ROOT") + @UseExtTestCaseGroupProvider() + @UsePartialLinkage(mode = Mode.DISABLED) + @Tag("no-partial-linkage-may-be-skipped") + public class ClassDelegation { + @Test + public void testAllFilesPresentInClassDelegation() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/classDelegation"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("generic.kt") + public void testGeneric() { + runTest("compiler/testData/codegen/box/classDelegation/generic.kt"); + } + + @Test + @TestMetadata("method.kt") + public void testMethod() { + runTest("compiler/testData/codegen/box/classDelegation/method.kt"); + } + + @Test + @TestMetadata("multipleModules.kt") + public void testMultipleModules() { + runTest("compiler/testData/codegen/box/classDelegation/multipleModules.kt"); + } + + @Test + @TestMetadata("property.kt") + public void testProperty() { + runTest("compiler/testData/codegen/box/classDelegation/property.kt"); + } + + @Test + @TestMetadata("withBridge.kt") + public void testWithBridge() { + runTest("compiler/testData/codegen/box/classDelegation/withBridge.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/classLiteral") @TestDataPath("$PROJECT_ROOT") @@ -7190,6 +7970,12 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT runTest("compiler/testData/codegen/box/contracts/constructorArgument.kt"); } + @Test + @TestMetadata("contractForCast.kt") + public void testContractForCast() { + runTest("compiler/testData/codegen/box/contracts/contractForCast.kt"); + } + @Test @TestMetadata("destructuredVariable.kt") public void testDestructuredVariable() { @@ -7232,6 +8018,12 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT runTest("compiler/testData/codegen/box/contracts/functionParameter.kt"); } + @Test + @TestMetadata("isNullString.kt") + public void testIsNullString() { + runTest("compiler/testData/codegen/box/contracts/isNullString.kt"); + } + @Test @TestMetadata("kt39374.kt") public void testKt39374() { @@ -7274,6 +8066,24 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT runTest("compiler/testData/codegen/box/contracts/nestedLambdaInNonInlineCallExactlyOnce.kt"); } + @Test + @TestMetadata("nonNullSmartCast.kt") + public void testNonNullSmartCast() { + runTest("compiler/testData/codegen/box/contracts/nonNullSmartCast.kt"); + } + + @Test + @TestMetadata("require.kt") + public void testRequire() { + runTest("compiler/testData/codegen/box/contracts/require.kt"); + } + + @Test + @TestMetadata("runLambdaForVal.kt") + public void testRunLambdaForVal() { + runTest("compiler/testData/codegen/box/contracts/runLambdaForVal.kt"); + } + @Test @TestMetadata("valInWhen.kt") public void testValInWhen() { @@ -8691,6 +9501,127 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT } } + @Nested + @TestMetadata("compiler/testData/codegen/box/controlflow") + @TestDataPath("$PROJECT_ROOT") + @UseExtTestCaseGroupProvider() + @UsePartialLinkage(mode = Mode.DISABLED) + @Tag("no-partial-linkage-may-be-skipped") + public class Controlflow { + @Test + public void testAllFilesPresentInControlflow() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/controlflow"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("break.kt") + public void testBreak() { + runTest("compiler/testData/codegen/box/controlflow/break.kt"); + } + + @Test + @TestMetadata("break1.kt") + public void testBreak1() { + runTest("compiler/testData/codegen/box/controlflow/break1.kt"); + } + + @Test + @TestMetadata("for_loops.kt") + public void testFor_loops() { + runTest("compiler/testData/codegen/box/controlflow/for_loops.kt"); + } + + @Test + @TestMetadata("for_loops_array_break_continue.kt") + public void testFor_loops_array_break_continue() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_array_break_continue.kt"); + } + + @Test + @TestMetadata("for_loops_array_indices.kt") + public void testFor_loops_array_indices() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_array_indices.kt"); + } + + @Test + @TestMetadata("for_loops_array_mutation.kt") + public void testFor_loops_array_mutation() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_array_mutation.kt"); + } + + @Test + @TestMetadata("for_loops_array_nested.kt") + public void testFor_loops_array_nested() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_array_nested.kt"); + } + + @Test + @TestMetadata("for_loops_array_nullable.kt") + public void testFor_loops_array_nullable() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_array_nullable.kt"); + } + + @Test + @TestMetadata("for_loops_array_side_effects.kt") + public void testFor_loops_array_side_effects() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_array_side_effects.kt"); + } + + @Test + @TestMetadata("for_loops_call_order.kt") + public void testFor_loops_call_order() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_call_order.kt"); + } + + @Test + @TestMetadata("for_loops_coroutines.kt") + public void testFor_loops_coroutines() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_coroutines.kt"); + } + + @Test + @TestMetadata("for_loops_empty_range.kt") + public void testFor_loops_empty_range() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_empty_range.kt"); + } + + @Test + @TestMetadata("for_loops_errors.kt") + public void testFor_loops_errors() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_errors.kt"); + } + + @Test + @TestMetadata("for_loops_let_with_nullable.kt") + public void testFor_loops_let_with_nullable() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_let_with_nullable.kt"); + } + + @Test + @TestMetadata("for_loops_nested.kt") + public void testFor_loops_nested() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_nested.kt"); + } + + @Test + @TestMetadata("for_loops_overflow.kt") + public void testFor_loops_overflow() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_overflow.kt"); + } + + @Test + @TestMetadata("for_loops_types.kt") + public void testFor_loops_types() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_types.kt"); + } + + @Test + @TestMetadata("unreachable1.kt") + public void testUnreachable1() { + runTest("compiler/testData/codegen/box/controlflow/unreachable1.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/coroutines") @TestDataPath("$PROJECT_ROOT") @@ -8715,6 +9646,12 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); } + @Test + @TestMetadata("anonymousObject.kt") + public void testAnonymousObject() { + runTest("compiler/testData/codegen/box/coroutines/anonymousObject.kt"); + } + @Test @TestMetadata("asyncIteratorNullMerge_1_3.kt") public void testAsyncIteratorNullMerge_1_3() { @@ -8799,18 +9736,156 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT runTest("compiler/testData/codegen/box/coroutines/coercionToUnit.kt"); } + @Test + @TestMetadata("controlFlow_chain.kt") + public void testControlFlow_chain() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_chain.kt"); + } + + @Test + @TestMetadata("controlFlow_finally1.kt") + public void testControlFlow_finally1() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally1.kt"); + } + + @Test + @TestMetadata("controlFlow_finally2.kt") + public void testControlFlow_finally2() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally2.kt"); + } + + @Test + @TestMetadata("controlFlow_finally3.kt") + public void testControlFlow_finally3() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally3.kt"); + } + + @Test + @TestMetadata("controlFlow_finally4.kt") + public void testControlFlow_finally4() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally4.kt"); + } + + @Test + @TestMetadata("controlFlow_finally5.kt") + public void testControlFlow_finally5() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally5.kt"); + } + + @Test + @TestMetadata("controlFlow_finally6.kt") + public void testControlFlow_finally6() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally6.kt"); + } + + @Test + @TestMetadata("controlFlow_finally7.kt") + public void testControlFlow_finally7() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally7.kt"); + } + + @Test + @TestMetadata("controlFlow_if1.kt") + public void testControlFlow_if1() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_if1.kt"); + } + + @Test + @TestMetadata("controlFlow_if2.kt") + public void testControlFlow_if2() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_if2.kt"); + } + + @Test + @TestMetadata("controlFlow_inline1.kt") + public void testControlFlow_inline1() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_inline1.kt"); + } + + @Test + @TestMetadata("controlFlow_inline2.kt") + public void testControlFlow_inline2() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_inline2.kt"); + } + + @Test + @TestMetadata("controlFlow_inline3.kt") + public void testControlFlow_inline3() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_inline3.kt"); + } + + @Test + @TestMetadata("controlFlow_tryCatch1.kt") + public void testControlFlow_tryCatch1() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_tryCatch1.kt"); + } + + @Test + @TestMetadata("controlFlow_tryCatch2.kt") + public void testControlFlow_tryCatch2() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_tryCatch2.kt"); + } + + @Test + @TestMetadata("controlFlow_tryCatch3.kt") + public void testControlFlow_tryCatch3() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_tryCatch3.kt"); + } + + @Test + @TestMetadata("controlFlow_tryCatch4.kt") + public void testControlFlow_tryCatch4() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_tryCatch4.kt"); + } + + @Test + @TestMetadata("controlFlow_tryCatch5.kt") + public void testControlFlow_tryCatch5() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_tryCatch5.kt"); + } + + @Test + @TestMetadata("controlFlow_while1.kt") + public void testControlFlow_while1() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_while1.kt"); + } + + @Test + @TestMetadata("controlFlow_while2.kt") + public void testControlFlow_while2() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_while2.kt"); + } + @Test @TestMetadata("controllerAccessFromInnerLambda.kt") public void testControllerAccessFromInnerLambda() { runTest("compiler/testData/codegen/box/coroutines/controllerAccessFromInnerLambda.kt"); } + @Test + @TestMetadata("coroutineContext1.kt") + public void testCoroutineContext1() { + runTest("compiler/testData/codegen/box/coroutines/coroutineContext1.kt"); + } + + @Test + @TestMetadata("coroutineContext2.kt") + public void testCoroutineContext2() { + runTest("compiler/testData/codegen/box/coroutines/coroutineContext2.kt"); + } + @Test @TestMetadata("coroutineContextInInlinedLambda.kt") public void testCoroutineContextInInlinedLambda() { runTest("compiler/testData/codegen/box/coroutines/coroutineContextInInlinedLambda.kt"); } + @Test + @TestMetadata("correctOrder1.kt") + public void testCorrectOrder1() { + runTest("compiler/testData/codegen/box/coroutines/correctOrder1.kt"); + } + @Test @TestMetadata("createCoroutineSafe.kt") public void testCreateCoroutineSafe() { @@ -8841,6 +9916,18 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT runTest("compiler/testData/codegen/box/coroutines/defaultParametersInSuspend.kt"); } + @Test + @TestMetadata("degenerate1.kt") + public void testDegenerate1() { + runTest("compiler/testData/codegen/box/coroutines/degenerate1.kt"); + } + + @Test + @TestMetadata("degenerate2.kt") + public void testDegenerate2() { + runTest("compiler/testData/codegen/box/coroutines/degenerate2.kt"); + } + @Test @TestMetadata("delegatedSuspendMember.kt") public void testDelegatedSuspendMember() { @@ -8889,6 +9976,30 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT runTest("compiler/testData/codegen/box/coroutines/falseUnitCoercion.kt"); } + @Test + @TestMetadata("functionReference_eqeq_name.kt") + public void testFunctionReference_eqeq_name() { + runTest("compiler/testData/codegen/box/coroutines/functionReference_eqeq_name.kt"); + } + + @Test + @TestMetadata("functionReference_invokeAsFunction.kt") + public void testFunctionReference_invokeAsFunction() { + runTest("compiler/testData/codegen/box/coroutines/functionReference_invokeAsFunction.kt"); + } + + @Test + @TestMetadata("functionReference_lambdaAsSuspendLambda.kt") + public void testFunctionReference_lambdaAsSuspendLambda() { + runTest("compiler/testData/codegen/box/coroutines/functionReference_lambdaAsSuspendLambda.kt"); + } + + @Test + @TestMetadata("functionReference_simple.kt") + public void testFunctionReference_simple() { + runTest("compiler/testData/codegen/box/coroutines/functionReference_simple.kt"); + } + @Test @TestMetadata("generate.kt") public void testGenerate() { @@ -9063,6 +10174,12 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT runTest("compiler/testData/codegen/box/coroutines/kt35967.kt"); } + @Test + @TestMetadata("kt41394.kt") + public void testKt41394() { + runTest("compiler/testData/codegen/box/coroutines/kt41394.kt"); + } + @Test @TestMetadata("kt42028.kt") public void testKt42028() { @@ -9291,12 +10408,30 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT runTest("compiler/testData/codegen/box/coroutines/returnByLabel.kt"); } + @Test + @TestMetadata("returnsNothing1.kt") + public void testReturnsNothing1() { + runTest("compiler/testData/codegen/box/coroutines/returnsNothing1.kt"); + } + + @Test + @TestMetadata("returnsUnit1.kt") + public void testReturnsUnit1() { + runTest("compiler/testData/codegen/box/coroutines/returnsUnit1.kt"); + } + @Test @TestMetadata("simple.kt") public void testSimple() { runTest("compiler/testData/codegen/box/coroutines/simple.kt"); } + @Test + @TestMetadata("simple2.kt") + public void testSimple2() { + runTest("compiler/testData/codegen/box/coroutines/simple2.kt"); + } + @Test @TestMetadata("simpleException.kt") public void testSimpleException() { @@ -9339,6 +10474,12 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT runTest("compiler/testData/codegen/box/coroutines/suspendCallsInArguments.kt"); } + @Test + @TestMetadata("suspendConversion.kt") + public void testSuspendConversion() { + runTest("compiler/testData/codegen/box/coroutines/suspendConversion.kt"); + } + @Test @TestMetadata("suspendCoroutineFromStateMachine.kt") public void testSuspendCoroutineFromStateMachine() { @@ -9495,6 +10636,12 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT runTest("compiler/testData/codegen/box/coroutines/varargCallFromSuspend.kt"); } + @Test + @TestMetadata("withReceiver.kt") + public void testWithReceiver() { + runTest("compiler/testData/codegen/box/coroutines/withReceiver.kt"); + } + @Nested @TestMetadata("compiler/testData/codegen/box/coroutines/bridges") @TestDataPath("$PROJECT_ROOT") @@ -11830,6 +12977,37 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT } } + @Nested + @TestMetadata("compiler/testData/codegen/box/cycles") + @TestDataPath("$PROJECT_ROOT") + @UseExtTestCaseGroupProvider() + @UsePartialLinkage(mode = Mode.DISABLED) + @Tag("no-partial-linkage-may-be-skipped") + public class Cycles { + @Test + public void testAllFilesPresentInCycles() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cycles"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("cycle.kt") + public void testCycle() { + runTest("compiler/testData/codegen/box/cycles/cycle.kt"); + } + + @Test + @TestMetadata("cycle_do.kt") + public void testCycle_do() { + runTest("compiler/testData/codegen/box/cycles/cycle_do.kt"); + } + + @Test + @TestMetadata("cycle_for.kt") + public void testCycle_for() { + runTest("compiler/testData/codegen/box/cycles/cycle_for.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/dataClasses") @TestDataPath("$PROJECT_ROOT") @@ -12257,6 +13435,31 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT } } + @Nested + @TestMetadata("compiler/testData/codegen/box/dataflow") + @TestDataPath("$PROJECT_ROOT") + @UseExtTestCaseGroupProvider() + @UsePartialLinkage(mode = Mode.DISABLED) + @Tag("no-partial-linkage-may-be-skipped") + public class Dataflow { + @Test + public void testAllFilesPresentInDataflow() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/dataflow"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("scope1.kt") + public void testScope1() { + runTest("compiler/testData/codegen/box/dataflow/scope1.kt"); + } + + @Test + @TestMetadata("uninitialized_val.kt") + public void testUninitialized_val() { + runTest("compiler/testData/codegen/box/dataflow/uninitialized_val.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/deadCodeElimination") @TestDataPath("$PROJECT_ROOT") @@ -12900,6 +14103,12 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT runTest("compiler/testData/codegen/box/delegatedProperty/castSetParameter.kt"); } + @Test + @TestMetadata("correctFieldsOrder.kt") + public void testCorrectFieldsOrder() { + runTest("compiler/testData/codegen/box/delegatedProperty/correctFieldsOrder.kt"); + } + @Test @TestMetadata("delegateAsInnerClass.kt") public void testDelegateAsInnerClass() { @@ -12954,6 +14163,12 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT runTest("compiler/testData/codegen/box/delegatedProperty/delegateWithPrivateSet.kt"); } + @Test + @TestMetadata("delegatedOverride.kt") + public void testDelegatedOverride() { + runTest("compiler/testData/codegen/box/delegatedProperty/delegatedOverride.kt"); + } + @Test @TestMetadata("delegatedPropertyInEnum.kt") public void testDelegatedPropertyInEnum() { @@ -13086,12 +14301,42 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT runTest("compiler/testData/codegen/box/delegatedProperty/kt9712.kt"); } + @Test + @TestMetadata("lazy.kt") + public void testLazy() { + runTest("compiler/testData/codegen/box/delegatedProperty/lazy.kt"); + } + + @Test + @TestMetadata("local.kt") + public void testLocal() { + runTest("compiler/testData/codegen/box/delegatedProperty/local.kt"); + } + + @Test + @TestMetadata("map.kt") + public void testMap() { + runTest("compiler/testData/codegen/box/delegatedProperty/map.kt"); + } + @Test @TestMetadata("noTypeVariablesLeft.kt") public void testNoTypeVariablesLeft() { runTest("compiler/testData/codegen/box/delegatedProperty/noTypeVariablesLeft.kt"); } + @Test + @TestMetadata("observable.kt") + public void testObservable() { + runTest("compiler/testData/codegen/box/delegatedProperty/observable.kt"); + } + + @Test + @TestMetadata("packageLevel.kt") + public void testPackageLevel() { + runTest("compiler/testData/codegen/box/delegatedProperty/packageLevel.kt"); + } + @Test @TestMetadata("privateVar.kt") public void testPrivateVar() { @@ -13134,6 +14379,18 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT runTest("compiler/testData/codegen/box/delegatedProperty/setAsExtensionFunInClass.kt"); } + @Test + @TestMetadata("simpleVal.kt") + public void testSimpleVal() { + runTest("compiler/testData/codegen/box/delegatedProperty/simpleVal.kt"); + } + + @Test + @TestMetadata("simpleVar.kt") + public void testSimpleVar() { + runTest("compiler/testData/codegen/box/delegatedProperty/simpleVar.kt"); + } + @Test @TestMetadata("topLevelVal.kt") public void testTopLevelVal() { @@ -13974,6 +15231,43 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT } } + @Nested + @TestMetadata("compiler/testData/codegen/box/devirtualization") + @TestDataPath("$PROJECT_ROOT") + @UseExtTestCaseGroupProvider() + @UsePartialLinkage(mode = Mode.DISABLED) + @Tag("no-partial-linkage-may-be-skipped") + public class Devirtualization { + @Test + public void testAllFilesPresentInDevirtualization() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/devirtualization"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("anonymousObject.kt") + public void testAnonymousObject() { + runTest("compiler/testData/codegen/box/devirtualization/anonymousObject.kt"); + } + + @Test + @TestMetadata("getter_looking_as_box_function.kt") + public void testGetter_looking_as_box_function() { + runTest("compiler/testData/codegen/box/devirtualization/getter_looking_as_box_function.kt"); + } + + @Test + @TestMetadata("inline_getter.kt") + public void testInline_getter() { + runTest("compiler/testData/codegen/box/devirtualization/inline_getter.kt"); + } + + @Test + @TestMetadata("lateinitInterface.kt") + public void testLateinitInterface() { + runTest("compiler/testData/codegen/box/devirtualization/lateinitInterface.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/diagnostics") @TestDataPath("$PROJECT_ROOT") @@ -14620,6 +15914,12 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT runTest("compiler/testData/codegen/box/enum/companionAccessingEnumValue.kt"); } + @Test + @TestMetadata("companionObject.kt") + public void testCompanionObject() { + runTest("compiler/testData/codegen/box/enum/companionObject.kt"); + } + @Test @TestMetadata("companionObjectInEnum.kt") public void testCompanionObjectInEnum() { @@ -14764,6 +16064,12 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT runTest("compiler/testData/codegen/box/enum/enumWithLambdaParameter.kt"); } + @Test + @TestMetadata("enum_equals.kt") + public void testEnum_equals() { + runTest("compiler/testData/codegen/box/enum/enum_equals.kt"); + } + @Test @TestMetadata("getEnumEntityByOrdinal.kt") public void testGetEnumEntityByOrdinal() { @@ -14836,6 +16142,18 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT runTest("compiler/testData/codegen/box/enum/innerWithExistingClassObject.kt"); } + @Test + @TestMetadata("interfaceCallNoEntryClass.kt") + public void testInterfaceCallNoEntryClass() { + runTest("compiler/testData/codegen/box/enum/interfaceCallNoEntryClass.kt"); + } + + @Test + @TestMetadata("interfaceCallWithEntryClass.kt") + public void testInterfaceCallWithEntryClass() { + runTest("compiler/testData/codegen/box/enum/interfaceCallWithEntryClass.kt"); + } + @Test @TestMetadata("k54079.kt") public void testK54079() { @@ -14890,6 +16208,12 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT runTest("compiler/testData/codegen/box/enum/kt2350.kt"); } + @Test + @TestMetadata("kt38540.kt") + public void testKt38540() { + runTest("compiler/testData/codegen/box/enum/kt38540.kt"); + } + @Test @TestMetadata("kt38996.kt") public void testKt38996() { @@ -14986,12 +16310,42 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT runTest("compiler/testData/codegen/box/enum/kt9711_2.kt"); } + @Test + @TestMetadata("lambdaInDefault.kt") + public void testLambdaInDefault() { + runTest("compiler/testData/codegen/box/enum/lambdaInDefault.kt"); + } + + @Test + @TestMetadata("loop.kt") + public void testLoop() { + runTest("compiler/testData/codegen/box/enum/loop.kt"); + } + @Test @TestMetadata("manyDefaultParameters.kt") public void testManyDefaultParameters() { runTest("compiler/testData/codegen/box/enum/manyDefaultParameters.kt"); } + @Test + @TestMetadata("multipleModules.kt") + public void testMultipleModules() { + runTest("compiler/testData/codegen/box/enum/multipleModules.kt"); + } + + @Test + @TestMetadata("nested.kt") + public void testNested() { + runTest("compiler/testData/codegen/box/enum/nested.kt"); + } + + @Test + @TestMetadata("openMethodNoOverrides.kt") + public void testOpenMethodNoOverrides() { + runTest("compiler/testData/codegen/box/enum/openMethodNoOverrides.kt"); + } + @Test @TestMetadata("ordinal.kt") public void testOrdinal() { @@ -15016,6 +16370,12 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT runTest("compiler/testData/codegen/box/enum/refToThis.kt"); } + @Test + @TestMetadata("reorderedArguments.kt") + public void testReorderedArguments() { + runTest("compiler/testData/codegen/box/enum/reorderedArguments.kt"); + } + @Test @TestMetadata("simple.kt") public void testSimple() { @@ -15034,18 +16394,66 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT runTest("compiler/testData/codegen/box/enum/superCallInEnumLiteral.kt"); } + @Test + @TestMetadata("switchLowering.kt") + public void testSwitchLowering() { + runTest("compiler/testData/codegen/box/enum/switchLowering.kt"); + } + + @Test + @TestMetadata("test0.kt") + public void testTest0() { + runTest("compiler/testData/codegen/box/enum/test0.kt"); + } + + @Test + @TestMetadata("test1.kt") + public void testTest1() { + runTest("compiler/testData/codegen/box/enum/test1.kt"); + } + @Test @TestMetadata("toString.kt") public void testToString() { runTest("compiler/testData/codegen/box/enum/toString.kt"); } + @Test + @TestMetadata("vCallNoEntryClass.kt") + public void testVCallNoEntryClass() { + runTest("compiler/testData/codegen/box/enum/vCallNoEntryClass.kt"); + } + + @Test + @TestMetadata("vCallWithEntryClass.kt") + public void testVCallWithEntryClass() { + runTest("compiler/testData/codegen/box/enum/vCallWithEntryClass.kt"); + } + + @Test + @TestMetadata("valueOf2.kt") + public void testValueOf2() { + runTest("compiler/testData/codegen/box/enum/valueOf2.kt"); + } + @Test @TestMetadata("valueof.kt") public void testValueof() { runTest("compiler/testData/codegen/box/enum/valueof.kt"); } + @Test + @TestMetadata("values.kt") + public void testValues() { + runTest("compiler/testData/codegen/box/enum/values.kt"); + } + + @Test + @TestMetadata("varargParam.kt") + public void testVarargParam() { + runTest("compiler/testData/codegen/box/enum/varargParam.kt"); + } + @Test @TestMetadata("whenInObject.kt") public void testWhenInObject() { @@ -15127,6 +16535,115 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT } } + @Nested + @TestMetadata("compiler/testData/codegen/box/escapeAnalysis") + @TestDataPath("$PROJECT_ROOT") + @UseExtTestCaseGroupProvider() + @UsePartialLinkage(mode = Mode.DISABLED) + @Tag("no-partial-linkage-may-be-skipped") + public class EscapeAnalysis { + @Test + public void testAllFilesPresentInEscapeAnalysis() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/escapeAnalysis"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("recursion.kt") + public void testRecursion() { + runTest("compiler/testData/codegen/box/escapeAnalysis/recursion.kt"); + } + + @Test + @TestMetadata("stack_array.kt") + public void testStack_array() { + runTest("compiler/testData/codegen/box/escapeAnalysis/stack_array.kt"); + } + + @Test + @TestMetadata("test1.kt") + public void testTest1() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test1.kt"); + } + + @Test + @TestMetadata("test10.kt") + public void testTest10() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test10.kt"); + } + + @Test + @TestMetadata("test11.kt") + public void testTest11() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test11.kt"); + } + + @Test + @TestMetadata("test12.kt") + public void testTest12() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test12.kt"); + } + + @Test + @TestMetadata("test13.kt") + public void testTest13() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test13.kt"); + } + + @Test + @TestMetadata("test2.kt") + public void testTest2() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test2.kt"); + } + + @Test + @TestMetadata("test3.kt") + public void testTest3() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test3.kt"); + } + + @Test + @TestMetadata("test4.kt") + public void testTest4() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test4.kt"); + } + + @Test + @TestMetadata("test5.kt") + public void testTest5() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test5.kt"); + } + + @Test + @TestMetadata("test6.kt") + public void testTest6() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test6.kt"); + } + + @Test + @TestMetadata("test7.kt") + public void testTest7() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test7.kt"); + } + + @Test + @TestMetadata("test8.kt") + public void testTest8() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test8.kt"); + } + + @Test + @TestMetadata("test9.kt") + public void testTest9() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test9.kt"); + } + + @Test + @TestMetadata("zeroOutObjectOnAlloc.kt") + public void testZeroOutObjectOnAlloc() { + runTest("compiler/testData/codegen/box/escapeAnalysis/zeroOutObjectOnAlloc.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/evaluate") @TestDataPath("$PROJECT_ROOT") @@ -15146,6 +16663,61 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT } } + @Nested + @TestMetadata("compiler/testData/codegen/box/exceptions") + @TestDataPath("$PROJECT_ROOT") + @UseExtTestCaseGroupProvider() + @UsePartialLinkage(mode = Mode.DISABLED) + @Tag("no-partial-linkage-may-be-skipped") + public class Exceptions { + @Test + public void testAllFilesPresentInExceptions() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/exceptions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("catch1.kt") + public void testCatch1() { + runTest("compiler/testData/codegen/box/exceptions/catch1.kt"); + } + + @Test + @TestMetadata("catch2.kt") + public void testCatch2() { + runTest("compiler/testData/codegen/box/exceptions/catch2.kt"); + } + + @Test + @TestMetadata("catch7.kt") + public void testCatch7() { + runTest("compiler/testData/codegen/box/exceptions/catch7.kt"); + } + + @Test + @TestMetadata("extend0.kt") + public void testExtend0() { + runTest("compiler/testData/codegen/box/exceptions/extend0.kt"); + } + + @Test + @TestMetadata("rethrow.kt") + public void testRethrow() { + runTest("compiler/testData/codegen/box/exceptions/rethrow.kt"); + } + + @Test + @TestMetadata("throw0.kt") + public void testThrow0() { + runTest("compiler/testData/codegen/box/exceptions/throw0.kt"); + } + + @Test + @TestMetadata("throw_from_catch.kt") + public void testThrow_from_catch() { + runTest("compiler/testData/codegen/box/exceptions/throw_from_catch.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/exclExcl") @TestDataPath("$PROJECT_ROOT") @@ -16073,6 +17645,12 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT runTest("compiler/testData/codegen/box/funInterface/funInterfaceWithReceiver.kt"); } + @Test + @TestMetadata("implIsNotFunction.kt") + public void testImplIsNotFunction() { + runTest("compiler/testData/codegen/box/funInterface/implIsNotFunction.kt"); + } + @Test @TestMetadata("inlinedSamWrapper.kt") public void testInlinedSamWrapper() { @@ -16115,6 +17693,18 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT runTest("compiler/testData/codegen/box/funInterface/kt46908_functionSupertype.kt"); } + @Test + @TestMetadata("kt49384.kt") + public void testKt49384() { + runTest("compiler/testData/codegen/box/funInterface/kt49384.kt"); + } + + @Test + @TestMetadata("kt49384_getSame.kt") + public void testKt49384_getSame() { + runTest("compiler/testData/codegen/box/funInterface/kt49384_getSame.kt"); + } + @Test @TestMetadata("multimodule.kt") public void testMultimodule() { @@ -16133,6 +17723,12 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT runTest("compiler/testData/codegen/box/funInterface/nonAbstractMethod.kt"); } + @Test + @TestMetadata("nonTrivialProjectionInSuperType.kt") + public void testNonTrivialProjectionInSuperType() { + runTest("compiler/testData/codegen/box/funInterface/nonTrivialProjectionInSuperType.kt"); + } + @Test @TestMetadata("nullableSam.kt") public void testNullableSam() { @@ -16225,6 +17821,235 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT } } + @Nested + @TestMetadata("compiler/testData/codegen/box/function") + @TestDataPath("$PROJECT_ROOT") + @UseExtTestCaseGroupProvider() + @UsePartialLinkage(mode = Mode.DISABLED) + @Tag("no-partial-linkage-may-be-skipped") + public class Function { + @Test + public void testAllFilesPresentInFunction() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/function"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("arithmetic.kt") + public void testArithmetic() { + runTest("compiler/testData/codegen/box/function/arithmetic.kt"); + } + + @Test + @TestMetadata("boolean.kt") + public void testBoolean() { + runTest("compiler/testData/codegen/box/function/boolean.kt"); + } + + @Test + @TestMetadata("defaults.kt") + public void testDefaults() { + runTest("compiler/testData/codegen/box/function/defaults.kt"); + } + + @Test + @TestMetadata("defaults1.kt") + public void testDefaults1() { + runTest("compiler/testData/codegen/box/function/defaults1.kt"); + } + + @Test + @TestMetadata("defaults10.kt") + public void testDefaults10() { + runTest("compiler/testData/codegen/box/function/defaults10.kt"); + } + + @Test + @TestMetadata("defaults2.kt") + public void testDefaults2() { + runTest("compiler/testData/codegen/box/function/defaults2.kt"); + } + + @Test + @TestMetadata("defaults3.kt") + public void testDefaults3() { + runTest("compiler/testData/codegen/box/function/defaults3.kt"); + } + + @Test + @TestMetadata("defaults4.kt") + public void testDefaults4() { + runTest("compiler/testData/codegen/box/function/defaults4.kt"); + } + + @Test + @TestMetadata("defaults5.kt") + public void testDefaults5() { + runTest("compiler/testData/codegen/box/function/defaults5.kt"); + } + + @Test + @TestMetadata("defaults6.kt") + public void testDefaults6() { + runTest("compiler/testData/codegen/box/function/defaults6.kt"); + } + + @Test + @TestMetadata("defaults7.kt") + public void testDefaults7() { + runTest("compiler/testData/codegen/box/function/defaults7.kt"); + } + + @Test + @TestMetadata("defaults8.kt") + public void testDefaults8() { + runTest("compiler/testData/codegen/box/function/defaults8.kt"); + } + + @Test + @TestMetadata("defaults9.kt") + public void testDefaults9() { + runTest("compiler/testData/codegen/box/function/defaults9.kt"); + } + + @Test + @TestMetadata("defaultsFromFakeOverride.kt") + public void testDefaultsFromFakeOverride() { + runTest("compiler/testData/codegen/box/function/defaultsFromFakeOverride.kt"); + } + + @Test + @TestMetadata("defaultsWithInlineClasses.kt") + public void testDefaultsWithInlineClasses() { + runTest("compiler/testData/codegen/box/function/defaultsWithInlineClasses.kt"); + } + + @Test + @TestMetadata("defaultsWithVarArg1.kt") + public void testDefaultsWithVarArg1() { + runTest("compiler/testData/codegen/box/function/defaultsWithVarArg1.kt"); + } + + @Test + @TestMetadata("defaultsWithVarArg2.kt") + public void testDefaultsWithVarArg2() { + runTest("compiler/testData/codegen/box/function/defaultsWithVarArg2.kt"); + } + + @Test + @TestMetadata("eqeq.kt") + public void testEqeq() { + runTest("compiler/testData/codegen/box/function/eqeq.kt"); + } + + @Test + @TestMetadata("extension.kt") + public void testExtension() { + runTest("compiler/testData/codegen/box/function/extension.kt"); + } + + @Test + @TestMetadata("intrinsic.kt") + public void testIntrinsic() { + runTest("compiler/testData/codegen/box/function/intrinsic.kt"); + } + + @Test + @TestMetadata("localFunction.kt") + public void testLocalFunction() { + runTest("compiler/testData/codegen/box/function/localFunction.kt"); + } + + @Test + @TestMetadata("localFunction2.kt") + public void testLocalFunction2() { + runTest("compiler/testData/codegen/box/function/localFunction2.kt"); + } + + @Test + @TestMetadata("localFunction3.kt") + public void testLocalFunction3() { + runTest("compiler/testData/codegen/box/function/localFunction3.kt"); + } + + @Test + @TestMetadata("minus_eq.kt") + public void testMinus_eq() { + runTest("compiler/testData/codegen/box/function/minus_eq.kt"); + } + + @Test + @TestMetadata("named.kt") + public void testNamed() { + runTest("compiler/testData/codegen/box/function/named.kt"); + } + + @Test + @TestMetadata("nothingNReturningSafeCall.kt") + public void testNothingNReturningSafeCall() { + runTest("compiler/testData/codegen/box/function/nothingNReturningSafeCall.kt"); + } + + @Test + @TestMetadata("plus_eq.kt") + public void testPlus_eq() { + runTest("compiler/testData/codegen/box/function/plus_eq.kt"); + } + + @Test + @TestMetadata("referenceBigArity.kt") + public void testReferenceBigArity() { + runTest("compiler/testData/codegen/box/function/referenceBigArity.kt"); + } + + @Test + @TestMetadata("sum.kt") + public void testSum() { + runTest("compiler/testData/codegen/box/function/sum.kt"); + } + + @Test + @TestMetadata("sum_3const.kt") + public void testSum_3const() { + runTest("compiler/testData/codegen/box/function/sum_3const.kt"); + } + + @Test + @TestMetadata("sum_foo_bar.kt") + public void testSum_foo_bar() { + runTest("compiler/testData/codegen/box/function/sum_foo_bar.kt"); + } + + @Test + @TestMetadata("sum_func.kt") + public void testSum_func() { + runTest("compiler/testData/codegen/box/function/sum_func.kt"); + } + + @Test + @TestMetadata("sum_imm.kt") + public void testSum_imm() { + runTest("compiler/testData/codegen/box/function/sum_imm.kt"); + } + + @Test + @TestMetadata("sum_mixed.kt") + public void testSum_mixed() { + runTest("compiler/testData/codegen/box/function/sum_mixed.kt"); + } + + @Test + @TestMetadata("sum_silly.kt") + public void testSum_silly() { + runTest("compiler/testData/codegen/box/function/sum_silly.kt"); + } + + @Test + @TestMetadata("unreachableStatementAfterReturn.kt") + public void testUnreachableStatementAfterReturn() { + runTest("compiler/testData/codegen/box/function/unreachableStatementAfterReturn.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/functions") @TestDataPath("$PROJECT_ROOT") @@ -17812,6 +19637,483 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT } } + @Nested + @TestMetadata("compiler/testData/codegen/box/initializers") + @TestDataPath("$PROJECT_ROOT") + @UseExtTestCaseGroupProvider() + @UsePartialLinkage(mode = Mode.DISABLED) + @Tag("no-partial-linkage-may-be-skipped") + public class Initializers { + @Test + public void testAllFilesPresentInInitializers() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/initializers"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("correctOrder1.kt") + public void testCorrectOrder1() { + runTest("compiler/testData/codegen/box/initializers/correctOrder1.kt"); + } + + @Test + @TestMetadata("correctOrder2.kt") + public void testCorrectOrder2() { + runTest("compiler/testData/codegen/box/initializers/correctOrder2.kt"); + } + + @Test + @TestMetadata("initializers0.kt") + public void testInitializers0() { + runTest("compiler/testData/codegen/box/initializers/initializers0.kt"); + } + + @Test + @TestMetadata("initializers1.kt") + public void testInitializers1() { + runTest("compiler/testData/codegen/box/initializers/initializers1.kt"); + } + + @Test + @TestMetadata("initializers2.kt") + public void testInitializers2() { + runTest("compiler/testData/codegen/box/initializers/initializers2.kt"); + } + + @Test + @TestMetadata("initializers3.kt") + public void testInitializers3() { + runTest("compiler/testData/codegen/box/initializers/initializers3.kt"); + } + + @Test + @TestMetadata("initializers4.kt") + public void testInitializers4() { + runTest("compiler/testData/codegen/box/initializers/initializers4.kt"); + } + + @Test + @TestMetadata("initializers5.kt") + public void testInitializers5() { + runTest("compiler/testData/codegen/box/initializers/initializers5.kt"); + } + + @Test + @TestMetadata("initializers7.kt") + public void testInitializers7() { + runTest("compiler/testData/codegen/box/initializers/initializers7.kt"); + } + + @Test + @TestMetadata("initializers8.kt") + public void testInitializers8() { + runTest("compiler/testData/codegen/box/initializers/initializers8.kt"); + } + + @Test + @TestMetadata("multipleModules1.kt") + public void testMultipleModules1() { + runTest("compiler/testData/codegen/box/initializers/multipleModules1.kt"); + } + + @Test + @TestMetadata("object.kt") + public void testObject() { + runTest("compiler/testData/codegen/box/initializers/object.kt"); + } + + @Test + @TestMetadata("sharedVarInInitBlock.kt") + public void testSharedVarInInitBlock() { + runTest("compiler/testData/codegen/box/initializers/sharedVarInInitBlock.kt"); + } + + @Test + @TestMetadata("static_arrays.kt") + public void testStatic_arrays() { + runTest("compiler/testData/codegen/box/initializers/static_arrays.kt"); + } + + @Test + @TestMetadata("static_list.kt") + public void testStatic_list() { + runTest("compiler/testData/codegen/box/initializers/static_list.kt"); + } + + @Test + @TestMetadata("static_smallIntIdentity.kt") + public void testStatic_smallIntIdentity() { + runTest("compiler/testData/codegen/box/initializers/static_smallIntIdentity.kt"); + } + + @Test + @TestMetadata("static_varargChange.kt") + public void testStatic_varargChange() { + runTest("compiler/testData/codegen/box/initializers/static_varargChange.kt"); + } + + @Test + @TestMetadata("throw1.kt") + public void testThrow1() { + runTest("compiler/testData/codegen/box/initializers/throw1.kt"); + } + + @Test + @TestMetadata("throw2.kt") + public void testThrow2() { + runTest("compiler/testData/codegen/box/initializers/throw2.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/initializers/files") + @TestDataPath("$PROJECT_ROOT") + @UseExtTestCaseGroupProvider() + @UsePartialLinkage(mode = Mode.DISABLED) + @Tag("no-partial-linkage-may-be-skipped") + public class Files { + @Test + public void testAllFilesPresentInFiles() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/initializers/files"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("globalInitedAfterAccessingFile.kt") + public void testGlobalInitedAfterAccessingFile() { + runTest("compiler/testData/codegen/box/initializers/files/globalInitedAfterAccessingFile.kt"); + } + + @Test + @TestMetadata("globalNotInitedAfterAccessingClassInternals.kt") + public void testGlobalNotInitedAfterAccessingClassInternals() { + runTest("compiler/testData/codegen/box/initializers/files/globalNotInitedAfterAccessingClassInternals.kt"); + } + + @Test + @TestMetadata("simple.kt") + public void testSimple() { + runTest("compiler/testData/codegen/box/initializers/files/simple.kt"); + } + + @Test + @TestMetadata("simpleMultiModule.kt") + public void testSimpleMultiModule() { + runTest("compiler/testData/codegen/box/initializers/files/simpleMultiModule.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/inline") + @TestDataPath("$PROJECT_ROOT") + @UseExtTestCaseGroupProvider() + @UsePartialLinkage(mode = Mode.DISABLED) + @Tag("no-partial-linkage-may-be-skipped") + public class Inline { + @Test + public void testAllFilesPresentInInline() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inline"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("changingCapturedLocal.kt") + public void testChangingCapturedLocal() { + runTest("compiler/testData/codegen/box/inline/changingCapturedLocal.kt"); + } + + @Test + @TestMetadata("classDeclarationInsideInline.kt") + public void testClassDeclarationInsideInline() { + runTest("compiler/testData/codegen/box/inline/classDeclarationInsideInline.kt"); + } + + @Test + @TestMetadata("coercionToUnit.kt") + public void testCoercionToUnit() { + runTest("compiler/testData/codegen/box/inline/coercionToUnit.kt"); + } + + @Test + @TestMetadata("correctOrderFunctionReference.kt") + public void testCorrectOrderFunctionReference() { + runTest("compiler/testData/codegen/box/inline/correctOrderFunctionReference.kt"); + } + + @Test + @TestMetadata("defaultArgs.kt") + public void testDefaultArgs() { + runTest("compiler/testData/codegen/box/inline/defaultArgs.kt"); + } + + @Test + @TestMetadata("defaultArgsMultipleModules.kt") + public void testDefaultArgsMultipleModules() { + runTest("compiler/testData/codegen/box/inline/defaultArgsMultipleModules.kt"); + } + + @Test + @TestMetadata("genericFunctionReference.kt") + public void testGenericFunctionReference() { + runTest("compiler/testData/codegen/box/inline/genericFunctionReference.kt"); + } + + @Test + @TestMetadata("getClass.kt") + public void testGetClass() { + runTest("compiler/testData/codegen/box/inline/getClass.kt"); + } + + @Test + @TestMetadata("inline0.kt") + public void testInline0() { + runTest("compiler/testData/codegen/box/inline/inline0.kt"); + } + + @Test + @TestMetadata("inline1.kt") + public void testInline1() { + runTest("compiler/testData/codegen/box/inline/inline1.kt"); + } + + @Test + @TestMetadata("inline10.kt") + public void testInline10() { + runTest("compiler/testData/codegen/box/inline/inline10.kt"); + } + + @Test + @TestMetadata("inline11.kt") + public void testInline11() { + runTest("compiler/testData/codegen/box/inline/inline11.kt"); + } + + @Test + @TestMetadata("inline12.kt") + public void testInline12() { + runTest("compiler/testData/codegen/box/inline/inline12.kt"); + } + + @Test + @TestMetadata("inline13.kt") + public void testInline13() { + runTest("compiler/testData/codegen/box/inline/inline13.kt"); + } + + @Test + @TestMetadata("inline14.kt") + public void testInline14() { + runTest("compiler/testData/codegen/box/inline/inline14.kt"); + } + + @Test + @TestMetadata("inline15.kt") + public void testInline15() { + runTest("compiler/testData/codegen/box/inline/inline15.kt"); + } + + @Test + @TestMetadata("inline16.kt") + public void testInline16() { + runTest("compiler/testData/codegen/box/inline/inline16.kt"); + } + + @Test + @TestMetadata("inline17.kt") + public void testInline17() { + runTest("compiler/testData/codegen/box/inline/inline17.kt"); + } + + @Test + @TestMetadata("inline19.kt") + public void testInline19() { + runTest("compiler/testData/codegen/box/inline/inline19.kt"); + } + + @Test + @TestMetadata("inline2.kt") + public void testInline2() { + runTest("compiler/testData/codegen/box/inline/inline2.kt"); + } + + @Test + @TestMetadata("inline20.kt") + public void testInline20() { + runTest("compiler/testData/codegen/box/inline/inline20.kt"); + } + + @Test + @TestMetadata("inline21.kt") + public void testInline21() { + runTest("compiler/testData/codegen/box/inline/inline21.kt"); + } + + @Test + @TestMetadata("inline22.kt") + public void testInline22() { + runTest("compiler/testData/codegen/box/inline/inline22.kt"); + } + + @Test + @TestMetadata("inline23.kt") + public void testInline23() { + runTest("compiler/testData/codegen/box/inline/inline23.kt"); + } + + @Test + @TestMetadata("inline24.kt") + public void testInline24() { + runTest("compiler/testData/codegen/box/inline/inline24.kt"); + } + + @Test + @TestMetadata("inline25.kt") + public void testInline25() { + runTest("compiler/testData/codegen/box/inline/inline25.kt"); + } + + @Test + @TestMetadata("inline26.kt") + public void testInline26() { + runTest("compiler/testData/codegen/box/inline/inline26.kt"); + } + + @Test + @TestMetadata("inline3.kt") + public void testInline3() { + runTest("compiler/testData/codegen/box/inline/inline3.kt"); + } + + @Test + @TestMetadata("inline4.kt") + public void testInline4() { + runTest("compiler/testData/codegen/box/inline/inline4.kt"); + } + + @Test + @TestMetadata("inline5.kt") + public void testInline5() { + runTest("compiler/testData/codegen/box/inline/inline5.kt"); + } + + @Test + @TestMetadata("inline6.kt") + public void testInline6() { + runTest("compiler/testData/codegen/box/inline/inline6.kt"); + } + + @Test + @TestMetadata("inline7.kt") + public void testInline7() { + runTest("compiler/testData/codegen/box/inline/inline7.kt"); + } + + @Test + @TestMetadata("inline8.kt") + public void testInline8() { + runTest("compiler/testData/codegen/box/inline/inline8.kt"); + } + + @Test + @TestMetadata("inline9.kt") + public void testInline9() { + runTest("compiler/testData/codegen/box/inline/inline9.kt"); + } + + @Test + @TestMetadata("inlineCtor.kt") + public void testInlineCtor() { + runTest("compiler/testData/codegen/box/inline/inlineCtor.kt"); + } + + @Test + @TestMetadata("innerInlineFunCapturesOuter.kt") + public void testInnerInlineFunCapturesOuter() { + runTest("compiler/testData/codegen/box/inline/innerInlineFunCapturesOuter.kt"); + } + + @Test + @TestMetadata("lambdaAsAny.kt") + public void testLambdaAsAny() { + runTest("compiler/testData/codegen/box/inline/lambdaAsAny.kt"); + } + + @Test + @TestMetadata("lambdaInDefaultValue.kt") + public void testLambdaInDefaultValue() { + runTest("compiler/testData/codegen/box/inline/lambdaInDefaultValue.kt"); + } + + @Test + @TestMetadata("lateinitProperty.kt") + public void testLateinitProperty() { + runTest("compiler/testData/codegen/box/inline/lateinitProperty.kt"); + } + + @Test + @TestMetadata("localFunctionInInitializerBlock.kt") + public void testLocalFunctionInInitializerBlock() { + runTest("compiler/testData/codegen/box/inline/localFunctionInInitializerBlock.kt"); + } + + @Test + @TestMetadata("localObjectReturnedFromWhen.kt") + public void testLocalObjectReturnedFromWhen() { + runTest("compiler/testData/codegen/box/inline/localObjectReturnedFromWhen.kt"); + } + + @Test + @TestMetadata("propertyAccessorInline.kt") + public void testPropertyAccessorInline() { + runTest("compiler/testData/codegen/box/inline/propertyAccessorInline.kt"); + } + + @Test + @TestMetadata("redundantCoercionsCleaner.kt") + public void testRedundantCoercionsCleaner() { + runTest("compiler/testData/codegen/box/inline/redundantCoercionsCleaner.kt"); + } + + @Test + @TestMetadata("redundantCoercionsCleanerKT48876.kt") + public void testRedundantCoercionsCleanerKT48876() { + runTest("compiler/testData/codegen/box/inline/redundantCoercionsCleanerKT48876.kt"); + } + + @Test + @TestMetadata("redundantCoercionsCleanerKT49356.kt") + public void testRedundantCoercionsCleanerKT49356() { + runTest("compiler/testData/codegen/box/inline/redundantCoercionsCleanerKT49356.kt"); + } + + @Test + @TestMetadata("returnLocalClassFromBlock.kt") + public void testReturnLocalClassFromBlock() { + runTest("compiler/testData/codegen/box/inline/returnLocalClassFromBlock.kt"); + } + + @Test + @TestMetadata("sharedVar.kt") + public void testSharedVar() { + runTest("compiler/testData/codegen/box/inline/sharedVar.kt"); + } + + @Test + @TestMetadata("statementAsLastExprInBlock.kt") + public void testStatementAsLastExprInBlock() { + runTest("compiler/testData/codegen/box/inline/statementAsLastExprInBlock.kt"); + } + + @Test + @TestMetadata("twiceInlinedObject.kt") + public void testTwiceInlinedObject() { + runTest("compiler/testData/codegen/box/inline/twiceInlinedObject.kt"); + } + + @Test + @TestMetadata("typeSubstitutionInFakeOverride.kt") + public void testTypeSubstitutionInFakeOverride() { + runTest("compiler/testData/codegen/box/inline/typeSubstitutionInFakeOverride.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/inlineArgsInPlace") @TestDataPath("$PROJECT_ROOT") @@ -17891,6 +20193,43 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT } } + @Nested + @TestMetadata("compiler/testData/codegen/box/inlineClass") + @TestDataPath("$PROJECT_ROOT") + @UseExtTestCaseGroupProvider() + @UsePartialLinkage(mode = Mode.DISABLED) + @Tag("no-partial-linkage-may-be-skipped") + public class InlineClass { + @Test + public void testAllFilesPresentInInlineClass() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineClass"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("customEquals.kt") + public void testCustomEquals() { + runTest("compiler/testData/codegen/box/inlineClass/customEquals.kt"); + } + + @Test + @TestMetadata("defaultEquals.kt") + public void testDefaultEquals() { + runTest("compiler/testData/codegen/box/inlineClass/defaultEquals.kt"); + } + + @Test + @TestMetadata("nestedInlineClasses.kt") + public void testNestedInlineClasses() { + runTest("compiler/testData/codegen/box/inlineClass/nestedInlineClasses.kt"); + } + + @Test + @TestMetadata("secondaryConstructorWithGenerics.kt") + public void testSecondaryConstructorWithGenerics() { + runTest("compiler/testData/codegen/box/inlineClass/secondaryConstructorWithGenerics.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/inlineClasses") @TestDataPath("$PROJECT_ROOT") @@ -24358,6 +26697,91 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT } } + @Nested + @TestMetadata("compiler/testData/codegen/box/innerClass") + @TestDataPath("$PROJECT_ROOT") + @UseExtTestCaseGroupProvider() + @UsePartialLinkage(mode = Mode.DISABLED) + @Tag("no-partial-linkage-may-be-skipped") + public class InnerClass { + @Test + public void testAllFilesPresentInInnerClass() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/innerClass"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("doubleInner.kt") + public void testDoubleInner() { + runTest("compiler/testData/codegen/box/innerClass/doubleInner.kt"); + } + + @Test + @TestMetadata("generic.kt") + public void testGeneric() { + runTest("compiler/testData/codegen/box/innerClass/generic.kt"); + } + + @Test + @TestMetadata("getOuterVal.kt") + public void testGetOuterVal() { + runTest("compiler/testData/codegen/box/innerClass/getOuterVal.kt"); + } + + @Test + @TestMetadata("inheritanceMultipleModules1.kt") + public void testInheritanceMultipleModules1() { + runTest("compiler/testData/codegen/box/innerClass/inheritanceMultipleModules1.kt"); + } + + @Test + @TestMetadata("inheritanceMultipleModules2.kt") + public void testInheritanceMultipleModules2() { + runTest("compiler/testData/codegen/box/innerClass/inheritanceMultipleModules2.kt"); + } + + @Test + @TestMetadata("inheritanceMultipleModules3.kt") + public void testInheritanceMultipleModules3() { + runTest("compiler/testData/codegen/box/innerClass/inheritanceMultipleModules3.kt"); + } + + @Test + @TestMetadata("multipleModules.kt") + public void testMultipleModules() { + runTest("compiler/testData/codegen/box/innerClass/multipleModules.kt"); + } + + @Test + @TestMetadata("noPrimaryConstructor.kt") + public void testNoPrimaryConstructor() { + runTest("compiler/testData/codegen/box/innerClass/noPrimaryConstructor.kt"); + } + + @Test + @TestMetadata("qualifiedThis.kt") + public void testQualifiedThis() { + runTest("compiler/testData/codegen/box/innerClass/qualifiedThis.kt"); + } + + @Test + @TestMetadata("secondaryConstructor.kt") + public void testSecondaryConstructor() { + runTest("compiler/testData/codegen/box/innerClass/secondaryConstructor.kt"); + } + + @Test + @TestMetadata("simple.kt") + public void testSimple() { + runTest("compiler/testData/codegen/box/innerClass/simple.kt"); + } + + @Test + @TestMetadata("superOuter.kt") + public void testSuperOuter() { + runTest("compiler/testData/codegen/box/innerClass/superOuter.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/innerNested") @TestDataPath("$PROJECT_ROOT") @@ -24722,6 +27146,43 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT } } + @Nested + @TestMetadata("compiler/testData/codegen/box/interfaceCallsNCasts") + @TestDataPath("$PROJECT_ROOT") + @UseExtTestCaseGroupProvider() + @UsePartialLinkage(mode = Mode.DISABLED) + @Tag("no-partial-linkage-may-be-skipped") + public class InterfaceCallsNCasts { + @Test + public void testAllFilesPresentInInterfaceCallsNCasts() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/interfaceCallsNCasts"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("conservativeItable.kt") + public void testConservativeItable() { + runTest("compiler/testData/codegen/box/interfaceCallsNCasts/conservativeItable.kt"); + } + + @Test + @TestMetadata("diamond.kt") + public void testDiamond() { + runTest("compiler/testData/codegen/box/interfaceCallsNCasts/diamond.kt"); + } + + @Test + @TestMetadata("finalMethod.kt") + public void testFinalMethod() { + runTest("compiler/testData/codegen/box/interfaceCallsNCasts/finalMethod.kt"); + } + + @Test + @TestMetadata("interface0.kt") + public void testInterface0() { + runTest("compiler/testData/codegen/box/interfaceCallsNCasts/interface0.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/intrinsics") @TestDataPath("$PROJECT_ROOT") @@ -26155,6 +28616,86 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT } } + @Nested + @TestMetadata("compiler/testData/codegen/box/kclass") + @TestDataPath("$PROJECT_ROOT") + @UseExtTestCaseGroupProvider() + @UsePartialLinkage(mode = Mode.DISABLED) + @Tag("no-partial-linkage-may-be-skipped") + public class Kclass { + @Test + public void testAllFilesPresentInKclass() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/kclass"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("kClassEnumArgument.kt") + public void testKClassEnumArgument() { + runTest("compiler/testData/codegen/box/kclass/kClassEnumArgument.kt"); + } + + @Test + @TestMetadata("kclass1.kt") + public void testKclass1() { + runTest("compiler/testData/codegen/box/kclass/kclass1.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/ktype") + @TestDataPath("$PROJECT_ROOT") + @UseExtTestCaseGroupProvider() + @UsePartialLinkage(mode = Mode.DISABLED) + @Tag("no-partial-linkage-may-be-skipped") + public class Ktype { + @Test + public void testAllFilesPresentInKtype() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ktype"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("ktype1_basics1.kt") + public void testKtype1_basics1() { + runTest("compiler/testData/codegen/box/ktype/ktype1_basics1.kt"); + } + + @Test + @TestMetadata("ktype1_inner.kt") + public void testKtype1_inner() { + runTest("compiler/testData/codegen/box/ktype/ktype1_inner.kt"); + } + + @Test + @TestMetadata("nonReified_class.kt") + public void testNonReified_class() { + runTest("compiler/testData/codegen/box/ktype/nonReified_class.kt"); + } + + @Test + @TestMetadata("nonReified_equality.kt") + public void testNonReified_equality() { + runTest("compiler/testData/codegen/box/ktype/nonReified_equality.kt"); + } + + @Test + @TestMetadata("nonReified_fun.kt") + public void testNonReified_fun() { + runTest("compiler/testData/codegen/box/ktype/nonReified_fun.kt"); + } + + @Test + @TestMetadata("nonReified_recursionInReified.kt") + public void testNonReified_recursionInReified() { + runTest("compiler/testData/codegen/box/ktype/nonReified_recursionInReified.kt"); + } + + @Test + @TestMetadata("nonReified_reifiedUpperBound.kt") + public void testNonReified_reifiedUpperBound() { + runTest("compiler/testData/codegen/box/ktype/nonReified_reifiedUpperBound.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/labels") @TestDataPath("$PROJECT_ROOT") @@ -26216,6 +28757,194 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT } } + @Nested + @TestMetadata("compiler/testData/codegen/box/lambda") + @TestDataPath("$PROJECT_ROOT") + @UseExtTestCaseGroupProvider() + @UsePartialLinkage(mode = Mode.DISABLED) + @Tag("no-partial-linkage-may-be-skipped") + public class Lambda { + @Test + public void testAllFilesPresentInLambda() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/lambda"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("lambda1.kt") + public void testLambda1() { + runTest("compiler/testData/codegen/box/lambda/lambda1.kt"); + } + + @Test + @TestMetadata("lambda10.kt") + public void testLambda10() { + runTest("compiler/testData/codegen/box/lambda/lambda10.kt"); + } + + @Test + @TestMetadata("lambda11.kt") + public void testLambda11() { + runTest("compiler/testData/codegen/box/lambda/lambda11.kt"); + } + + @Test + @TestMetadata("lambda12.kt") + public void testLambda12() { + runTest("compiler/testData/codegen/box/lambda/lambda12.kt"); + } + + @Test + @TestMetadata("lambda13.kt") + public void testLambda13() { + runTest("compiler/testData/codegen/box/lambda/lambda13.kt"); + } + + @Test + @TestMetadata("lambda14.kt") + public void testLambda14() { + runTest("compiler/testData/codegen/box/lambda/lambda14.kt"); + } + + @Test + @TestMetadata("lambda2.kt") + public void testLambda2() { + runTest("compiler/testData/codegen/box/lambda/lambda2.kt"); + } + + @Test + @TestMetadata("lambda3.kt") + public void testLambda3() { + runTest("compiler/testData/codegen/box/lambda/lambda3.kt"); + } + + @Test + @TestMetadata("lambda4.kt") + public void testLambda4() { + runTest("compiler/testData/codegen/box/lambda/lambda4.kt"); + } + + @Test + @TestMetadata("lambda5.kt") + public void testLambda5() { + runTest("compiler/testData/codegen/box/lambda/lambda5.kt"); + } + + @Test + @TestMetadata("lambda6.kt") + public void testLambda6() { + runTest("compiler/testData/codegen/box/lambda/lambda6.kt"); + } + + @Test + @TestMetadata("lambda7.kt") + public void testLambda7() { + runTest("compiler/testData/codegen/box/lambda/lambda7.kt"); + } + + @Test + @TestMetadata("lambda8.kt") + public void testLambda8() { + runTest("compiler/testData/codegen/box/lambda/lambda8.kt"); + } + + @Test + @TestMetadata("lambda9.kt") + public void testLambda9() { + runTest("compiler/testData/codegen/box/lambda/lambda9.kt"); + } + + @Test + @TestMetadata("lambda_kt49360_trivial.kt") + public void testLambda_kt49360_trivial() { + runTest("compiler/testData/codegen/box/lambda/lambda_kt49360_trivial.kt"); + } + + @Test + @TestMetadata("lambda_kt49360_withFlow.kt") + public void testLambda_kt49360_withFlow() { + runTest("compiler/testData/codegen/box/lambda/lambda_kt49360_withFlow.kt"); + } + + @Test + @TestMetadata("lambda_kt49360_wrapBlock.kt") + public void testLambda_kt49360_wrapBlock() { + runTest("compiler/testData/codegen/box/lambda/lambda_kt49360_wrapBlock.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/lateinit") + @TestDataPath("$PROJECT_ROOT") + @UseExtTestCaseGroupProvider() + @UsePartialLinkage(mode = Mode.DISABLED) + @Tag("no-partial-linkage-may-be-skipped") + public class Lateinit { + @Test + public void testAllFilesPresentInLateinit() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/lateinit"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("globalIsInitialized.kt") + public void testGlobalIsInitialized() { + runTest("compiler/testData/codegen/box/lateinit/globalIsInitialized.kt"); + } + + @Test + @TestMetadata("inBaseClass.kt") + public void testInBaseClass() { + runTest("compiler/testData/codegen/box/lateinit/inBaseClass.kt"); + } + + @Test + @TestMetadata("initialized.kt") + public void testInitialized() { + runTest("compiler/testData/codegen/box/lateinit/initialized.kt"); + } + + @Test + @TestMetadata("innerIsInitialized.kt") + public void testInnerIsInitialized() { + runTest("compiler/testData/codegen/box/lateinit/innerIsInitialized.kt"); + } + + @Test + @TestMetadata("isInitialized.kt") + public void testIsInitialized() { + runTest("compiler/testData/codegen/box/lateinit/isInitialized.kt"); + } + + @Test + @TestMetadata("localCapturedInitialized.kt") + public void testLocalCapturedInitialized() { + runTest("compiler/testData/codegen/box/lateinit/localCapturedInitialized.kt"); + } + + @Test + @TestMetadata("localCapturedNotInitialized.kt") + public void testLocalCapturedNotInitialized() { + runTest("compiler/testData/codegen/box/lateinit/localCapturedNotInitialized.kt"); + } + + @Test + @TestMetadata("localInitialized.kt") + public void testLocalInitialized() { + runTest("compiler/testData/codegen/box/lateinit/localInitialized.kt"); + } + + @Test + @TestMetadata("localNotInitialized.kt") + public void testLocalNotInitialized() { + runTest("compiler/testData/codegen/box/lateinit/localNotInitialized.kt"); + } + + @Test + @TestMetadata("notInitialized.kt") + public void testNotInitialized() { + runTest("compiler/testData/codegen/box/lateinit/notInitialized.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/lazyCodegen") @TestDataPath("$PROJECT_ROOT") @@ -26350,6 +29079,104 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT } } + @Nested + @TestMetadata("compiler/testData/codegen/box/literals") + @TestDataPath("$PROJECT_ROOT") + @UseExtTestCaseGroupProvider() + @UsePartialLinkage(mode = Mode.DISABLED) + @Tag("no-partial-linkage-may-be-skipped") + public class Literals { + @Test + public void testAllFilesPresentInLiterals() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/literals"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("listof1.kt") + public void testListof1() { + runTest("compiler/testData/codegen/box/literals/listof1.kt"); + } + + @Test + @TestMetadata("strdedup1.kt") + public void testStrdedup1() { + runTest("compiler/testData/codegen/box/literals/strdedup1.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/localClass") + @TestDataPath("$PROJECT_ROOT") + @UseExtTestCaseGroupProvider() + @UsePartialLinkage(mode = Mode.DISABLED) + @Tag("no-partial-linkage-may-be-skipped") + public class LocalClass { + @Test + public void testAllFilesPresentInLocalClass() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/localClass"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("innerTakesCapturedFromOuter.kt") + public void testInnerTakesCapturedFromOuter() { + runTest("compiler/testData/codegen/box/localClass/innerTakesCapturedFromOuter.kt"); + } + + @Test + @TestMetadata("innerWithCapture.kt") + public void testInnerWithCapture() { + runTest("compiler/testData/codegen/box/localClass/innerWithCapture.kt"); + } + + @Test + @TestMetadata("localFunctionCallFromLocalClass.kt") + public void testLocalFunctionCallFromLocalClass() { + runTest("compiler/testData/codegen/box/localClass/localFunctionCallFromLocalClass.kt"); + } + + @Test + @TestMetadata("localFunctionInLocalClass.kt") + public void testLocalFunctionInLocalClass() { + runTest("compiler/testData/codegen/box/localClass/localFunctionInLocalClass.kt"); + } + + @Test + @TestMetadata("localHierarchy.kt") + public void testLocalHierarchy() { + runTest("compiler/testData/codegen/box/localClass/localHierarchy.kt"); + } + + @Test + @TestMetadata("noPrimaryConstructor.kt") + public void testNoPrimaryConstructor() { + runTest("compiler/testData/codegen/box/localClass/noPrimaryConstructor.kt"); + } + + @Test + @TestMetadata("objectExpressionInInitializer.kt") + public void testObjectExpressionInInitializer() { + runTest("compiler/testData/codegen/box/localClass/objectExpressionInInitializer.kt"); + } + + @Test + @TestMetadata("objectExpressionInProperty.kt") + public void testObjectExpressionInProperty() { + runTest("compiler/testData/codegen/box/localClass/objectExpressionInProperty.kt"); + } + + @Test + @TestMetadata("tryCatch.kt") + public void testTryCatch() { + runTest("compiler/testData/codegen/box/localClass/tryCatch.kt"); + } + + @Test + @TestMetadata("virtualCallFromConstructor.kt") + public void testVirtualCallFromConstructor() { + runTest("compiler/testData/codegen/box/localClass/virtualCallFromConstructor.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/localClasses") @TestDataPath("$PROJECT_ROOT") @@ -26603,6 +29430,44 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT } } + @Nested + @TestMetadata("compiler/testData/codegen/box/localEscapeAnalysis") + @TestDataPath("$PROJECT_ROOT") + @UseExtTestCaseGroupProvider() + @UsePartialLinkage(mode = Mode.DISABLED) + @Tag("no-partial-linkage-may-be-skipped") + public class LocalEscapeAnalysis { + @Test + public void testAllFilesPresentInLocalEscapeAnalysis() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/localEscapeAnalysis"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("arraysFieldWrite.kt") + public void testArraysFieldWrite() { + runTest("compiler/testData/codegen/box/localEscapeAnalysis/arraysFieldWrite.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/lower") + @TestDataPath("$PROJECT_ROOT") + @UseExtTestCaseGroupProvider() + @UsePartialLinkage(mode = Mode.DISABLED) + @Tag("no-partial-linkage-may-be-skipped") + public class Lower { + @Test + public void testAllFilesPresentInLower() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/lower"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("localDelegatedProperty.kt") + public void testLocalDelegatedProperty() { + runTest("compiler/testData/codegen/box/lower/localDelegatedProperty.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/mangling") @TestDataPath("$PROJECT_ROOT") @@ -26633,6 +29498,12 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT runTest("compiler/testData/codegen/box/mangling/internalOverrideSuperCall.kt"); } + @Test + @TestMetadata("multipleConstructors.kt") + public void testMultipleConstructors() { + runTest("compiler/testData/codegen/box/mangling/multipleConstructors.kt"); + } + @Test @TestMetadata("parentheses.kt") public void testParentheses() { @@ -27668,6 +30539,104 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT } } + @Nested + @TestMetadata("compiler/testData/codegen/box/object") + @TestDataPath("$PROJECT_ROOT") + @UseExtTestCaseGroupProvider() + @UsePartialLinkage(mode = Mode.DISABLED) + @Tag("no-partial-linkage-may-be-skipped") + public class Object { + @Test + public void testAllFilesPresentInObject() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/object"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("constructor0.kt") + public void testConstructor0() { + runTest("compiler/testData/codegen/box/object/constructor0.kt"); + } + + @Test + @TestMetadata("fields.kt") + public void testFields() { + runTest("compiler/testData/codegen/box/object/fields.kt"); + } + + @Test + @TestMetadata("fields1.kt") + public void testFields1() { + runTest("compiler/testData/codegen/box/object/fields1.kt"); + } + + @Test + @TestMetadata("fields2.kt") + public void testFields2() { + runTest("compiler/testData/codegen/box/object/fields2.kt"); + } + + @Test + @TestMetadata("globalInitializer.kt") + public void testGlobalInitializer() { + runTest("compiler/testData/codegen/box/object/globalInitializer.kt"); + } + + @Test + @TestMetadata("init0.kt") + public void testInit0() { + runTest("compiler/testData/codegen/box/object/init0.kt"); + } + + @Test + @TestMetadata("initialization.kt") + public void testInitialization() { + runTest("compiler/testData/codegen/box/object/initialization.kt"); + } + + @Test + @TestMetadata("initialization1.kt") + public void testInitialization1() { + runTest("compiler/testData/codegen/box/object/initialization1.kt"); + } + + @Test + @TestMetadata("method_call.kt") + public void testMethod_call() { + runTest("compiler/testData/codegen/box/object/method_call.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/objectExpression") + @TestDataPath("$PROJECT_ROOT") + @UseExtTestCaseGroupProvider() + @UsePartialLinkage(mode = Mode.DISABLED) + @Tag("no-partial-linkage-may-be-skipped") + public class ObjectExpression { + @Test + public void testAllFilesPresentInObjectExpression() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/objectExpression"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("expr1.kt") + public void testExpr1() { + runTest("compiler/testData/codegen/box/objectExpression/expr1.kt"); + } + + @Test + @TestMetadata("expr2.kt") + public void testExpr2() { + runTest("compiler/testData/codegen/box/objectExpression/expr2.kt"); + } + + @Test + @TestMetadata("expr3.kt") + public void testExpr3() { + runTest("compiler/testData/codegen/box/objectExpression/expr3.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/objectIntrinsics") @TestDataPath("$PROJECT_ROOT") @@ -30448,6 +33417,67 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT } } + @Nested + @TestMetadata("compiler/testData/codegen/box/propertyCallableReference") + @TestDataPath("$PROJECT_ROOT") + @UseExtTestCaseGroupProvider() + @UsePartialLinkage(mode = Mode.DISABLED) + @Tag("no-partial-linkage-may-be-skipped") + public class PropertyCallableReference { + @Test + public void testAllFilesPresentInPropertyCallableReference() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/propertyCallableReference"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("dynamicReceiver.kt") + public void testDynamicReceiver() { + runTest("compiler/testData/codegen/box/propertyCallableReference/dynamicReceiver.kt"); + } + + @Test + @TestMetadata("multipleModules.kt") + public void testMultipleModules() { + runTest("compiler/testData/codegen/box/propertyCallableReference/multipleModules.kt"); + } + + @Test + @TestMetadata("valClass.kt") + public void testValClass() { + runTest("compiler/testData/codegen/box/propertyCallableReference/valClass.kt"); + } + + @Test + @TestMetadata("valExtension.kt") + public void testValExtension() { + runTest("compiler/testData/codegen/box/propertyCallableReference/valExtension.kt"); + } + + @Test + @TestMetadata("valModule.kt") + public void testValModule() { + runTest("compiler/testData/codegen/box/propertyCallableReference/valModule.kt"); + } + + @Test + @TestMetadata("varClass.kt") + public void testVarClass() { + runTest("compiler/testData/codegen/box/propertyCallableReference/varClass.kt"); + } + + @Test + @TestMetadata("varExtension.kt") + public void testVarExtension() { + runTest("compiler/testData/codegen/box/propertyCallableReference/varExtension.kt"); + } + + @Test + @TestMetadata("varModule.kt") + public void testVarModule() { + runTest("compiler/testData/codegen/box/propertyCallableReference/varModule.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/publishedApi") @TestDataPath("$PROJECT_ROOT") @@ -38515,6 +41545,61 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT } } + @Nested + @TestMetadata("compiler/testData/codegen/box/serialization") + @TestDataPath("$PROJECT_ROOT") + @UseExtTestCaseGroupProvider() + @UsePartialLinkage(mode = Mode.DISABLED) + @Tag("no-partial-linkage-may-be-skipped") + public class Serialization { + @Test + public void testAllFilesPresentInSerialization() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/serialization"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("deserializedMembers.kt") + public void testDeserializedMembers() { + runTest("compiler/testData/codegen/box/serialization/deserializedMembers.kt"); + } + + @Test + @TestMetadata("serializedCatch.kt") + public void testSerializedCatch() { + runTest("compiler/testData/codegen/box/serialization/serializedCatch.kt"); + } + + @Test + @TestMetadata("serializedCharConstant.kt") + public void testSerializedCharConstant() { + runTest("compiler/testData/codegen/box/serialization/serializedCharConstant.kt"); + } + + @Test + @TestMetadata("serializedDefaultArgs.kt") + public void testSerializedDefaultArgs() { + runTest("compiler/testData/codegen/box/serialization/serializedDefaultArgs.kt"); + } + + @Test + @TestMetadata("serializedDoWhile.kt") + public void testSerializedDoWhile() { + runTest("compiler/testData/codegen/box/serialization/serializedDoWhile.kt"); + } + + @Test + @TestMetadata("serializedEnumOrdinal.kt") + public void testSerializedEnumOrdinal() { + runTest("compiler/testData/codegen/box/serialization/serializedEnumOrdinal.kt"); + } + + @Test + @TestMetadata("serializedVararg.kt") + public void testSerializedVararg() { + runTest("compiler/testData/codegen/box/serialization/serializedVararg.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/size") @TestDataPath("$PROJECT_ROOT") @@ -38995,6 +42080,25 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT } } + @Nested + @TestMetadata("compiler/testData/codegen/box/stringTrim") + @TestDataPath("$PROJECT_ROOT") + @UseExtTestCaseGroupProvider() + @UsePartialLinkage(mode = Mode.DISABLED) + @Tag("no-partial-linkage-may-be-skipped") + public class StringTrim { + @Test + public void testAllFilesPresentInStringTrim() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/stringTrim"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("stringTrim.kt") + public void testStringTrim() { + runTest("compiler/testData/codegen/box/stringTrim/stringTrim.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/strings") @TestDataPath("$PROJECT_ROOT") @@ -40115,6 +43219,145 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT } } + @Nested + @TestMetadata("compiler/testData/codegen/box/try") + @TestDataPath("$PROJECT_ROOT") + @UseExtTestCaseGroupProvider() + @UsePartialLinkage(mode = Mode.DISABLED) + @Tag("no-partial-linkage-may-be-skipped") + public class Try { + @Test + public void testAllFilesPresentInTry() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/try"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); + } + + @Test + @TestMetadata("catch3.kt") + public void testCatch3() { + runTest("compiler/testData/codegen/box/try/catch3.kt"); + } + + @Test + @TestMetadata("catch4.kt") + public void testCatch4() { + runTest("compiler/testData/codegen/box/try/catch4.kt"); + } + + @Test + @TestMetadata("catch5.kt") + public void testCatch5() { + runTest("compiler/testData/codegen/box/try/catch5.kt"); + } + + @Test + @TestMetadata("catch6.kt") + public void testCatch6() { + runTest("compiler/testData/codegen/box/try/catch6.kt"); + } + + @Test + @TestMetadata("catch8.kt") + public void testCatch8() { + runTest("compiler/testData/codegen/box/try/catch8.kt"); + } + + @Test + @TestMetadata("finally1.kt") + public void testFinally1() { + runTest("compiler/testData/codegen/box/try/finally1.kt"); + } + + @Test + @TestMetadata("finally10.kt") + public void testFinally10() { + runTest("compiler/testData/codegen/box/try/finally10.kt"); + } + + @Test + @TestMetadata("finally11.kt") + public void testFinally11() { + runTest("compiler/testData/codegen/box/try/finally11.kt"); + } + + @Test + @TestMetadata("finally2.kt") + public void testFinally2() { + runTest("compiler/testData/codegen/box/try/finally2.kt"); + } + + @Test + @TestMetadata("finally3.kt") + public void testFinally3() { + runTest("compiler/testData/codegen/box/try/finally3.kt"); + } + + @Test + @TestMetadata("finally4.kt") + public void testFinally4() { + runTest("compiler/testData/codegen/box/try/finally4.kt"); + } + + @Test + @TestMetadata("finally5.kt") + public void testFinally5() { + runTest("compiler/testData/codegen/box/try/finally5.kt"); + } + + @Test + @TestMetadata("finally6.kt") + public void testFinally6() { + runTest("compiler/testData/codegen/box/try/finally6.kt"); + } + + @Test + @TestMetadata("finally7.kt") + public void testFinally7() { + runTest("compiler/testData/codegen/box/try/finally7.kt"); + } + + @Test + @TestMetadata("finally8.kt") + public void testFinally8() { + runTest("compiler/testData/codegen/box/try/finally8.kt"); + } + + @Test + @TestMetadata("finally9.kt") + public void testFinally9() { + runTest("compiler/testData/codegen/box/try/finally9.kt"); + } + + @Test + @TestMetadata("returnsDifferentTypes.kt") + public void testReturnsDifferentTypes() { + runTest("compiler/testData/codegen/box/try/returnsDifferentTypes.kt"); + } + + @Test + @TestMetadata("try1.kt") + public void testTry1() { + runTest("compiler/testData/codegen/box/try/try1.kt"); + } + + @Test + @TestMetadata("try2.kt") + public void testTry2() { + runTest("compiler/testData/codegen/box/try/try2.kt"); + } + + @Test + @TestMetadata("try3.kt") + public void testTry3() { + runTest("compiler/testData/codegen/box/try/try3.kt"); + } + + @Test + @TestMetadata("try4.kt") + public void testTry4() { + runTest("compiler/testData/codegen/box/try/try4.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/typeInfo") @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 1f2b6619c6e..a1dc32fb933 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 @@ -33,100 +33,6 @@ public class NativeCodegenLocalTestGenerated extends AbstractNativeCodegenBoxTes runTest("native/native.tests/testData/codegen/kt62262.kt"); } - @Nested - @TestMetadata("native/native.tests/testData/codegen/annotations") - @TestDataPath("$PROJECT_ROOT") - @UseExtTestCaseGroupProvider() - public class Annotations { - @Test - public void testAllFilesPresentInAnnotations() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/native.tests/testData/codegen/annotations"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); - } - - @Test - @TestMetadata("annotations0.kt") - public void testAnnotations0() { - runTest("native/native.tests/testData/codegen/annotations/annotations0.kt"); - } - } - - @Nested - @TestMetadata("native/native.tests/testData/codegen/arithmetic") - @TestDataPath("$PROJECT_ROOT") - @UseExtTestCaseGroupProvider() - public class Arithmetic { - @Test - public void testAllFilesPresentInArithmetic() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/native.tests/testData/codegen/arithmetic"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); - } - - @Test - @TestMetadata("basic_charConversions.kt") - public void testBasic_charConversions() { - runTest("native/native.tests/testData/codegen/arithmetic/basic_charConversions.kt"); - } - - @Test - @TestMetadata("basic_charCornerCases.kt") - public void testBasic_charCornerCases() { - runTest("native/native.tests/testData/codegen/arithmetic/basic_charCornerCases.kt"); - } - - @Test - @TestMetadata("basic_compareIntToFloat.kt") - public void testBasic_compareIntToFloat() { - runTest("native/native.tests/testData/codegen/arithmetic/basic_compareIntToFloat.kt"); - } - - @Test - @TestMetadata("basic_doubleBasic.kt") - public void testBasic_doubleBasic() { - runTest("native/native.tests/testData/codegen/arithmetic/basic_doubleBasic.kt"); - } - - @Test - @TestMetadata("basic_integralToFloat.kt") - public void testBasic_integralToFloat() { - runTest("native/native.tests/testData/codegen/arithmetic/basic_integralToFloat.kt"); - } - - @Test - @TestMetadata("basic_kt37412.kt") - public void testBasic_kt37412() { - runTest("native/native.tests/testData/codegen/arithmetic/basic_kt37412.kt"); - } - - @Test - @TestMetadata("basic_selfComparison.kt") - public void testBasic_selfComparison() { - runTest("native/native.tests/testData/codegen/arithmetic/basic_selfComparison.kt"); - } - - @Test - @TestMetadata("basic_shifts.kt") - public void testBasic_shifts() { - runTest("native/native.tests/testData/codegen/arithmetic/basic_shifts.kt"); - } - - @Test - @TestMetadata("basic_uintTests.kt") - public void testBasic_uintTests() { - runTest("native/native.tests/testData/codegen/arithmetic/basic_uintTests.kt"); - } - - @Test - @TestMetadata("division.kt") - public void testDivision() { - runTest("native/native.tests/testData/codegen/arithmetic/division.kt"); - } - - @Test - @TestMetadata("github1856.kt") - public void testGithub1856() { - runTest("native/native.tests/testData/codegen/arithmetic/github1856.kt"); - } - } - @Nested @TestMetadata("native/native.tests/testData/codegen/associatedObjects") @TestDataPath("$PROJECT_ROOT") @@ -156,506 +62,6 @@ public class NativeCodegenLocalTestGenerated extends AbstractNativeCodegenBoxTes } } - @Nested - @TestMetadata("native/native.tests/testData/codegen/basics") - @TestDataPath("$PROJECT_ROOT") - @UseExtTestCaseGroupProvider() - public class Basics { - @Test - public void testAllFilesPresentInBasics() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/native.tests/testData/codegen/basics"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); - } - - @Test - @TestMetadata("array_to_any.kt") - public void testArray_to_any() { - runTest("native/native.tests/testData/codegen/basics/array_to_any.kt"); - } - - @Test - @TestMetadata("canonical_name.kt") - public void testCanonical_name() { - runTest("native/native.tests/testData/codegen/basics/canonical_name.kt"); - } - - @Test - @TestMetadata("cast_null.kt") - public void testCast_null() { - runTest("native/native.tests/testData/codegen/basics/cast_null.kt"); - } - - @Test - @TestMetadata("cast_simple.kt") - public void testCast_simple() { - runTest("native/native.tests/testData/codegen/basics/cast_simple.kt"); - } - - @Test - @TestMetadata("check_type.kt") - public void testCheck_type() { - runTest("native/native.tests/testData/codegen/basics/check_type.kt"); - } - - @Test - @TestMetadata("companion.kt") - public void testCompanion() { - runTest("native/native.tests/testData/codegen/basics/companion.kt"); - } - - @Test - @TestMetadata("concatenation.kt") - public void testConcatenation() { - runTest("native/native.tests/testData/codegen/basics/concatenation.kt"); - } - - @Test - @TestMetadata("const_infinity.kt") - public void testConst_infinity() { - runTest("native/native.tests/testData/codegen/basics/const_infinity.kt"); - } - - @Test - @TestMetadata("expression_as_statement.kt") - public void testExpression_as_statement() { - runTest("native/native.tests/testData/codegen/basics/expression_as_statement.kt"); - } - - @Test - @TestMetadata("k42000_1.kt") - public void testK42000_1() { - runTest("native/native.tests/testData/codegen/basics/k42000_1.kt"); - } - - @Test - @TestMetadata("k42000_2.kt") - public void testK42000_2() { - runTest("native/native.tests/testData/codegen/basics/k42000_2.kt"); - } - - @Test - @TestMetadata("local_variable.kt") - public void testLocal_variable() { - runTest("native/native.tests/testData/codegen/basics/local_variable.kt"); - } - - @Test - @TestMetadata("null_check.kt") - public void testNull_check() { - runTest("native/native.tests/testData/codegen/basics/null_check.kt"); - } - - @Test - @TestMetadata("safe_cast.kt") - public void testSafe_cast() { - runTest("native/native.tests/testData/codegen/basics/safe_cast.kt"); - } - - @Test - @TestMetadata("spread_operator_0.kt") - public void testSpread_operator_0() { - runTest("native/native.tests/testData/codegen/basics/spread_operator_0.kt"); - } - - @Test - @TestMetadata("statements0.kt") - public void testStatements0() { - runTest("native/native.tests/testData/codegen/basics/statements0.kt"); - } - - @Test - @TestMetadata("superFunCall.kt") - public void testSuperFunCall() { - runTest("native/native.tests/testData/codegen/basics/superFunCall.kt"); - } - - @Test - @TestMetadata("superGetterCall.kt") - public void testSuperGetterCall() { - runTest("native/native.tests/testData/codegen/basics/superGetterCall.kt"); - } - - @Test - @TestMetadata("superSetterCall.kt") - public void testSuperSetterCall() { - runTest("native/native.tests/testData/codegen/basics/superSetterCall.kt"); - } - - @Test - @TestMetadata("typealias1.kt") - public void testTypealias1() { - runTest("native/native.tests/testData/codegen/basics/typealias1.kt"); - } - - @Test - @TestMetadata("unchecked_cast1.kt") - public void testUnchecked_cast1() { - runTest("native/native.tests/testData/codegen/basics/unchecked_cast1.kt"); - } - - @Test - @TestMetadata("unchecked_cast2.kt") - public void testUnchecked_cast2() { - runTest("native/native.tests/testData/codegen/basics/unchecked_cast2.kt"); - } - - @Test - @TestMetadata("unchecked_cast3.kt") - public void testUnchecked_cast3() { - runTest("native/native.tests/testData/codegen/basics/unchecked_cast3.kt"); - } - - @Test - @TestMetadata("unchecked_cast4.kt") - public void testUnchecked_cast4() { - runTest("native/native.tests/testData/codegen/basics/unchecked_cast4.kt"); - } - - @Test - @TestMetadata("unit1.kt") - public void testUnit1() { - runTest("native/native.tests/testData/codegen/basics/unit1.kt"); - } - - @Test - @TestMetadata("unit2.kt") - public void testUnit2() { - runTest("native/native.tests/testData/codegen/basics/unit2.kt"); - } - - @Test - @TestMetadata("unit3.kt") - public void testUnit3() { - runTest("native/native.tests/testData/codegen/basics/unit3.kt"); - } - - @Test - @TestMetadata("unit4.kt") - public void testUnit4() { - runTest("native/native.tests/testData/codegen/basics/unit4.kt"); - } - } - - @Nested - @TestMetadata("native/native.tests/testData/codegen/bce") - @TestDataPath("$PROJECT_ROOT") - @UseExtTestCaseGroupProvider() - public class Bce { - @Test - public void testAllFilesPresentInBce() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/native.tests/testData/codegen/bce"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); - } - - @Test - @TestMetadata("bceCases.kt") - public void testBceCases() { - runTest("native/native.tests/testData/codegen/bce/bceCases.kt"); - } - - @Test - @TestMetadata("customGetter.kt") - public void testCustomGetter() { - runTest("native/native.tests/testData/codegen/bce/customGetter.kt"); - } - - @Test - @TestMetadata("delegatedProperty.kt") - public void testDelegatedProperty() { - runTest("native/native.tests/testData/codegen/bce/delegatedProperty.kt"); - } - - @Test - @TestMetadata("differentArrays.kt") - public void testDifferentArrays() { - runTest("native/native.tests/testData/codegen/bce/differentArrays.kt"); - } - - @Test - @TestMetadata("differentObjects.kt") - public void testDifferentObjects() { - runTest("native/native.tests/testData/codegen/bce/differentObjects.kt"); - } - - @Test - @TestMetadata("forDownToSize.kt") - public void testForDownToSize() { - runTest("native/native.tests/testData/codegen/bce/forDownToSize.kt"); - } - - @Test - @TestMetadata("forDownToWithStep.kt") - public void testForDownToWithStep() { - runTest("native/native.tests/testData/codegen/bce/forDownToWithStep.kt"); - } - - @Test - @TestMetadata("forEachIndexedTest.kt") - public void testForEachIndexedTest() { - runTest("native/native.tests/testData/codegen/bce/forEachIndexedTest.kt"); - } - - @Test - @TestMetadata("forEachIndicies.kt") - public void testForEachIndicies() { - runTest("native/native.tests/testData/codegen/bce/forEachIndicies.kt"); - } - - @Test - @TestMetadata("forIndiciesWithStep.kt") - public void testForIndiciesWithStep() { - runTest("native/native.tests/testData/codegen/bce/forIndiciesWithStep.kt"); - } - - @Test - @TestMetadata("forRangeToSize.kt") - public void testForRangeToSize() { - runTest("native/native.tests/testData/codegen/bce/forRangeToSize.kt"); - } - - @Test - @TestMetadata("forRangeToWithStep.kt") - public void testForRangeToWithStep() { - runTest("native/native.tests/testData/codegen/bce/forRangeToWithStep.kt"); - } - - @Test - @TestMetadata("forReversed.kt") - public void testForReversed() { - runTest("native/native.tests/testData/codegen/bce/forReversed.kt"); - } - - @Test - @TestMetadata("forUntilSize.kt") - public void testForUntilSize() { - runTest("native/native.tests/testData/codegen/bce/forUntilSize.kt"); - } - - @Test - @TestMetadata("forUntilWithStep.kt") - public void testForUntilWithStep() { - runTest("native/native.tests/testData/codegen/bce/forUntilWithStep.kt"); - } - - @Test - @TestMetadata("forWithIndex.kt") - public void testForWithIndex() { - runTest("native/native.tests/testData/codegen/bce/forWithIndex.kt"); - } - - @Test - @TestMetadata("inheritance.kt") - public void testInheritance() { - runTest("native/native.tests/testData/codegen/bce/inheritance.kt"); - } - - @Test - @TestMetadata("withGetter.kt") - public void testWithGetter() { - runTest("native/native.tests/testData/codegen/bce/withGetter.kt"); - } - } - - @Nested - @TestMetadata("native/native.tests/testData/codegen/boxing") - @TestDataPath("$PROJECT_ROOT") - @UseExtTestCaseGroupProvider() - public class Boxing { - @Test - public void testAllFilesPresentInBoxing() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/native.tests/testData/codegen/boxing"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); - } - - @Test - @TestMetadata("box_cache0.kt") - public void testBox_cache0() { - runTest("native/native.tests/testData/codegen/boxing/box_cache0.kt"); - } - - @Test - @TestMetadata("boxing0.kt") - public void testBoxing0() { - runTest("native/native.tests/testData/codegen/boxing/boxing0.kt"); - } - - @Test - @TestMetadata("boxing1.kt") - public void testBoxing1() { - runTest("native/native.tests/testData/codegen/boxing/boxing1.kt"); - } - - @Test - @TestMetadata("boxing10.kt") - public void testBoxing10() { - runTest("native/native.tests/testData/codegen/boxing/boxing10.kt"); - } - - @Test - @TestMetadata("boxing11.kt") - public void testBoxing11() { - runTest("native/native.tests/testData/codegen/boxing/boxing11.kt"); - } - - @Test - @TestMetadata("boxing12.kt") - public void testBoxing12() { - runTest("native/native.tests/testData/codegen/boxing/boxing12.kt"); - } - - @Test - @TestMetadata("boxing13.kt") - public void testBoxing13() { - runTest("native/native.tests/testData/codegen/boxing/boxing13.kt"); - } - - @Test - @TestMetadata("boxing14.kt") - public void testBoxing14() { - runTest("native/native.tests/testData/codegen/boxing/boxing14.kt"); - } - - @Test - @TestMetadata("boxing15.kt") - public void testBoxing15() { - runTest("native/native.tests/testData/codegen/boxing/boxing15.kt"); - } - - @Test - @TestMetadata("boxing2.kt") - public void testBoxing2() { - runTest("native/native.tests/testData/codegen/boxing/boxing2.kt"); - } - - @Test - @TestMetadata("boxing3.kt") - public void testBoxing3() { - runTest("native/native.tests/testData/codegen/boxing/boxing3.kt"); - } - - @Test - @TestMetadata("boxing4.kt") - public void testBoxing4() { - runTest("native/native.tests/testData/codegen/boxing/boxing4.kt"); - } - - @Test - @TestMetadata("boxing5.kt") - public void testBoxing5() { - runTest("native/native.tests/testData/codegen/boxing/boxing5.kt"); - } - - @Test - @TestMetadata("boxing6.kt") - public void testBoxing6() { - runTest("native/native.tests/testData/codegen/boxing/boxing6.kt"); - } - - @Test - @TestMetadata("boxing7.kt") - public void testBoxing7() { - runTest("native/native.tests/testData/codegen/boxing/boxing7.kt"); - } - - @Test - @TestMetadata("boxing8.kt") - public void testBoxing8() { - runTest("native/native.tests/testData/codegen/boxing/boxing8.kt"); - } - - @Test - @TestMetadata("boxing9.kt") - public void testBoxing9() { - runTest("native/native.tests/testData/codegen/boxing/boxing9.kt"); - } - - @Test - @TestMetadata("kt53100_casts.kt") - public void testKt53100_casts() { - runTest("native/native.tests/testData/codegen/boxing/kt53100_casts.kt"); - } - } - - @Nested - @TestMetadata("native/native.tests/testData/codegen/branching") - @TestDataPath("$PROJECT_ROOT") - @UseExtTestCaseGroupProvider() - public class Branching { - @Test - @TestMetadata("advanced_when2.kt") - public void testAdvanced_when2() { - runTest("native/native.tests/testData/codegen/branching/advanced_when2.kt"); - } - - @Test - @TestMetadata("advanced_when5.kt") - public void testAdvanced_when5() { - runTest("native/native.tests/testData/codegen/branching/advanced_when5.kt"); - } - - @Test - public void testAllFilesPresentInBranching() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/native.tests/testData/codegen/branching"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); - } - - @Test - @TestMetadata("if_else.kt") - public void testIf_else() { - runTest("native/native.tests/testData/codegen/branching/if_else.kt"); - } - - @Test - @TestMetadata("when2.kt") - public void testWhen2() { - runTest("native/native.tests/testData/codegen/branching/when2.kt"); - } - - @Test - @TestMetadata("when4.kt") - public void testWhen4() { - runTest("native/native.tests/testData/codegen/branching/when4.kt"); - } - - @Test - @TestMetadata("when5.kt") - public void testWhen5() { - runTest("native/native.tests/testData/codegen/branching/when5.kt"); - } - - @Test - @TestMetadata("when6.kt") - public void testWhen6() { - runTest("native/native.tests/testData/codegen/branching/when6.kt"); - } - - @Test - @TestMetadata("when7.kt") - public void testWhen7() { - runTest("native/native.tests/testData/codegen/branching/when7.kt"); - } - - @Test - @TestMetadata("when8.kt") - public void testWhen8() { - runTest("native/native.tests/testData/codegen/branching/when8.kt"); - } - - @Test - @TestMetadata("when9.kt") - public void testWhen9() { - runTest("native/native.tests/testData/codegen/branching/when9.kt"); - } - - @Test - @TestMetadata("when_through.kt") - public void testWhen_through() { - runTest("native/native.tests/testData/codegen/branching/when_through.kt"); - } - - @Test - @TestMetadata("when_with_try1.kt") - public void testWhen_with_try1() { - runTest("native/native.tests/testData/codegen/branching/when_with_try1.kt"); - } - } - @Nested @TestMetadata("native/native.tests/testData/codegen/bridges") @TestDataPath("$PROJECT_ROOT") @@ -666,155 +72,11 @@ public class NativeCodegenLocalTestGenerated extends AbstractNativeCodegenBoxTes KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/native.tests/testData/codegen/bridges"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); } - @Test - @TestMetadata("multipleModules1.kt") - public void testMultipleModules1() { - runTest("native/native.tests/testData/codegen/bridges/multipleModules1.kt"); - } - - @Test - @TestMetadata("multipleModules2.kt") - public void testMultipleModules2() { - runTest("native/native.tests/testData/codegen/bridges/multipleModules2.kt"); - } - @Test @TestMetadata("nativePointed.kt") public void testNativePointed() { runTest("native/native.tests/testData/codegen/bridges/nativePointed.kt"); } - - @Test - @TestMetadata("returnTypeSignature.kt") - public void testReturnTypeSignature() { - runTest("native/native.tests/testData/codegen/bridges/returnTypeSignature.kt"); - } - - @Test - @TestMetadata("special.kt") - public void testSpecial() { - runTest("native/native.tests/testData/codegen/bridges/special.kt"); - } - - @Test - @TestMetadata("specialGeneric.kt") - public void testSpecialGeneric() { - runTest("native/native.tests/testData/codegen/bridges/specialGeneric.kt"); - } - - @Test - @TestMetadata("test0.kt") - public void testTest0() { - runTest("native/native.tests/testData/codegen/bridges/test0.kt"); - } - - @Test - @TestMetadata("test1.kt") - public void testTest1() { - runTest("native/native.tests/testData/codegen/bridges/test1.kt"); - } - - @Test - @TestMetadata("test10.kt") - public void testTest10() { - runTest("native/native.tests/testData/codegen/bridges/test10.kt"); - } - - @Test - @TestMetadata("test11.kt") - public void testTest11() { - runTest("native/native.tests/testData/codegen/bridges/test11.kt"); - } - - @Test - @TestMetadata("test12.kt") - public void testTest12() { - runTest("native/native.tests/testData/codegen/bridges/test12.kt"); - } - - @Test - @TestMetadata("test13.kt") - public void testTest13() { - runTest("native/native.tests/testData/codegen/bridges/test13.kt"); - } - - @Test - @TestMetadata("test14.kt") - public void testTest14() { - runTest("native/native.tests/testData/codegen/bridges/test14.kt"); - } - - @Test - @TestMetadata("test15.kt") - public void testTest15() { - runTest("native/native.tests/testData/codegen/bridges/test15.kt"); - } - - @Test - @TestMetadata("test16.kt") - public void testTest16() { - runTest("native/native.tests/testData/codegen/bridges/test16.kt"); - } - - @Test - @TestMetadata("test17.kt") - public void testTest17() { - runTest("native/native.tests/testData/codegen/bridges/test17.kt"); - } - - @Test - @TestMetadata("test18.kt") - public void testTest18() { - runTest("native/native.tests/testData/codegen/bridges/test18.kt"); - } - - @Test - @TestMetadata("test2.kt") - public void testTest2() { - runTest("native/native.tests/testData/codegen/bridges/test2.kt"); - } - - @Test - @TestMetadata("test3.kt") - public void testTest3() { - runTest("native/native.tests/testData/codegen/bridges/test3.kt"); - } - - @Test - @TestMetadata("test4.kt") - public void testTest4() { - runTest("native/native.tests/testData/codegen/bridges/test4.kt"); - } - - @Test - @TestMetadata("test5.kt") - public void testTest5() { - runTest("native/native.tests/testData/codegen/bridges/test5.kt"); - } - - @Test - @TestMetadata("test6.kt") - public void testTest6() { - runTest("native/native.tests/testData/codegen/bridges/test6.kt"); - } - - @Test - @TestMetadata("test7.kt") - public void testTest7() { - runTest("native/native.tests/testData/codegen/bridges/test7.kt"); - } - - @Test - @TestMetadata("test8.kt") - public void testTest8() { - runTest("native/native.tests/testData/codegen/bridges/test8.kt"); - } - - @Test - @TestMetadata("test9.kt") - public void testTest9() { - runTest("native/native.tests/testData/codegen/bridges/test9.kt"); - } } @Nested @@ -1321,88 +583,6 @@ public class NativeCodegenLocalTestGenerated extends AbstractNativeCodegenBoxTes } } - @Nested - @TestMetadata("native/native.tests/testData/codegen/classDelegation") - @TestDataPath("$PROJECT_ROOT") - @UseExtTestCaseGroupProvider() - public class ClassDelegation { - @Test - public void testAllFilesPresentInClassDelegation() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/native.tests/testData/codegen/classDelegation"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); - } - - @Test - @TestMetadata("generic.kt") - public void testGeneric() { - runTest("native/native.tests/testData/codegen/classDelegation/generic.kt"); - } - - @Test - @TestMetadata("method.kt") - public void testMethod() { - runTest("native/native.tests/testData/codegen/classDelegation/method.kt"); - } - - @Test - @TestMetadata("multipleModules.kt") - public void testMultipleModules() { - runTest("native/native.tests/testData/codegen/classDelegation/multipleModules.kt"); - } - - @Test - @TestMetadata("property.kt") - public void testProperty() { - runTest("native/native.tests/testData/codegen/classDelegation/property.kt"); - } - - @Test - @TestMetadata("withBridge.kt") - public void testWithBridge() { - runTest("native/native.tests/testData/codegen/classDelegation/withBridge.kt"); - } - } - - @Nested - @TestMetadata("native/native.tests/testData/codegen/contracts") - @TestDataPath("$PROJECT_ROOT") - @UseExtTestCaseGroupProvider() - public class Contracts { - @Test - public void testAllFilesPresentInContracts() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/native.tests/testData/codegen/contracts"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); - } - - @Test - @TestMetadata("contractForCast.kt") - public void testContractForCast() { - runTest("native/native.tests/testData/codegen/contracts/contractForCast.kt"); - } - - @Test - @TestMetadata("isNullString.kt") - public void testIsNullString() { - runTest("native/native.tests/testData/codegen/contracts/isNullString.kt"); - } - - @Test - @TestMetadata("nonNullSmartCast.kt") - public void testNonNullSmartCast() { - runTest("native/native.tests/testData/codegen/contracts/nonNullSmartCast.kt"); - } - - @Test - @TestMetadata("require.kt") - public void testRequire() { - runTest("native/native.tests/testData/codegen/contracts/require.kt"); - } - - @Test - @TestMetadata("runLambdaForVal.kt") - public void testRunLambdaForVal() { - runTest("native/native.tests/testData/codegen/contracts/runLambdaForVal.kt"); - } - } - @Nested @TestMetadata("native/native.tests/testData/codegen/controlflow") @TestDataPath("$PROJECT_ROOT") @@ -1413,119 +593,11 @@ public class NativeCodegenLocalTestGenerated extends AbstractNativeCodegenBoxTes KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/native.tests/testData/codegen/controlflow"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); } - @Test - @TestMetadata("break.kt") - public void testBreak() { - runTest("native/native.tests/testData/codegen/controlflow/break.kt"); - } - - @Test - @TestMetadata("break1.kt") - public void testBreak1() { - runTest("native/native.tests/testData/codegen/controlflow/break1.kt"); - } - - @Test - @TestMetadata("for_loops.kt") - public void testFor_loops() { - runTest("native/native.tests/testData/codegen/controlflow/for_loops.kt"); - } - @Test @TestMetadata("for_loops_array.kt") public void testFor_loops_array() { runTest("native/native.tests/testData/codegen/controlflow/for_loops_array.kt"); } - - @Test - @TestMetadata("for_loops_array_break_continue.kt") - public void testFor_loops_array_break_continue() { - runTest("native/native.tests/testData/codegen/controlflow/for_loops_array_break_continue.kt"); - } - - @Test - @TestMetadata("for_loops_array_indices.kt") - public void testFor_loops_array_indices() { - runTest("native/native.tests/testData/codegen/controlflow/for_loops_array_indices.kt"); - } - - @Test - @TestMetadata("for_loops_array_mutation.kt") - public void testFor_loops_array_mutation() { - runTest("native/native.tests/testData/codegen/controlflow/for_loops_array_mutation.kt"); - } - - @Test - @TestMetadata("for_loops_array_nested.kt") - public void testFor_loops_array_nested() { - runTest("native/native.tests/testData/codegen/controlflow/for_loops_array_nested.kt"); - } - - @Test - @TestMetadata("for_loops_array_nullable.kt") - public void testFor_loops_array_nullable() { - runTest("native/native.tests/testData/codegen/controlflow/for_loops_array_nullable.kt"); - } - - @Test - @TestMetadata("for_loops_array_side_effects.kt") - public void testFor_loops_array_side_effects() { - runTest("native/native.tests/testData/codegen/controlflow/for_loops_array_side_effects.kt"); - } - - @Test - @TestMetadata("for_loops_call_order.kt") - public void testFor_loops_call_order() { - runTest("native/native.tests/testData/codegen/controlflow/for_loops_call_order.kt"); - } - - @Test - @TestMetadata("for_loops_coroutines.kt") - public void testFor_loops_coroutines() { - runTest("native/native.tests/testData/codegen/controlflow/for_loops_coroutines.kt"); - } - - @Test - @TestMetadata("for_loops_empty_range.kt") - public void testFor_loops_empty_range() { - runTest("native/native.tests/testData/codegen/controlflow/for_loops_empty_range.kt"); - } - - @Test - @TestMetadata("for_loops_errors.kt") - public void testFor_loops_errors() { - runTest("native/native.tests/testData/codegen/controlflow/for_loops_errors.kt"); - } - - @Test - @TestMetadata("for_loops_let_with_nullable.kt") - public void testFor_loops_let_with_nullable() { - runTest("native/native.tests/testData/codegen/controlflow/for_loops_let_with_nullable.kt"); - } - - @Test - @TestMetadata("for_loops_nested.kt") - public void testFor_loops_nested() { - runTest("native/native.tests/testData/codegen/controlflow/for_loops_nested.kt"); - } - - @Test - @TestMetadata("for_loops_overflow.kt") - public void testFor_loops_overflow() { - runTest("native/native.tests/testData/codegen/controlflow/for_loops_overflow.kt"); - } - - @Test - @TestMetadata("for_loops_types.kt") - public void testFor_loops_types() { - runTest("native/native.tests/testData/codegen/controlflow/for_loops_types.kt"); - } - - @Test - @TestMetadata("unreachable1.kt") - public void testUnreachable1() { - runTest("native/native.tests/testData/codegen/controlflow/unreachable1.kt"); - } } @Nested @@ -1538,379 +610,11 @@ public class NativeCodegenLocalTestGenerated extends AbstractNativeCodegenBoxTes KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/native.tests/testData/codegen/coroutines"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); } - @Test - @TestMetadata("anonymousObject.kt") - public void testAnonymousObject() { - runTest("native/native.tests/testData/codegen/coroutines/anonymousObject.kt"); - } - - @Test - @TestMetadata("controlFlow_chain.kt") - public void testControlFlow_chain() { - runTest("native/native.tests/testData/codegen/coroutines/controlFlow_chain.kt"); - } - - @Test - @TestMetadata("controlFlow_finally1.kt") - public void testControlFlow_finally1() { - runTest("native/native.tests/testData/codegen/coroutines/controlFlow_finally1.kt"); - } - - @Test - @TestMetadata("controlFlow_finally2.kt") - public void testControlFlow_finally2() { - runTest("native/native.tests/testData/codegen/coroutines/controlFlow_finally2.kt"); - } - - @Test - @TestMetadata("controlFlow_finally3.kt") - public void testControlFlow_finally3() { - runTest("native/native.tests/testData/codegen/coroutines/controlFlow_finally3.kt"); - } - - @Test - @TestMetadata("controlFlow_finally4.kt") - public void testControlFlow_finally4() { - runTest("native/native.tests/testData/codegen/coroutines/controlFlow_finally4.kt"); - } - - @Test - @TestMetadata("controlFlow_finally5.kt") - public void testControlFlow_finally5() { - runTest("native/native.tests/testData/codegen/coroutines/controlFlow_finally5.kt"); - } - - @Test - @TestMetadata("controlFlow_finally6.kt") - public void testControlFlow_finally6() { - runTest("native/native.tests/testData/codegen/coroutines/controlFlow_finally6.kt"); - } - - @Test - @TestMetadata("controlFlow_finally7.kt") - public void testControlFlow_finally7() { - runTest("native/native.tests/testData/codegen/coroutines/controlFlow_finally7.kt"); - } - - @Test - @TestMetadata("controlFlow_if1.kt") - public void testControlFlow_if1() { - runTest("native/native.tests/testData/codegen/coroutines/controlFlow_if1.kt"); - } - - @Test - @TestMetadata("controlFlow_if2.kt") - public void testControlFlow_if2() { - runTest("native/native.tests/testData/codegen/coroutines/controlFlow_if2.kt"); - } - - @Test - @TestMetadata("controlFlow_inline1.kt") - public void testControlFlow_inline1() { - runTest("native/native.tests/testData/codegen/coroutines/controlFlow_inline1.kt"); - } - - @Test - @TestMetadata("controlFlow_inline2.kt") - public void testControlFlow_inline2() { - runTest("native/native.tests/testData/codegen/coroutines/controlFlow_inline2.kt"); - } - - @Test - @TestMetadata("controlFlow_inline3.kt") - public void testControlFlow_inline3() { - runTest("native/native.tests/testData/codegen/coroutines/controlFlow_inline3.kt"); - } - - @Test - @TestMetadata("controlFlow_tryCatch1.kt") - public void testControlFlow_tryCatch1() { - runTest("native/native.tests/testData/codegen/coroutines/controlFlow_tryCatch1.kt"); - } - - @Test - @TestMetadata("controlFlow_tryCatch2.kt") - public void testControlFlow_tryCatch2() { - runTest("native/native.tests/testData/codegen/coroutines/controlFlow_tryCatch2.kt"); - } - - @Test - @TestMetadata("controlFlow_tryCatch3.kt") - public void testControlFlow_tryCatch3() { - runTest("native/native.tests/testData/codegen/coroutines/controlFlow_tryCatch3.kt"); - } - - @Test - @TestMetadata("controlFlow_tryCatch4.kt") - public void testControlFlow_tryCatch4() { - runTest("native/native.tests/testData/codegen/coroutines/controlFlow_tryCatch4.kt"); - } - - @Test - @TestMetadata("controlFlow_tryCatch5.kt") - public void testControlFlow_tryCatch5() { - runTest("native/native.tests/testData/codegen/coroutines/controlFlow_tryCatch5.kt"); - } - - @Test - @TestMetadata("controlFlow_while1.kt") - public void testControlFlow_while1() { - runTest("native/native.tests/testData/codegen/coroutines/controlFlow_while1.kt"); - } - - @Test - @TestMetadata("controlFlow_while2.kt") - public void testControlFlow_while2() { - runTest("native/native.tests/testData/codegen/coroutines/controlFlow_while2.kt"); - } - - @Test - @TestMetadata("coroutineContext1.kt") - public void testCoroutineContext1() { - runTest("native/native.tests/testData/codegen/coroutines/coroutineContext1.kt"); - } - - @Test - @TestMetadata("coroutineContext2.kt") - public void testCoroutineContext2() { - runTest("native/native.tests/testData/codegen/coroutines/coroutineContext2.kt"); - } - - @Test - @TestMetadata("correctOrder1.kt") - public void testCorrectOrder1() { - runTest("native/native.tests/testData/codegen/coroutines/correctOrder1.kt"); - } - - @Test - @TestMetadata("degenerate1.kt") - public void testDegenerate1() { - runTest("native/native.tests/testData/codegen/coroutines/degenerate1.kt"); - } - - @Test - @TestMetadata("degenerate2.kt") - public void testDegenerate2() { - runTest("native/native.tests/testData/codegen/coroutines/degenerate2.kt"); - } - - @Test - @TestMetadata("functionReference_eqeq_name.kt") - public void testFunctionReference_eqeq_name() { - runTest("native/native.tests/testData/codegen/coroutines/functionReference_eqeq_name.kt"); - } - - @Test - @TestMetadata("functionReference_invokeAsFunction.kt") - public void testFunctionReference_invokeAsFunction() { - runTest("native/native.tests/testData/codegen/coroutines/functionReference_invokeAsFunction.kt"); - } - - @Test - @TestMetadata("functionReference_lambdaAsSuspendLambda.kt") - public void testFunctionReference_lambdaAsSuspendLambda() { - runTest("native/native.tests/testData/codegen/coroutines/functionReference_lambdaAsSuspendLambda.kt"); - } - - @Test - @TestMetadata("functionReference_simple.kt") - public void testFunctionReference_simple() { - runTest("native/native.tests/testData/codegen/coroutines/functionReference_simple.kt"); - } - @Test @TestMetadata("inheritance.kt") public void testInheritance() { runTest("native/native.tests/testData/codegen/coroutines/inheritance.kt"); } - - @Test - @TestMetadata("kt41394.kt") - public void testKt41394() { - runTest("native/native.tests/testData/codegen/coroutines/kt41394.kt"); - } - - @Test - @TestMetadata("returnsNothing1.kt") - public void testReturnsNothing1() { - runTest("native/native.tests/testData/codegen/coroutines/returnsNothing1.kt"); - } - - @Test - @TestMetadata("returnsUnit1.kt") - public void testReturnsUnit1() { - runTest("native/native.tests/testData/codegen/coroutines/returnsUnit1.kt"); - } - - @Test - @TestMetadata("simple.kt") - public void testSimple() { - runTest("native/native.tests/testData/codegen/coroutines/simple.kt"); - } - - @Test - @TestMetadata("suspendConversion.kt") - public void testSuspendConversion() { - runTest("native/native.tests/testData/codegen/coroutines/suspendConversion.kt"); - } - - @Test - @TestMetadata("withReceiver.kt") - public void testWithReceiver() { - runTest("native/native.tests/testData/codegen/coroutines/withReceiver.kt"); - } - } - - @Nested - @TestMetadata("native/native.tests/testData/codegen/cycles") - @TestDataPath("$PROJECT_ROOT") - @UseExtTestCaseGroupProvider() - public class Cycles { - @Test - public void testAllFilesPresentInCycles() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/native.tests/testData/codegen/cycles"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); - } - - @Test - @TestMetadata("cycle.kt") - public void testCycle() { - runTest("native/native.tests/testData/codegen/cycles/cycle.kt"); - } - - @Test - @TestMetadata("cycle_do.kt") - public void testCycle_do() { - runTest("native/native.tests/testData/codegen/cycles/cycle_do.kt"); - } - - @Test - @TestMetadata("cycle_for.kt") - public void testCycle_for() { - runTest("native/native.tests/testData/codegen/cycles/cycle_for.kt"); - } - } - - @Nested - @TestMetadata("native/native.tests/testData/codegen/dataflow") - @TestDataPath("$PROJECT_ROOT") - @UseExtTestCaseGroupProvider() - public class Dataflow { - @Test - public void testAllFilesPresentInDataflow() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/native.tests/testData/codegen/dataflow"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); - } - - @Test - @TestMetadata("scope1.kt") - public void testScope1() { - runTest("native/native.tests/testData/codegen/dataflow/scope1.kt"); - } - - @Test - @TestMetadata("uninitialized_val.kt") - public void testUninitialized_val() { - runTest("native/native.tests/testData/codegen/dataflow/uninitialized_val.kt"); - } - } - - @Nested - @TestMetadata("native/native.tests/testData/codegen/delegatedProperty") - @TestDataPath("$PROJECT_ROOT") - @UseExtTestCaseGroupProvider() - public class DelegatedProperty { - @Test - public void testAllFilesPresentInDelegatedProperty() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/native.tests/testData/codegen/delegatedProperty"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); - } - - @Test - @TestMetadata("correctFieldsOrder.kt") - public void testCorrectFieldsOrder() { - runTest("native/native.tests/testData/codegen/delegatedProperty/correctFieldsOrder.kt"); - } - - @Test - @TestMetadata("delegatedOverride.kt") - public void testDelegatedOverride() { - runTest("native/native.tests/testData/codegen/delegatedProperty/delegatedOverride.kt"); - } - - @Test - @TestMetadata("lazy.kt") - public void testLazy() { - runTest("native/native.tests/testData/codegen/delegatedProperty/lazy.kt"); - } - - @Test - @TestMetadata("local.kt") - public void testLocal() { - runTest("native/native.tests/testData/codegen/delegatedProperty/local.kt"); - } - - @Test - @TestMetadata("map.kt") - public void testMap() { - runTest("native/native.tests/testData/codegen/delegatedProperty/map.kt"); - } - - @Test - @TestMetadata("observable.kt") - public void testObservable() { - runTest("native/native.tests/testData/codegen/delegatedProperty/observable.kt"); - } - - @Test - @TestMetadata("packageLevel.kt") - public void testPackageLevel() { - runTest("native/native.tests/testData/codegen/delegatedProperty/packageLevel.kt"); - } - - @Test - @TestMetadata("simpleVal.kt") - public void testSimpleVal() { - runTest("native/native.tests/testData/codegen/delegatedProperty/simpleVal.kt"); - } - - @Test - @TestMetadata("simpleVar.kt") - public void testSimpleVar() { - runTest("native/native.tests/testData/codegen/delegatedProperty/simpleVar.kt"); - } - } - - @Nested - @TestMetadata("native/native.tests/testData/codegen/devirtualization") - @TestDataPath("$PROJECT_ROOT") - @UseExtTestCaseGroupProvider() - public class Devirtualization { - @Test - public void testAllFilesPresentInDevirtualization() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/native.tests/testData/codegen/devirtualization"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); - } - - @Test - @TestMetadata("anonymousObject.kt") - public void testAnonymousObject() { - runTest("native/native.tests/testData/codegen/devirtualization/anonymousObject.kt"); - } - - @Test - @TestMetadata("getter_looking_as_box_function.kt") - public void testGetter_looking_as_box_function() { - runTest("native/native.tests/testData/codegen/devirtualization/getter_looking_as_box_function.kt"); - } - - @Test - @TestMetadata("inline_getter.kt") - public void testInline_getter() { - runTest("native/native.tests/testData/codegen/devirtualization/inline_getter.kt"); - } - - @Test - @TestMetadata("lateinitInterface.kt") - public void testLateinitInterface() { - runTest("native/native.tests/testData/codegen/devirtualization/lateinitInterface.kt"); - } } @Nested @@ -1923,125 +627,11 @@ public class NativeCodegenLocalTestGenerated extends AbstractNativeCodegenBoxTes KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/native.tests/testData/codegen/enum"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); } - @Test - @TestMetadata("companionObject.kt") - public void testCompanionObject() { - runTest("native/native.tests/testData/codegen/enum/companionObject.kt"); - } - - @Test - @TestMetadata("enum_equals.kt") - public void testEnum_equals() { - runTest("native/native.tests/testData/codegen/enum/enum_equals.kt"); - } - - @Test - @TestMetadata("interfaceCallNoEntryClass.kt") - public void testInterfaceCallNoEntryClass() { - runTest("native/native.tests/testData/codegen/enum/interfaceCallNoEntryClass.kt"); - } - - @Test - @TestMetadata("interfaceCallWithEntryClass.kt") - public void testInterfaceCallWithEntryClass() { - runTest("native/native.tests/testData/codegen/enum/interfaceCallWithEntryClass.kt"); - } - @Test @TestMetadata("isFrozen.kt") public void testIsFrozen() { runTest("native/native.tests/testData/codegen/enum/isFrozen.kt"); } - - @Test - @TestMetadata("kt38540.kt") - public void testKt38540() { - runTest("native/native.tests/testData/codegen/enum/kt38540.kt"); - } - - @Test - @TestMetadata("lambdaInDefault.kt") - public void testLambdaInDefault() { - runTest("native/native.tests/testData/codegen/enum/lambdaInDefault.kt"); - } - - @Test - @TestMetadata("loop.kt") - public void testLoop() { - runTest("native/native.tests/testData/codegen/enum/loop.kt"); - } - - @Test - @TestMetadata("multipleModules.kt") - public void testMultipleModules() { - runTest("native/native.tests/testData/codegen/enum/multipleModules.kt"); - } - - @Test - @TestMetadata("nested.kt") - public void testNested() { - runTest("native/native.tests/testData/codegen/enum/nested.kt"); - } - - @Test - @TestMetadata("openMethodNoOverrides.kt") - public void testOpenMethodNoOverrides() { - runTest("native/native.tests/testData/codegen/enum/openMethodNoOverrides.kt"); - } - - @Test - @TestMetadata("reorderedArguments.kt") - public void testReorderedArguments() { - runTest("native/native.tests/testData/codegen/enum/reorderedArguments.kt"); - } - - @Test - @TestMetadata("switchLowering.kt") - public void testSwitchLowering() { - runTest("native/native.tests/testData/codegen/enum/switchLowering.kt"); - } - - @Test - @TestMetadata("test0.kt") - public void testTest0() { - runTest("native/native.tests/testData/codegen/enum/test0.kt"); - } - - @Test - @TestMetadata("test1.kt") - public void testTest1() { - runTest("native/native.tests/testData/codegen/enum/test1.kt"); - } - - @Test - @TestMetadata("vCallNoEntryClass.kt") - public void testVCallNoEntryClass() { - runTest("native/native.tests/testData/codegen/enum/vCallNoEntryClass.kt"); - } - - @Test - @TestMetadata("vCallWithEntryClass.kt") - public void testVCallWithEntryClass() { - runTest("native/native.tests/testData/codegen/enum/vCallWithEntryClass.kt"); - } - - @Test - @TestMetadata("valueOf.kt") - public void testValueOf() { - runTest("native/native.tests/testData/codegen/enum/valueOf.kt"); - } - - @Test - @TestMetadata("values.kt") - public void testValues() { - runTest("native/native.tests/testData/codegen/enum/values.kt"); - } - - @Test - @TestMetadata("varargParam.kt") - public void testVarargParam() { - runTest("native/native.tests/testData/codegen/enum/varargParam.kt"); - } } @Nested @@ -2060,12 +650,6 @@ public class NativeCodegenLocalTestGenerated extends AbstractNativeCodegenBoxTes runTest("native/native.tests/testData/codegen/escapeAnalysis/negativeArraySize.kt"); } - @Test - @TestMetadata("recursion.kt") - public void testRecursion() { - runTest("native/native.tests/testData/codegen/escapeAnalysis/recursion.kt"); - } - @Test @TestMetadata("stackAllocated.kt") public void testStackAllocated() { @@ -2089,149 +673,6 @@ public class NativeCodegenLocalTestGenerated extends AbstractNativeCodegenBoxTes public void testStackNotAllocatedString() { runTest("native/native.tests/testData/codegen/escapeAnalysis/stackNotAllocatedString.kt"); } - - @Test - @TestMetadata("stack_array.kt") - public void testStack_array() { - runTest("native/native.tests/testData/codegen/escapeAnalysis/stack_array.kt"); - } - - @Test - @TestMetadata("test1.kt") - public void testTest1() { - runTest("native/native.tests/testData/codegen/escapeAnalysis/test1.kt"); - } - - @Test - @TestMetadata("test10.kt") - public void testTest10() { - runTest("native/native.tests/testData/codegen/escapeAnalysis/test10.kt"); - } - - @Test - @TestMetadata("test11.kt") - public void testTest11() { - runTest("native/native.tests/testData/codegen/escapeAnalysis/test11.kt"); - } - - @Test - @TestMetadata("test12.kt") - public void testTest12() { - runTest("native/native.tests/testData/codegen/escapeAnalysis/test12.kt"); - } - - @Test - @TestMetadata("test13.kt") - public void testTest13() { - runTest("native/native.tests/testData/codegen/escapeAnalysis/test13.kt"); - } - - @Test - @TestMetadata("test2.kt") - public void testTest2() { - runTest("native/native.tests/testData/codegen/escapeAnalysis/test2.kt"); - } - - @Test - @TestMetadata("test3.kt") - public void testTest3() { - runTest("native/native.tests/testData/codegen/escapeAnalysis/test3.kt"); - } - - @Test - @TestMetadata("test4.kt") - public void testTest4() { - runTest("native/native.tests/testData/codegen/escapeAnalysis/test4.kt"); - } - - @Test - @TestMetadata("test5.kt") - public void testTest5() { - runTest("native/native.tests/testData/codegen/escapeAnalysis/test5.kt"); - } - - @Test - @TestMetadata("test6.kt") - public void testTest6() { - runTest("native/native.tests/testData/codegen/escapeAnalysis/test6.kt"); - } - - @Test - @TestMetadata("test7.kt") - public void testTest7() { - runTest("native/native.tests/testData/codegen/escapeAnalysis/test7.kt"); - } - - @Test - @TestMetadata("test8.kt") - public void testTest8() { - runTest("native/native.tests/testData/codegen/escapeAnalysis/test8.kt"); - } - - @Test - @TestMetadata("test9.kt") - public void testTest9() { - runTest("native/native.tests/testData/codegen/escapeAnalysis/test9.kt"); - } - - @Test - @TestMetadata("zeroOutObjectOnAlloc.kt") - public void testZeroOutObjectOnAlloc() { - runTest("native/native.tests/testData/codegen/escapeAnalysis/zeroOutObjectOnAlloc.kt"); - } - } - - @Nested - @TestMetadata("native/native.tests/testData/codegen/exceptions") - @TestDataPath("$PROJECT_ROOT") - @UseExtTestCaseGroupProvider() - public class Exceptions { - @Test - public void testAllFilesPresentInExceptions() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/native.tests/testData/codegen/exceptions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); - } - - @Test - @TestMetadata("catch1.kt") - public void testCatch1() { - runTest("native/native.tests/testData/codegen/exceptions/catch1.kt"); - } - - @Test - @TestMetadata("catch2.kt") - public void testCatch2() { - runTest("native/native.tests/testData/codegen/exceptions/catch2.kt"); - } - - @Test - @TestMetadata("catch7.kt") - public void testCatch7() { - runTest("native/native.tests/testData/codegen/exceptions/catch7.kt"); - } - - @Test - @TestMetadata("extend0.kt") - public void testExtend0() { - runTest("native/native.tests/testData/codegen/exceptions/extend0.kt"); - } - - @Test - @TestMetadata("rethrow.kt") - public void testRethrow() { - runTest("native/native.tests/testData/codegen/exceptions/rethrow.kt"); - } - - @Test - @TestMetadata("throw0.kt") - public void testThrow0() { - runTest("native/native.tests/testData/codegen/exceptions/throw0.kt"); - } - - @Test - @TestMetadata("throw_from_catch.kt") - public void testThrow_from_catch() { - runTest("native/native.tests/testData/codegen/exceptions/throw_from_catch.kt"); - } } @Nested @@ -2582,262 +1023,11 @@ public class NativeCodegenLocalTestGenerated extends AbstractNativeCodegenBoxTes KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/native.tests/testData/codegen/funInterface"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); } - @Test - @TestMetadata("implIsNotFunction.kt") - public void testImplIsNotFunction() { - runTest("native/native.tests/testData/codegen/funInterface/implIsNotFunction.kt"); - } - @Test @TestMetadata("kt43887.kt") public void testKt43887() { runTest("native/native.tests/testData/codegen/funInterface/kt43887.kt"); } - - @Test - @TestMetadata("kt49384.kt") - public void testKt49384() { - runTest("native/native.tests/testData/codegen/funInterface/kt49384.kt"); - } - - @Test - @TestMetadata("kt49384_getSame.kt") - public void testKt49384_getSame() { - runTest("native/native.tests/testData/codegen/funInterface/kt49384_getSame.kt"); - } - - @Test - @TestMetadata("nonTrivialProjectionInSuperType.kt") - public void testNonTrivialProjectionInSuperType() { - runTest("native/native.tests/testData/codegen/funInterface/nonTrivialProjectionInSuperType.kt"); - } - } - - @Nested - @TestMetadata("native/native.tests/testData/codegen/function") - @TestDataPath("$PROJECT_ROOT") - @UseExtTestCaseGroupProvider() - public class Function { - @Test - public void testAllFilesPresentInFunction() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/native.tests/testData/codegen/function"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); - } - - @Test - @TestMetadata("arithmetic.kt") - public void testArithmetic() { - runTest("native/native.tests/testData/codegen/function/arithmetic.kt"); - } - - @Test - @TestMetadata("boolean.kt") - public void testBoolean() { - runTest("native/native.tests/testData/codegen/function/boolean.kt"); - } - - @Test - @TestMetadata("defaults.kt") - public void testDefaults() { - runTest("native/native.tests/testData/codegen/function/defaults.kt"); - } - - @Test - @TestMetadata("defaults1.kt") - public void testDefaults1() { - runTest("native/native.tests/testData/codegen/function/defaults1.kt"); - } - - @Test - @TestMetadata("defaults10.kt") - public void testDefaults10() { - runTest("native/native.tests/testData/codegen/function/defaults10.kt"); - } - - @Test - @TestMetadata("defaults2.kt") - public void testDefaults2() { - runTest("native/native.tests/testData/codegen/function/defaults2.kt"); - } - - @Test - @TestMetadata("defaults3.kt") - public void testDefaults3() { - runTest("native/native.tests/testData/codegen/function/defaults3.kt"); - } - - @Test - @TestMetadata("defaults4.kt") - public void testDefaults4() { - runTest("native/native.tests/testData/codegen/function/defaults4.kt"); - } - - @Test - @TestMetadata("defaults5.kt") - public void testDefaults5() { - runTest("native/native.tests/testData/codegen/function/defaults5.kt"); - } - - @Test - @TestMetadata("defaults6.kt") - public void testDefaults6() { - runTest("native/native.tests/testData/codegen/function/defaults6.kt"); - } - - @Test - @TestMetadata("defaults7.kt") - public void testDefaults7() { - runTest("native/native.tests/testData/codegen/function/defaults7.kt"); - } - - @Test - @TestMetadata("defaults8.kt") - public void testDefaults8() { - runTest("native/native.tests/testData/codegen/function/defaults8.kt"); - } - - @Test - @TestMetadata("defaults9.kt") - public void testDefaults9() { - runTest("native/native.tests/testData/codegen/function/defaults9.kt"); - } - - @Test - @TestMetadata("defaultsFromFakeOverride.kt") - public void testDefaultsFromFakeOverride() { - runTest("native/native.tests/testData/codegen/function/defaultsFromFakeOverride.kt"); - } - - @Test - @TestMetadata("defaultsWithInlineClasses.kt") - public void testDefaultsWithInlineClasses() { - runTest("native/native.tests/testData/codegen/function/defaultsWithInlineClasses.kt"); - } - - @Test - @TestMetadata("defaultsWithVarArg1.kt") - public void testDefaultsWithVarArg1() { - runTest("native/native.tests/testData/codegen/function/defaultsWithVarArg1.kt"); - } - - @Test - @TestMetadata("defaultsWithVarArg2.kt") - public void testDefaultsWithVarArg2() { - runTest("native/native.tests/testData/codegen/function/defaultsWithVarArg2.kt"); - } - - @Test - @TestMetadata("eqeq.kt") - public void testEqeq() { - runTest("native/native.tests/testData/codegen/function/eqeq.kt"); - } - - @Test - @TestMetadata("extension.kt") - public void testExtension() { - runTest("native/native.tests/testData/codegen/function/extension.kt"); - } - - @Test - @TestMetadata("intrinsic.kt") - public void testIntrinsic() { - runTest("native/native.tests/testData/codegen/function/intrinsic.kt"); - } - - @Test - @TestMetadata("localFunction.kt") - public void testLocalFunction() { - runTest("native/native.tests/testData/codegen/function/localFunction.kt"); - } - - @Test - @TestMetadata("localFunction2.kt") - public void testLocalFunction2() { - runTest("native/native.tests/testData/codegen/function/localFunction2.kt"); - } - - @Test - @TestMetadata("localFunction3.kt") - public void testLocalFunction3() { - runTest("native/native.tests/testData/codegen/function/localFunction3.kt"); - } - - @Test - @TestMetadata("minus_eq.kt") - public void testMinus_eq() { - runTest("native/native.tests/testData/codegen/function/minus_eq.kt"); - } - - @Test - @TestMetadata("named.kt") - public void testNamed() { - runTest("native/native.tests/testData/codegen/function/named.kt"); - } - - @Test - @TestMetadata("nothingNReturningSafeCall.kt") - public void testNothingNReturningSafeCall() { - runTest("native/native.tests/testData/codegen/function/nothingNReturningSafeCall.kt"); - } - - @Test - @TestMetadata("plus_eq.kt") - public void testPlus_eq() { - runTest("native/native.tests/testData/codegen/function/plus_eq.kt"); - } - - @Test - @TestMetadata("referenceBigArity.kt") - public void testReferenceBigArity() { - runTest("native/native.tests/testData/codegen/function/referenceBigArity.kt"); - } - - @Test - @TestMetadata("sum.kt") - public void testSum() { - runTest("native/native.tests/testData/codegen/function/sum.kt"); - } - - @Test - @TestMetadata("sum_3const.kt") - public void testSum_3const() { - runTest("native/native.tests/testData/codegen/function/sum_3const.kt"); - } - - @Test - @TestMetadata("sum_foo_bar.kt") - public void testSum_foo_bar() { - runTest("native/native.tests/testData/codegen/function/sum_foo_bar.kt"); - } - - @Test - @TestMetadata("sum_func.kt") - public void testSum_func() { - runTest("native/native.tests/testData/codegen/function/sum_func.kt"); - } - - @Test - @TestMetadata("sum_imm.kt") - public void testSum_imm() { - runTest("native/native.tests/testData/codegen/function/sum_imm.kt"); - } - - @Test - @TestMetadata("sum_mixed.kt") - public void testSum_mixed() { - runTest("native/native.tests/testData/codegen/function/sum_mixed.kt"); - } - - @Test - @TestMetadata("sum_silly.kt") - public void testSum_silly() { - runTest("native/native.tests/testData/codegen/function/sum_silly.kt"); - } - - @Test - @TestMetadata("unreachableStatementAfterReturn.kt") - public void testUnreachableStatementAfterReturn() { - runTest("native/native.tests/testData/codegen/function/unreachableStatementAfterReturn.kt"); - } } @Nested @@ -2850,84 +1040,12 @@ public class NativeCodegenLocalTestGenerated extends AbstractNativeCodegenBoxTes KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/native.tests/testData/codegen/initializers"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); } - @Test - @TestMetadata("correctOrder1.kt") - public void testCorrectOrder1() { - runTest("native/native.tests/testData/codegen/initializers/correctOrder1.kt"); - } - - @Test - @TestMetadata("correctOrder2.kt") - public void testCorrectOrder2() { - runTest("native/native.tests/testData/codegen/initializers/correctOrder2.kt"); - } - - @Test - @TestMetadata("initializers0.kt") - public void testInitializers0() { - runTest("native/native.tests/testData/codegen/initializers/initializers0.kt"); - } - - @Test - @TestMetadata("initializers1.kt") - public void testInitializers1() { - runTest("native/native.tests/testData/codegen/initializers/initializers1.kt"); - } - - @Test - @TestMetadata("initializers2.kt") - public void testInitializers2() { - runTest("native/native.tests/testData/codegen/initializers/initializers2.kt"); - } - - @Test - @TestMetadata("initializers3.kt") - public void testInitializers3() { - runTest("native/native.tests/testData/codegen/initializers/initializers3.kt"); - } - - @Test - @TestMetadata("initializers4.kt") - public void testInitializers4() { - runTest("native/native.tests/testData/codegen/initializers/initializers4.kt"); - } - - @Test - @TestMetadata("initializers5.kt") - public void testInitializers5() { - runTest("native/native.tests/testData/codegen/initializers/initializers5.kt"); - } - - @Test - @TestMetadata("initializers7.kt") - public void testInitializers7() { - runTest("native/native.tests/testData/codegen/initializers/initializers7.kt"); - } - - @Test - @TestMetadata("initializers8.kt") - public void testInitializers8() { - runTest("native/native.tests/testData/codegen/initializers/initializers8.kt"); - } - - @Test - @TestMetadata("multipleModules1.kt") - public void testMultipleModules1() { - runTest("native/native.tests/testData/codegen/initializers/multipleModules1.kt"); - } - @Test @TestMetadata("multipleModules2.kt") public void testMultipleModules2() { runTest("native/native.tests/testData/codegen/initializers/multipleModules2.kt"); } - @Test - @TestMetadata("object.kt") - public void testObject() { - runTest("native/native.tests/testData/codegen/initializers/object.kt"); - } - @Test @TestMetadata("return1.kt") public void testReturn1() { @@ -2940,18 +1058,6 @@ public class NativeCodegenLocalTestGenerated extends AbstractNativeCodegenBoxTes runTest("native/native.tests/testData/codegen/initializers/return2.kt"); } - @Test - @TestMetadata("sharedVarInInitBlock.kt") - public void testSharedVarInInitBlock() { - runTest("native/native.tests/testData/codegen/initializers/sharedVarInInitBlock.kt"); - } - - @Test - @TestMetadata("static_arrays.kt") - public void testStatic_arrays() { - runTest("native/native.tests/testData/codegen/initializers/static_arrays.kt"); - } - @Test @TestMetadata("static_constantObjectInFinally.kt") public void testStatic_constantObjectInFinally() { @@ -2964,12 +1070,6 @@ public class NativeCodegenLocalTestGenerated extends AbstractNativeCodegenBoxTes runTest("native/native.tests/testData/codegen/initializers/static_kType.kt"); } - @Test - @TestMetadata("static_list.kt") - public void testStatic_list() { - runTest("native/native.tests/testData/codegen/initializers/static_list.kt"); - } - @Test @TestMetadata("static_permanent.kt") public void testStatic_permanent() { @@ -2982,30 +1082,6 @@ public class NativeCodegenLocalTestGenerated extends AbstractNativeCodegenBoxTes runTest("native/native.tests/testData/codegen/initializers/static_reifiedKType.kt"); } - @Test - @TestMetadata("static_smallIntIdentity.kt") - public void testStatic_smallIntIdentity() { - runTest("native/native.tests/testData/codegen/initializers/static_smallIntIdentity.kt"); - } - - @Test - @TestMetadata("static_varargChange.kt") - public void testStatic_varargChange() { - runTest("native/native.tests/testData/codegen/initializers/static_varargChange.kt"); - } - - @Test - @TestMetadata("throw1.kt") - public void testThrow1() { - runTest("native/native.tests/testData/codegen/initializers/throw1.kt"); - } - - @Test - @TestMetadata("throw2.kt") - public void testThrow2() { - runTest("native/native.tests/testData/codegen/initializers/throw2.kt"); - } - @Test @TestMetadata("when1.kt") public void testWhen1() { @@ -3046,36 +1122,12 @@ public class NativeCodegenLocalTestGenerated extends AbstractNativeCodegenBoxTes KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/native.tests/testData/codegen/initializers/files"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); } - @Test - @TestMetadata("globalInitedAfterAccessingFile.kt") - public void testGlobalInitedAfterAccessingFile() { - runTest("native/native.tests/testData/codegen/initializers/files/globalInitedAfterAccessingFile.kt"); - } - @Test @TestMetadata("globalInitedBeforeThreadLocal.kt") public void testGlobalInitedBeforeThreadLocal() { runTest("native/native.tests/testData/codegen/initializers/files/globalInitedBeforeThreadLocal.kt"); } - @Test - @TestMetadata("globalNotInitedAfterAccessingClassInternals.kt") - public void testGlobalNotInitedAfterAccessingClassInternals() { - runTest("native/native.tests/testData/codegen/initializers/files/globalNotInitedAfterAccessingClassInternals.kt"); - } - - @Test - @TestMetadata("simple.kt") - public void testSimple() { - runTest("native/native.tests/testData/codegen/initializers/files/simple.kt"); - } - - @Test - @TestMetadata("simpleMultiModule.kt") - public void testSimpleMultiModule() { - runTest("native/native.tests/testData/codegen/initializers/files/simpleMultiModule.kt"); - } - @Test @TestMetadata("workers1.kt") public void testWorkers1() { @@ -3170,311 +1222,11 @@ public class NativeCodegenLocalTestGenerated extends AbstractNativeCodegenBoxTes KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/native.tests/testData/codegen/inline"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); } - @Test - @TestMetadata("changingCapturedLocal.kt") - public void testChangingCapturedLocal() { - runTest("native/native.tests/testData/codegen/inline/changingCapturedLocal.kt"); - } - - @Test - @TestMetadata("classDeclarationInsideInline.kt") - public void testClassDeclarationInsideInline() { - runTest("native/native.tests/testData/codegen/inline/classDeclarationInsideInline.kt"); - } - - @Test - @TestMetadata("coercionToUnit.kt") - public void testCoercionToUnit() { - runTest("native/native.tests/testData/codegen/inline/coercionToUnit.kt"); - } - - @Test - @TestMetadata("correctOrderFunctionReference.kt") - public void testCorrectOrderFunctionReference() { - runTest("native/native.tests/testData/codegen/inline/correctOrderFunctionReference.kt"); - } - - @Test - @TestMetadata("defaultArgs.kt") - public void testDefaultArgs() { - runTest("native/native.tests/testData/codegen/inline/defaultArgs.kt"); - } - - @Test - @TestMetadata("defaultArgsMultipleModules.kt") - public void testDefaultArgsMultipleModules() { - runTest("native/native.tests/testData/codegen/inline/defaultArgsMultipleModules.kt"); - } - - @Test - @TestMetadata("genericFunctionReference.kt") - public void testGenericFunctionReference() { - runTest("native/native.tests/testData/codegen/inline/genericFunctionReference.kt"); - } - - @Test - @TestMetadata("getClass.kt") - public void testGetClass() { - runTest("native/native.tests/testData/codegen/inline/getClass.kt"); - } - - @Test - @TestMetadata("inline0.kt") - public void testInline0() { - runTest("native/native.tests/testData/codegen/inline/inline0.kt"); - } - - @Test - @TestMetadata("inline1.kt") - public void testInline1() { - runTest("native/native.tests/testData/codegen/inline/inline1.kt"); - } - - @Test - @TestMetadata("inline10.kt") - public void testInline10() { - runTest("native/native.tests/testData/codegen/inline/inline10.kt"); - } - - @Test - @TestMetadata("inline11.kt") - public void testInline11() { - runTest("native/native.tests/testData/codegen/inline/inline11.kt"); - } - - @Test - @TestMetadata("inline12.kt") - public void testInline12() { - runTest("native/native.tests/testData/codegen/inline/inline12.kt"); - } - - @Test - @TestMetadata("inline13.kt") - public void testInline13() { - runTest("native/native.tests/testData/codegen/inline/inline13.kt"); - } - - @Test - @TestMetadata("inline14.kt") - public void testInline14() { - runTest("native/native.tests/testData/codegen/inline/inline14.kt"); - } - - @Test - @TestMetadata("inline15.kt") - public void testInline15() { - runTest("native/native.tests/testData/codegen/inline/inline15.kt"); - } - - @Test - @TestMetadata("inline16.kt") - public void testInline16() { - runTest("native/native.tests/testData/codegen/inline/inline16.kt"); - } - - @Test - @TestMetadata("inline17.kt") - public void testInline17() { - runTest("native/native.tests/testData/codegen/inline/inline17.kt"); - } - @Test @TestMetadata("inline18.kt") public void testInline18() { runTest("native/native.tests/testData/codegen/inline/inline18.kt"); } - - @Test - @TestMetadata("inline19.kt") - public void testInline19() { - runTest("native/native.tests/testData/codegen/inline/inline19.kt"); - } - - @Test - @TestMetadata("inline2.kt") - public void testInline2() { - runTest("native/native.tests/testData/codegen/inline/inline2.kt"); - } - - @Test - @TestMetadata("inline20.kt") - public void testInline20() { - runTest("native/native.tests/testData/codegen/inline/inline20.kt"); - } - - @Test - @TestMetadata("inline21.kt") - public void testInline21() { - runTest("native/native.tests/testData/codegen/inline/inline21.kt"); - } - - @Test - @TestMetadata("inline22.kt") - public void testInline22() { - runTest("native/native.tests/testData/codegen/inline/inline22.kt"); - } - - @Test - @TestMetadata("inline23.kt") - public void testInline23() { - runTest("native/native.tests/testData/codegen/inline/inline23.kt"); - } - - @Test - @TestMetadata("inline24.kt") - public void testInline24() { - runTest("native/native.tests/testData/codegen/inline/inline24.kt"); - } - - @Test - @TestMetadata("inline25.kt") - public void testInline25() { - runTest("native/native.tests/testData/codegen/inline/inline25.kt"); - } - - @Test - @TestMetadata("inline26.kt") - public void testInline26() { - runTest("native/native.tests/testData/codegen/inline/inline26.kt"); - } - - @Test - @TestMetadata("inline3.kt") - public void testInline3() { - runTest("native/native.tests/testData/codegen/inline/inline3.kt"); - } - - @Test - @TestMetadata("inline4.kt") - public void testInline4() { - runTest("native/native.tests/testData/codegen/inline/inline4.kt"); - } - - @Test - @TestMetadata("inline5.kt") - public void testInline5() { - runTest("native/native.tests/testData/codegen/inline/inline5.kt"); - } - - @Test - @TestMetadata("inline6.kt") - public void testInline6() { - runTest("native/native.tests/testData/codegen/inline/inline6.kt"); - } - - @Test - @TestMetadata("inline7.kt") - public void testInline7() { - runTest("native/native.tests/testData/codegen/inline/inline7.kt"); - } - - @Test - @TestMetadata("inline8.kt") - public void testInline8() { - runTest("native/native.tests/testData/codegen/inline/inline8.kt"); - } - - @Test - @TestMetadata("inline9.kt") - public void testInline9() { - runTest("native/native.tests/testData/codegen/inline/inline9.kt"); - } - - @Test - @TestMetadata("inlineCtor.kt") - public void testInlineCtor() { - runTest("native/native.tests/testData/codegen/inline/inlineCtor.kt"); - } - - @Test - @TestMetadata("innerInlineFunCapturesOuter.kt") - public void testInnerInlineFunCapturesOuter() { - runTest("native/native.tests/testData/codegen/inline/innerInlineFunCapturesOuter.kt"); - } - - @Test - @TestMetadata("lambdaAsAny.kt") - public void testLambdaAsAny() { - runTest("native/native.tests/testData/codegen/inline/lambdaAsAny.kt"); - } - - @Test - @TestMetadata("lambdaInDefaultValue.kt") - public void testLambdaInDefaultValue() { - runTest("native/native.tests/testData/codegen/inline/lambdaInDefaultValue.kt"); - } - - @Test - @TestMetadata("lateinitProperty.kt") - public void testLateinitProperty() { - runTest("native/native.tests/testData/codegen/inline/lateinitProperty.kt"); - } - - @Test - @TestMetadata("localFunctionInInitializerBlock.kt") - public void testLocalFunctionInInitializerBlock() { - runTest("native/native.tests/testData/codegen/inline/localFunctionInInitializerBlock.kt"); - } - - @Test - @TestMetadata("localObjectReturnedFromWhen.kt") - public void testLocalObjectReturnedFromWhen() { - runTest("native/native.tests/testData/codegen/inline/localObjectReturnedFromWhen.kt"); - } - - @Test - @TestMetadata("propertyAccessorInline.kt") - public void testPropertyAccessorInline() { - runTest("native/native.tests/testData/codegen/inline/propertyAccessorInline.kt"); - } - - @Test - @TestMetadata("redundantCoercionsCleaner.kt") - public void testRedundantCoercionsCleaner() { - runTest("native/native.tests/testData/codegen/inline/redundantCoercionsCleaner.kt"); - } - - @Test - @TestMetadata("redundantCoercionsCleanerKT48876.kt") - public void testRedundantCoercionsCleanerKT48876() { - runTest("native/native.tests/testData/codegen/inline/redundantCoercionsCleanerKT48876.kt"); - } - - @Test - @TestMetadata("redundantCoercionsCleanerKT49356.kt") - public void testRedundantCoercionsCleanerKT49356() { - runTest("native/native.tests/testData/codegen/inline/redundantCoercionsCleanerKT49356.kt"); - } - - @Test - @TestMetadata("returnLocalClassFromBlock.kt") - public void testReturnLocalClassFromBlock() { - runTest("native/native.tests/testData/codegen/inline/returnLocalClassFromBlock.kt"); - } - - @Test - @TestMetadata("sharedVar.kt") - public void testSharedVar() { - runTest("native/native.tests/testData/codegen/inline/sharedVar.kt"); - } - - @Test - @TestMetadata("statementAsLastExprInBlock.kt") - public void testStatementAsLastExprInBlock() { - runTest("native/native.tests/testData/codegen/inline/statementAsLastExprInBlock.kt"); - } - - @Test - @TestMetadata("twiceInlinedObject.kt") - public void testTwiceInlinedObject() { - runTest("native/native.tests/testData/codegen/inline/twiceInlinedObject.kt"); - } - - @Test - @TestMetadata("typeSubstitutionInFakeOverride.kt") - public void testTypeSubstitutionInFakeOverride() { - runTest("native/native.tests/testData/codegen/inline/typeSubstitutionInFakeOverride.kt"); - } } @Nested @@ -3487,36 +1239,12 @@ public class NativeCodegenLocalTestGenerated extends AbstractNativeCodegenBoxTes KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/native.tests/testData/codegen/inlineClass"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); } - @Test - @TestMetadata("customEquals.kt") - public void testCustomEquals() { - runTest("native/native.tests/testData/codegen/inlineClass/customEquals.kt"); - } - - @Test - @TestMetadata("defaultEquals.kt") - public void testDefaultEquals() { - runTest("native/native.tests/testData/codegen/inlineClass/defaultEquals.kt"); - } - @Test @TestMetadata("inlineClass0.kt") public void testInlineClass0() { runTest("native/native.tests/testData/codegen/inlineClass/inlineClass0.kt"); } - @Test - @TestMetadata("nestedInlineClasses.kt") - public void testNestedInlineClasses() { - runTest("native/native.tests/testData/codegen/inlineClass/nestedInlineClasses.kt"); - } - - @Test - @TestMetadata("secondaryConstructorWithGenerics.kt") - public void testSecondaryConstructorWithGenerics() { - runTest("native/native.tests/testData/codegen/inlineClass/secondaryConstructorWithGenerics.kt"); - } - @Test @TestMetadata("valueClass0.kt") public void testValueClass0() { @@ -3524,89 +1252,6 @@ public class NativeCodegenLocalTestGenerated extends AbstractNativeCodegenBoxTes } } - @Nested - @TestMetadata("native/native.tests/testData/codegen/innerClass") - @TestDataPath("$PROJECT_ROOT") - @UseExtTestCaseGroupProvider() - public class InnerClass { - @Test - public void testAllFilesPresentInInnerClass() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/native.tests/testData/codegen/innerClass"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); - } - - @Test - @TestMetadata("doubleInner.kt") - public void testDoubleInner() { - runTest("native/native.tests/testData/codegen/innerClass/doubleInner.kt"); - } - - @Test - @TestMetadata("generic.kt") - public void testGeneric() { - runTest("native/native.tests/testData/codegen/innerClass/generic.kt"); - } - - @Test - @TestMetadata("getOuterVal.kt") - public void testGetOuterVal() { - runTest("native/native.tests/testData/codegen/innerClass/getOuterVal.kt"); - } - - @Test - @TestMetadata("inheritanceMultipleModules1.kt") - public void testInheritanceMultipleModules1() { - runTest("native/native.tests/testData/codegen/innerClass/inheritanceMultipleModules1.kt"); - } - - @Test - @TestMetadata("inheritanceMultipleModules2.kt") - public void testInheritanceMultipleModules2() { - runTest("native/native.tests/testData/codegen/innerClass/inheritanceMultipleModules2.kt"); - } - - @Test - @TestMetadata("inheritanceMultipleModules3.kt") - public void testInheritanceMultipleModules3() { - runTest("native/native.tests/testData/codegen/innerClass/inheritanceMultipleModules3.kt"); - } - - @Test - @TestMetadata("multipleModules.kt") - public void testMultipleModules() { - runTest("native/native.tests/testData/codegen/innerClass/multipleModules.kt"); - } - - @Test - @TestMetadata("noPrimaryConstructor.kt") - public void testNoPrimaryConstructor() { - runTest("native/native.tests/testData/codegen/innerClass/noPrimaryConstructor.kt"); - } - - @Test - @TestMetadata("qualifiedThis.kt") - public void testQualifiedThis() { - runTest("native/native.tests/testData/codegen/innerClass/qualifiedThis.kt"); - } - - @Test - @TestMetadata("secondaryConstructor.kt") - public void testSecondaryConstructor() { - runTest("native/native.tests/testData/codegen/innerClass/secondaryConstructor.kt"); - } - - @Test - @TestMetadata("simple.kt") - public void testSimple() { - runTest("native/native.tests/testData/codegen/innerClass/simple.kt"); - } - - @Test - @TestMetadata("superOuter.kt") - public void testSuperOuter() { - runTest("native/native.tests/testData/codegen/innerClass/superOuter.kt"); - } - } - @Nested @TestMetadata("native/native.tests/testData/codegen/interfaceCallsNCasts") @TestDataPath("$PROJECT_ROOT") @@ -3617,35 +1262,11 @@ public class NativeCodegenLocalTestGenerated extends AbstractNativeCodegenBoxTes KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/native.tests/testData/codegen/interfaceCallsNCasts"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); } - @Test - @TestMetadata("conservativeItable.kt") - public void testConservativeItable() { - runTest("native/native.tests/testData/codegen/interfaceCallsNCasts/conservativeItable.kt"); - } - - @Test - @TestMetadata("diamond.kt") - public void testDiamond() { - runTest("native/native.tests/testData/codegen/interfaceCallsNCasts/diamond.kt"); - } - - @Test - @TestMetadata("finalMethod.kt") - public void testFinalMethod() { - runTest("native/native.tests/testData/codegen/interfaceCallsNCasts/finalMethod.kt"); - } - @Test @TestMetadata("functionNameClash.kt") public void testFunctionNameClash() { runTest("native/native.tests/testData/codegen/interfaceCallsNCasts/functionNameClash.kt"); } - - @Test - @TestMetadata("interface0.kt") - public void testInterface0() { - runTest("native/native.tests/testData/codegen/interfaceCallsNCasts/interface0.kt"); - } } @Nested @@ -3728,23 +1349,11 @@ public class NativeCodegenLocalTestGenerated extends AbstractNativeCodegenBoxTes runTest("native/native.tests/testData/codegen/kclass/anonymousObjectInInlineFunctionWithCache.kt"); } - @Test - @TestMetadata("kClassEnumArgument.kt") - public void testKClassEnumArgument() { - runTest("native/native.tests/testData/codegen/kclass/kClassEnumArgument.kt"); - } - @Test @TestMetadata("kclass0.kt") public void testKclass0() { runTest("native/native.tests/testData/codegen/kclass/kclass0.kt"); } - - @Test - @TestMetadata("kclass1.kt") - public void testKclass1() { - runTest("native/native.tests/testData/codegen/kclass/kclass1.kt"); - } } @Nested @@ -3762,232 +1371,6 @@ public class NativeCodegenLocalTestGenerated extends AbstractNativeCodegenBoxTes public void testKtype1_anonymousObject() { runTest("native/native.tests/testData/codegen/ktype/ktype1_anonymousObject.kt"); } - - @Test - @TestMetadata("ktype1_basics1.kt") - public void testKtype1_basics1() { - runTest("native/native.tests/testData/codegen/ktype/ktype1_basics1.kt"); - } - - @Test - @TestMetadata("ktype1_inner.kt") - public void testKtype1_inner() { - runTest("native/native.tests/testData/codegen/ktype/ktype1_inner.kt"); - } - - @Test - @TestMetadata("nonReified_class.kt") - public void testNonReified_class() { - runTest("native/native.tests/testData/codegen/ktype/nonReified_class.kt"); - } - - @Test - @TestMetadata("nonReified_equality.kt") - public void testNonReified_equality() { - runTest("native/native.tests/testData/codegen/ktype/nonReified_equality.kt"); - } - - @Test - @TestMetadata("nonReified_fun.kt") - public void testNonReified_fun() { - runTest("native/native.tests/testData/codegen/ktype/nonReified_fun.kt"); - } - - @Test - @TestMetadata("nonReified_recursionInReified.kt") - public void testNonReified_recursionInReified() { - runTest("native/native.tests/testData/codegen/ktype/nonReified_recursionInReified.kt"); - } - - @Test - @TestMetadata("nonReified_reifiedUpperBound.kt") - public void testNonReified_reifiedUpperBound() { - runTest("native/native.tests/testData/codegen/ktype/nonReified_reifiedUpperBound.kt"); - } - } - - @Nested - @TestMetadata("native/native.tests/testData/codegen/lambda") - @TestDataPath("$PROJECT_ROOT") - @UseExtTestCaseGroupProvider() - public class Lambda { - @Test - public void testAllFilesPresentInLambda() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/native.tests/testData/codegen/lambda"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); - } - - @Test - @TestMetadata("lambda1.kt") - public void testLambda1() { - runTest("native/native.tests/testData/codegen/lambda/lambda1.kt"); - } - - @Test - @TestMetadata("lambda10.kt") - public void testLambda10() { - runTest("native/native.tests/testData/codegen/lambda/lambda10.kt"); - } - - @Test - @TestMetadata("lambda11.kt") - public void testLambda11() { - runTest("native/native.tests/testData/codegen/lambda/lambda11.kt"); - } - - @Test - @TestMetadata("lambda12.kt") - public void testLambda12() { - runTest("native/native.tests/testData/codegen/lambda/lambda12.kt"); - } - - @Test - @TestMetadata("lambda13.kt") - public void testLambda13() { - runTest("native/native.tests/testData/codegen/lambda/lambda13.kt"); - } - - @Test - @TestMetadata("lambda14.kt") - public void testLambda14() { - runTest("native/native.tests/testData/codegen/lambda/lambda14.kt"); - } - - @Test - @TestMetadata("lambda2.kt") - public void testLambda2() { - runTest("native/native.tests/testData/codegen/lambda/lambda2.kt"); - } - - @Test - @TestMetadata("lambda3.kt") - public void testLambda3() { - runTest("native/native.tests/testData/codegen/lambda/lambda3.kt"); - } - - @Test - @TestMetadata("lambda4.kt") - public void testLambda4() { - runTest("native/native.tests/testData/codegen/lambda/lambda4.kt"); - } - - @Test - @TestMetadata("lambda5.kt") - public void testLambda5() { - runTest("native/native.tests/testData/codegen/lambda/lambda5.kt"); - } - - @Test - @TestMetadata("lambda6.kt") - public void testLambda6() { - runTest("native/native.tests/testData/codegen/lambda/lambda6.kt"); - } - - @Test - @TestMetadata("lambda7.kt") - public void testLambda7() { - runTest("native/native.tests/testData/codegen/lambda/lambda7.kt"); - } - - @Test - @TestMetadata("lambda8.kt") - public void testLambda8() { - runTest("native/native.tests/testData/codegen/lambda/lambda8.kt"); - } - - @Test - @TestMetadata("lambda9.kt") - public void testLambda9() { - runTest("native/native.tests/testData/codegen/lambda/lambda9.kt"); - } - - @Test - @TestMetadata("lambda_kt49360_trivial.kt") - public void testLambda_kt49360_trivial() { - runTest("native/native.tests/testData/codegen/lambda/lambda_kt49360_trivial.kt"); - } - - @Test - @TestMetadata("lambda_kt49360_withFlow.kt") - public void testLambda_kt49360_withFlow() { - runTest("native/native.tests/testData/codegen/lambda/lambda_kt49360_withFlow.kt"); - } - - @Test - @TestMetadata("lambda_kt49360_wrapBlock.kt") - public void testLambda_kt49360_wrapBlock() { - runTest("native/native.tests/testData/codegen/lambda/lambda_kt49360_wrapBlock.kt"); - } - } - - @Nested - @TestMetadata("native/native.tests/testData/codegen/lateinit") - @TestDataPath("$PROJECT_ROOT") - @UseExtTestCaseGroupProvider() - public class Lateinit { - @Test - public void testAllFilesPresentInLateinit() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/native.tests/testData/codegen/lateinit"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); - } - - @Test - @TestMetadata("globalIsInitialized.kt") - public void testGlobalIsInitialized() { - runTest("native/native.tests/testData/codegen/lateinit/globalIsInitialized.kt"); - } - - @Test - @TestMetadata("inBaseClass.kt") - public void testInBaseClass() { - runTest("native/native.tests/testData/codegen/lateinit/inBaseClass.kt"); - } - - @Test - @TestMetadata("initialized.kt") - public void testInitialized() { - runTest("native/native.tests/testData/codegen/lateinit/initialized.kt"); - } - - @Test - @TestMetadata("innerIsInitialized.kt") - public void testInnerIsInitialized() { - runTest("native/native.tests/testData/codegen/lateinit/innerIsInitialized.kt"); - } - - @Test - @TestMetadata("isInitialized.kt") - public void testIsInitialized() { - runTest("native/native.tests/testData/codegen/lateinit/isInitialized.kt"); - } - - @Test - @TestMetadata("localCapturedInitialized.kt") - public void testLocalCapturedInitialized() { - runTest("native/native.tests/testData/codegen/lateinit/localCapturedInitialized.kt"); - } - - @Test - @TestMetadata("localCapturedNotInitialized.kt") - public void testLocalCapturedNotInitialized() { - runTest("native/native.tests/testData/codegen/lateinit/localCapturedNotInitialized.kt"); - } - - @Test - @TestMetadata("localInitialized.kt") - public void testLocalInitialized() { - runTest("native/native.tests/testData/codegen/lateinit/localInitialized.kt"); - } - - @Test - @TestMetadata("localNotInitialized.kt") - public void testLocalNotInitialized() { - runTest("native/native.tests/testData/codegen/lateinit/localNotInitialized.kt"); - } - - @Test - @TestMetadata("notInitialized.kt") - public void testNotInitialized() { - runTest("native/native.tests/testData/codegen/lateinit/notInitialized.kt"); - } } @Nested @@ -4047,18 +1430,6 @@ public class NativeCodegenLocalTestGenerated extends AbstractNativeCodegenBoxTes KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/native.tests/testData/codegen/literals"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); } - @Test - @TestMetadata("listof1.kt") - public void testListof1() { - runTest("native/native.tests/testData/codegen/literals/listof1.kt"); - } - - @Test - @TestMetadata("strdedup1.kt") - public void testStrdedup1() { - runTest("native/native.tests/testData/codegen/literals/strdedup1.kt"); - } - @Test @TestMetadata("strdedup2.kt") public void testStrdedup2() { @@ -4066,111 +1437,6 @@ public class NativeCodegenLocalTestGenerated extends AbstractNativeCodegenBoxTes } } - @Nested - @TestMetadata("native/native.tests/testData/codegen/localClass") - @TestDataPath("$PROJECT_ROOT") - @UseExtTestCaseGroupProvider() - public class LocalClass { - @Test - public void testAllFilesPresentInLocalClass() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/native.tests/testData/codegen/localClass"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); - } - - @Test - @TestMetadata("innerTakesCapturedFromOuter.kt") - public void testInnerTakesCapturedFromOuter() { - runTest("native/native.tests/testData/codegen/localClass/innerTakesCapturedFromOuter.kt"); - } - - @Test - @TestMetadata("innerWithCapture.kt") - public void testInnerWithCapture() { - runTest("native/native.tests/testData/codegen/localClass/innerWithCapture.kt"); - } - - @Test - @TestMetadata("localFunctionCallFromLocalClass.kt") - public void testLocalFunctionCallFromLocalClass() { - runTest("native/native.tests/testData/codegen/localClass/localFunctionCallFromLocalClass.kt"); - } - - @Test - @TestMetadata("localFunctionInLocalClass.kt") - public void testLocalFunctionInLocalClass() { - runTest("native/native.tests/testData/codegen/localClass/localFunctionInLocalClass.kt"); - } - - @Test - @TestMetadata("localHierarchy.kt") - public void testLocalHierarchy() { - runTest("native/native.tests/testData/codegen/localClass/localHierarchy.kt"); - } - - @Test - @TestMetadata("noPrimaryConstructor.kt") - public void testNoPrimaryConstructor() { - runTest("native/native.tests/testData/codegen/localClass/noPrimaryConstructor.kt"); - } - - @Test - @TestMetadata("objectExpressionInInitializer.kt") - public void testObjectExpressionInInitializer() { - runTest("native/native.tests/testData/codegen/localClass/objectExpressionInInitializer.kt"); - } - - @Test - @TestMetadata("objectExpressionInProperty.kt") - public void testObjectExpressionInProperty() { - runTest("native/native.tests/testData/codegen/localClass/objectExpressionInProperty.kt"); - } - - @Test - @TestMetadata("tryCatch.kt") - public void testTryCatch() { - runTest("native/native.tests/testData/codegen/localClass/tryCatch.kt"); - } - - @Test - @TestMetadata("virtualCallFromConstructor.kt") - public void testVirtualCallFromConstructor() { - runTest("native/native.tests/testData/codegen/localClass/virtualCallFromConstructor.kt"); - } - } - - @Nested - @TestMetadata("native/native.tests/testData/codegen/localEscapeAnalysis") - @TestDataPath("$PROJECT_ROOT") - @UseExtTestCaseGroupProvider() - public class LocalEscapeAnalysis { - @Test - public void testAllFilesPresentInLocalEscapeAnalysis() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/native.tests/testData/codegen/localEscapeAnalysis"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); - } - - @Test - @TestMetadata("arraysFieldWrite.kt") - public void testArraysFieldWrite() { - runTest("native/native.tests/testData/codegen/localEscapeAnalysis/arraysFieldWrite.kt"); - } - } - - @Nested - @TestMetadata("native/native.tests/testData/codegen/lower") - @TestDataPath("$PROJECT_ROOT") - @UseExtTestCaseGroupProvider() - public class Lower { - @Test - public void testAllFilesPresentInLower() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/native.tests/testData/codegen/lower"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); - } - - @Test - @TestMetadata("localDelegatedProperty.kt") - public void testLocalDelegatedProperty() { - runTest("native/native.tests/testData/codegen/lower/localDelegatedProperty.kt"); - } - } - @Nested @TestMetadata("native/native.tests/testData/codegen/mangling") @TestDataPath("$PROJECT_ROOT") @@ -4187,12 +1453,6 @@ public class NativeCodegenLocalTestGenerated extends AbstractNativeCodegenBoxTes runTest("native/native.tests/testData/codegen/mangling/direct.kt"); } - @Test - @TestMetadata("multipleConstructors.kt") - public void testMultipleConstructors() { - runTest("native/native.tests/testData/codegen/mangling/multipleConstructors.kt"); - } - @Test @TestMetadata("param.kt") public void testParam() { @@ -4210,65 +1470,11 @@ public class NativeCodegenLocalTestGenerated extends AbstractNativeCodegenBoxTes KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/native.tests/testData/codegen/object"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); } - @Test - @TestMetadata("constructor0.kt") - public void testConstructor0() { - runTest("native/native.tests/testData/codegen/object/constructor0.kt"); - } - - @Test - @TestMetadata("fields.kt") - public void testFields() { - runTest("native/native.tests/testData/codegen/object/fields.kt"); - } - - @Test - @TestMetadata("fields1.kt") - public void testFields1() { - runTest("native/native.tests/testData/codegen/object/fields1.kt"); - } - - @Test - @TestMetadata("fields2.kt") - public void testFields2() { - runTest("native/native.tests/testData/codegen/object/fields2.kt"); - } - @Test @TestMetadata("fields2_2.kt") public void testFields2_2() { runTest("native/native.tests/testData/codegen/object/fields2_2.kt"); } - - @Test - @TestMetadata("globalInitializer.kt") - public void testGlobalInitializer() { - runTest("native/native.tests/testData/codegen/object/globalInitializer.kt"); - } - - @Test - @TestMetadata("init0.kt") - public void testInit0() { - runTest("native/native.tests/testData/codegen/object/init0.kt"); - } - - @Test - @TestMetadata("initialization.kt") - public void testInitialization() { - runTest("native/native.tests/testData/codegen/object/initialization.kt"); - } - - @Test - @TestMetadata("initialization1.kt") - public void testInitialization1() { - runTest("native/native.tests/testData/codegen/object/initialization1.kt"); - } - - @Test - @TestMetadata("method_call.kt") - public void testMethod_call() { - runTest("native/native.tests/testData/codegen/object/method_call.kt"); - } } @Nested @@ -4318,94 +1524,6 @@ public class NativeCodegenLocalTestGenerated extends AbstractNativeCodegenBoxTes } } - @Nested - @TestMetadata("native/native.tests/testData/codegen/objectExpression") - @TestDataPath("$PROJECT_ROOT") - @UseExtTestCaseGroupProvider() - public class ObjectExpression { - @Test - public void testAllFilesPresentInObjectExpression() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/native.tests/testData/codegen/objectExpression"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); - } - - @Test - @TestMetadata("expr1.kt") - public void testExpr1() { - runTest("native/native.tests/testData/codegen/objectExpression/expr1.kt"); - } - - @Test - @TestMetadata("expr2.kt") - public void testExpr2() { - runTest("native/native.tests/testData/codegen/objectExpression/expr2.kt"); - } - - @Test - @TestMetadata("expr3.kt") - public void testExpr3() { - runTest("native/native.tests/testData/codegen/objectExpression/expr3.kt"); - } - } - - @Nested - @TestMetadata("native/native.tests/testData/codegen/propertyCallableReference") - @TestDataPath("$PROJECT_ROOT") - @UseExtTestCaseGroupProvider() - public class PropertyCallableReference { - @Test - public void testAllFilesPresentInPropertyCallableReference() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/native.tests/testData/codegen/propertyCallableReference"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); - } - - @Test - @TestMetadata("dynamicReceiver.kt") - public void testDynamicReceiver() { - runTest("native/native.tests/testData/codegen/propertyCallableReference/dynamicReceiver.kt"); - } - - @Test - @TestMetadata("multipleModules.kt") - public void testMultipleModules() { - runTest("native/native.tests/testData/codegen/propertyCallableReference/multipleModules.kt"); - } - - @Test - @TestMetadata("valClass.kt") - public void testValClass() { - runTest("native/native.tests/testData/codegen/propertyCallableReference/valClass.kt"); - } - - @Test - @TestMetadata("valExtension.kt") - public void testValExtension() { - runTest("native/native.tests/testData/codegen/propertyCallableReference/valExtension.kt"); - } - - @Test - @TestMetadata("valModule.kt") - public void testValModule() { - runTest("native/native.tests/testData/codegen/propertyCallableReference/valModule.kt"); - } - - @Test - @TestMetadata("varClass.kt") - public void testVarClass() { - runTest("native/native.tests/testData/codegen/propertyCallableReference/varClass.kt"); - } - - @Test - @TestMetadata("varExtension.kt") - public void testVarExtension() { - runTest("native/native.tests/testData/codegen/propertyCallableReference/varExtension.kt"); - } - - @Test - @TestMetadata("varModule.kt") - public void testVarModule() { - runTest("native/native.tests/testData/codegen/propertyCallableReference/varModule.kt"); - } - } - @Nested @TestMetadata("native/native.tests/testData/codegen/reflection") @TestDataPath("$PROJECT_ROOT") @@ -4470,213 +1588,6 @@ public class NativeCodegenLocalTestGenerated extends AbstractNativeCodegenBoxTes } } - @Nested - @TestMetadata("native/native.tests/testData/codegen/serialization") - @TestDataPath("$PROJECT_ROOT") - @UseExtTestCaseGroupProvider() - public class Serialization { - @Test - public void testAllFilesPresentInSerialization() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/native.tests/testData/codegen/serialization"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); - } - - @Test - @TestMetadata("deserializedMembers.kt") - public void testDeserializedMembers() { - runTest("native/native.tests/testData/codegen/serialization/deserializedMembers.kt"); - } - - @Test - @TestMetadata("serializedCatch.kt") - public void testSerializedCatch() { - runTest("native/native.tests/testData/codegen/serialization/serializedCatch.kt"); - } - - @Test - @TestMetadata("serializedCharConstant.kt") - public void testSerializedCharConstant() { - runTest("native/native.tests/testData/codegen/serialization/serializedCharConstant.kt"); - } - - @Test - @TestMetadata("serializedDefaultArgs.kt") - public void testSerializedDefaultArgs() { - runTest("native/native.tests/testData/codegen/serialization/serializedDefaultArgs.kt"); - } - - @Test - @TestMetadata("serializedDoWhile.kt") - public void testSerializedDoWhile() { - runTest("native/native.tests/testData/codegen/serialization/serializedDoWhile.kt"); - } - - @Test - @TestMetadata("serializedEnumOrdinal.kt") - public void testSerializedEnumOrdinal() { - runTest("native/native.tests/testData/codegen/serialization/serializedEnumOrdinal.kt"); - } - - @Test - @TestMetadata("serializedVararg.kt") - public void testSerializedVararg() { - runTest("native/native.tests/testData/codegen/serialization/serializedVararg.kt"); - } - } - - @Nested - @TestMetadata("native/native.tests/testData/codegen/stringTrim") - @TestDataPath("$PROJECT_ROOT") - @UseExtTestCaseGroupProvider() - public class StringTrim { - @Test - public void testAllFilesPresentInStringTrim() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/native.tests/testData/codegen/stringTrim"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); - } - - @Test - @TestMetadata("stringTrim.kt") - public void testStringTrim() { - runTest("native/native.tests/testData/codegen/stringTrim/stringTrim.kt"); - } - } - - @Nested - @TestMetadata("native/native.tests/testData/codegen/try") - @TestDataPath("$PROJECT_ROOT") - @UseExtTestCaseGroupProvider() - public class Try { - @Test - public void testAllFilesPresentInTry() { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/native.tests/testData/codegen/try"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); - } - - @Test - @TestMetadata("catch3.kt") - public void testCatch3() { - runTest("native/native.tests/testData/codegen/try/catch3.kt"); - } - - @Test - @TestMetadata("catch4.kt") - public void testCatch4() { - runTest("native/native.tests/testData/codegen/try/catch4.kt"); - } - - @Test - @TestMetadata("catch5.kt") - public void testCatch5() { - runTest("native/native.tests/testData/codegen/try/catch5.kt"); - } - - @Test - @TestMetadata("catch6.kt") - public void testCatch6() { - runTest("native/native.tests/testData/codegen/try/catch6.kt"); - } - - @Test - @TestMetadata("catch8.kt") - public void testCatch8() { - runTest("native/native.tests/testData/codegen/try/catch8.kt"); - } - - @Test - @TestMetadata("finally1.kt") - public void testFinally1() { - runTest("native/native.tests/testData/codegen/try/finally1.kt"); - } - - @Test - @TestMetadata("finally10.kt") - public void testFinally10() { - runTest("native/native.tests/testData/codegen/try/finally10.kt"); - } - - @Test - @TestMetadata("finally11.kt") - public void testFinally11() { - runTest("native/native.tests/testData/codegen/try/finally11.kt"); - } - - @Test - @TestMetadata("finally2.kt") - public void testFinally2() { - runTest("native/native.tests/testData/codegen/try/finally2.kt"); - } - - @Test - @TestMetadata("finally3.kt") - public void testFinally3() { - runTest("native/native.tests/testData/codegen/try/finally3.kt"); - } - - @Test - @TestMetadata("finally4.kt") - public void testFinally4() { - runTest("native/native.tests/testData/codegen/try/finally4.kt"); - } - - @Test - @TestMetadata("finally5.kt") - public void testFinally5() { - runTest("native/native.tests/testData/codegen/try/finally5.kt"); - } - - @Test - @TestMetadata("finally6.kt") - public void testFinally6() { - runTest("native/native.tests/testData/codegen/try/finally6.kt"); - } - - @Test - @TestMetadata("finally7.kt") - public void testFinally7() { - runTest("native/native.tests/testData/codegen/try/finally7.kt"); - } - - @Test - @TestMetadata("finally8.kt") - public void testFinally8() { - runTest("native/native.tests/testData/codegen/try/finally8.kt"); - } - - @Test - @TestMetadata("finally9.kt") - public void testFinally9() { - runTest("native/native.tests/testData/codegen/try/finally9.kt"); - } - - @Test - @TestMetadata("returnsDifferentTypes.kt") - public void testReturnsDifferentTypes() { - runTest("native/native.tests/testData/codegen/try/returnsDifferentTypes.kt"); - } - - @Test - @TestMetadata("try1.kt") - public void testTry1() { - runTest("native/native.tests/testData/codegen/try/try1.kt"); - } - - @Test - @TestMetadata("try2.kt") - public void testTry2() { - runTest("native/native.tests/testData/codegen/try/try2.kt"); - } - - @Test - @TestMetadata("try3.kt") - public void testTry3() { - runTest("native/native.tests/testData/codegen/try/try3.kt"); - } - - @Test - @TestMetadata("try4.kt") - public void testTry4() { - runTest("native/native.tests/testData/codegen/try/try4.kt"); - } - } - @Nested @TestMetadata("native/native.tests/testData/codegen/vector") @TestDataPath("$PROJECT_ROOT") 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 9fc94dcb5ee..3086df491e9 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 @@ -41,6 +41,12 @@ public class FirWasmJsCodegenBoxTestGenerated extends AbstractFirWasmJsCodegenBo runTest("compiler/testData/codegen/box/annotations/annotationWithDefaultArgInDifferentModule.kt"); } + @Test + @TestMetadata("annotations0.kt") + public void testAnnotations0() { + runTest("compiler/testData/codegen/box/annotations/annotations0.kt"); + } + @Test @TestMetadata("genericAnnotations.kt") public void testGenericAnnotations() { @@ -318,6 +324,82 @@ public class FirWasmJsCodegenBoxTestGenerated extends AbstractFirWasmJsCodegenBo } } + @Nested + @TestMetadata("compiler/testData/codegen/box/arithmetic") + @TestDataPath("$PROJECT_ROOT") + public class Arithmetic { + @Test + public void testAllFilesPresentInArithmetic() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/arithmetic"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true); + } + + @Test + @TestMetadata("basic_charConversions.kt") + public void testBasic_charConversions() { + runTest("compiler/testData/codegen/box/arithmetic/basic_charConversions.kt"); + } + + @Test + @TestMetadata("basic_charCornerCases.kt") + public void testBasic_charCornerCases() { + runTest("compiler/testData/codegen/box/arithmetic/basic_charCornerCases.kt"); + } + + @Test + @TestMetadata("basic_compareIntToFloat.kt") + public void testBasic_compareIntToFloat() { + runTest("compiler/testData/codegen/box/arithmetic/basic_compareIntToFloat.kt"); + } + + @Test + @TestMetadata("basic_doubleBasic.kt") + public void testBasic_doubleBasic() { + runTest("compiler/testData/codegen/box/arithmetic/basic_doubleBasic.kt"); + } + + @Test + @TestMetadata("basic_integralToFloat.kt") + public void testBasic_integralToFloat() { + runTest("compiler/testData/codegen/box/arithmetic/basic_integralToFloat.kt"); + } + + @Test + @TestMetadata("basic_kt37412.kt") + public void testBasic_kt37412() { + runTest("compiler/testData/codegen/box/arithmetic/basic_kt37412.kt"); + } + + @Test + @TestMetadata("basic_selfComparison.kt") + public void testBasic_selfComparison() { + runTest("compiler/testData/codegen/box/arithmetic/basic_selfComparison.kt"); + } + + @Test + @TestMetadata("basic_shifts.kt") + public void testBasic_shifts() { + runTest("compiler/testData/codegen/box/arithmetic/basic_shifts.kt"); + } + + @Test + @TestMetadata("basic_uintTests.kt") + public void testBasic_uintTests() { + runTest("compiler/testData/codegen/box/arithmetic/basic_uintTests.kt"); + } + + @Test + @TestMetadata("division.kt") + public void testDivision() { + runTest("compiler/testData/codegen/box/arithmetic/division.kt"); + } + + @Test + @TestMetadata("github1856.kt") + public void testGithub1856() { + runTest("compiler/testData/codegen/box/arithmetic/github1856.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/arrays") @TestDataPath("$PROJECT_ROOT") @@ -972,6 +1054,302 @@ public class FirWasmJsCodegenBoxTestGenerated extends AbstractFirWasmJsCodegenBo } } + @Nested + @TestMetadata("compiler/testData/codegen/box/basics") + @TestDataPath("$PROJECT_ROOT") + public class Basics { + @Test + public void testAllFilesPresentInBasics() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/basics"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true); + } + + @Test + @TestMetadata("array_to_any.kt") + public void testArray_to_any() { + runTest("compiler/testData/codegen/box/basics/array_to_any.kt"); + } + + @Test + @TestMetadata("canonical_name.kt") + public void testCanonical_name() { + runTest("compiler/testData/codegen/box/basics/canonical_name.kt"); + } + + @Test + @TestMetadata("cast_null.kt") + public void testCast_null() { + runTest("compiler/testData/codegen/box/basics/cast_null.kt"); + } + + @Test + @TestMetadata("cast_simple.kt") + public void testCast_simple() { + runTest("compiler/testData/codegen/box/basics/cast_simple.kt"); + } + + @Test + @TestMetadata("check_type.kt") + public void testCheck_type() { + runTest("compiler/testData/codegen/box/basics/check_type.kt"); + } + + @Test + @TestMetadata("companion.kt") + public void testCompanion() { + runTest("compiler/testData/codegen/box/basics/companion.kt"); + } + + @Test + @TestMetadata("concatenation.kt") + public void testConcatenation() { + runTest("compiler/testData/codegen/box/basics/concatenation.kt"); + } + + @Test + @TestMetadata("const_infinity.kt") + public void testConst_infinity() { + runTest("compiler/testData/codegen/box/basics/const_infinity.kt"); + } + + @Test + @TestMetadata("expression_as_statement.kt") + public void testExpression_as_statement() { + runTest("compiler/testData/codegen/box/basics/expression_as_statement.kt"); + } + + @Test + @TestMetadata("k42000_1.kt") + public void testK42000_1() { + runTest("compiler/testData/codegen/box/basics/k42000_1.kt"); + } + + @Test + @TestMetadata("k42000_2.kt") + public void testK42000_2() { + runTest("compiler/testData/codegen/box/basics/k42000_2.kt"); + } + + @Test + @TestMetadata("local_variable.kt") + public void testLocal_variable() { + runTest("compiler/testData/codegen/box/basics/local_variable.kt"); + } + + @Test + @TestMetadata("null_check.kt") + public void testNull_check() { + runTest("compiler/testData/codegen/box/basics/null_check.kt"); + } + + @Test + @TestMetadata("safe_cast.kt") + public void testSafe_cast() { + runTest("compiler/testData/codegen/box/basics/safe_cast.kt"); + } + + @Test + @TestMetadata("spread_operator_0.kt") + public void testSpread_operator_0() { + runTest("compiler/testData/codegen/box/basics/spread_operator_0.kt"); + } + + @Test + @TestMetadata("statements0.kt") + public void testStatements0() { + runTest("compiler/testData/codegen/box/basics/statements0.kt"); + } + + @Test + @TestMetadata("superFunCall.kt") + public void testSuperFunCall() { + runTest("compiler/testData/codegen/box/basics/superFunCall.kt"); + } + + @Test + @TestMetadata("superGetterCall.kt") + public void testSuperGetterCall() { + runTest("compiler/testData/codegen/box/basics/superGetterCall.kt"); + } + + @Test + @TestMetadata("superSetterCall.kt") + public void testSuperSetterCall() { + runTest("compiler/testData/codegen/box/basics/superSetterCall.kt"); + } + + @Test + @TestMetadata("typealias1.kt") + public void testTypealias1() { + runTest("compiler/testData/codegen/box/basics/typealias1.kt"); + } + + @Test + @TestMetadata("unchecked_cast1.kt") + public void testUnchecked_cast1() { + runTest("compiler/testData/codegen/box/basics/unchecked_cast1.kt"); + } + + @Test + @TestMetadata("unchecked_cast2.kt") + public void testUnchecked_cast2() { + runTest("compiler/testData/codegen/box/basics/unchecked_cast2.kt"); + } + + @Test + @TestMetadata("unchecked_cast3.kt") + public void testUnchecked_cast3() { + runTest("compiler/testData/codegen/box/basics/unchecked_cast3.kt"); + } + + @Test + @TestMetadata("unchecked_cast4.kt") + public void testUnchecked_cast4() { + runTest("compiler/testData/codegen/box/basics/unchecked_cast4.kt"); + } + + @Test + @TestMetadata("unit1.kt") + public void testUnit1() { + runTest("compiler/testData/codegen/box/basics/unit1.kt"); + } + + @Test + @TestMetadata("unit2.kt") + public void testUnit2() { + runTest("compiler/testData/codegen/box/basics/unit2.kt"); + } + + @Test + @TestMetadata("unit3.kt") + public void testUnit3() { + runTest("compiler/testData/codegen/box/basics/unit3.kt"); + } + + @Test + @TestMetadata("unit4.kt") + public void testUnit4() { + runTest("compiler/testData/codegen/box/basics/unit4.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/bce") + @TestDataPath("$PROJECT_ROOT") + public class Bce { + @Test + public void testAllFilesPresentInBce() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/bce"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true); + } + + @Test + @TestMetadata("bceCases.kt") + public void testBceCases() { + runTest("compiler/testData/codegen/box/bce/bceCases.kt"); + } + + @Test + @TestMetadata("customGetter.kt") + public void testCustomGetter() { + runTest("compiler/testData/codegen/box/bce/customGetter.kt"); + } + + @Test + @TestMetadata("delegatedProperty.kt") + public void testDelegatedProperty() { + runTest("compiler/testData/codegen/box/bce/delegatedProperty.kt"); + } + + @Test + @TestMetadata("differentArrays.kt") + public void testDifferentArrays() { + runTest("compiler/testData/codegen/box/bce/differentArrays.kt"); + } + + @Test + @TestMetadata("differentObjects.kt") + public void testDifferentObjects() { + runTest("compiler/testData/codegen/box/bce/differentObjects.kt"); + } + + @Test + @TestMetadata("forDownToSize.kt") + public void testForDownToSize() { + runTest("compiler/testData/codegen/box/bce/forDownToSize.kt"); + } + + @Test + @TestMetadata("forDownToWithStep.kt") + public void testForDownToWithStep() { + runTest("compiler/testData/codegen/box/bce/forDownToWithStep.kt"); + } + + @Test + @TestMetadata("forEachIndexedTest.kt") + public void testForEachIndexedTest() { + runTest("compiler/testData/codegen/box/bce/forEachIndexedTest.kt"); + } + + @Test + @TestMetadata("forEachIndicies.kt") + public void testForEachIndicies() { + runTest("compiler/testData/codegen/box/bce/forEachIndicies.kt"); + } + + @Test + @TestMetadata("forIndiciesWithStep.kt") + public void testForIndiciesWithStep() { + runTest("compiler/testData/codegen/box/bce/forIndiciesWithStep.kt"); + } + + @Test + @TestMetadata("forRangeToSize.kt") + public void testForRangeToSize() { + runTest("compiler/testData/codegen/box/bce/forRangeToSize.kt"); + } + + @Test + @TestMetadata("forRangeToWithStep.kt") + public void testForRangeToWithStep() { + runTest("compiler/testData/codegen/box/bce/forRangeToWithStep.kt"); + } + + @Test + @TestMetadata("forReversed.kt") + public void testForReversed() { + runTest("compiler/testData/codegen/box/bce/forReversed.kt"); + } + + @Test + @TestMetadata("forUntilSize.kt") + public void testForUntilSize() { + runTest("compiler/testData/codegen/box/bce/forUntilSize.kt"); + } + + @Test + @TestMetadata("forUntilWithStep.kt") + public void testForUntilWithStep() { + runTest("compiler/testData/codegen/box/bce/forUntilWithStep.kt"); + } + + @Test + @TestMetadata("forWithIndex.kt") + public void testForWithIndex() { + runTest("compiler/testData/codegen/box/bce/forWithIndex.kt"); + } + + @Test + @TestMetadata("inheritance.kt") + public void testInheritance() { + runTest("compiler/testData/codegen/box/bce/inheritance.kt"); + } + + @Test + @TestMetadata("withGetter.kt") + public void testWithGetter() { + runTest("compiler/testData/codegen/box/bce/withGetter.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/binaryOp") @TestDataPath("$PROJECT_ROOT") @@ -1138,6 +1516,124 @@ public class FirWasmJsCodegenBoxTestGenerated extends AbstractFirWasmJsCodegenBo } } + @Nested + @TestMetadata("compiler/testData/codegen/box/boxing") + @TestDataPath("$PROJECT_ROOT") + public class Boxing { + @Test + public void testAllFilesPresentInBoxing() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/boxing"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true); + } + + @Test + @TestMetadata("box_cache0.kt") + public void testBox_cache0() { + runTest("compiler/testData/codegen/box/boxing/box_cache0.kt"); + } + + @Test + @TestMetadata("boxing0.kt") + public void testBoxing0() { + runTest("compiler/testData/codegen/box/boxing/boxing0.kt"); + } + + @Test + @TestMetadata("boxing1.kt") + public void testBoxing1() { + runTest("compiler/testData/codegen/box/boxing/boxing1.kt"); + } + + @Test + @TestMetadata("boxing10.kt") + public void testBoxing10() { + runTest("compiler/testData/codegen/box/boxing/boxing10.kt"); + } + + @Test + @TestMetadata("boxing11.kt") + public void testBoxing11() { + runTest("compiler/testData/codegen/box/boxing/boxing11.kt"); + } + + @Test + @TestMetadata("boxing12.kt") + public void testBoxing12() { + runTest("compiler/testData/codegen/box/boxing/boxing12.kt"); + } + + @Test + @TestMetadata("boxing13.kt") + public void testBoxing13() { + runTest("compiler/testData/codegen/box/boxing/boxing13.kt"); + } + + @Test + @TestMetadata("boxing14.kt") + public void testBoxing14() { + runTest("compiler/testData/codegen/box/boxing/boxing14.kt"); + } + + @Test + @TestMetadata("boxing15.kt") + public void testBoxing15() { + runTest("compiler/testData/codegen/box/boxing/boxing15.kt"); + } + + @Test + @TestMetadata("boxing2.kt") + public void testBoxing2() { + runTest("compiler/testData/codegen/box/boxing/boxing2.kt"); + } + + @Test + @TestMetadata("boxing3.kt") + public void testBoxing3() { + runTest("compiler/testData/codegen/box/boxing/boxing3.kt"); + } + + @Test + @TestMetadata("boxing4.kt") + public void testBoxing4() { + runTest("compiler/testData/codegen/box/boxing/boxing4.kt"); + } + + @Test + @TestMetadata("boxing5.kt") + public void testBoxing5() { + runTest("compiler/testData/codegen/box/boxing/boxing5.kt"); + } + + @Test + @TestMetadata("boxing6.kt") + public void testBoxing6() { + runTest("compiler/testData/codegen/box/boxing/boxing6.kt"); + } + + @Test + @TestMetadata("boxing7.kt") + public void testBoxing7() { + runTest("compiler/testData/codegen/box/boxing/boxing7.kt"); + } + + @Test + @TestMetadata("boxing8.kt") + public void testBoxing8() { + runTest("compiler/testData/codegen/box/boxing/boxing8.kt"); + } + + @Test + @TestMetadata("boxing9.kt") + public void testBoxing9() { + runTest("compiler/testData/codegen/box/boxing/boxing9.kt"); + } + + @Test + @TestMetadata("kt53100_casts.kt") + public void testKt53100_casts() { + runTest("compiler/testData/codegen/box/boxing/kt53100_casts.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/boxingOptimization") @TestDataPath("$PROJECT_ROOT") @@ -1382,6 +1878,88 @@ public class FirWasmJsCodegenBoxTestGenerated extends AbstractFirWasmJsCodegenBo } } + @Nested + @TestMetadata("compiler/testData/codegen/box/branching") + @TestDataPath("$PROJECT_ROOT") + public class Branching { + @Test + @TestMetadata("advanced_when2.kt") + public void testAdvanced_when2() { + runTest("compiler/testData/codegen/box/branching/advanced_when2.kt"); + } + + @Test + @TestMetadata("advanced_when5.kt") + public void testAdvanced_when5() { + runTest("compiler/testData/codegen/box/branching/advanced_when5.kt"); + } + + @Test + public void testAllFilesPresentInBranching() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/branching"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true); + } + + @Test + @TestMetadata("if_else.kt") + public void testIf_else() { + runTest("compiler/testData/codegen/box/branching/if_else.kt"); + } + + @Test + @TestMetadata("when2.kt") + public void testWhen2() { + runTest("compiler/testData/codegen/box/branching/when2.kt"); + } + + @Test + @TestMetadata("when4.kt") + public void testWhen4() { + runTest("compiler/testData/codegen/box/branching/when4.kt"); + } + + @Test + @TestMetadata("when5.kt") + public void testWhen5() { + runTest("compiler/testData/codegen/box/branching/when5.kt"); + } + + @Test + @TestMetadata("when6.kt") + public void testWhen6() { + runTest("compiler/testData/codegen/box/branching/when6.kt"); + } + + @Test + @TestMetadata("when7.kt") + public void testWhen7() { + runTest("compiler/testData/codegen/box/branching/when7.kt"); + } + + @Test + @TestMetadata("when8.kt") + public void testWhen8() { + runTest("compiler/testData/codegen/box/branching/when8.kt"); + } + + @Test + @TestMetadata("when9.kt") + public void testWhen9() { + runTest("compiler/testData/codegen/box/branching/when9.kt"); + } + + @Test + @TestMetadata("when_through.kt") + public void testWhen_through() { + runTest("compiler/testData/codegen/box/branching/when_through.kt"); + } + + @Test + @TestMetadata("when_with_try1.kt") + public void testWhen_with_try1() { + runTest("compiler/testData/codegen/box/branching/when_with_try1.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/bridges") @TestDataPath("$PROJECT_ROOT") @@ -1625,6 +2203,18 @@ public class FirWasmJsCodegenBoxTestGenerated extends AbstractFirWasmJsCodegenBo runTest("compiler/testData/codegen/box/bridges/methodWithDefaultParameter.kt"); } + @Test + @TestMetadata("multipleModules1.kt") + public void testMultipleModules1() { + runTest("compiler/testData/codegen/box/bridges/multipleModules1.kt"); + } + + @Test + @TestMetadata("multipleModules2.kt") + public void testMultipleModules2() { + runTest("compiler/testData/codegen/box/bridges/multipleModules2.kt"); + } + @Test @TestMetadata("nestedClassTypeParameters.kt") public void testNestedClassTypeParameters() { @@ -1685,6 +2275,12 @@ public class FirWasmJsCodegenBoxTestGenerated extends AbstractFirWasmJsCodegenBo runTest("compiler/testData/codegen/box/bridges/propertySetter.kt"); } + @Test + @TestMetadata("returnTypeSignature.kt") + public void testReturnTypeSignature() { + runTest("compiler/testData/codegen/box/bridges/returnTypeSignature.kt"); + } + @Test @TestMetadata("simple.kt") public void testSimple() { @@ -1727,12 +2323,138 @@ public class FirWasmJsCodegenBoxTestGenerated extends AbstractFirWasmJsCodegenBo runTest("compiler/testData/codegen/box/bridges/simpleUpperBound.kt"); } + @Test + @TestMetadata("special.kt") + public void testSpecial() { + runTest("compiler/testData/codegen/box/bridges/special.kt"); + } + + @Test + @TestMetadata("specialGeneric.kt") + public void testSpecialGeneric() { + runTest("compiler/testData/codegen/box/bridges/specialGeneric.kt"); + } + @Test @TestMetadata("strListContains.kt") public void testStrListContains() { runTest("compiler/testData/codegen/box/bridges/strListContains.kt"); } + @Test + @TestMetadata("test0.kt") + public void testTest0() { + runTest("compiler/testData/codegen/box/bridges/test0.kt"); + } + + @Test + @TestMetadata("test1.kt") + public void testTest1() { + runTest("compiler/testData/codegen/box/bridges/test1.kt"); + } + + @Test + @TestMetadata("test10.kt") + public void testTest10() { + runTest("compiler/testData/codegen/box/bridges/test10.kt"); + } + + @Test + @TestMetadata("test11.kt") + public void testTest11() { + runTest("compiler/testData/codegen/box/bridges/test11.kt"); + } + + @Test + @TestMetadata("test12.kt") + public void testTest12() { + runTest("compiler/testData/codegen/box/bridges/test12.kt"); + } + + @Test + @TestMetadata("test13.kt") + public void testTest13() { + runTest("compiler/testData/codegen/box/bridges/test13.kt"); + } + + @Test + @TestMetadata("test14.kt") + public void testTest14() { + runTest("compiler/testData/codegen/box/bridges/test14.kt"); + } + + @Test + @TestMetadata("test15.kt") + public void testTest15() { + runTest("compiler/testData/codegen/box/bridges/test15.kt"); + } + + @Test + @TestMetadata("test16.kt") + public void testTest16() { + runTest("compiler/testData/codegen/box/bridges/test16.kt"); + } + + @Test + @TestMetadata("test17.kt") + public void testTest17() { + runTest("compiler/testData/codegen/box/bridges/test17.kt"); + } + + @Test + @TestMetadata("test18.kt") + public void testTest18() { + runTest("compiler/testData/codegen/box/bridges/test18.kt"); + } + + @Test + @TestMetadata("test2.kt") + public void testTest2() { + runTest("compiler/testData/codegen/box/bridges/test2.kt"); + } + + @Test + @TestMetadata("test3.kt") + public void testTest3() { + runTest("compiler/testData/codegen/box/bridges/test3.kt"); + } + + @Test + @TestMetadata("test4.kt") + public void testTest4() { + runTest("compiler/testData/codegen/box/bridges/test4.kt"); + } + + @Test + @TestMetadata("test5.kt") + public void testTest5() { + runTest("compiler/testData/codegen/box/bridges/test5.kt"); + } + + @Test + @TestMetadata("test6.kt") + public void testTest6() { + runTest("compiler/testData/codegen/box/bridges/test6.kt"); + } + + @Test + @TestMetadata("test7.kt") + public void testTest7() { + runTest("compiler/testData/codegen/box/bridges/test7.kt"); + } + + @Test + @TestMetadata("test8.kt") + public void testTest8() { + runTest("compiler/testData/codegen/box/bridges/test8.kt"); + } + + @Test + @TestMetadata("test9.kt") + public void testTest9() { + runTest("compiler/testData/codegen/box/bridges/test9.kt"); + } + @Test @TestMetadata("traitImplInheritsTraitImpl.kt") public void testTraitImplInheritsTraitImpl() { @@ -4626,6 +5348,46 @@ public class FirWasmJsCodegenBoxTestGenerated extends AbstractFirWasmJsCodegenBo } } + @Nested + @TestMetadata("compiler/testData/codegen/box/classDelegation") + @TestDataPath("$PROJECT_ROOT") + public class ClassDelegation { + @Test + public void testAllFilesPresentInClassDelegation() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/classDelegation"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true); + } + + @Test + @TestMetadata("generic.kt") + public void testGeneric() { + runTest("compiler/testData/codegen/box/classDelegation/generic.kt"); + } + + @Test + @TestMetadata("method.kt") + public void testMethod() { + runTest("compiler/testData/codegen/box/classDelegation/method.kt"); + } + + @Test + @TestMetadata("multipleModules.kt") + public void testMultipleModules() { + runTest("compiler/testData/codegen/box/classDelegation/multipleModules.kt"); + } + + @Test + @TestMetadata("property.kt") + public void testProperty() { + runTest("compiler/testData/codegen/box/classDelegation/property.kt"); + } + + @Test + @TestMetadata("withBridge.kt") + public void testWithBridge() { + runTest("compiler/testData/codegen/box/classDelegation/withBridge.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/classLiteral") @TestDataPath("$PROJECT_ROOT") @@ -6329,6 +7091,12 @@ public class FirWasmJsCodegenBoxTestGenerated extends AbstractFirWasmJsCodegenBo runTest("compiler/testData/codegen/box/contracts/constructorArgument.kt"); } + @Test + @TestMetadata("contractForCast.kt") + public void testContractForCast() { + runTest("compiler/testData/codegen/box/contracts/contractForCast.kt"); + } + @Test @TestMetadata("destructuredVariable.kt") public void testDestructuredVariable() { @@ -6371,6 +7139,12 @@ public class FirWasmJsCodegenBoxTestGenerated extends AbstractFirWasmJsCodegenBo runTest("compiler/testData/codegen/box/contracts/functionParameter.kt"); } + @Test + @TestMetadata("isNullString.kt") + public void testIsNullString() { + runTest("compiler/testData/codegen/box/contracts/isNullString.kt"); + } + @Test @TestMetadata("kt39374.kt") public void testKt39374() { @@ -6413,6 +7187,24 @@ public class FirWasmJsCodegenBoxTestGenerated extends AbstractFirWasmJsCodegenBo runTest("compiler/testData/codegen/box/contracts/nestedLambdaInNonInlineCallExactlyOnce.kt"); } + @Test + @TestMetadata("nonNullSmartCast.kt") + public void testNonNullSmartCast() { + runTest("compiler/testData/codegen/box/contracts/nonNullSmartCast.kt"); + } + + @Test + @TestMetadata("require.kt") + public void testRequire() { + runTest("compiler/testData/codegen/box/contracts/require.kt"); + } + + @Test + @TestMetadata("runLambdaForVal.kt") + public void testRunLambdaForVal() { + runTest("compiler/testData/codegen/box/contracts/runLambdaForVal.kt"); + } + @Test @TestMetadata("valInWhen.kt") public void testValInWhen() { @@ -7794,6 +8586,124 @@ public class FirWasmJsCodegenBoxTestGenerated extends AbstractFirWasmJsCodegenBo } } + @Nested + @TestMetadata("compiler/testData/codegen/box/controlflow") + @TestDataPath("$PROJECT_ROOT") + public class Controlflow { + @Test + public void testAllFilesPresentInControlflow() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/controlflow"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true); + } + + @Test + @TestMetadata("break.kt") + public void testBreak() { + runTest("compiler/testData/codegen/box/controlflow/break.kt"); + } + + @Test + @TestMetadata("break1.kt") + public void testBreak1() { + runTest("compiler/testData/codegen/box/controlflow/break1.kt"); + } + + @Test + @TestMetadata("for_loops.kt") + public void testFor_loops() { + runTest("compiler/testData/codegen/box/controlflow/for_loops.kt"); + } + + @Test + @TestMetadata("for_loops_array_break_continue.kt") + public void testFor_loops_array_break_continue() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_array_break_continue.kt"); + } + + @Test + @TestMetadata("for_loops_array_indices.kt") + public void testFor_loops_array_indices() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_array_indices.kt"); + } + + @Test + @TestMetadata("for_loops_array_mutation.kt") + public void testFor_loops_array_mutation() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_array_mutation.kt"); + } + + @Test + @TestMetadata("for_loops_array_nested.kt") + public void testFor_loops_array_nested() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_array_nested.kt"); + } + + @Test + @TestMetadata("for_loops_array_nullable.kt") + public void testFor_loops_array_nullable() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_array_nullable.kt"); + } + + @Test + @TestMetadata("for_loops_array_side_effects.kt") + public void testFor_loops_array_side_effects() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_array_side_effects.kt"); + } + + @Test + @TestMetadata("for_loops_call_order.kt") + public void testFor_loops_call_order() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_call_order.kt"); + } + + @Test + @TestMetadata("for_loops_coroutines.kt") + public void testFor_loops_coroutines() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_coroutines.kt"); + } + + @Test + @TestMetadata("for_loops_empty_range.kt") + public void testFor_loops_empty_range() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_empty_range.kt"); + } + + @Test + @TestMetadata("for_loops_errors.kt") + public void testFor_loops_errors() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_errors.kt"); + } + + @Test + @TestMetadata("for_loops_let_with_nullable.kt") + public void testFor_loops_let_with_nullable() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_let_with_nullable.kt"); + } + + @Test + @TestMetadata("for_loops_nested.kt") + public void testFor_loops_nested() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_nested.kt"); + } + + @Test + @TestMetadata("for_loops_overflow.kt") + public void testFor_loops_overflow() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_overflow.kt"); + } + + @Test + @TestMetadata("for_loops_types.kt") + public void testFor_loops_types() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_types.kt"); + } + + @Test + @TestMetadata("unreachable1.kt") + public void testUnreachable1() { + runTest("compiler/testData/codegen/box/controlflow/unreachable1.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/coroutines") @TestDataPath("$PROJECT_ROOT") @@ -7815,6 +8725,12 @@ public class FirWasmJsCodegenBoxTestGenerated extends AbstractFirWasmJsCodegenBo KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true); } + @Test + @TestMetadata("anonymousObject.kt") + public void testAnonymousObject() { + runTest("compiler/testData/codegen/box/coroutines/anonymousObject.kt"); + } + @Test @TestMetadata("asyncIteratorNullMerge_1_3.kt") public void testAsyncIteratorNullMerge_1_3() { @@ -7899,18 +8815,156 @@ public class FirWasmJsCodegenBoxTestGenerated extends AbstractFirWasmJsCodegenBo runTest("compiler/testData/codegen/box/coroutines/coercionToUnit.kt"); } + @Test + @TestMetadata("controlFlow_chain.kt") + public void testControlFlow_chain() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_chain.kt"); + } + + @Test + @TestMetadata("controlFlow_finally1.kt") + public void testControlFlow_finally1() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally1.kt"); + } + + @Test + @TestMetadata("controlFlow_finally2.kt") + public void testControlFlow_finally2() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally2.kt"); + } + + @Test + @TestMetadata("controlFlow_finally3.kt") + public void testControlFlow_finally3() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally3.kt"); + } + + @Test + @TestMetadata("controlFlow_finally4.kt") + public void testControlFlow_finally4() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally4.kt"); + } + + @Test + @TestMetadata("controlFlow_finally5.kt") + public void testControlFlow_finally5() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally5.kt"); + } + + @Test + @TestMetadata("controlFlow_finally6.kt") + public void testControlFlow_finally6() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally6.kt"); + } + + @Test + @TestMetadata("controlFlow_finally7.kt") + public void testControlFlow_finally7() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally7.kt"); + } + + @Test + @TestMetadata("controlFlow_if1.kt") + public void testControlFlow_if1() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_if1.kt"); + } + + @Test + @TestMetadata("controlFlow_if2.kt") + public void testControlFlow_if2() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_if2.kt"); + } + + @Test + @TestMetadata("controlFlow_inline1.kt") + public void testControlFlow_inline1() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_inline1.kt"); + } + + @Test + @TestMetadata("controlFlow_inline2.kt") + public void testControlFlow_inline2() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_inline2.kt"); + } + + @Test + @TestMetadata("controlFlow_inline3.kt") + public void testControlFlow_inline3() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_inline3.kt"); + } + + @Test + @TestMetadata("controlFlow_tryCatch1.kt") + public void testControlFlow_tryCatch1() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_tryCatch1.kt"); + } + + @Test + @TestMetadata("controlFlow_tryCatch2.kt") + public void testControlFlow_tryCatch2() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_tryCatch2.kt"); + } + + @Test + @TestMetadata("controlFlow_tryCatch3.kt") + public void testControlFlow_tryCatch3() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_tryCatch3.kt"); + } + + @Test + @TestMetadata("controlFlow_tryCatch4.kt") + public void testControlFlow_tryCatch4() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_tryCatch4.kt"); + } + + @Test + @TestMetadata("controlFlow_tryCatch5.kt") + public void testControlFlow_tryCatch5() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_tryCatch5.kt"); + } + + @Test + @TestMetadata("controlFlow_while1.kt") + public void testControlFlow_while1() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_while1.kt"); + } + + @Test + @TestMetadata("controlFlow_while2.kt") + public void testControlFlow_while2() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_while2.kt"); + } + @Test @TestMetadata("controllerAccessFromInnerLambda.kt") public void testControllerAccessFromInnerLambda() { runTest("compiler/testData/codegen/box/coroutines/controllerAccessFromInnerLambda.kt"); } + @Test + @TestMetadata("coroutineContext1.kt") + public void testCoroutineContext1() { + runTest("compiler/testData/codegen/box/coroutines/coroutineContext1.kt"); + } + + @Test + @TestMetadata("coroutineContext2.kt") + public void testCoroutineContext2() { + runTest("compiler/testData/codegen/box/coroutines/coroutineContext2.kt"); + } + @Test @TestMetadata("coroutineContextInInlinedLambda.kt") public void testCoroutineContextInInlinedLambda() { runTest("compiler/testData/codegen/box/coroutines/coroutineContextInInlinedLambda.kt"); } + @Test + @TestMetadata("correctOrder1.kt") + public void testCorrectOrder1() { + runTest("compiler/testData/codegen/box/coroutines/correctOrder1.kt"); + } + @Test @TestMetadata("createCoroutineSafe.kt") public void testCreateCoroutineSafe() { @@ -7941,6 +8995,18 @@ public class FirWasmJsCodegenBoxTestGenerated extends AbstractFirWasmJsCodegenBo runTest("compiler/testData/codegen/box/coroutines/defaultParametersInSuspend.kt"); } + @Test + @TestMetadata("degenerate1.kt") + public void testDegenerate1() { + runTest("compiler/testData/codegen/box/coroutines/degenerate1.kt"); + } + + @Test + @TestMetadata("degenerate2.kt") + public void testDegenerate2() { + runTest("compiler/testData/codegen/box/coroutines/degenerate2.kt"); + } + @Test @TestMetadata("delegatedSuspendMember.kt") public void testDelegatedSuspendMember() { @@ -7989,6 +9055,30 @@ public class FirWasmJsCodegenBoxTestGenerated extends AbstractFirWasmJsCodegenBo runTest("compiler/testData/codegen/box/coroutines/falseUnitCoercion.kt"); } + @Test + @TestMetadata("functionReference_eqeq_name.kt") + public void testFunctionReference_eqeq_name() { + runTest("compiler/testData/codegen/box/coroutines/functionReference_eqeq_name.kt"); + } + + @Test + @TestMetadata("functionReference_invokeAsFunction.kt") + public void testFunctionReference_invokeAsFunction() { + runTest("compiler/testData/codegen/box/coroutines/functionReference_invokeAsFunction.kt"); + } + + @Test + @TestMetadata("functionReference_lambdaAsSuspendLambda.kt") + public void testFunctionReference_lambdaAsSuspendLambda() { + runTest("compiler/testData/codegen/box/coroutines/functionReference_lambdaAsSuspendLambda.kt"); + } + + @Test + @TestMetadata("functionReference_simple.kt") + public void testFunctionReference_simple() { + runTest("compiler/testData/codegen/box/coroutines/functionReference_simple.kt"); + } + @Test @TestMetadata("generate.kt") public void testGenerate() { @@ -8163,6 +9253,12 @@ public class FirWasmJsCodegenBoxTestGenerated extends AbstractFirWasmJsCodegenBo runTest("compiler/testData/codegen/box/coroutines/kt35967.kt"); } + @Test + @TestMetadata("kt41394.kt") + public void testKt41394() { + runTest("compiler/testData/codegen/box/coroutines/kt41394.kt"); + } + @Test @TestMetadata("kt42028.kt") public void testKt42028() { @@ -8391,12 +9487,30 @@ public class FirWasmJsCodegenBoxTestGenerated extends AbstractFirWasmJsCodegenBo runTest("compiler/testData/codegen/box/coroutines/returnByLabel.kt"); } + @Test + @TestMetadata("returnsNothing1.kt") + public void testReturnsNothing1() { + runTest("compiler/testData/codegen/box/coroutines/returnsNothing1.kt"); + } + + @Test + @TestMetadata("returnsUnit1.kt") + public void testReturnsUnit1() { + runTest("compiler/testData/codegen/box/coroutines/returnsUnit1.kt"); + } + @Test @TestMetadata("simple.kt") public void testSimple() { runTest("compiler/testData/codegen/box/coroutines/simple.kt"); } + @Test + @TestMetadata("simple2.kt") + public void testSimple2() { + runTest("compiler/testData/codegen/box/coroutines/simple2.kt"); + } + @Test @TestMetadata("simpleException.kt") public void testSimpleException() { @@ -8439,6 +9553,12 @@ public class FirWasmJsCodegenBoxTestGenerated extends AbstractFirWasmJsCodegenBo runTest("compiler/testData/codegen/box/coroutines/suspendCallsInArguments.kt"); } + @Test + @TestMetadata("suspendConversion.kt") + public void testSuspendConversion() { + runTest("compiler/testData/codegen/box/coroutines/suspendConversion.kt"); + } + @Test @TestMetadata("suspendCoroutineFromStateMachine.kt") public void testSuspendCoroutineFromStateMachine() { @@ -8595,6 +9715,12 @@ public class FirWasmJsCodegenBoxTestGenerated extends AbstractFirWasmJsCodegenBo runTest("compiler/testData/codegen/box/coroutines/varargCallFromSuspend.kt"); } + @Test + @TestMetadata("withReceiver.kt") + public void testWithReceiver() { + runTest("compiler/testData/codegen/box/coroutines/withReceiver.kt"); + } + @Nested @TestMetadata("compiler/testData/codegen/box/coroutines/bridges") @TestDataPath("$PROJECT_ROOT") @@ -10822,6 +11948,34 @@ public class FirWasmJsCodegenBoxTestGenerated extends AbstractFirWasmJsCodegenBo } } + @Nested + @TestMetadata("compiler/testData/codegen/box/cycles") + @TestDataPath("$PROJECT_ROOT") + public class Cycles { + @Test + public void testAllFilesPresentInCycles() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cycles"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true); + } + + @Test + @TestMetadata("cycle.kt") + public void testCycle() { + runTest("compiler/testData/codegen/box/cycles/cycle.kt"); + } + + @Test + @TestMetadata("cycle_do.kt") + public void testCycle_do() { + runTest("compiler/testData/codegen/box/cycles/cycle_do.kt"); + } + + @Test + @TestMetadata("cycle_for.kt") + public void testCycle_for() { + runTest("compiler/testData/codegen/box/cycles/cycle_for.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/dataClasses") @TestDataPath("$PROJECT_ROOT") @@ -11228,6 +12382,28 @@ public class FirWasmJsCodegenBoxTestGenerated extends AbstractFirWasmJsCodegenBo } } + @Nested + @TestMetadata("compiler/testData/codegen/box/dataflow") + @TestDataPath("$PROJECT_ROOT") + public class Dataflow { + @Test + public void testAllFilesPresentInDataflow() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/dataflow"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true); + } + + @Test + @TestMetadata("scope1.kt") + public void testScope1() { + runTest("compiler/testData/codegen/box/dataflow/scope1.kt"); + } + + @Test + @TestMetadata("uninitialized_val.kt") + public void testUninitialized_val() { + runTest("compiler/testData/codegen/box/dataflow/uninitialized_val.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/deadCodeElimination") @TestDataPath("$PROJECT_ROOT") @@ -11847,6 +13023,12 @@ public class FirWasmJsCodegenBoxTestGenerated extends AbstractFirWasmJsCodegenBo runTest("compiler/testData/codegen/box/delegatedProperty/castSetParameter.kt"); } + @Test + @TestMetadata("correctFieldsOrder.kt") + public void testCorrectFieldsOrder() { + runTest("compiler/testData/codegen/box/delegatedProperty/correctFieldsOrder.kt"); + } + @Test @TestMetadata("delegateAsInnerClass.kt") public void testDelegateAsInnerClass() { @@ -11901,6 +13083,12 @@ public class FirWasmJsCodegenBoxTestGenerated extends AbstractFirWasmJsCodegenBo runTest("compiler/testData/codegen/box/delegatedProperty/delegateWithPrivateSet.kt"); } + @Test + @TestMetadata("delegatedOverride.kt") + public void testDelegatedOverride() { + runTest("compiler/testData/codegen/box/delegatedProperty/delegatedOverride.kt"); + } + @Test @TestMetadata("delegatedPropertyInEnum.kt") public void testDelegatedPropertyInEnum() { @@ -12033,12 +13221,42 @@ public class FirWasmJsCodegenBoxTestGenerated extends AbstractFirWasmJsCodegenBo runTest("compiler/testData/codegen/box/delegatedProperty/kt9712.kt"); } + @Test + @TestMetadata("lazy.kt") + public void testLazy() { + runTest("compiler/testData/codegen/box/delegatedProperty/lazy.kt"); + } + + @Test + @TestMetadata("local.kt") + public void testLocal() { + runTest("compiler/testData/codegen/box/delegatedProperty/local.kt"); + } + + @Test + @TestMetadata("map.kt") + public void testMap() { + runTest("compiler/testData/codegen/box/delegatedProperty/map.kt"); + } + @Test @TestMetadata("noTypeVariablesLeft.kt") public void testNoTypeVariablesLeft() { runTest("compiler/testData/codegen/box/delegatedProperty/noTypeVariablesLeft.kt"); } + @Test + @TestMetadata("observable.kt") + public void testObservable() { + runTest("compiler/testData/codegen/box/delegatedProperty/observable.kt"); + } + + @Test + @TestMetadata("packageLevel.kt") + public void testPackageLevel() { + runTest("compiler/testData/codegen/box/delegatedProperty/packageLevel.kt"); + } + @Test @TestMetadata("privateVar.kt") public void testPrivateVar() { @@ -12081,6 +13299,18 @@ public class FirWasmJsCodegenBoxTestGenerated extends AbstractFirWasmJsCodegenBo runTest("compiler/testData/codegen/box/delegatedProperty/setAsExtensionFunInClass.kt"); } + @Test + @TestMetadata("simpleVal.kt") + public void testSimpleVal() { + runTest("compiler/testData/codegen/box/delegatedProperty/simpleVal.kt"); + } + + @Test + @TestMetadata("simpleVar.kt") + public void testSimpleVar() { + runTest("compiler/testData/codegen/box/delegatedProperty/simpleVar.kt"); + } + @Test @TestMetadata("topLevelVal.kt") public void testTopLevelVal() { @@ -12888,6 +14118,40 @@ public class FirWasmJsCodegenBoxTestGenerated extends AbstractFirWasmJsCodegenBo } } + @Nested + @TestMetadata("compiler/testData/codegen/box/devirtualization") + @TestDataPath("$PROJECT_ROOT") + public class Devirtualization { + @Test + public void testAllFilesPresentInDevirtualization() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/devirtualization"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true); + } + + @Test + @TestMetadata("anonymousObject.kt") + public void testAnonymousObject() { + runTest("compiler/testData/codegen/box/devirtualization/anonymousObject.kt"); + } + + @Test + @TestMetadata("getter_looking_as_box_function.kt") + public void testGetter_looking_as_box_function() { + runTest("compiler/testData/codegen/box/devirtualization/getter_looking_as_box_function.kt"); + } + + @Test + @TestMetadata("inline_getter.kt") + public void testInline_getter() { + runTest("compiler/testData/codegen/box/devirtualization/inline_getter.kt"); + } + + @Test + @TestMetadata("lateinitInterface.kt") + public void testLateinitInterface() { + runTest("compiler/testData/codegen/box/devirtualization/lateinitInterface.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/diagnostics") @TestDataPath("$PROJECT_ROOT") @@ -13501,6 +14765,12 @@ public class FirWasmJsCodegenBoxTestGenerated extends AbstractFirWasmJsCodegenBo runTest("compiler/testData/codegen/box/enum/companionAccessingEnumValue.kt"); } + @Test + @TestMetadata("companionObject.kt") + public void testCompanionObject() { + runTest("compiler/testData/codegen/box/enum/companionObject.kt"); + } + @Test @TestMetadata("companionObjectInEnum.kt") public void testCompanionObjectInEnum() { @@ -13645,6 +14915,12 @@ public class FirWasmJsCodegenBoxTestGenerated extends AbstractFirWasmJsCodegenBo runTest("compiler/testData/codegen/box/enum/enumWithLambdaParameter.kt"); } + @Test + @TestMetadata("enum_equals.kt") + public void testEnum_equals() { + runTest("compiler/testData/codegen/box/enum/enum_equals.kt"); + } + @Test @TestMetadata("getEnumEntityByOrdinal.kt") public void testGetEnumEntityByOrdinal() { @@ -13717,6 +14993,18 @@ public class FirWasmJsCodegenBoxTestGenerated extends AbstractFirWasmJsCodegenBo runTest("compiler/testData/codegen/box/enum/innerWithExistingClassObject.kt"); } + @Test + @TestMetadata("interfaceCallNoEntryClass.kt") + public void testInterfaceCallNoEntryClass() { + runTest("compiler/testData/codegen/box/enum/interfaceCallNoEntryClass.kt"); + } + + @Test + @TestMetadata("interfaceCallWithEntryClass.kt") + public void testInterfaceCallWithEntryClass() { + runTest("compiler/testData/codegen/box/enum/interfaceCallWithEntryClass.kt"); + } + @Test @TestMetadata("k54079.kt") public void testK54079() { @@ -13771,6 +15059,12 @@ public class FirWasmJsCodegenBoxTestGenerated extends AbstractFirWasmJsCodegenBo runTest("compiler/testData/codegen/box/enum/kt2350.kt"); } + @Test + @TestMetadata("kt38540.kt") + public void testKt38540() { + runTest("compiler/testData/codegen/box/enum/kt38540.kt"); + } + @Test @TestMetadata("kt38996.kt") public void testKt38996() { @@ -13867,12 +15161,42 @@ public class FirWasmJsCodegenBoxTestGenerated extends AbstractFirWasmJsCodegenBo runTest("compiler/testData/codegen/box/enum/kt9711_2.kt"); } + @Test + @TestMetadata("lambdaInDefault.kt") + public void testLambdaInDefault() { + runTest("compiler/testData/codegen/box/enum/lambdaInDefault.kt"); + } + + @Test + @TestMetadata("loop.kt") + public void testLoop() { + runTest("compiler/testData/codegen/box/enum/loop.kt"); + } + @Test @TestMetadata("manyDefaultParameters.kt") public void testManyDefaultParameters() { runTest("compiler/testData/codegen/box/enum/manyDefaultParameters.kt"); } + @Test + @TestMetadata("multipleModules.kt") + public void testMultipleModules() { + runTest("compiler/testData/codegen/box/enum/multipleModules.kt"); + } + + @Test + @TestMetadata("nested.kt") + public void testNested() { + runTest("compiler/testData/codegen/box/enum/nested.kt"); + } + + @Test + @TestMetadata("openMethodNoOverrides.kt") + public void testOpenMethodNoOverrides() { + runTest("compiler/testData/codegen/box/enum/openMethodNoOverrides.kt"); + } + @Test @TestMetadata("ordinal.kt") public void testOrdinal() { @@ -13897,6 +15221,12 @@ public class FirWasmJsCodegenBoxTestGenerated extends AbstractFirWasmJsCodegenBo runTest("compiler/testData/codegen/box/enum/refToThis.kt"); } + @Test + @TestMetadata("reorderedArguments.kt") + public void testReorderedArguments() { + runTest("compiler/testData/codegen/box/enum/reorderedArguments.kt"); + } + @Test @TestMetadata("simple.kt") public void testSimple() { @@ -13915,18 +15245,66 @@ public class FirWasmJsCodegenBoxTestGenerated extends AbstractFirWasmJsCodegenBo runTest("compiler/testData/codegen/box/enum/superCallInEnumLiteral.kt"); } + @Test + @TestMetadata("switchLowering.kt") + public void testSwitchLowering() { + runTest("compiler/testData/codegen/box/enum/switchLowering.kt"); + } + + @Test + @TestMetadata("test0.kt") + public void testTest0() { + runTest("compiler/testData/codegen/box/enum/test0.kt"); + } + + @Test + @TestMetadata("test1.kt") + public void testTest1() { + runTest("compiler/testData/codegen/box/enum/test1.kt"); + } + @Test @TestMetadata("toString.kt") public void testToString() { runTest("compiler/testData/codegen/box/enum/toString.kt"); } + @Test + @TestMetadata("vCallNoEntryClass.kt") + public void testVCallNoEntryClass() { + runTest("compiler/testData/codegen/box/enum/vCallNoEntryClass.kt"); + } + + @Test + @TestMetadata("vCallWithEntryClass.kt") + public void testVCallWithEntryClass() { + runTest("compiler/testData/codegen/box/enum/vCallWithEntryClass.kt"); + } + + @Test + @TestMetadata("valueOf2.kt") + public void testValueOf2() { + runTest("compiler/testData/codegen/box/enum/valueOf2.kt"); + } + @Test @TestMetadata("valueof.kt") public void testValueof() { runTest("compiler/testData/codegen/box/enum/valueof.kt"); } + @Test + @TestMetadata("values.kt") + public void testValues() { + runTest("compiler/testData/codegen/box/enum/values.kt"); + } + + @Test + @TestMetadata("varargParam.kt") + public void testVarargParam() { + runTest("compiler/testData/codegen/box/enum/varargParam.kt"); + } + @Test @TestMetadata("whenInObject.kt") public void testWhenInObject() { @@ -14002,6 +15380,112 @@ public class FirWasmJsCodegenBoxTestGenerated extends AbstractFirWasmJsCodegenBo } } + @Nested + @TestMetadata("compiler/testData/codegen/box/escapeAnalysis") + @TestDataPath("$PROJECT_ROOT") + public class EscapeAnalysis { + @Test + public void testAllFilesPresentInEscapeAnalysis() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/escapeAnalysis"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true); + } + + @Test + @TestMetadata("recursion.kt") + public void testRecursion() { + runTest("compiler/testData/codegen/box/escapeAnalysis/recursion.kt"); + } + + @Test + @TestMetadata("stack_array.kt") + public void testStack_array() { + runTest("compiler/testData/codegen/box/escapeAnalysis/stack_array.kt"); + } + + @Test + @TestMetadata("test1.kt") + public void testTest1() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test1.kt"); + } + + @Test + @TestMetadata("test10.kt") + public void testTest10() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test10.kt"); + } + + @Test + @TestMetadata("test11.kt") + public void testTest11() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test11.kt"); + } + + @Test + @TestMetadata("test12.kt") + public void testTest12() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test12.kt"); + } + + @Test + @TestMetadata("test13.kt") + public void testTest13() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test13.kt"); + } + + @Test + @TestMetadata("test2.kt") + public void testTest2() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test2.kt"); + } + + @Test + @TestMetadata("test3.kt") + public void testTest3() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test3.kt"); + } + + @Test + @TestMetadata("test4.kt") + public void testTest4() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test4.kt"); + } + + @Test + @TestMetadata("test5.kt") + public void testTest5() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test5.kt"); + } + + @Test + @TestMetadata("test6.kt") + public void testTest6() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test6.kt"); + } + + @Test + @TestMetadata("test7.kt") + public void testTest7() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test7.kt"); + } + + @Test + @TestMetadata("test8.kt") + public void testTest8() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test8.kt"); + } + + @Test + @TestMetadata("test9.kt") + public void testTest9() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test9.kt"); + } + + @Test + @TestMetadata("zeroOutObjectOnAlloc.kt") + public void testZeroOutObjectOnAlloc() { + runTest("compiler/testData/codegen/box/escapeAnalysis/zeroOutObjectOnAlloc.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/evaluate") @TestDataPath("$PROJECT_ROOT") @@ -14018,6 +15502,58 @@ public class FirWasmJsCodegenBoxTestGenerated extends AbstractFirWasmJsCodegenBo } } + @Nested + @TestMetadata("compiler/testData/codegen/box/exceptions") + @TestDataPath("$PROJECT_ROOT") + public class Exceptions { + @Test + public void testAllFilesPresentInExceptions() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/exceptions"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true); + } + + @Test + @TestMetadata("catch1.kt") + public void testCatch1() { + runTest("compiler/testData/codegen/box/exceptions/catch1.kt"); + } + + @Test + @TestMetadata("catch2.kt") + public void testCatch2() { + runTest("compiler/testData/codegen/box/exceptions/catch2.kt"); + } + + @Test + @TestMetadata("catch7.kt") + public void testCatch7() { + runTest("compiler/testData/codegen/box/exceptions/catch7.kt"); + } + + @Test + @TestMetadata("extend0.kt") + public void testExtend0() { + runTest("compiler/testData/codegen/box/exceptions/extend0.kt"); + } + + @Test + @TestMetadata("rethrow.kt") + public void testRethrow() { + runTest("compiler/testData/codegen/box/exceptions/rethrow.kt"); + } + + @Test + @TestMetadata("throw0.kt") + public void testThrow0() { + runTest("compiler/testData/codegen/box/exceptions/throw0.kt"); + } + + @Test + @TestMetadata("throw_from_catch.kt") + public void testThrow_from_catch() { + runTest("compiler/testData/codegen/box/exceptions/throw_from_catch.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/exclExcl") @TestDataPath("$PROJECT_ROOT") @@ -14897,6 +16433,12 @@ public class FirWasmJsCodegenBoxTestGenerated extends AbstractFirWasmJsCodegenBo runTest("compiler/testData/codegen/box/funInterface/funInterfaceWithReceiver.kt"); } + @Test + @TestMetadata("implIsNotFunction.kt") + public void testImplIsNotFunction() { + runTest("compiler/testData/codegen/box/funInterface/implIsNotFunction.kt"); + } + @Test @TestMetadata("inlinedSamWrapper.kt") public void testInlinedSamWrapper() { @@ -14939,6 +16481,18 @@ public class FirWasmJsCodegenBoxTestGenerated extends AbstractFirWasmJsCodegenBo runTest("compiler/testData/codegen/box/funInterface/kt46908_functionSupertype.kt"); } + @Test + @TestMetadata("kt49384.kt") + public void testKt49384() { + runTest("compiler/testData/codegen/box/funInterface/kt49384.kt"); + } + + @Test + @TestMetadata("kt49384_getSame.kt") + public void testKt49384_getSame() { + runTest("compiler/testData/codegen/box/funInterface/kt49384_getSame.kt"); + } + @Test @TestMetadata("multimodule.kt") public void testMultimodule() { @@ -14957,6 +16511,12 @@ public class FirWasmJsCodegenBoxTestGenerated extends AbstractFirWasmJsCodegenBo runTest("compiler/testData/codegen/box/funInterface/nonAbstractMethod.kt"); } + @Test + @TestMetadata("nonTrivialProjectionInSuperType.kt") + public void testNonTrivialProjectionInSuperType() { + runTest("compiler/testData/codegen/box/funInterface/nonTrivialProjectionInSuperType.kt"); + } + @Test @TestMetadata("nullableSam.kt") public void testNullableSam() { @@ -15046,6 +16606,232 @@ public class FirWasmJsCodegenBoxTestGenerated extends AbstractFirWasmJsCodegenBo } } + @Nested + @TestMetadata("compiler/testData/codegen/box/function") + @TestDataPath("$PROJECT_ROOT") + public class Function { + @Test + public void testAllFilesPresentInFunction() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/function"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true); + } + + @Test + @TestMetadata("arithmetic.kt") + public void testArithmetic() { + runTest("compiler/testData/codegen/box/function/arithmetic.kt"); + } + + @Test + @TestMetadata("boolean.kt") + public void testBoolean() { + runTest("compiler/testData/codegen/box/function/boolean.kt"); + } + + @Test + @TestMetadata("defaults.kt") + public void testDefaults() { + runTest("compiler/testData/codegen/box/function/defaults.kt"); + } + + @Test + @TestMetadata("defaults1.kt") + public void testDefaults1() { + runTest("compiler/testData/codegen/box/function/defaults1.kt"); + } + + @Test + @TestMetadata("defaults10.kt") + public void testDefaults10() { + runTest("compiler/testData/codegen/box/function/defaults10.kt"); + } + + @Test + @TestMetadata("defaults2.kt") + public void testDefaults2() { + runTest("compiler/testData/codegen/box/function/defaults2.kt"); + } + + @Test + @TestMetadata("defaults3.kt") + public void testDefaults3() { + runTest("compiler/testData/codegen/box/function/defaults3.kt"); + } + + @Test + @TestMetadata("defaults4.kt") + public void testDefaults4() { + runTest("compiler/testData/codegen/box/function/defaults4.kt"); + } + + @Test + @TestMetadata("defaults5.kt") + public void testDefaults5() { + runTest("compiler/testData/codegen/box/function/defaults5.kt"); + } + + @Test + @TestMetadata("defaults6.kt") + public void testDefaults6() { + runTest("compiler/testData/codegen/box/function/defaults6.kt"); + } + + @Test + @TestMetadata("defaults7.kt") + public void testDefaults7() { + runTest("compiler/testData/codegen/box/function/defaults7.kt"); + } + + @Test + @TestMetadata("defaults8.kt") + public void testDefaults8() { + runTest("compiler/testData/codegen/box/function/defaults8.kt"); + } + + @Test + @TestMetadata("defaults9.kt") + public void testDefaults9() { + runTest("compiler/testData/codegen/box/function/defaults9.kt"); + } + + @Test + @TestMetadata("defaultsFromFakeOverride.kt") + public void testDefaultsFromFakeOverride() { + runTest("compiler/testData/codegen/box/function/defaultsFromFakeOverride.kt"); + } + + @Test + @TestMetadata("defaultsWithInlineClasses.kt") + public void testDefaultsWithInlineClasses() { + runTest("compiler/testData/codegen/box/function/defaultsWithInlineClasses.kt"); + } + + @Test + @TestMetadata("defaultsWithVarArg1.kt") + public void testDefaultsWithVarArg1() { + runTest("compiler/testData/codegen/box/function/defaultsWithVarArg1.kt"); + } + + @Test + @TestMetadata("defaultsWithVarArg2.kt") + public void testDefaultsWithVarArg2() { + runTest("compiler/testData/codegen/box/function/defaultsWithVarArg2.kt"); + } + + @Test + @TestMetadata("eqeq.kt") + public void testEqeq() { + runTest("compiler/testData/codegen/box/function/eqeq.kt"); + } + + @Test + @TestMetadata("extension.kt") + public void testExtension() { + runTest("compiler/testData/codegen/box/function/extension.kt"); + } + + @Test + @TestMetadata("intrinsic.kt") + public void testIntrinsic() { + runTest("compiler/testData/codegen/box/function/intrinsic.kt"); + } + + @Test + @TestMetadata("localFunction.kt") + public void testLocalFunction() { + runTest("compiler/testData/codegen/box/function/localFunction.kt"); + } + + @Test + @TestMetadata("localFunction2.kt") + public void testLocalFunction2() { + runTest("compiler/testData/codegen/box/function/localFunction2.kt"); + } + + @Test + @TestMetadata("localFunction3.kt") + public void testLocalFunction3() { + runTest("compiler/testData/codegen/box/function/localFunction3.kt"); + } + + @Test + @TestMetadata("minus_eq.kt") + public void testMinus_eq() { + runTest("compiler/testData/codegen/box/function/minus_eq.kt"); + } + + @Test + @TestMetadata("named.kt") + public void testNamed() { + runTest("compiler/testData/codegen/box/function/named.kt"); + } + + @Test + @TestMetadata("nothingNReturningSafeCall.kt") + public void testNothingNReturningSafeCall() { + runTest("compiler/testData/codegen/box/function/nothingNReturningSafeCall.kt"); + } + + @Test + @TestMetadata("plus_eq.kt") + public void testPlus_eq() { + runTest("compiler/testData/codegen/box/function/plus_eq.kt"); + } + + @Test + @TestMetadata("referenceBigArity.kt") + public void testReferenceBigArity() { + runTest("compiler/testData/codegen/box/function/referenceBigArity.kt"); + } + + @Test + @TestMetadata("sum.kt") + public void testSum() { + runTest("compiler/testData/codegen/box/function/sum.kt"); + } + + @Test + @TestMetadata("sum_3const.kt") + public void testSum_3const() { + runTest("compiler/testData/codegen/box/function/sum_3const.kt"); + } + + @Test + @TestMetadata("sum_foo_bar.kt") + public void testSum_foo_bar() { + runTest("compiler/testData/codegen/box/function/sum_foo_bar.kt"); + } + + @Test + @TestMetadata("sum_func.kt") + public void testSum_func() { + runTest("compiler/testData/codegen/box/function/sum_func.kt"); + } + + @Test + @TestMetadata("sum_imm.kt") + public void testSum_imm() { + runTest("compiler/testData/codegen/box/function/sum_imm.kt"); + } + + @Test + @TestMetadata("sum_mixed.kt") + public void testSum_mixed() { + runTest("compiler/testData/codegen/box/function/sum_mixed.kt"); + } + + @Test + @TestMetadata("sum_silly.kt") + public void testSum_silly() { + runTest("compiler/testData/codegen/box/function/sum_silly.kt"); + } + + @Test + @TestMetadata("unreachableStatementAfterReturn.kt") + public void testUnreachableStatementAfterReturn() { + runTest("compiler/testData/codegen/box/function/unreachableStatementAfterReturn.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/functions") @TestDataPath("$PROJECT_ROOT") @@ -16600,6 +18386,474 @@ public class FirWasmJsCodegenBoxTestGenerated extends AbstractFirWasmJsCodegenBo } } + @Nested + @TestMetadata("compiler/testData/codegen/box/initializers") + @TestDataPath("$PROJECT_ROOT") + public class Initializers { + @Test + public void testAllFilesPresentInInitializers() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/initializers"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true); + } + + @Test + @TestMetadata("correctOrder1.kt") + public void testCorrectOrder1() { + runTest("compiler/testData/codegen/box/initializers/correctOrder1.kt"); + } + + @Test + @TestMetadata("correctOrder2.kt") + public void testCorrectOrder2() { + runTest("compiler/testData/codegen/box/initializers/correctOrder2.kt"); + } + + @Test + @TestMetadata("initializers0.kt") + public void testInitializers0() { + runTest("compiler/testData/codegen/box/initializers/initializers0.kt"); + } + + @Test + @TestMetadata("initializers1.kt") + public void testInitializers1() { + runTest("compiler/testData/codegen/box/initializers/initializers1.kt"); + } + + @Test + @TestMetadata("initializers2.kt") + public void testInitializers2() { + runTest("compiler/testData/codegen/box/initializers/initializers2.kt"); + } + + @Test + @TestMetadata("initializers3.kt") + public void testInitializers3() { + runTest("compiler/testData/codegen/box/initializers/initializers3.kt"); + } + + @Test + @TestMetadata("initializers4.kt") + public void testInitializers4() { + runTest("compiler/testData/codegen/box/initializers/initializers4.kt"); + } + + @Test + @TestMetadata("initializers5.kt") + public void testInitializers5() { + runTest("compiler/testData/codegen/box/initializers/initializers5.kt"); + } + + @Test + @TestMetadata("initializers7.kt") + public void testInitializers7() { + runTest("compiler/testData/codegen/box/initializers/initializers7.kt"); + } + + @Test + @TestMetadata("initializers8.kt") + public void testInitializers8() { + runTest("compiler/testData/codegen/box/initializers/initializers8.kt"); + } + + @Test + @TestMetadata("multipleModules1.kt") + public void testMultipleModules1() { + runTest("compiler/testData/codegen/box/initializers/multipleModules1.kt"); + } + + @Test + @TestMetadata("object.kt") + public void testObject() { + runTest("compiler/testData/codegen/box/initializers/object.kt"); + } + + @Test + @TestMetadata("sharedVarInInitBlock.kt") + public void testSharedVarInInitBlock() { + runTest("compiler/testData/codegen/box/initializers/sharedVarInInitBlock.kt"); + } + + @Test + @TestMetadata("static_arrays.kt") + public void testStatic_arrays() { + runTest("compiler/testData/codegen/box/initializers/static_arrays.kt"); + } + + @Test + @TestMetadata("static_list.kt") + public void testStatic_list() { + runTest("compiler/testData/codegen/box/initializers/static_list.kt"); + } + + @Test + @TestMetadata("static_smallIntIdentity.kt") + public void testStatic_smallIntIdentity() { + runTest("compiler/testData/codegen/box/initializers/static_smallIntIdentity.kt"); + } + + @Test + @TestMetadata("static_varargChange.kt") + public void testStatic_varargChange() { + runTest("compiler/testData/codegen/box/initializers/static_varargChange.kt"); + } + + @Test + @TestMetadata("throw1.kt") + public void testThrow1() { + runTest("compiler/testData/codegen/box/initializers/throw1.kt"); + } + + @Test + @TestMetadata("throw2.kt") + public void testThrow2() { + runTest("compiler/testData/codegen/box/initializers/throw2.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/initializers/files") + @TestDataPath("$PROJECT_ROOT") + public class Files { + @Test + public void testAllFilesPresentInFiles() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/initializers/files"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true); + } + + @Test + @TestMetadata("globalInitedAfterAccessingFile.kt") + public void testGlobalInitedAfterAccessingFile() { + runTest("compiler/testData/codegen/box/initializers/files/globalInitedAfterAccessingFile.kt"); + } + + @Test + @TestMetadata("globalNotInitedAfterAccessingClassInternals.kt") + public void testGlobalNotInitedAfterAccessingClassInternals() { + runTest("compiler/testData/codegen/box/initializers/files/globalNotInitedAfterAccessingClassInternals.kt"); + } + + @Test + @TestMetadata("simple.kt") + public void testSimple() { + runTest("compiler/testData/codegen/box/initializers/files/simple.kt"); + } + + @Test + @TestMetadata("simpleMultiModule.kt") + public void testSimpleMultiModule() { + runTest("compiler/testData/codegen/box/initializers/files/simpleMultiModule.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/inline") + @TestDataPath("$PROJECT_ROOT") + public class Inline { + @Test + public void testAllFilesPresentInInline() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inline"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true); + } + + @Test + @TestMetadata("changingCapturedLocal.kt") + public void testChangingCapturedLocal() { + runTest("compiler/testData/codegen/box/inline/changingCapturedLocal.kt"); + } + + @Test + @TestMetadata("classDeclarationInsideInline.kt") + public void testClassDeclarationInsideInline() { + runTest("compiler/testData/codegen/box/inline/classDeclarationInsideInline.kt"); + } + + @Test + @TestMetadata("coercionToUnit.kt") + public void testCoercionToUnit() { + runTest("compiler/testData/codegen/box/inline/coercionToUnit.kt"); + } + + @Test + @TestMetadata("correctOrderFunctionReference.kt") + public void testCorrectOrderFunctionReference() { + runTest("compiler/testData/codegen/box/inline/correctOrderFunctionReference.kt"); + } + + @Test + @TestMetadata("defaultArgs.kt") + public void testDefaultArgs() { + runTest("compiler/testData/codegen/box/inline/defaultArgs.kt"); + } + + @Test + @TestMetadata("defaultArgsMultipleModules.kt") + public void testDefaultArgsMultipleModules() { + runTest("compiler/testData/codegen/box/inline/defaultArgsMultipleModules.kt"); + } + + @Test + @TestMetadata("genericFunctionReference.kt") + public void testGenericFunctionReference() { + runTest("compiler/testData/codegen/box/inline/genericFunctionReference.kt"); + } + + @Test + @TestMetadata("getClass.kt") + public void testGetClass() { + runTest("compiler/testData/codegen/box/inline/getClass.kt"); + } + + @Test + @TestMetadata("inline0.kt") + public void testInline0() { + runTest("compiler/testData/codegen/box/inline/inline0.kt"); + } + + @Test + @TestMetadata("inline1.kt") + public void testInline1() { + runTest("compiler/testData/codegen/box/inline/inline1.kt"); + } + + @Test + @TestMetadata("inline10.kt") + public void testInline10() { + runTest("compiler/testData/codegen/box/inline/inline10.kt"); + } + + @Test + @TestMetadata("inline11.kt") + public void testInline11() { + runTest("compiler/testData/codegen/box/inline/inline11.kt"); + } + + @Test + @TestMetadata("inline12.kt") + public void testInline12() { + runTest("compiler/testData/codegen/box/inline/inline12.kt"); + } + + @Test + @TestMetadata("inline13.kt") + public void testInline13() { + runTest("compiler/testData/codegen/box/inline/inline13.kt"); + } + + @Test + @TestMetadata("inline14.kt") + public void testInline14() { + runTest("compiler/testData/codegen/box/inline/inline14.kt"); + } + + @Test + @TestMetadata("inline15.kt") + public void testInline15() { + runTest("compiler/testData/codegen/box/inline/inline15.kt"); + } + + @Test + @TestMetadata("inline16.kt") + public void testInline16() { + runTest("compiler/testData/codegen/box/inline/inline16.kt"); + } + + @Test + @TestMetadata("inline17.kt") + public void testInline17() { + runTest("compiler/testData/codegen/box/inline/inline17.kt"); + } + + @Test + @TestMetadata("inline19.kt") + public void testInline19() { + runTest("compiler/testData/codegen/box/inline/inline19.kt"); + } + + @Test + @TestMetadata("inline2.kt") + public void testInline2() { + runTest("compiler/testData/codegen/box/inline/inline2.kt"); + } + + @Test + @TestMetadata("inline20.kt") + public void testInline20() { + runTest("compiler/testData/codegen/box/inline/inline20.kt"); + } + + @Test + @TestMetadata("inline21.kt") + public void testInline21() { + runTest("compiler/testData/codegen/box/inline/inline21.kt"); + } + + @Test + @TestMetadata("inline22.kt") + public void testInline22() { + runTest("compiler/testData/codegen/box/inline/inline22.kt"); + } + + @Test + @TestMetadata("inline23.kt") + public void testInline23() { + runTest("compiler/testData/codegen/box/inline/inline23.kt"); + } + + @Test + @TestMetadata("inline24.kt") + public void testInline24() { + runTest("compiler/testData/codegen/box/inline/inline24.kt"); + } + + @Test + @TestMetadata("inline25.kt") + public void testInline25() { + runTest("compiler/testData/codegen/box/inline/inline25.kt"); + } + + @Test + @TestMetadata("inline26.kt") + public void testInline26() { + runTest("compiler/testData/codegen/box/inline/inline26.kt"); + } + + @Test + @TestMetadata("inline3.kt") + public void testInline3() { + runTest("compiler/testData/codegen/box/inline/inline3.kt"); + } + + @Test + @TestMetadata("inline4.kt") + public void testInline4() { + runTest("compiler/testData/codegen/box/inline/inline4.kt"); + } + + @Test + @TestMetadata("inline5.kt") + public void testInline5() { + runTest("compiler/testData/codegen/box/inline/inline5.kt"); + } + + @Test + @TestMetadata("inline6.kt") + public void testInline6() { + runTest("compiler/testData/codegen/box/inline/inline6.kt"); + } + + @Test + @TestMetadata("inline7.kt") + public void testInline7() { + runTest("compiler/testData/codegen/box/inline/inline7.kt"); + } + + @Test + @TestMetadata("inline8.kt") + public void testInline8() { + runTest("compiler/testData/codegen/box/inline/inline8.kt"); + } + + @Test + @TestMetadata("inline9.kt") + public void testInline9() { + runTest("compiler/testData/codegen/box/inline/inline9.kt"); + } + + @Test + @TestMetadata("inlineCtor.kt") + public void testInlineCtor() { + runTest("compiler/testData/codegen/box/inline/inlineCtor.kt"); + } + + @Test + @TestMetadata("innerInlineFunCapturesOuter.kt") + public void testInnerInlineFunCapturesOuter() { + runTest("compiler/testData/codegen/box/inline/innerInlineFunCapturesOuter.kt"); + } + + @Test + @TestMetadata("lambdaAsAny.kt") + public void testLambdaAsAny() { + runTest("compiler/testData/codegen/box/inline/lambdaAsAny.kt"); + } + + @Test + @TestMetadata("lambdaInDefaultValue.kt") + public void testLambdaInDefaultValue() { + runTest("compiler/testData/codegen/box/inline/lambdaInDefaultValue.kt"); + } + + @Test + @TestMetadata("lateinitProperty.kt") + public void testLateinitProperty() { + runTest("compiler/testData/codegen/box/inline/lateinitProperty.kt"); + } + + @Test + @TestMetadata("localFunctionInInitializerBlock.kt") + public void testLocalFunctionInInitializerBlock() { + runTest("compiler/testData/codegen/box/inline/localFunctionInInitializerBlock.kt"); + } + + @Test + @TestMetadata("localObjectReturnedFromWhen.kt") + public void testLocalObjectReturnedFromWhen() { + runTest("compiler/testData/codegen/box/inline/localObjectReturnedFromWhen.kt"); + } + + @Test + @TestMetadata("propertyAccessorInline.kt") + public void testPropertyAccessorInline() { + runTest("compiler/testData/codegen/box/inline/propertyAccessorInline.kt"); + } + + @Test + @TestMetadata("redundantCoercionsCleaner.kt") + public void testRedundantCoercionsCleaner() { + runTest("compiler/testData/codegen/box/inline/redundantCoercionsCleaner.kt"); + } + + @Test + @TestMetadata("redundantCoercionsCleanerKT48876.kt") + public void testRedundantCoercionsCleanerKT48876() { + runTest("compiler/testData/codegen/box/inline/redundantCoercionsCleanerKT48876.kt"); + } + + @Test + @TestMetadata("redundantCoercionsCleanerKT49356.kt") + public void testRedundantCoercionsCleanerKT49356() { + runTest("compiler/testData/codegen/box/inline/redundantCoercionsCleanerKT49356.kt"); + } + + @Test + @TestMetadata("returnLocalClassFromBlock.kt") + public void testReturnLocalClassFromBlock() { + runTest("compiler/testData/codegen/box/inline/returnLocalClassFromBlock.kt"); + } + + @Test + @TestMetadata("sharedVar.kt") + public void testSharedVar() { + runTest("compiler/testData/codegen/box/inline/sharedVar.kt"); + } + + @Test + @TestMetadata("statementAsLastExprInBlock.kt") + public void testStatementAsLastExprInBlock() { + runTest("compiler/testData/codegen/box/inline/statementAsLastExprInBlock.kt"); + } + + @Test + @TestMetadata("twiceInlinedObject.kt") + public void testTwiceInlinedObject() { + runTest("compiler/testData/codegen/box/inline/twiceInlinedObject.kt"); + } + + @Test + @TestMetadata("typeSubstitutionInFakeOverride.kt") + public void testTypeSubstitutionInFakeOverride() { + runTest("compiler/testData/codegen/box/inline/typeSubstitutionInFakeOverride.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/inlineArgsInPlace") @TestDataPath("$PROJECT_ROOT") @@ -16676,6 +18930,40 @@ public class FirWasmJsCodegenBoxTestGenerated extends AbstractFirWasmJsCodegenBo } } + @Nested + @TestMetadata("compiler/testData/codegen/box/inlineClass") + @TestDataPath("$PROJECT_ROOT") + public class InlineClass { + @Test + public void testAllFilesPresentInInlineClass() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineClass"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true); + } + + @Test + @TestMetadata("customEquals.kt") + public void testCustomEquals() { + runTest("compiler/testData/codegen/box/inlineClass/customEquals.kt"); + } + + @Test + @TestMetadata("defaultEquals.kt") + public void testDefaultEquals() { + runTest("compiler/testData/codegen/box/inlineClass/defaultEquals.kt"); + } + + @Test + @TestMetadata("nestedInlineClasses.kt") + public void testNestedInlineClasses() { + runTest("compiler/testData/codegen/box/inlineClass/nestedInlineClasses.kt"); + } + + @Test + @TestMetadata("secondaryConstructorWithGenerics.kt") + public void testSecondaryConstructorWithGenerics() { + runTest("compiler/testData/codegen/box/inlineClass/secondaryConstructorWithGenerics.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/inlineClasses") @TestDataPath("$PROJECT_ROOT") @@ -21592,6 +23880,88 @@ public class FirWasmJsCodegenBoxTestGenerated extends AbstractFirWasmJsCodegenBo } } + @Nested + @TestMetadata("compiler/testData/codegen/box/innerClass") + @TestDataPath("$PROJECT_ROOT") + public class InnerClass { + @Test + public void testAllFilesPresentInInnerClass() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/innerClass"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true); + } + + @Test + @TestMetadata("doubleInner.kt") + public void testDoubleInner() { + runTest("compiler/testData/codegen/box/innerClass/doubleInner.kt"); + } + + @Test + @TestMetadata("generic.kt") + public void testGeneric() { + runTest("compiler/testData/codegen/box/innerClass/generic.kt"); + } + + @Test + @TestMetadata("getOuterVal.kt") + public void testGetOuterVal() { + runTest("compiler/testData/codegen/box/innerClass/getOuterVal.kt"); + } + + @Test + @TestMetadata("inheritanceMultipleModules1.kt") + public void testInheritanceMultipleModules1() { + runTest("compiler/testData/codegen/box/innerClass/inheritanceMultipleModules1.kt"); + } + + @Test + @TestMetadata("inheritanceMultipleModules2.kt") + public void testInheritanceMultipleModules2() { + runTest("compiler/testData/codegen/box/innerClass/inheritanceMultipleModules2.kt"); + } + + @Test + @TestMetadata("inheritanceMultipleModules3.kt") + public void testInheritanceMultipleModules3() { + runTest("compiler/testData/codegen/box/innerClass/inheritanceMultipleModules3.kt"); + } + + @Test + @TestMetadata("multipleModules.kt") + public void testMultipleModules() { + runTest("compiler/testData/codegen/box/innerClass/multipleModules.kt"); + } + + @Test + @TestMetadata("noPrimaryConstructor.kt") + public void testNoPrimaryConstructor() { + runTest("compiler/testData/codegen/box/innerClass/noPrimaryConstructor.kt"); + } + + @Test + @TestMetadata("qualifiedThis.kt") + public void testQualifiedThis() { + runTest("compiler/testData/codegen/box/innerClass/qualifiedThis.kt"); + } + + @Test + @TestMetadata("secondaryConstructor.kt") + public void testSecondaryConstructor() { + runTest("compiler/testData/codegen/box/innerClass/secondaryConstructor.kt"); + } + + @Test + @TestMetadata("simple.kt") + public void testSimple() { + runTest("compiler/testData/codegen/box/innerClass/simple.kt"); + } + + @Test + @TestMetadata("superOuter.kt") + public void testSuperOuter() { + runTest("compiler/testData/codegen/box/innerClass/superOuter.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/innerNested") @TestDataPath("$PROJECT_ROOT") @@ -21944,6 +24314,40 @@ public class FirWasmJsCodegenBoxTestGenerated extends AbstractFirWasmJsCodegenBo } } + @Nested + @TestMetadata("compiler/testData/codegen/box/interfaceCallsNCasts") + @TestDataPath("$PROJECT_ROOT") + public class InterfaceCallsNCasts { + @Test + public void testAllFilesPresentInInterfaceCallsNCasts() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/interfaceCallsNCasts"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true); + } + + @Test + @TestMetadata("conservativeItable.kt") + public void testConservativeItable() { + runTest("compiler/testData/codegen/box/interfaceCallsNCasts/conservativeItable.kt"); + } + + @Test + @TestMetadata("diamond.kt") + public void testDiamond() { + runTest("compiler/testData/codegen/box/interfaceCallsNCasts/diamond.kt"); + } + + @Test + @TestMetadata("finalMethod.kt") + public void testFinalMethod() { + runTest("compiler/testData/codegen/box/interfaceCallsNCasts/finalMethod.kt"); + } + + @Test + @TestMetadata("interface0.kt") + public void testInterface0() { + runTest("compiler/testData/codegen/box/interfaceCallsNCasts/interface0.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/intrinsics") @TestDataPath("$PROJECT_ROOT") @@ -23212,6 +25616,80 @@ public class FirWasmJsCodegenBoxTestGenerated extends AbstractFirWasmJsCodegenBo } } + @Nested + @TestMetadata("compiler/testData/codegen/box/kclass") + @TestDataPath("$PROJECT_ROOT") + public class Kclass { + @Test + public void testAllFilesPresentInKclass() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/kclass"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true); + } + + @Test + @TestMetadata("kClassEnumArgument.kt") + public void testKClassEnumArgument() { + runTest("compiler/testData/codegen/box/kclass/kClassEnumArgument.kt"); + } + + @Test + @TestMetadata("kclass1.kt") + public void testKclass1() { + runTest("compiler/testData/codegen/box/kclass/kclass1.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/ktype") + @TestDataPath("$PROJECT_ROOT") + public class Ktype { + @Test + public void testAllFilesPresentInKtype() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ktype"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true); + } + + @Test + @TestMetadata("ktype1_basics1.kt") + public void testKtype1_basics1() { + runTest("compiler/testData/codegen/box/ktype/ktype1_basics1.kt"); + } + + @Test + @TestMetadata("ktype1_inner.kt") + public void testKtype1_inner() { + runTest("compiler/testData/codegen/box/ktype/ktype1_inner.kt"); + } + + @Test + @TestMetadata("nonReified_class.kt") + public void testNonReified_class() { + runTest("compiler/testData/codegen/box/ktype/nonReified_class.kt"); + } + + @Test + @TestMetadata("nonReified_equality.kt") + public void testNonReified_equality() { + runTest("compiler/testData/codegen/box/ktype/nonReified_equality.kt"); + } + + @Test + @TestMetadata("nonReified_fun.kt") + public void testNonReified_fun() { + runTest("compiler/testData/codegen/box/ktype/nonReified_fun.kt"); + } + + @Test + @TestMetadata("nonReified_recursionInReified.kt") + public void testNonReified_recursionInReified() { + runTest("compiler/testData/codegen/box/ktype/nonReified_recursionInReified.kt"); + } + + @Test + @TestMetadata("nonReified_reifiedUpperBound.kt") + public void testNonReified_reifiedUpperBound() { + runTest("compiler/testData/codegen/box/ktype/nonReified_reifiedUpperBound.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/labels") @TestDataPath("$PROJECT_ROOT") @@ -23270,6 +25748,188 @@ public class FirWasmJsCodegenBoxTestGenerated extends AbstractFirWasmJsCodegenBo } } + @Nested + @TestMetadata("compiler/testData/codegen/box/lambda") + @TestDataPath("$PROJECT_ROOT") + public class Lambda { + @Test + public void testAllFilesPresentInLambda() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/lambda"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true); + } + + @Test + @TestMetadata("lambda1.kt") + public void testLambda1() { + runTest("compiler/testData/codegen/box/lambda/lambda1.kt"); + } + + @Test + @TestMetadata("lambda10.kt") + public void testLambda10() { + runTest("compiler/testData/codegen/box/lambda/lambda10.kt"); + } + + @Test + @TestMetadata("lambda11.kt") + public void testLambda11() { + runTest("compiler/testData/codegen/box/lambda/lambda11.kt"); + } + + @Test + @TestMetadata("lambda12.kt") + public void testLambda12() { + runTest("compiler/testData/codegen/box/lambda/lambda12.kt"); + } + + @Test + @TestMetadata("lambda13.kt") + public void testLambda13() { + runTest("compiler/testData/codegen/box/lambda/lambda13.kt"); + } + + @Test + @TestMetadata("lambda14.kt") + public void testLambda14() { + runTest("compiler/testData/codegen/box/lambda/lambda14.kt"); + } + + @Test + @TestMetadata("lambda2.kt") + public void testLambda2() { + runTest("compiler/testData/codegen/box/lambda/lambda2.kt"); + } + + @Test + @TestMetadata("lambda3.kt") + public void testLambda3() { + runTest("compiler/testData/codegen/box/lambda/lambda3.kt"); + } + + @Test + @TestMetadata("lambda4.kt") + public void testLambda4() { + runTest("compiler/testData/codegen/box/lambda/lambda4.kt"); + } + + @Test + @TestMetadata("lambda5.kt") + public void testLambda5() { + runTest("compiler/testData/codegen/box/lambda/lambda5.kt"); + } + + @Test + @TestMetadata("lambda6.kt") + public void testLambda6() { + runTest("compiler/testData/codegen/box/lambda/lambda6.kt"); + } + + @Test + @TestMetadata("lambda7.kt") + public void testLambda7() { + runTest("compiler/testData/codegen/box/lambda/lambda7.kt"); + } + + @Test + @TestMetadata("lambda8.kt") + public void testLambda8() { + runTest("compiler/testData/codegen/box/lambda/lambda8.kt"); + } + + @Test + @TestMetadata("lambda9.kt") + public void testLambda9() { + runTest("compiler/testData/codegen/box/lambda/lambda9.kt"); + } + + @Test + @TestMetadata("lambda_kt49360_trivial.kt") + public void testLambda_kt49360_trivial() { + runTest("compiler/testData/codegen/box/lambda/lambda_kt49360_trivial.kt"); + } + + @Test + @TestMetadata("lambda_kt49360_withFlow.kt") + public void testLambda_kt49360_withFlow() { + runTest("compiler/testData/codegen/box/lambda/lambda_kt49360_withFlow.kt"); + } + + @Test + @TestMetadata("lambda_kt49360_wrapBlock.kt") + public void testLambda_kt49360_wrapBlock() { + runTest("compiler/testData/codegen/box/lambda/lambda_kt49360_wrapBlock.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/lateinit") + @TestDataPath("$PROJECT_ROOT") + public class Lateinit { + @Test + public void testAllFilesPresentInLateinit() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/lateinit"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true); + } + + @Test + @TestMetadata("globalIsInitialized.kt") + public void testGlobalIsInitialized() { + runTest("compiler/testData/codegen/box/lateinit/globalIsInitialized.kt"); + } + + @Test + @TestMetadata("inBaseClass.kt") + public void testInBaseClass() { + runTest("compiler/testData/codegen/box/lateinit/inBaseClass.kt"); + } + + @Test + @TestMetadata("initialized.kt") + public void testInitialized() { + runTest("compiler/testData/codegen/box/lateinit/initialized.kt"); + } + + @Test + @TestMetadata("innerIsInitialized.kt") + public void testInnerIsInitialized() { + runTest("compiler/testData/codegen/box/lateinit/innerIsInitialized.kt"); + } + + @Test + @TestMetadata("isInitialized.kt") + public void testIsInitialized() { + runTest("compiler/testData/codegen/box/lateinit/isInitialized.kt"); + } + + @Test + @TestMetadata("localCapturedInitialized.kt") + public void testLocalCapturedInitialized() { + runTest("compiler/testData/codegen/box/lateinit/localCapturedInitialized.kt"); + } + + @Test + @TestMetadata("localCapturedNotInitialized.kt") + public void testLocalCapturedNotInitialized() { + runTest("compiler/testData/codegen/box/lateinit/localCapturedNotInitialized.kt"); + } + + @Test + @TestMetadata("localInitialized.kt") + public void testLocalInitialized() { + runTest("compiler/testData/codegen/box/lateinit/localInitialized.kt"); + } + + @Test + @TestMetadata("localNotInitialized.kt") + public void testLocalNotInitialized() { + runTest("compiler/testData/codegen/box/lateinit/localNotInitialized.kt"); + } + + @Test + @TestMetadata("notInitialized.kt") + public void testNotInitialized() { + runTest("compiler/testData/codegen/box/lateinit/notInitialized.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/lazyCodegen") @TestDataPath("$PROJECT_ROOT") @@ -23398,6 +26058,98 @@ public class FirWasmJsCodegenBoxTestGenerated extends AbstractFirWasmJsCodegenBo } } + @Nested + @TestMetadata("compiler/testData/codegen/box/literals") + @TestDataPath("$PROJECT_ROOT") + public class Literals { + @Test + public void testAllFilesPresentInLiterals() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/literals"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true); + } + + @Test + @TestMetadata("listof1.kt") + public void testListof1() { + runTest("compiler/testData/codegen/box/literals/listof1.kt"); + } + + @Test + @TestMetadata("strdedup1.kt") + public void testStrdedup1() { + runTest("compiler/testData/codegen/box/literals/strdedup1.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/localClass") + @TestDataPath("$PROJECT_ROOT") + public class LocalClass { + @Test + public void testAllFilesPresentInLocalClass() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/localClass"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true); + } + + @Test + @TestMetadata("innerTakesCapturedFromOuter.kt") + public void testInnerTakesCapturedFromOuter() { + runTest("compiler/testData/codegen/box/localClass/innerTakesCapturedFromOuter.kt"); + } + + @Test + @TestMetadata("innerWithCapture.kt") + public void testInnerWithCapture() { + runTest("compiler/testData/codegen/box/localClass/innerWithCapture.kt"); + } + + @Test + @TestMetadata("localFunctionCallFromLocalClass.kt") + public void testLocalFunctionCallFromLocalClass() { + runTest("compiler/testData/codegen/box/localClass/localFunctionCallFromLocalClass.kt"); + } + + @Test + @TestMetadata("localFunctionInLocalClass.kt") + public void testLocalFunctionInLocalClass() { + runTest("compiler/testData/codegen/box/localClass/localFunctionInLocalClass.kt"); + } + + @Test + @TestMetadata("localHierarchy.kt") + public void testLocalHierarchy() { + runTest("compiler/testData/codegen/box/localClass/localHierarchy.kt"); + } + + @Test + @TestMetadata("noPrimaryConstructor.kt") + public void testNoPrimaryConstructor() { + runTest("compiler/testData/codegen/box/localClass/noPrimaryConstructor.kt"); + } + + @Test + @TestMetadata("objectExpressionInInitializer.kt") + public void testObjectExpressionInInitializer() { + runTest("compiler/testData/codegen/box/localClass/objectExpressionInInitializer.kt"); + } + + @Test + @TestMetadata("objectExpressionInProperty.kt") + public void testObjectExpressionInProperty() { + runTest("compiler/testData/codegen/box/localClass/objectExpressionInProperty.kt"); + } + + @Test + @TestMetadata("tryCatch.kt") + public void testTryCatch() { + runTest("compiler/testData/codegen/box/localClass/tryCatch.kt"); + } + + @Test + @TestMetadata("virtualCallFromConstructor.kt") + public void testVirtualCallFromConstructor() { + runTest("compiler/testData/codegen/box/localClass/virtualCallFromConstructor.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/localClasses") @TestDataPath("$PROJECT_ROOT") @@ -23648,6 +26400,38 @@ public class FirWasmJsCodegenBoxTestGenerated extends AbstractFirWasmJsCodegenBo } } + @Nested + @TestMetadata("compiler/testData/codegen/box/localEscapeAnalysis") + @TestDataPath("$PROJECT_ROOT") + public class LocalEscapeAnalysis { + @Test + public void testAllFilesPresentInLocalEscapeAnalysis() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/localEscapeAnalysis"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true); + } + + @Test + @TestMetadata("arraysFieldWrite.kt") + public void testArraysFieldWrite() { + runTest("compiler/testData/codegen/box/localEscapeAnalysis/arraysFieldWrite.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/lower") + @TestDataPath("$PROJECT_ROOT") + public class Lower { + @Test + public void testAllFilesPresentInLower() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/lower"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true); + } + + @Test + @TestMetadata("localDelegatedProperty.kt") + public void testLocalDelegatedProperty() { + runTest("compiler/testData/codegen/box/lower/localDelegatedProperty.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/mangling") @TestDataPath("$PROJECT_ROOT") @@ -23675,6 +26459,12 @@ public class FirWasmJsCodegenBoxTestGenerated extends AbstractFirWasmJsCodegenBo runTest("compiler/testData/codegen/box/mangling/internalOverrideSuperCall.kt"); } + @Test + @TestMetadata("multipleConstructors.kt") + public void testMultipleConstructors() { + runTest("compiler/testData/codegen/box/mangling/multipleConstructors.kt"); + } + @Test @TestMetadata("parentheses.kt") public void testParentheses() { @@ -25196,6 +27986,98 @@ public class FirWasmJsCodegenBoxTestGenerated extends AbstractFirWasmJsCodegenBo } } + @Nested + @TestMetadata("compiler/testData/codegen/box/object") + @TestDataPath("$PROJECT_ROOT") + public class Object { + @Test + public void testAllFilesPresentInObject() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/object"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true); + } + + @Test + @TestMetadata("constructor0.kt") + public void testConstructor0() { + runTest("compiler/testData/codegen/box/object/constructor0.kt"); + } + + @Test + @TestMetadata("fields.kt") + public void testFields() { + runTest("compiler/testData/codegen/box/object/fields.kt"); + } + + @Test + @TestMetadata("fields1.kt") + public void testFields1() { + runTest("compiler/testData/codegen/box/object/fields1.kt"); + } + + @Test + @TestMetadata("fields2.kt") + public void testFields2() { + runTest("compiler/testData/codegen/box/object/fields2.kt"); + } + + @Test + @TestMetadata("globalInitializer.kt") + public void testGlobalInitializer() { + runTest("compiler/testData/codegen/box/object/globalInitializer.kt"); + } + + @Test + @TestMetadata("init0.kt") + public void testInit0() { + runTest("compiler/testData/codegen/box/object/init0.kt"); + } + + @Test + @TestMetadata("initialization.kt") + public void testInitialization() { + runTest("compiler/testData/codegen/box/object/initialization.kt"); + } + + @Test + @TestMetadata("initialization1.kt") + public void testInitialization1() { + runTest("compiler/testData/codegen/box/object/initialization1.kt"); + } + + @Test + @TestMetadata("method_call.kt") + public void testMethod_call() { + runTest("compiler/testData/codegen/box/object/method_call.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/objectExpression") + @TestDataPath("$PROJECT_ROOT") + public class ObjectExpression { + @Test + public void testAllFilesPresentInObjectExpression() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/objectExpression"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true); + } + + @Test + @TestMetadata("expr1.kt") + public void testExpr1() { + runTest("compiler/testData/codegen/box/objectExpression/expr1.kt"); + } + + @Test + @TestMetadata("expr2.kt") + public void testExpr2() { + runTest("compiler/testData/codegen/box/objectExpression/expr2.kt"); + } + + @Test + @TestMetadata("expr3.kt") + public void testExpr3() { + runTest("compiler/testData/codegen/box/objectExpression/expr3.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/objectIntrinsics") @TestDataPath("$PROJECT_ROOT") @@ -27964,6 +30846,64 @@ public class FirWasmJsCodegenBoxTestGenerated extends AbstractFirWasmJsCodegenBo } } + @Nested + @TestMetadata("compiler/testData/codegen/box/propertyCallableReference") + @TestDataPath("$PROJECT_ROOT") + public class PropertyCallableReference { + @Test + public void testAllFilesPresentInPropertyCallableReference() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/propertyCallableReference"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true); + } + + @Test + @TestMetadata("dynamicReceiver.kt") + public void testDynamicReceiver() { + runTest("compiler/testData/codegen/box/propertyCallableReference/dynamicReceiver.kt"); + } + + @Test + @TestMetadata("multipleModules.kt") + public void testMultipleModules() { + runTest("compiler/testData/codegen/box/propertyCallableReference/multipleModules.kt"); + } + + @Test + @TestMetadata("valClass.kt") + public void testValClass() { + runTest("compiler/testData/codegen/box/propertyCallableReference/valClass.kt"); + } + + @Test + @TestMetadata("valExtension.kt") + public void testValExtension() { + runTest("compiler/testData/codegen/box/propertyCallableReference/valExtension.kt"); + } + + @Test + @TestMetadata("valModule.kt") + public void testValModule() { + runTest("compiler/testData/codegen/box/propertyCallableReference/valModule.kt"); + } + + @Test + @TestMetadata("varClass.kt") + public void testVarClass() { + runTest("compiler/testData/codegen/box/propertyCallableReference/varClass.kt"); + } + + @Test + @TestMetadata("varExtension.kt") + public void testVarExtension() { + runTest("compiler/testData/codegen/box/propertyCallableReference/varExtension.kt"); + } + + @Test + @TestMetadata("varModule.kt") + public void testVarModule() { + runTest("compiler/testData/codegen/box/propertyCallableReference/varModule.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/publishedApi") @TestDataPath("$PROJECT_ROOT") @@ -35614,6 +38554,58 @@ public class FirWasmJsCodegenBoxTestGenerated extends AbstractFirWasmJsCodegenBo } } + @Nested + @TestMetadata("compiler/testData/codegen/box/serialization") + @TestDataPath("$PROJECT_ROOT") + public class Serialization { + @Test + public void testAllFilesPresentInSerialization() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/serialization"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true); + } + + @Test + @TestMetadata("deserializedMembers.kt") + public void testDeserializedMembers() { + runTest("compiler/testData/codegen/box/serialization/deserializedMembers.kt"); + } + + @Test + @TestMetadata("serializedCatch.kt") + public void testSerializedCatch() { + runTest("compiler/testData/codegen/box/serialization/serializedCatch.kt"); + } + + @Test + @TestMetadata("serializedCharConstant.kt") + public void testSerializedCharConstant() { + runTest("compiler/testData/codegen/box/serialization/serializedCharConstant.kt"); + } + + @Test + @TestMetadata("serializedDefaultArgs.kt") + public void testSerializedDefaultArgs() { + runTest("compiler/testData/codegen/box/serialization/serializedDefaultArgs.kt"); + } + + @Test + @TestMetadata("serializedDoWhile.kt") + public void testSerializedDoWhile() { + runTest("compiler/testData/codegen/box/serialization/serializedDoWhile.kt"); + } + + @Test + @TestMetadata("serializedEnumOrdinal.kt") + public void testSerializedEnumOrdinal() { + runTest("compiler/testData/codegen/box/serialization/serializedEnumOrdinal.kt"); + } + + @Test + @TestMetadata("serializedVararg.kt") + public void testSerializedVararg() { + runTest("compiler/testData/codegen/box/serialization/serializedVararg.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/size") @TestDataPath("$PROJECT_ROOT") @@ -36136,6 +39128,22 @@ public class FirWasmJsCodegenBoxTestGenerated extends AbstractFirWasmJsCodegenBo } } + @Nested + @TestMetadata("compiler/testData/codegen/box/stringTrim") + @TestDataPath("$PROJECT_ROOT") + public class StringTrim { + @Test + public void testAllFilesPresentInStringTrim() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/stringTrim"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true); + } + + @Test + @TestMetadata("stringTrim.kt") + public void testStringTrim() { + runTest("compiler/testData/codegen/box/stringTrim/stringTrim.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/strings") @TestDataPath("$PROJECT_ROOT") @@ -37196,6 +40204,142 @@ public class FirWasmJsCodegenBoxTestGenerated extends AbstractFirWasmJsCodegenBo } } + @Nested + @TestMetadata("compiler/testData/codegen/box/try") + @TestDataPath("$PROJECT_ROOT") + public class Try { + @Test + public void testAllFilesPresentInTry() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/try"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true); + } + + @Test + @TestMetadata("catch3.kt") + public void testCatch3() { + runTest("compiler/testData/codegen/box/try/catch3.kt"); + } + + @Test + @TestMetadata("catch4.kt") + public void testCatch4() { + runTest("compiler/testData/codegen/box/try/catch4.kt"); + } + + @Test + @TestMetadata("catch5.kt") + public void testCatch5() { + runTest("compiler/testData/codegen/box/try/catch5.kt"); + } + + @Test + @TestMetadata("catch6.kt") + public void testCatch6() { + runTest("compiler/testData/codegen/box/try/catch6.kt"); + } + + @Test + @TestMetadata("catch8.kt") + public void testCatch8() { + runTest("compiler/testData/codegen/box/try/catch8.kt"); + } + + @Test + @TestMetadata("finally1.kt") + public void testFinally1() { + runTest("compiler/testData/codegen/box/try/finally1.kt"); + } + + @Test + @TestMetadata("finally10.kt") + public void testFinally10() { + runTest("compiler/testData/codegen/box/try/finally10.kt"); + } + + @Test + @TestMetadata("finally11.kt") + public void testFinally11() { + runTest("compiler/testData/codegen/box/try/finally11.kt"); + } + + @Test + @TestMetadata("finally2.kt") + public void testFinally2() { + runTest("compiler/testData/codegen/box/try/finally2.kt"); + } + + @Test + @TestMetadata("finally3.kt") + public void testFinally3() { + runTest("compiler/testData/codegen/box/try/finally3.kt"); + } + + @Test + @TestMetadata("finally4.kt") + public void testFinally4() { + runTest("compiler/testData/codegen/box/try/finally4.kt"); + } + + @Test + @TestMetadata("finally5.kt") + public void testFinally5() { + runTest("compiler/testData/codegen/box/try/finally5.kt"); + } + + @Test + @TestMetadata("finally6.kt") + public void testFinally6() { + runTest("compiler/testData/codegen/box/try/finally6.kt"); + } + + @Test + @TestMetadata("finally7.kt") + public void testFinally7() { + runTest("compiler/testData/codegen/box/try/finally7.kt"); + } + + @Test + @TestMetadata("finally8.kt") + public void testFinally8() { + runTest("compiler/testData/codegen/box/try/finally8.kt"); + } + + @Test + @TestMetadata("finally9.kt") + public void testFinally9() { + runTest("compiler/testData/codegen/box/try/finally9.kt"); + } + + @Test + @TestMetadata("returnsDifferentTypes.kt") + public void testReturnsDifferentTypes() { + runTest("compiler/testData/codegen/box/try/returnsDifferentTypes.kt"); + } + + @Test + @TestMetadata("try1.kt") + public void testTry1() { + runTest("compiler/testData/codegen/box/try/try1.kt"); + } + + @Test + @TestMetadata("try2.kt") + public void testTry2() { + runTest("compiler/testData/codegen/box/try/try2.kt"); + } + + @Test + @TestMetadata("try3.kt") + public void testTry3() { + runTest("compiler/testData/codegen/box/try/try3.kt"); + } + + @Test + @TestMetadata("try4.kt") + public void testTry4() { + runTest("compiler/testData/codegen/box/try/try4.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/typeInfo") @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 046c85a4179..07d30db6ff7 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 @@ -41,6 +41,12 @@ public class K1WasmCodegenBoxTestGenerated extends AbstractK1WasmCodegenBoxTest runTest("compiler/testData/codegen/box/annotations/annotationWithDefaultArgInDifferentModule.kt"); } + @Test + @TestMetadata("annotations0.kt") + public void testAnnotations0() { + runTest("compiler/testData/codegen/box/annotations/annotations0.kt"); + } + @Test @TestMetadata("genericAnnotations.kt") public void testGenericAnnotations() { @@ -318,6 +324,82 @@ public class K1WasmCodegenBoxTestGenerated extends AbstractK1WasmCodegenBoxTest } } + @Nested + @TestMetadata("compiler/testData/codegen/box/arithmetic") + @TestDataPath("$PROJECT_ROOT") + public class Arithmetic { + @Test + public void testAllFilesPresentInArithmetic() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/arithmetic"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true); + } + + @Test + @TestMetadata("basic_charConversions.kt") + public void testBasic_charConversions() { + runTest("compiler/testData/codegen/box/arithmetic/basic_charConversions.kt"); + } + + @Test + @TestMetadata("basic_charCornerCases.kt") + public void testBasic_charCornerCases() { + runTest("compiler/testData/codegen/box/arithmetic/basic_charCornerCases.kt"); + } + + @Test + @TestMetadata("basic_compareIntToFloat.kt") + public void testBasic_compareIntToFloat() { + runTest("compiler/testData/codegen/box/arithmetic/basic_compareIntToFloat.kt"); + } + + @Test + @TestMetadata("basic_doubleBasic.kt") + public void testBasic_doubleBasic() { + runTest("compiler/testData/codegen/box/arithmetic/basic_doubleBasic.kt"); + } + + @Test + @TestMetadata("basic_integralToFloat.kt") + public void testBasic_integralToFloat() { + runTest("compiler/testData/codegen/box/arithmetic/basic_integralToFloat.kt"); + } + + @Test + @TestMetadata("basic_kt37412.kt") + public void testBasic_kt37412() { + runTest("compiler/testData/codegen/box/arithmetic/basic_kt37412.kt"); + } + + @Test + @TestMetadata("basic_selfComparison.kt") + public void testBasic_selfComparison() { + runTest("compiler/testData/codegen/box/arithmetic/basic_selfComparison.kt"); + } + + @Test + @TestMetadata("basic_shifts.kt") + public void testBasic_shifts() { + runTest("compiler/testData/codegen/box/arithmetic/basic_shifts.kt"); + } + + @Test + @TestMetadata("basic_uintTests.kt") + public void testBasic_uintTests() { + runTest("compiler/testData/codegen/box/arithmetic/basic_uintTests.kt"); + } + + @Test + @TestMetadata("division.kt") + public void testDivision() { + runTest("compiler/testData/codegen/box/arithmetic/division.kt"); + } + + @Test + @TestMetadata("github1856.kt") + public void testGithub1856() { + runTest("compiler/testData/codegen/box/arithmetic/github1856.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/arrays") @TestDataPath("$PROJECT_ROOT") @@ -972,6 +1054,302 @@ public class K1WasmCodegenBoxTestGenerated extends AbstractK1WasmCodegenBoxTest } } + @Nested + @TestMetadata("compiler/testData/codegen/box/basics") + @TestDataPath("$PROJECT_ROOT") + public class Basics { + @Test + public void testAllFilesPresentInBasics() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/basics"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true); + } + + @Test + @TestMetadata("array_to_any.kt") + public void testArray_to_any() { + runTest("compiler/testData/codegen/box/basics/array_to_any.kt"); + } + + @Test + @TestMetadata("canonical_name.kt") + public void testCanonical_name() { + runTest("compiler/testData/codegen/box/basics/canonical_name.kt"); + } + + @Test + @TestMetadata("cast_null.kt") + public void testCast_null() { + runTest("compiler/testData/codegen/box/basics/cast_null.kt"); + } + + @Test + @TestMetadata("cast_simple.kt") + public void testCast_simple() { + runTest("compiler/testData/codegen/box/basics/cast_simple.kt"); + } + + @Test + @TestMetadata("check_type.kt") + public void testCheck_type() { + runTest("compiler/testData/codegen/box/basics/check_type.kt"); + } + + @Test + @TestMetadata("companion.kt") + public void testCompanion() { + runTest("compiler/testData/codegen/box/basics/companion.kt"); + } + + @Test + @TestMetadata("concatenation.kt") + public void testConcatenation() { + runTest("compiler/testData/codegen/box/basics/concatenation.kt"); + } + + @Test + @TestMetadata("const_infinity.kt") + public void testConst_infinity() { + runTest("compiler/testData/codegen/box/basics/const_infinity.kt"); + } + + @Test + @TestMetadata("expression_as_statement.kt") + public void testExpression_as_statement() { + runTest("compiler/testData/codegen/box/basics/expression_as_statement.kt"); + } + + @Test + @TestMetadata("k42000_1.kt") + public void testK42000_1() { + runTest("compiler/testData/codegen/box/basics/k42000_1.kt"); + } + + @Test + @TestMetadata("k42000_2.kt") + public void testK42000_2() { + runTest("compiler/testData/codegen/box/basics/k42000_2.kt"); + } + + @Test + @TestMetadata("local_variable.kt") + public void testLocal_variable() { + runTest("compiler/testData/codegen/box/basics/local_variable.kt"); + } + + @Test + @TestMetadata("null_check.kt") + public void testNull_check() { + runTest("compiler/testData/codegen/box/basics/null_check.kt"); + } + + @Test + @TestMetadata("safe_cast.kt") + public void testSafe_cast() { + runTest("compiler/testData/codegen/box/basics/safe_cast.kt"); + } + + @Test + @TestMetadata("spread_operator_0.kt") + public void testSpread_operator_0() { + runTest("compiler/testData/codegen/box/basics/spread_operator_0.kt"); + } + + @Test + @TestMetadata("statements0.kt") + public void testStatements0() { + runTest("compiler/testData/codegen/box/basics/statements0.kt"); + } + + @Test + @TestMetadata("superFunCall.kt") + public void testSuperFunCall() { + runTest("compiler/testData/codegen/box/basics/superFunCall.kt"); + } + + @Test + @TestMetadata("superGetterCall.kt") + public void testSuperGetterCall() { + runTest("compiler/testData/codegen/box/basics/superGetterCall.kt"); + } + + @Test + @TestMetadata("superSetterCall.kt") + public void testSuperSetterCall() { + runTest("compiler/testData/codegen/box/basics/superSetterCall.kt"); + } + + @Test + @TestMetadata("typealias1.kt") + public void testTypealias1() { + runTest("compiler/testData/codegen/box/basics/typealias1.kt"); + } + + @Test + @TestMetadata("unchecked_cast1.kt") + public void testUnchecked_cast1() { + runTest("compiler/testData/codegen/box/basics/unchecked_cast1.kt"); + } + + @Test + @TestMetadata("unchecked_cast2.kt") + public void testUnchecked_cast2() { + runTest("compiler/testData/codegen/box/basics/unchecked_cast2.kt"); + } + + @Test + @TestMetadata("unchecked_cast3.kt") + public void testUnchecked_cast3() { + runTest("compiler/testData/codegen/box/basics/unchecked_cast3.kt"); + } + + @Test + @TestMetadata("unchecked_cast4.kt") + public void testUnchecked_cast4() { + runTest("compiler/testData/codegen/box/basics/unchecked_cast4.kt"); + } + + @Test + @TestMetadata("unit1.kt") + public void testUnit1() { + runTest("compiler/testData/codegen/box/basics/unit1.kt"); + } + + @Test + @TestMetadata("unit2.kt") + public void testUnit2() { + runTest("compiler/testData/codegen/box/basics/unit2.kt"); + } + + @Test + @TestMetadata("unit3.kt") + public void testUnit3() { + runTest("compiler/testData/codegen/box/basics/unit3.kt"); + } + + @Test + @TestMetadata("unit4.kt") + public void testUnit4() { + runTest("compiler/testData/codegen/box/basics/unit4.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/bce") + @TestDataPath("$PROJECT_ROOT") + public class Bce { + @Test + public void testAllFilesPresentInBce() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/bce"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true); + } + + @Test + @TestMetadata("bceCases.kt") + public void testBceCases() { + runTest("compiler/testData/codegen/box/bce/bceCases.kt"); + } + + @Test + @TestMetadata("customGetter.kt") + public void testCustomGetter() { + runTest("compiler/testData/codegen/box/bce/customGetter.kt"); + } + + @Test + @TestMetadata("delegatedProperty.kt") + public void testDelegatedProperty() { + runTest("compiler/testData/codegen/box/bce/delegatedProperty.kt"); + } + + @Test + @TestMetadata("differentArrays.kt") + public void testDifferentArrays() { + runTest("compiler/testData/codegen/box/bce/differentArrays.kt"); + } + + @Test + @TestMetadata("differentObjects.kt") + public void testDifferentObjects() { + runTest("compiler/testData/codegen/box/bce/differentObjects.kt"); + } + + @Test + @TestMetadata("forDownToSize.kt") + public void testForDownToSize() { + runTest("compiler/testData/codegen/box/bce/forDownToSize.kt"); + } + + @Test + @TestMetadata("forDownToWithStep.kt") + public void testForDownToWithStep() { + runTest("compiler/testData/codegen/box/bce/forDownToWithStep.kt"); + } + + @Test + @TestMetadata("forEachIndexedTest.kt") + public void testForEachIndexedTest() { + runTest("compiler/testData/codegen/box/bce/forEachIndexedTest.kt"); + } + + @Test + @TestMetadata("forEachIndicies.kt") + public void testForEachIndicies() { + runTest("compiler/testData/codegen/box/bce/forEachIndicies.kt"); + } + + @Test + @TestMetadata("forIndiciesWithStep.kt") + public void testForIndiciesWithStep() { + runTest("compiler/testData/codegen/box/bce/forIndiciesWithStep.kt"); + } + + @Test + @TestMetadata("forRangeToSize.kt") + public void testForRangeToSize() { + runTest("compiler/testData/codegen/box/bce/forRangeToSize.kt"); + } + + @Test + @TestMetadata("forRangeToWithStep.kt") + public void testForRangeToWithStep() { + runTest("compiler/testData/codegen/box/bce/forRangeToWithStep.kt"); + } + + @Test + @TestMetadata("forReversed.kt") + public void testForReversed() { + runTest("compiler/testData/codegen/box/bce/forReversed.kt"); + } + + @Test + @TestMetadata("forUntilSize.kt") + public void testForUntilSize() { + runTest("compiler/testData/codegen/box/bce/forUntilSize.kt"); + } + + @Test + @TestMetadata("forUntilWithStep.kt") + public void testForUntilWithStep() { + runTest("compiler/testData/codegen/box/bce/forUntilWithStep.kt"); + } + + @Test + @TestMetadata("forWithIndex.kt") + public void testForWithIndex() { + runTest("compiler/testData/codegen/box/bce/forWithIndex.kt"); + } + + @Test + @TestMetadata("inheritance.kt") + public void testInheritance() { + runTest("compiler/testData/codegen/box/bce/inheritance.kt"); + } + + @Test + @TestMetadata("withGetter.kt") + public void testWithGetter() { + runTest("compiler/testData/codegen/box/bce/withGetter.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/binaryOp") @TestDataPath("$PROJECT_ROOT") @@ -1138,6 +1516,124 @@ public class K1WasmCodegenBoxTestGenerated extends AbstractK1WasmCodegenBoxTest } } + @Nested + @TestMetadata("compiler/testData/codegen/box/boxing") + @TestDataPath("$PROJECT_ROOT") + public class Boxing { + @Test + public void testAllFilesPresentInBoxing() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/boxing"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true); + } + + @Test + @TestMetadata("box_cache0.kt") + public void testBox_cache0() { + runTest("compiler/testData/codegen/box/boxing/box_cache0.kt"); + } + + @Test + @TestMetadata("boxing0.kt") + public void testBoxing0() { + runTest("compiler/testData/codegen/box/boxing/boxing0.kt"); + } + + @Test + @TestMetadata("boxing1.kt") + public void testBoxing1() { + runTest("compiler/testData/codegen/box/boxing/boxing1.kt"); + } + + @Test + @TestMetadata("boxing10.kt") + public void testBoxing10() { + runTest("compiler/testData/codegen/box/boxing/boxing10.kt"); + } + + @Test + @TestMetadata("boxing11.kt") + public void testBoxing11() { + runTest("compiler/testData/codegen/box/boxing/boxing11.kt"); + } + + @Test + @TestMetadata("boxing12.kt") + public void testBoxing12() { + runTest("compiler/testData/codegen/box/boxing/boxing12.kt"); + } + + @Test + @TestMetadata("boxing13.kt") + public void testBoxing13() { + runTest("compiler/testData/codegen/box/boxing/boxing13.kt"); + } + + @Test + @TestMetadata("boxing14.kt") + public void testBoxing14() { + runTest("compiler/testData/codegen/box/boxing/boxing14.kt"); + } + + @Test + @TestMetadata("boxing15.kt") + public void testBoxing15() { + runTest("compiler/testData/codegen/box/boxing/boxing15.kt"); + } + + @Test + @TestMetadata("boxing2.kt") + public void testBoxing2() { + runTest("compiler/testData/codegen/box/boxing/boxing2.kt"); + } + + @Test + @TestMetadata("boxing3.kt") + public void testBoxing3() { + runTest("compiler/testData/codegen/box/boxing/boxing3.kt"); + } + + @Test + @TestMetadata("boxing4.kt") + public void testBoxing4() { + runTest("compiler/testData/codegen/box/boxing/boxing4.kt"); + } + + @Test + @TestMetadata("boxing5.kt") + public void testBoxing5() { + runTest("compiler/testData/codegen/box/boxing/boxing5.kt"); + } + + @Test + @TestMetadata("boxing6.kt") + public void testBoxing6() { + runTest("compiler/testData/codegen/box/boxing/boxing6.kt"); + } + + @Test + @TestMetadata("boxing7.kt") + public void testBoxing7() { + runTest("compiler/testData/codegen/box/boxing/boxing7.kt"); + } + + @Test + @TestMetadata("boxing8.kt") + public void testBoxing8() { + runTest("compiler/testData/codegen/box/boxing/boxing8.kt"); + } + + @Test + @TestMetadata("boxing9.kt") + public void testBoxing9() { + runTest("compiler/testData/codegen/box/boxing/boxing9.kt"); + } + + @Test + @TestMetadata("kt53100_casts.kt") + public void testKt53100_casts() { + runTest("compiler/testData/codegen/box/boxing/kt53100_casts.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/boxingOptimization") @TestDataPath("$PROJECT_ROOT") @@ -1382,6 +1878,88 @@ public class K1WasmCodegenBoxTestGenerated extends AbstractK1WasmCodegenBoxTest } } + @Nested + @TestMetadata("compiler/testData/codegen/box/branching") + @TestDataPath("$PROJECT_ROOT") + public class Branching { + @Test + @TestMetadata("advanced_when2.kt") + public void testAdvanced_when2() { + runTest("compiler/testData/codegen/box/branching/advanced_when2.kt"); + } + + @Test + @TestMetadata("advanced_when5.kt") + public void testAdvanced_when5() { + runTest("compiler/testData/codegen/box/branching/advanced_when5.kt"); + } + + @Test + public void testAllFilesPresentInBranching() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/branching"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true); + } + + @Test + @TestMetadata("if_else.kt") + public void testIf_else() { + runTest("compiler/testData/codegen/box/branching/if_else.kt"); + } + + @Test + @TestMetadata("when2.kt") + public void testWhen2() { + runTest("compiler/testData/codegen/box/branching/when2.kt"); + } + + @Test + @TestMetadata("when4.kt") + public void testWhen4() { + runTest("compiler/testData/codegen/box/branching/when4.kt"); + } + + @Test + @TestMetadata("when5.kt") + public void testWhen5() { + runTest("compiler/testData/codegen/box/branching/when5.kt"); + } + + @Test + @TestMetadata("when6.kt") + public void testWhen6() { + runTest("compiler/testData/codegen/box/branching/when6.kt"); + } + + @Test + @TestMetadata("when7.kt") + public void testWhen7() { + runTest("compiler/testData/codegen/box/branching/when7.kt"); + } + + @Test + @TestMetadata("when8.kt") + public void testWhen8() { + runTest("compiler/testData/codegen/box/branching/when8.kt"); + } + + @Test + @TestMetadata("when9.kt") + public void testWhen9() { + runTest("compiler/testData/codegen/box/branching/when9.kt"); + } + + @Test + @TestMetadata("when_through.kt") + public void testWhen_through() { + runTest("compiler/testData/codegen/box/branching/when_through.kt"); + } + + @Test + @TestMetadata("when_with_try1.kt") + public void testWhen_with_try1() { + runTest("compiler/testData/codegen/box/branching/when_with_try1.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/bridges") @TestDataPath("$PROJECT_ROOT") @@ -1625,6 +2203,18 @@ public class K1WasmCodegenBoxTestGenerated extends AbstractK1WasmCodegenBoxTest runTest("compiler/testData/codegen/box/bridges/methodWithDefaultParameter.kt"); } + @Test + @TestMetadata("multipleModules1.kt") + public void testMultipleModules1() { + runTest("compiler/testData/codegen/box/bridges/multipleModules1.kt"); + } + + @Test + @TestMetadata("multipleModules2.kt") + public void testMultipleModules2() { + runTest("compiler/testData/codegen/box/bridges/multipleModules2.kt"); + } + @Test @TestMetadata("nestedClassTypeParameters.kt") public void testNestedClassTypeParameters() { @@ -1685,6 +2275,12 @@ public class K1WasmCodegenBoxTestGenerated extends AbstractK1WasmCodegenBoxTest runTest("compiler/testData/codegen/box/bridges/propertySetter.kt"); } + @Test + @TestMetadata("returnTypeSignature.kt") + public void testReturnTypeSignature() { + runTest("compiler/testData/codegen/box/bridges/returnTypeSignature.kt"); + } + @Test @TestMetadata("simple.kt") public void testSimple() { @@ -1727,12 +2323,138 @@ public class K1WasmCodegenBoxTestGenerated extends AbstractK1WasmCodegenBoxTest runTest("compiler/testData/codegen/box/bridges/simpleUpperBound.kt"); } + @Test + @TestMetadata("special.kt") + public void testSpecial() { + runTest("compiler/testData/codegen/box/bridges/special.kt"); + } + + @Test + @TestMetadata("specialGeneric.kt") + public void testSpecialGeneric() { + runTest("compiler/testData/codegen/box/bridges/specialGeneric.kt"); + } + @Test @TestMetadata("strListContains.kt") public void testStrListContains() { runTest("compiler/testData/codegen/box/bridges/strListContains.kt"); } + @Test + @TestMetadata("test0.kt") + public void testTest0() { + runTest("compiler/testData/codegen/box/bridges/test0.kt"); + } + + @Test + @TestMetadata("test1.kt") + public void testTest1() { + runTest("compiler/testData/codegen/box/bridges/test1.kt"); + } + + @Test + @TestMetadata("test10.kt") + public void testTest10() { + runTest("compiler/testData/codegen/box/bridges/test10.kt"); + } + + @Test + @TestMetadata("test11.kt") + public void testTest11() { + runTest("compiler/testData/codegen/box/bridges/test11.kt"); + } + + @Test + @TestMetadata("test12.kt") + public void testTest12() { + runTest("compiler/testData/codegen/box/bridges/test12.kt"); + } + + @Test + @TestMetadata("test13.kt") + public void testTest13() { + runTest("compiler/testData/codegen/box/bridges/test13.kt"); + } + + @Test + @TestMetadata("test14.kt") + public void testTest14() { + runTest("compiler/testData/codegen/box/bridges/test14.kt"); + } + + @Test + @TestMetadata("test15.kt") + public void testTest15() { + runTest("compiler/testData/codegen/box/bridges/test15.kt"); + } + + @Test + @TestMetadata("test16.kt") + public void testTest16() { + runTest("compiler/testData/codegen/box/bridges/test16.kt"); + } + + @Test + @TestMetadata("test17.kt") + public void testTest17() { + runTest("compiler/testData/codegen/box/bridges/test17.kt"); + } + + @Test + @TestMetadata("test18.kt") + public void testTest18() { + runTest("compiler/testData/codegen/box/bridges/test18.kt"); + } + + @Test + @TestMetadata("test2.kt") + public void testTest2() { + runTest("compiler/testData/codegen/box/bridges/test2.kt"); + } + + @Test + @TestMetadata("test3.kt") + public void testTest3() { + runTest("compiler/testData/codegen/box/bridges/test3.kt"); + } + + @Test + @TestMetadata("test4.kt") + public void testTest4() { + runTest("compiler/testData/codegen/box/bridges/test4.kt"); + } + + @Test + @TestMetadata("test5.kt") + public void testTest5() { + runTest("compiler/testData/codegen/box/bridges/test5.kt"); + } + + @Test + @TestMetadata("test6.kt") + public void testTest6() { + runTest("compiler/testData/codegen/box/bridges/test6.kt"); + } + + @Test + @TestMetadata("test7.kt") + public void testTest7() { + runTest("compiler/testData/codegen/box/bridges/test7.kt"); + } + + @Test + @TestMetadata("test8.kt") + public void testTest8() { + runTest("compiler/testData/codegen/box/bridges/test8.kt"); + } + + @Test + @TestMetadata("test9.kt") + public void testTest9() { + runTest("compiler/testData/codegen/box/bridges/test9.kt"); + } + @Test @TestMetadata("traitImplInheritsTraitImpl.kt") public void testTraitImplInheritsTraitImpl() { @@ -4626,6 +5348,46 @@ public class K1WasmCodegenBoxTestGenerated extends AbstractK1WasmCodegenBoxTest } } + @Nested + @TestMetadata("compiler/testData/codegen/box/classDelegation") + @TestDataPath("$PROJECT_ROOT") + public class ClassDelegation { + @Test + public void testAllFilesPresentInClassDelegation() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/classDelegation"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true); + } + + @Test + @TestMetadata("generic.kt") + public void testGeneric() { + runTest("compiler/testData/codegen/box/classDelegation/generic.kt"); + } + + @Test + @TestMetadata("method.kt") + public void testMethod() { + runTest("compiler/testData/codegen/box/classDelegation/method.kt"); + } + + @Test + @TestMetadata("multipleModules.kt") + public void testMultipleModules() { + runTest("compiler/testData/codegen/box/classDelegation/multipleModules.kt"); + } + + @Test + @TestMetadata("property.kt") + public void testProperty() { + runTest("compiler/testData/codegen/box/classDelegation/property.kt"); + } + + @Test + @TestMetadata("withBridge.kt") + public void testWithBridge() { + runTest("compiler/testData/codegen/box/classDelegation/withBridge.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/classLiteral") @TestDataPath("$PROJECT_ROOT") @@ -6329,6 +7091,12 @@ public class K1WasmCodegenBoxTestGenerated extends AbstractK1WasmCodegenBoxTest runTest("compiler/testData/codegen/box/contracts/constructorArgument.kt"); } + @Test + @TestMetadata("contractForCast.kt") + public void testContractForCast() { + runTest("compiler/testData/codegen/box/contracts/contractForCast.kt"); + } + @Test @TestMetadata("destructuredVariable.kt") public void testDestructuredVariable() { @@ -6371,6 +7139,12 @@ public class K1WasmCodegenBoxTestGenerated extends AbstractK1WasmCodegenBoxTest runTest("compiler/testData/codegen/box/contracts/functionParameter.kt"); } + @Test + @TestMetadata("isNullString.kt") + public void testIsNullString() { + runTest("compiler/testData/codegen/box/contracts/isNullString.kt"); + } + @Test @TestMetadata("kt39374.kt") public void testKt39374() { @@ -6413,6 +7187,24 @@ public class K1WasmCodegenBoxTestGenerated extends AbstractK1WasmCodegenBoxTest runTest("compiler/testData/codegen/box/contracts/nestedLambdaInNonInlineCallExactlyOnce.kt"); } + @Test + @TestMetadata("nonNullSmartCast.kt") + public void testNonNullSmartCast() { + runTest("compiler/testData/codegen/box/contracts/nonNullSmartCast.kt"); + } + + @Test + @TestMetadata("require.kt") + public void testRequire() { + runTest("compiler/testData/codegen/box/contracts/require.kt"); + } + + @Test + @TestMetadata("runLambdaForVal.kt") + public void testRunLambdaForVal() { + runTest("compiler/testData/codegen/box/contracts/runLambdaForVal.kt"); + } + @Test @TestMetadata("valInWhen.kt") public void testValInWhen() { @@ -7794,6 +8586,124 @@ public class K1WasmCodegenBoxTestGenerated extends AbstractK1WasmCodegenBoxTest } } + @Nested + @TestMetadata("compiler/testData/codegen/box/controlflow") + @TestDataPath("$PROJECT_ROOT") + public class Controlflow { + @Test + public void testAllFilesPresentInControlflow() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/controlflow"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true); + } + + @Test + @TestMetadata("break.kt") + public void testBreak() { + runTest("compiler/testData/codegen/box/controlflow/break.kt"); + } + + @Test + @TestMetadata("break1.kt") + public void testBreak1() { + runTest("compiler/testData/codegen/box/controlflow/break1.kt"); + } + + @Test + @TestMetadata("for_loops.kt") + public void testFor_loops() { + runTest("compiler/testData/codegen/box/controlflow/for_loops.kt"); + } + + @Test + @TestMetadata("for_loops_array_break_continue.kt") + public void testFor_loops_array_break_continue() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_array_break_continue.kt"); + } + + @Test + @TestMetadata("for_loops_array_indices.kt") + public void testFor_loops_array_indices() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_array_indices.kt"); + } + + @Test + @TestMetadata("for_loops_array_mutation.kt") + public void testFor_loops_array_mutation() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_array_mutation.kt"); + } + + @Test + @TestMetadata("for_loops_array_nested.kt") + public void testFor_loops_array_nested() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_array_nested.kt"); + } + + @Test + @TestMetadata("for_loops_array_nullable.kt") + public void testFor_loops_array_nullable() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_array_nullable.kt"); + } + + @Test + @TestMetadata("for_loops_array_side_effects.kt") + public void testFor_loops_array_side_effects() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_array_side_effects.kt"); + } + + @Test + @TestMetadata("for_loops_call_order.kt") + public void testFor_loops_call_order() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_call_order.kt"); + } + + @Test + @TestMetadata("for_loops_coroutines.kt") + public void testFor_loops_coroutines() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_coroutines.kt"); + } + + @Test + @TestMetadata("for_loops_empty_range.kt") + public void testFor_loops_empty_range() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_empty_range.kt"); + } + + @Test + @TestMetadata("for_loops_errors.kt") + public void testFor_loops_errors() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_errors.kt"); + } + + @Test + @TestMetadata("for_loops_let_with_nullable.kt") + public void testFor_loops_let_with_nullable() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_let_with_nullable.kt"); + } + + @Test + @TestMetadata("for_loops_nested.kt") + public void testFor_loops_nested() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_nested.kt"); + } + + @Test + @TestMetadata("for_loops_overflow.kt") + public void testFor_loops_overflow() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_overflow.kt"); + } + + @Test + @TestMetadata("for_loops_types.kt") + public void testFor_loops_types() { + runTest("compiler/testData/codegen/box/controlflow/for_loops_types.kt"); + } + + @Test + @TestMetadata("unreachable1.kt") + public void testUnreachable1() { + runTest("compiler/testData/codegen/box/controlflow/unreachable1.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/coroutines") @TestDataPath("$PROJECT_ROOT") @@ -7815,6 +8725,12 @@ public class K1WasmCodegenBoxTestGenerated extends AbstractK1WasmCodegenBoxTest KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true); } + @Test + @TestMetadata("anonymousObject.kt") + public void testAnonymousObject() { + runTest("compiler/testData/codegen/box/coroutines/anonymousObject.kt"); + } + @Test @TestMetadata("asyncIteratorNullMerge_1_3.kt") public void testAsyncIteratorNullMerge_1_3() { @@ -7899,18 +8815,156 @@ public class K1WasmCodegenBoxTestGenerated extends AbstractK1WasmCodegenBoxTest runTest("compiler/testData/codegen/box/coroutines/coercionToUnit.kt"); } + @Test + @TestMetadata("controlFlow_chain.kt") + public void testControlFlow_chain() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_chain.kt"); + } + + @Test + @TestMetadata("controlFlow_finally1.kt") + public void testControlFlow_finally1() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally1.kt"); + } + + @Test + @TestMetadata("controlFlow_finally2.kt") + public void testControlFlow_finally2() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally2.kt"); + } + + @Test + @TestMetadata("controlFlow_finally3.kt") + public void testControlFlow_finally3() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally3.kt"); + } + + @Test + @TestMetadata("controlFlow_finally4.kt") + public void testControlFlow_finally4() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally4.kt"); + } + + @Test + @TestMetadata("controlFlow_finally5.kt") + public void testControlFlow_finally5() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally5.kt"); + } + + @Test + @TestMetadata("controlFlow_finally6.kt") + public void testControlFlow_finally6() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally6.kt"); + } + + @Test + @TestMetadata("controlFlow_finally7.kt") + public void testControlFlow_finally7() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_finally7.kt"); + } + + @Test + @TestMetadata("controlFlow_if1.kt") + public void testControlFlow_if1() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_if1.kt"); + } + + @Test + @TestMetadata("controlFlow_if2.kt") + public void testControlFlow_if2() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_if2.kt"); + } + + @Test + @TestMetadata("controlFlow_inline1.kt") + public void testControlFlow_inline1() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_inline1.kt"); + } + + @Test + @TestMetadata("controlFlow_inline2.kt") + public void testControlFlow_inline2() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_inline2.kt"); + } + + @Test + @TestMetadata("controlFlow_inline3.kt") + public void testControlFlow_inline3() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_inline3.kt"); + } + + @Test + @TestMetadata("controlFlow_tryCatch1.kt") + public void testControlFlow_tryCatch1() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_tryCatch1.kt"); + } + + @Test + @TestMetadata("controlFlow_tryCatch2.kt") + public void testControlFlow_tryCatch2() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_tryCatch2.kt"); + } + + @Test + @TestMetadata("controlFlow_tryCatch3.kt") + public void testControlFlow_tryCatch3() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_tryCatch3.kt"); + } + + @Test + @TestMetadata("controlFlow_tryCatch4.kt") + public void testControlFlow_tryCatch4() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_tryCatch4.kt"); + } + + @Test + @TestMetadata("controlFlow_tryCatch5.kt") + public void testControlFlow_tryCatch5() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_tryCatch5.kt"); + } + + @Test + @TestMetadata("controlFlow_while1.kt") + public void testControlFlow_while1() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_while1.kt"); + } + + @Test + @TestMetadata("controlFlow_while2.kt") + public void testControlFlow_while2() { + runTest("compiler/testData/codegen/box/coroutines/controlFlow_while2.kt"); + } + @Test @TestMetadata("controllerAccessFromInnerLambda.kt") public void testControllerAccessFromInnerLambda() { runTest("compiler/testData/codegen/box/coroutines/controllerAccessFromInnerLambda.kt"); } + @Test + @TestMetadata("coroutineContext1.kt") + public void testCoroutineContext1() { + runTest("compiler/testData/codegen/box/coroutines/coroutineContext1.kt"); + } + + @Test + @TestMetadata("coroutineContext2.kt") + public void testCoroutineContext2() { + runTest("compiler/testData/codegen/box/coroutines/coroutineContext2.kt"); + } + @Test @TestMetadata("coroutineContextInInlinedLambda.kt") public void testCoroutineContextInInlinedLambda() { runTest("compiler/testData/codegen/box/coroutines/coroutineContextInInlinedLambda.kt"); } + @Test + @TestMetadata("correctOrder1.kt") + public void testCorrectOrder1() { + runTest("compiler/testData/codegen/box/coroutines/correctOrder1.kt"); + } + @Test @TestMetadata("createCoroutineSafe.kt") public void testCreateCoroutineSafe() { @@ -7941,6 +8995,18 @@ public class K1WasmCodegenBoxTestGenerated extends AbstractK1WasmCodegenBoxTest runTest("compiler/testData/codegen/box/coroutines/defaultParametersInSuspend.kt"); } + @Test + @TestMetadata("degenerate1.kt") + public void testDegenerate1() { + runTest("compiler/testData/codegen/box/coroutines/degenerate1.kt"); + } + + @Test + @TestMetadata("degenerate2.kt") + public void testDegenerate2() { + runTest("compiler/testData/codegen/box/coroutines/degenerate2.kt"); + } + @Test @TestMetadata("delegatedSuspendMember.kt") public void testDelegatedSuspendMember() { @@ -7989,6 +9055,30 @@ public class K1WasmCodegenBoxTestGenerated extends AbstractK1WasmCodegenBoxTest runTest("compiler/testData/codegen/box/coroutines/falseUnitCoercion.kt"); } + @Test + @TestMetadata("functionReference_eqeq_name.kt") + public void testFunctionReference_eqeq_name() { + runTest("compiler/testData/codegen/box/coroutines/functionReference_eqeq_name.kt"); + } + + @Test + @TestMetadata("functionReference_invokeAsFunction.kt") + public void testFunctionReference_invokeAsFunction() { + runTest("compiler/testData/codegen/box/coroutines/functionReference_invokeAsFunction.kt"); + } + + @Test + @TestMetadata("functionReference_lambdaAsSuspendLambda.kt") + public void testFunctionReference_lambdaAsSuspendLambda() { + runTest("compiler/testData/codegen/box/coroutines/functionReference_lambdaAsSuspendLambda.kt"); + } + + @Test + @TestMetadata("functionReference_simple.kt") + public void testFunctionReference_simple() { + runTest("compiler/testData/codegen/box/coroutines/functionReference_simple.kt"); + } + @Test @TestMetadata("generate.kt") public void testGenerate() { @@ -8163,6 +9253,12 @@ public class K1WasmCodegenBoxTestGenerated extends AbstractK1WasmCodegenBoxTest runTest("compiler/testData/codegen/box/coroutines/kt35967.kt"); } + @Test + @TestMetadata("kt41394.kt") + public void testKt41394() { + runTest("compiler/testData/codegen/box/coroutines/kt41394.kt"); + } + @Test @TestMetadata("kt42028.kt") public void testKt42028() { @@ -8391,12 +9487,30 @@ public class K1WasmCodegenBoxTestGenerated extends AbstractK1WasmCodegenBoxTest runTest("compiler/testData/codegen/box/coroutines/returnByLabel.kt"); } + @Test + @TestMetadata("returnsNothing1.kt") + public void testReturnsNothing1() { + runTest("compiler/testData/codegen/box/coroutines/returnsNothing1.kt"); + } + + @Test + @TestMetadata("returnsUnit1.kt") + public void testReturnsUnit1() { + runTest("compiler/testData/codegen/box/coroutines/returnsUnit1.kt"); + } + @Test @TestMetadata("simple.kt") public void testSimple() { runTest("compiler/testData/codegen/box/coroutines/simple.kt"); } + @Test + @TestMetadata("simple2.kt") + public void testSimple2() { + runTest("compiler/testData/codegen/box/coroutines/simple2.kt"); + } + @Test @TestMetadata("simpleException.kt") public void testSimpleException() { @@ -8439,6 +9553,12 @@ public class K1WasmCodegenBoxTestGenerated extends AbstractK1WasmCodegenBoxTest runTest("compiler/testData/codegen/box/coroutines/suspendCallsInArguments.kt"); } + @Test + @TestMetadata("suspendConversion.kt") + public void testSuspendConversion() { + runTest("compiler/testData/codegen/box/coroutines/suspendConversion.kt"); + } + @Test @TestMetadata("suspendCoroutineFromStateMachine.kt") public void testSuspendCoroutineFromStateMachine() { @@ -8595,6 +9715,12 @@ public class K1WasmCodegenBoxTestGenerated extends AbstractK1WasmCodegenBoxTest runTest("compiler/testData/codegen/box/coroutines/varargCallFromSuspend.kt"); } + @Test + @TestMetadata("withReceiver.kt") + public void testWithReceiver() { + runTest("compiler/testData/codegen/box/coroutines/withReceiver.kt"); + } + @Nested @TestMetadata("compiler/testData/codegen/box/coroutines/bridges") @TestDataPath("$PROJECT_ROOT") @@ -10822,6 +11948,34 @@ public class K1WasmCodegenBoxTestGenerated extends AbstractK1WasmCodegenBoxTest } } + @Nested + @TestMetadata("compiler/testData/codegen/box/cycles") + @TestDataPath("$PROJECT_ROOT") + public class Cycles { + @Test + public void testAllFilesPresentInCycles() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cycles"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true); + } + + @Test + @TestMetadata("cycle.kt") + public void testCycle() { + runTest("compiler/testData/codegen/box/cycles/cycle.kt"); + } + + @Test + @TestMetadata("cycle_do.kt") + public void testCycle_do() { + runTest("compiler/testData/codegen/box/cycles/cycle_do.kt"); + } + + @Test + @TestMetadata("cycle_for.kt") + public void testCycle_for() { + runTest("compiler/testData/codegen/box/cycles/cycle_for.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/dataClasses") @TestDataPath("$PROJECT_ROOT") @@ -11228,6 +12382,28 @@ public class K1WasmCodegenBoxTestGenerated extends AbstractK1WasmCodegenBoxTest } } + @Nested + @TestMetadata("compiler/testData/codegen/box/dataflow") + @TestDataPath("$PROJECT_ROOT") + public class Dataflow { + @Test + public void testAllFilesPresentInDataflow() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/dataflow"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true); + } + + @Test + @TestMetadata("scope1.kt") + public void testScope1() { + runTest("compiler/testData/codegen/box/dataflow/scope1.kt"); + } + + @Test + @TestMetadata("uninitialized_val.kt") + public void testUninitialized_val() { + runTest("compiler/testData/codegen/box/dataflow/uninitialized_val.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/deadCodeElimination") @TestDataPath("$PROJECT_ROOT") @@ -11847,6 +13023,12 @@ public class K1WasmCodegenBoxTestGenerated extends AbstractK1WasmCodegenBoxTest runTest("compiler/testData/codegen/box/delegatedProperty/castSetParameter.kt"); } + @Test + @TestMetadata("correctFieldsOrder.kt") + public void testCorrectFieldsOrder() { + runTest("compiler/testData/codegen/box/delegatedProperty/correctFieldsOrder.kt"); + } + @Test @TestMetadata("delegateAsInnerClass.kt") public void testDelegateAsInnerClass() { @@ -11901,6 +13083,12 @@ public class K1WasmCodegenBoxTestGenerated extends AbstractK1WasmCodegenBoxTest runTest("compiler/testData/codegen/box/delegatedProperty/delegateWithPrivateSet.kt"); } + @Test + @TestMetadata("delegatedOverride.kt") + public void testDelegatedOverride() { + runTest("compiler/testData/codegen/box/delegatedProperty/delegatedOverride.kt"); + } + @Test @TestMetadata("delegatedPropertyInEnum.kt") public void testDelegatedPropertyInEnum() { @@ -12033,12 +13221,42 @@ public class K1WasmCodegenBoxTestGenerated extends AbstractK1WasmCodegenBoxTest runTest("compiler/testData/codegen/box/delegatedProperty/kt9712.kt"); } + @Test + @TestMetadata("lazy.kt") + public void testLazy() { + runTest("compiler/testData/codegen/box/delegatedProperty/lazy.kt"); + } + + @Test + @TestMetadata("local.kt") + public void testLocal() { + runTest("compiler/testData/codegen/box/delegatedProperty/local.kt"); + } + + @Test + @TestMetadata("map.kt") + public void testMap() { + runTest("compiler/testData/codegen/box/delegatedProperty/map.kt"); + } + @Test @TestMetadata("noTypeVariablesLeft.kt") public void testNoTypeVariablesLeft() { runTest("compiler/testData/codegen/box/delegatedProperty/noTypeVariablesLeft.kt"); } + @Test + @TestMetadata("observable.kt") + public void testObservable() { + runTest("compiler/testData/codegen/box/delegatedProperty/observable.kt"); + } + + @Test + @TestMetadata("packageLevel.kt") + public void testPackageLevel() { + runTest("compiler/testData/codegen/box/delegatedProperty/packageLevel.kt"); + } + @Test @TestMetadata("privateVar.kt") public void testPrivateVar() { @@ -12081,6 +13299,18 @@ public class K1WasmCodegenBoxTestGenerated extends AbstractK1WasmCodegenBoxTest runTest("compiler/testData/codegen/box/delegatedProperty/setAsExtensionFunInClass.kt"); } + @Test + @TestMetadata("simpleVal.kt") + public void testSimpleVal() { + runTest("compiler/testData/codegen/box/delegatedProperty/simpleVal.kt"); + } + + @Test + @TestMetadata("simpleVar.kt") + public void testSimpleVar() { + runTest("compiler/testData/codegen/box/delegatedProperty/simpleVar.kt"); + } + @Test @TestMetadata("topLevelVal.kt") public void testTopLevelVal() { @@ -12888,6 +14118,40 @@ public class K1WasmCodegenBoxTestGenerated extends AbstractK1WasmCodegenBoxTest } } + @Nested + @TestMetadata("compiler/testData/codegen/box/devirtualization") + @TestDataPath("$PROJECT_ROOT") + public class Devirtualization { + @Test + public void testAllFilesPresentInDevirtualization() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/devirtualization"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true); + } + + @Test + @TestMetadata("anonymousObject.kt") + public void testAnonymousObject() { + runTest("compiler/testData/codegen/box/devirtualization/anonymousObject.kt"); + } + + @Test + @TestMetadata("getter_looking_as_box_function.kt") + public void testGetter_looking_as_box_function() { + runTest("compiler/testData/codegen/box/devirtualization/getter_looking_as_box_function.kt"); + } + + @Test + @TestMetadata("inline_getter.kt") + public void testInline_getter() { + runTest("compiler/testData/codegen/box/devirtualization/inline_getter.kt"); + } + + @Test + @TestMetadata("lateinitInterface.kt") + public void testLateinitInterface() { + runTest("compiler/testData/codegen/box/devirtualization/lateinitInterface.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/diagnostics") @TestDataPath("$PROJECT_ROOT") @@ -13501,6 +14765,12 @@ public class K1WasmCodegenBoxTestGenerated extends AbstractK1WasmCodegenBoxTest runTest("compiler/testData/codegen/box/enum/companionAccessingEnumValue.kt"); } + @Test + @TestMetadata("companionObject.kt") + public void testCompanionObject() { + runTest("compiler/testData/codegen/box/enum/companionObject.kt"); + } + @Test @TestMetadata("companionObjectInEnum.kt") public void testCompanionObjectInEnum() { @@ -13645,6 +14915,12 @@ public class K1WasmCodegenBoxTestGenerated extends AbstractK1WasmCodegenBoxTest runTest("compiler/testData/codegen/box/enum/enumWithLambdaParameter.kt"); } + @Test + @TestMetadata("enum_equals.kt") + public void testEnum_equals() { + runTest("compiler/testData/codegen/box/enum/enum_equals.kt"); + } + @Test @TestMetadata("getEnumEntityByOrdinal.kt") public void testGetEnumEntityByOrdinal() { @@ -13717,6 +14993,18 @@ public class K1WasmCodegenBoxTestGenerated extends AbstractK1WasmCodegenBoxTest runTest("compiler/testData/codegen/box/enum/innerWithExistingClassObject.kt"); } + @Test + @TestMetadata("interfaceCallNoEntryClass.kt") + public void testInterfaceCallNoEntryClass() { + runTest("compiler/testData/codegen/box/enum/interfaceCallNoEntryClass.kt"); + } + + @Test + @TestMetadata("interfaceCallWithEntryClass.kt") + public void testInterfaceCallWithEntryClass() { + runTest("compiler/testData/codegen/box/enum/interfaceCallWithEntryClass.kt"); + } + @Test @TestMetadata("k54079.kt") public void testK54079() { @@ -13771,6 +15059,12 @@ public class K1WasmCodegenBoxTestGenerated extends AbstractK1WasmCodegenBoxTest runTest("compiler/testData/codegen/box/enum/kt2350.kt"); } + @Test + @TestMetadata("kt38540.kt") + public void testKt38540() { + runTest("compiler/testData/codegen/box/enum/kt38540.kt"); + } + @Test @TestMetadata("kt38996.kt") public void testKt38996() { @@ -13867,12 +15161,42 @@ public class K1WasmCodegenBoxTestGenerated extends AbstractK1WasmCodegenBoxTest runTest("compiler/testData/codegen/box/enum/kt9711_2.kt"); } + @Test + @TestMetadata("lambdaInDefault.kt") + public void testLambdaInDefault() { + runTest("compiler/testData/codegen/box/enum/lambdaInDefault.kt"); + } + + @Test + @TestMetadata("loop.kt") + public void testLoop() { + runTest("compiler/testData/codegen/box/enum/loop.kt"); + } + @Test @TestMetadata("manyDefaultParameters.kt") public void testManyDefaultParameters() { runTest("compiler/testData/codegen/box/enum/manyDefaultParameters.kt"); } + @Test + @TestMetadata("multipleModules.kt") + public void testMultipleModules() { + runTest("compiler/testData/codegen/box/enum/multipleModules.kt"); + } + + @Test + @TestMetadata("nested.kt") + public void testNested() { + runTest("compiler/testData/codegen/box/enum/nested.kt"); + } + + @Test + @TestMetadata("openMethodNoOverrides.kt") + public void testOpenMethodNoOverrides() { + runTest("compiler/testData/codegen/box/enum/openMethodNoOverrides.kt"); + } + @Test @TestMetadata("ordinal.kt") public void testOrdinal() { @@ -13897,6 +15221,12 @@ public class K1WasmCodegenBoxTestGenerated extends AbstractK1WasmCodegenBoxTest runTest("compiler/testData/codegen/box/enum/refToThis.kt"); } + @Test + @TestMetadata("reorderedArguments.kt") + public void testReorderedArguments() { + runTest("compiler/testData/codegen/box/enum/reorderedArguments.kt"); + } + @Test @TestMetadata("simple.kt") public void testSimple() { @@ -13915,18 +15245,66 @@ public class K1WasmCodegenBoxTestGenerated extends AbstractK1WasmCodegenBoxTest runTest("compiler/testData/codegen/box/enum/superCallInEnumLiteral.kt"); } + @Test + @TestMetadata("switchLowering.kt") + public void testSwitchLowering() { + runTest("compiler/testData/codegen/box/enum/switchLowering.kt"); + } + + @Test + @TestMetadata("test0.kt") + public void testTest0() { + runTest("compiler/testData/codegen/box/enum/test0.kt"); + } + + @Test + @TestMetadata("test1.kt") + public void testTest1() { + runTest("compiler/testData/codegen/box/enum/test1.kt"); + } + @Test @TestMetadata("toString.kt") public void testToString() { runTest("compiler/testData/codegen/box/enum/toString.kt"); } + @Test + @TestMetadata("vCallNoEntryClass.kt") + public void testVCallNoEntryClass() { + runTest("compiler/testData/codegen/box/enum/vCallNoEntryClass.kt"); + } + + @Test + @TestMetadata("vCallWithEntryClass.kt") + public void testVCallWithEntryClass() { + runTest("compiler/testData/codegen/box/enum/vCallWithEntryClass.kt"); + } + + @Test + @TestMetadata("valueOf2.kt") + public void testValueOf2() { + runTest("compiler/testData/codegen/box/enum/valueOf2.kt"); + } + @Test @TestMetadata("valueof.kt") public void testValueof() { runTest("compiler/testData/codegen/box/enum/valueof.kt"); } + @Test + @TestMetadata("values.kt") + public void testValues() { + runTest("compiler/testData/codegen/box/enum/values.kt"); + } + + @Test + @TestMetadata("varargParam.kt") + public void testVarargParam() { + runTest("compiler/testData/codegen/box/enum/varargParam.kt"); + } + @Test @TestMetadata("whenInObject.kt") public void testWhenInObject() { @@ -14002,6 +15380,112 @@ public class K1WasmCodegenBoxTestGenerated extends AbstractK1WasmCodegenBoxTest } } + @Nested + @TestMetadata("compiler/testData/codegen/box/escapeAnalysis") + @TestDataPath("$PROJECT_ROOT") + public class EscapeAnalysis { + @Test + public void testAllFilesPresentInEscapeAnalysis() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/escapeAnalysis"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true); + } + + @Test + @TestMetadata("recursion.kt") + public void testRecursion() { + runTest("compiler/testData/codegen/box/escapeAnalysis/recursion.kt"); + } + + @Test + @TestMetadata("stack_array.kt") + public void testStack_array() { + runTest("compiler/testData/codegen/box/escapeAnalysis/stack_array.kt"); + } + + @Test + @TestMetadata("test1.kt") + public void testTest1() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test1.kt"); + } + + @Test + @TestMetadata("test10.kt") + public void testTest10() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test10.kt"); + } + + @Test + @TestMetadata("test11.kt") + public void testTest11() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test11.kt"); + } + + @Test + @TestMetadata("test12.kt") + public void testTest12() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test12.kt"); + } + + @Test + @TestMetadata("test13.kt") + public void testTest13() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test13.kt"); + } + + @Test + @TestMetadata("test2.kt") + public void testTest2() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test2.kt"); + } + + @Test + @TestMetadata("test3.kt") + public void testTest3() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test3.kt"); + } + + @Test + @TestMetadata("test4.kt") + public void testTest4() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test4.kt"); + } + + @Test + @TestMetadata("test5.kt") + public void testTest5() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test5.kt"); + } + + @Test + @TestMetadata("test6.kt") + public void testTest6() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test6.kt"); + } + + @Test + @TestMetadata("test7.kt") + public void testTest7() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test7.kt"); + } + + @Test + @TestMetadata("test8.kt") + public void testTest8() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test8.kt"); + } + + @Test + @TestMetadata("test9.kt") + public void testTest9() { + runTest("compiler/testData/codegen/box/escapeAnalysis/test9.kt"); + } + + @Test + @TestMetadata("zeroOutObjectOnAlloc.kt") + public void testZeroOutObjectOnAlloc() { + runTest("compiler/testData/codegen/box/escapeAnalysis/zeroOutObjectOnAlloc.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/evaluate") @TestDataPath("$PROJECT_ROOT") @@ -14018,6 +15502,58 @@ public class K1WasmCodegenBoxTestGenerated extends AbstractK1WasmCodegenBoxTest } } + @Nested + @TestMetadata("compiler/testData/codegen/box/exceptions") + @TestDataPath("$PROJECT_ROOT") + public class Exceptions { + @Test + public void testAllFilesPresentInExceptions() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/exceptions"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true); + } + + @Test + @TestMetadata("catch1.kt") + public void testCatch1() { + runTest("compiler/testData/codegen/box/exceptions/catch1.kt"); + } + + @Test + @TestMetadata("catch2.kt") + public void testCatch2() { + runTest("compiler/testData/codegen/box/exceptions/catch2.kt"); + } + + @Test + @TestMetadata("catch7.kt") + public void testCatch7() { + runTest("compiler/testData/codegen/box/exceptions/catch7.kt"); + } + + @Test + @TestMetadata("extend0.kt") + public void testExtend0() { + runTest("compiler/testData/codegen/box/exceptions/extend0.kt"); + } + + @Test + @TestMetadata("rethrow.kt") + public void testRethrow() { + runTest("compiler/testData/codegen/box/exceptions/rethrow.kt"); + } + + @Test + @TestMetadata("throw0.kt") + public void testThrow0() { + runTest("compiler/testData/codegen/box/exceptions/throw0.kt"); + } + + @Test + @TestMetadata("throw_from_catch.kt") + public void testThrow_from_catch() { + runTest("compiler/testData/codegen/box/exceptions/throw_from_catch.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/exclExcl") @TestDataPath("$PROJECT_ROOT") @@ -14897,6 +16433,12 @@ public class K1WasmCodegenBoxTestGenerated extends AbstractK1WasmCodegenBoxTest runTest("compiler/testData/codegen/box/funInterface/funInterfaceWithReceiver.kt"); } + @Test + @TestMetadata("implIsNotFunction.kt") + public void testImplIsNotFunction() { + runTest("compiler/testData/codegen/box/funInterface/implIsNotFunction.kt"); + } + @Test @TestMetadata("inlinedSamWrapper.kt") public void testInlinedSamWrapper() { @@ -14939,6 +16481,18 @@ public class K1WasmCodegenBoxTestGenerated extends AbstractK1WasmCodegenBoxTest runTest("compiler/testData/codegen/box/funInterface/kt46908_functionSupertype.kt"); } + @Test + @TestMetadata("kt49384.kt") + public void testKt49384() { + runTest("compiler/testData/codegen/box/funInterface/kt49384.kt"); + } + + @Test + @TestMetadata("kt49384_getSame.kt") + public void testKt49384_getSame() { + runTest("compiler/testData/codegen/box/funInterface/kt49384_getSame.kt"); + } + @Test @TestMetadata("multimodule.kt") public void testMultimodule() { @@ -14957,6 +16511,12 @@ public class K1WasmCodegenBoxTestGenerated extends AbstractK1WasmCodegenBoxTest runTest("compiler/testData/codegen/box/funInterface/nonAbstractMethod.kt"); } + @Test + @TestMetadata("nonTrivialProjectionInSuperType.kt") + public void testNonTrivialProjectionInSuperType() { + runTest("compiler/testData/codegen/box/funInterface/nonTrivialProjectionInSuperType.kt"); + } + @Test @TestMetadata("nullableSam.kt") public void testNullableSam() { @@ -15046,6 +16606,232 @@ public class K1WasmCodegenBoxTestGenerated extends AbstractK1WasmCodegenBoxTest } } + @Nested + @TestMetadata("compiler/testData/codegen/box/function") + @TestDataPath("$PROJECT_ROOT") + public class Function { + @Test + public void testAllFilesPresentInFunction() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/function"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true); + } + + @Test + @TestMetadata("arithmetic.kt") + public void testArithmetic() { + runTest("compiler/testData/codegen/box/function/arithmetic.kt"); + } + + @Test + @TestMetadata("boolean.kt") + public void testBoolean() { + runTest("compiler/testData/codegen/box/function/boolean.kt"); + } + + @Test + @TestMetadata("defaults.kt") + public void testDefaults() { + runTest("compiler/testData/codegen/box/function/defaults.kt"); + } + + @Test + @TestMetadata("defaults1.kt") + public void testDefaults1() { + runTest("compiler/testData/codegen/box/function/defaults1.kt"); + } + + @Test + @TestMetadata("defaults10.kt") + public void testDefaults10() { + runTest("compiler/testData/codegen/box/function/defaults10.kt"); + } + + @Test + @TestMetadata("defaults2.kt") + public void testDefaults2() { + runTest("compiler/testData/codegen/box/function/defaults2.kt"); + } + + @Test + @TestMetadata("defaults3.kt") + public void testDefaults3() { + runTest("compiler/testData/codegen/box/function/defaults3.kt"); + } + + @Test + @TestMetadata("defaults4.kt") + public void testDefaults4() { + runTest("compiler/testData/codegen/box/function/defaults4.kt"); + } + + @Test + @TestMetadata("defaults5.kt") + public void testDefaults5() { + runTest("compiler/testData/codegen/box/function/defaults5.kt"); + } + + @Test + @TestMetadata("defaults6.kt") + public void testDefaults6() { + runTest("compiler/testData/codegen/box/function/defaults6.kt"); + } + + @Test + @TestMetadata("defaults7.kt") + public void testDefaults7() { + runTest("compiler/testData/codegen/box/function/defaults7.kt"); + } + + @Test + @TestMetadata("defaults8.kt") + public void testDefaults8() { + runTest("compiler/testData/codegen/box/function/defaults8.kt"); + } + + @Test + @TestMetadata("defaults9.kt") + public void testDefaults9() { + runTest("compiler/testData/codegen/box/function/defaults9.kt"); + } + + @Test + @TestMetadata("defaultsFromFakeOverride.kt") + public void testDefaultsFromFakeOverride() { + runTest("compiler/testData/codegen/box/function/defaultsFromFakeOverride.kt"); + } + + @Test + @TestMetadata("defaultsWithInlineClasses.kt") + public void testDefaultsWithInlineClasses() { + runTest("compiler/testData/codegen/box/function/defaultsWithInlineClasses.kt"); + } + + @Test + @TestMetadata("defaultsWithVarArg1.kt") + public void testDefaultsWithVarArg1() { + runTest("compiler/testData/codegen/box/function/defaultsWithVarArg1.kt"); + } + + @Test + @TestMetadata("defaultsWithVarArg2.kt") + public void testDefaultsWithVarArg2() { + runTest("compiler/testData/codegen/box/function/defaultsWithVarArg2.kt"); + } + + @Test + @TestMetadata("eqeq.kt") + public void testEqeq() { + runTest("compiler/testData/codegen/box/function/eqeq.kt"); + } + + @Test + @TestMetadata("extension.kt") + public void testExtension() { + runTest("compiler/testData/codegen/box/function/extension.kt"); + } + + @Test + @TestMetadata("intrinsic.kt") + public void testIntrinsic() { + runTest("compiler/testData/codegen/box/function/intrinsic.kt"); + } + + @Test + @TestMetadata("localFunction.kt") + public void testLocalFunction() { + runTest("compiler/testData/codegen/box/function/localFunction.kt"); + } + + @Test + @TestMetadata("localFunction2.kt") + public void testLocalFunction2() { + runTest("compiler/testData/codegen/box/function/localFunction2.kt"); + } + + @Test + @TestMetadata("localFunction3.kt") + public void testLocalFunction3() { + runTest("compiler/testData/codegen/box/function/localFunction3.kt"); + } + + @Test + @TestMetadata("minus_eq.kt") + public void testMinus_eq() { + runTest("compiler/testData/codegen/box/function/minus_eq.kt"); + } + + @Test + @TestMetadata("named.kt") + public void testNamed() { + runTest("compiler/testData/codegen/box/function/named.kt"); + } + + @Test + @TestMetadata("nothingNReturningSafeCall.kt") + public void testNothingNReturningSafeCall() { + runTest("compiler/testData/codegen/box/function/nothingNReturningSafeCall.kt"); + } + + @Test + @TestMetadata("plus_eq.kt") + public void testPlus_eq() { + runTest("compiler/testData/codegen/box/function/plus_eq.kt"); + } + + @Test + @TestMetadata("referenceBigArity.kt") + public void testReferenceBigArity() { + runTest("compiler/testData/codegen/box/function/referenceBigArity.kt"); + } + + @Test + @TestMetadata("sum.kt") + public void testSum() { + runTest("compiler/testData/codegen/box/function/sum.kt"); + } + + @Test + @TestMetadata("sum_3const.kt") + public void testSum_3const() { + runTest("compiler/testData/codegen/box/function/sum_3const.kt"); + } + + @Test + @TestMetadata("sum_foo_bar.kt") + public void testSum_foo_bar() { + runTest("compiler/testData/codegen/box/function/sum_foo_bar.kt"); + } + + @Test + @TestMetadata("sum_func.kt") + public void testSum_func() { + runTest("compiler/testData/codegen/box/function/sum_func.kt"); + } + + @Test + @TestMetadata("sum_imm.kt") + public void testSum_imm() { + runTest("compiler/testData/codegen/box/function/sum_imm.kt"); + } + + @Test + @TestMetadata("sum_mixed.kt") + public void testSum_mixed() { + runTest("compiler/testData/codegen/box/function/sum_mixed.kt"); + } + + @Test + @TestMetadata("sum_silly.kt") + public void testSum_silly() { + runTest("compiler/testData/codegen/box/function/sum_silly.kt"); + } + + @Test + @TestMetadata("unreachableStatementAfterReturn.kt") + public void testUnreachableStatementAfterReturn() { + runTest("compiler/testData/codegen/box/function/unreachableStatementAfterReturn.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/functions") @TestDataPath("$PROJECT_ROOT") @@ -16600,6 +18386,474 @@ public class K1WasmCodegenBoxTestGenerated extends AbstractK1WasmCodegenBoxTest } } + @Nested + @TestMetadata("compiler/testData/codegen/box/initializers") + @TestDataPath("$PROJECT_ROOT") + public class Initializers { + @Test + public void testAllFilesPresentInInitializers() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/initializers"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true); + } + + @Test + @TestMetadata("correctOrder1.kt") + public void testCorrectOrder1() { + runTest("compiler/testData/codegen/box/initializers/correctOrder1.kt"); + } + + @Test + @TestMetadata("correctOrder2.kt") + public void testCorrectOrder2() { + runTest("compiler/testData/codegen/box/initializers/correctOrder2.kt"); + } + + @Test + @TestMetadata("initializers0.kt") + public void testInitializers0() { + runTest("compiler/testData/codegen/box/initializers/initializers0.kt"); + } + + @Test + @TestMetadata("initializers1.kt") + public void testInitializers1() { + runTest("compiler/testData/codegen/box/initializers/initializers1.kt"); + } + + @Test + @TestMetadata("initializers2.kt") + public void testInitializers2() { + runTest("compiler/testData/codegen/box/initializers/initializers2.kt"); + } + + @Test + @TestMetadata("initializers3.kt") + public void testInitializers3() { + runTest("compiler/testData/codegen/box/initializers/initializers3.kt"); + } + + @Test + @TestMetadata("initializers4.kt") + public void testInitializers4() { + runTest("compiler/testData/codegen/box/initializers/initializers4.kt"); + } + + @Test + @TestMetadata("initializers5.kt") + public void testInitializers5() { + runTest("compiler/testData/codegen/box/initializers/initializers5.kt"); + } + + @Test + @TestMetadata("initializers7.kt") + public void testInitializers7() { + runTest("compiler/testData/codegen/box/initializers/initializers7.kt"); + } + + @Test + @TestMetadata("initializers8.kt") + public void testInitializers8() { + runTest("compiler/testData/codegen/box/initializers/initializers8.kt"); + } + + @Test + @TestMetadata("multipleModules1.kt") + public void testMultipleModules1() { + runTest("compiler/testData/codegen/box/initializers/multipleModules1.kt"); + } + + @Test + @TestMetadata("object.kt") + public void testObject() { + runTest("compiler/testData/codegen/box/initializers/object.kt"); + } + + @Test + @TestMetadata("sharedVarInInitBlock.kt") + public void testSharedVarInInitBlock() { + runTest("compiler/testData/codegen/box/initializers/sharedVarInInitBlock.kt"); + } + + @Test + @TestMetadata("static_arrays.kt") + public void testStatic_arrays() { + runTest("compiler/testData/codegen/box/initializers/static_arrays.kt"); + } + + @Test + @TestMetadata("static_list.kt") + public void testStatic_list() { + runTest("compiler/testData/codegen/box/initializers/static_list.kt"); + } + + @Test + @TestMetadata("static_smallIntIdentity.kt") + public void testStatic_smallIntIdentity() { + runTest("compiler/testData/codegen/box/initializers/static_smallIntIdentity.kt"); + } + + @Test + @TestMetadata("static_varargChange.kt") + public void testStatic_varargChange() { + runTest("compiler/testData/codegen/box/initializers/static_varargChange.kt"); + } + + @Test + @TestMetadata("throw1.kt") + public void testThrow1() { + runTest("compiler/testData/codegen/box/initializers/throw1.kt"); + } + + @Test + @TestMetadata("throw2.kt") + public void testThrow2() { + runTest("compiler/testData/codegen/box/initializers/throw2.kt"); + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/initializers/files") + @TestDataPath("$PROJECT_ROOT") + public class Files { + @Test + public void testAllFilesPresentInFiles() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/initializers/files"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true); + } + + @Test + @TestMetadata("globalInitedAfterAccessingFile.kt") + public void testGlobalInitedAfterAccessingFile() { + runTest("compiler/testData/codegen/box/initializers/files/globalInitedAfterAccessingFile.kt"); + } + + @Test + @TestMetadata("globalNotInitedAfterAccessingClassInternals.kt") + public void testGlobalNotInitedAfterAccessingClassInternals() { + runTest("compiler/testData/codegen/box/initializers/files/globalNotInitedAfterAccessingClassInternals.kt"); + } + + @Test + @TestMetadata("simple.kt") + public void testSimple() { + runTest("compiler/testData/codegen/box/initializers/files/simple.kt"); + } + + @Test + @TestMetadata("simpleMultiModule.kt") + public void testSimpleMultiModule() { + runTest("compiler/testData/codegen/box/initializers/files/simpleMultiModule.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/inline") + @TestDataPath("$PROJECT_ROOT") + public class Inline { + @Test + public void testAllFilesPresentInInline() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inline"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true); + } + + @Test + @TestMetadata("changingCapturedLocal.kt") + public void testChangingCapturedLocal() { + runTest("compiler/testData/codegen/box/inline/changingCapturedLocal.kt"); + } + + @Test + @TestMetadata("classDeclarationInsideInline.kt") + public void testClassDeclarationInsideInline() { + runTest("compiler/testData/codegen/box/inline/classDeclarationInsideInline.kt"); + } + + @Test + @TestMetadata("coercionToUnit.kt") + public void testCoercionToUnit() { + runTest("compiler/testData/codegen/box/inline/coercionToUnit.kt"); + } + + @Test + @TestMetadata("correctOrderFunctionReference.kt") + public void testCorrectOrderFunctionReference() { + runTest("compiler/testData/codegen/box/inline/correctOrderFunctionReference.kt"); + } + + @Test + @TestMetadata("defaultArgs.kt") + public void testDefaultArgs() { + runTest("compiler/testData/codegen/box/inline/defaultArgs.kt"); + } + + @Test + @TestMetadata("defaultArgsMultipleModules.kt") + public void testDefaultArgsMultipleModules() { + runTest("compiler/testData/codegen/box/inline/defaultArgsMultipleModules.kt"); + } + + @Test + @TestMetadata("genericFunctionReference.kt") + public void testGenericFunctionReference() { + runTest("compiler/testData/codegen/box/inline/genericFunctionReference.kt"); + } + + @Test + @TestMetadata("getClass.kt") + public void testGetClass() { + runTest("compiler/testData/codegen/box/inline/getClass.kt"); + } + + @Test + @TestMetadata("inline0.kt") + public void testInline0() { + runTest("compiler/testData/codegen/box/inline/inline0.kt"); + } + + @Test + @TestMetadata("inline1.kt") + public void testInline1() { + runTest("compiler/testData/codegen/box/inline/inline1.kt"); + } + + @Test + @TestMetadata("inline10.kt") + public void testInline10() { + runTest("compiler/testData/codegen/box/inline/inline10.kt"); + } + + @Test + @TestMetadata("inline11.kt") + public void testInline11() { + runTest("compiler/testData/codegen/box/inline/inline11.kt"); + } + + @Test + @TestMetadata("inline12.kt") + public void testInline12() { + runTest("compiler/testData/codegen/box/inline/inline12.kt"); + } + + @Test + @TestMetadata("inline13.kt") + public void testInline13() { + runTest("compiler/testData/codegen/box/inline/inline13.kt"); + } + + @Test + @TestMetadata("inline14.kt") + public void testInline14() { + runTest("compiler/testData/codegen/box/inline/inline14.kt"); + } + + @Test + @TestMetadata("inline15.kt") + public void testInline15() { + runTest("compiler/testData/codegen/box/inline/inline15.kt"); + } + + @Test + @TestMetadata("inline16.kt") + public void testInline16() { + runTest("compiler/testData/codegen/box/inline/inline16.kt"); + } + + @Test + @TestMetadata("inline17.kt") + public void testInline17() { + runTest("compiler/testData/codegen/box/inline/inline17.kt"); + } + + @Test + @TestMetadata("inline19.kt") + public void testInline19() { + runTest("compiler/testData/codegen/box/inline/inline19.kt"); + } + + @Test + @TestMetadata("inline2.kt") + public void testInline2() { + runTest("compiler/testData/codegen/box/inline/inline2.kt"); + } + + @Test + @TestMetadata("inline20.kt") + public void testInline20() { + runTest("compiler/testData/codegen/box/inline/inline20.kt"); + } + + @Test + @TestMetadata("inline21.kt") + public void testInline21() { + runTest("compiler/testData/codegen/box/inline/inline21.kt"); + } + + @Test + @TestMetadata("inline22.kt") + public void testInline22() { + runTest("compiler/testData/codegen/box/inline/inline22.kt"); + } + + @Test + @TestMetadata("inline23.kt") + public void testInline23() { + runTest("compiler/testData/codegen/box/inline/inline23.kt"); + } + + @Test + @TestMetadata("inline24.kt") + public void testInline24() { + runTest("compiler/testData/codegen/box/inline/inline24.kt"); + } + + @Test + @TestMetadata("inline25.kt") + public void testInline25() { + runTest("compiler/testData/codegen/box/inline/inline25.kt"); + } + + @Test + @TestMetadata("inline26.kt") + public void testInline26() { + runTest("compiler/testData/codegen/box/inline/inline26.kt"); + } + + @Test + @TestMetadata("inline3.kt") + public void testInline3() { + runTest("compiler/testData/codegen/box/inline/inline3.kt"); + } + + @Test + @TestMetadata("inline4.kt") + public void testInline4() { + runTest("compiler/testData/codegen/box/inline/inline4.kt"); + } + + @Test + @TestMetadata("inline5.kt") + public void testInline5() { + runTest("compiler/testData/codegen/box/inline/inline5.kt"); + } + + @Test + @TestMetadata("inline6.kt") + public void testInline6() { + runTest("compiler/testData/codegen/box/inline/inline6.kt"); + } + + @Test + @TestMetadata("inline7.kt") + public void testInline7() { + runTest("compiler/testData/codegen/box/inline/inline7.kt"); + } + + @Test + @TestMetadata("inline8.kt") + public void testInline8() { + runTest("compiler/testData/codegen/box/inline/inline8.kt"); + } + + @Test + @TestMetadata("inline9.kt") + public void testInline9() { + runTest("compiler/testData/codegen/box/inline/inline9.kt"); + } + + @Test + @TestMetadata("inlineCtor.kt") + public void testInlineCtor() { + runTest("compiler/testData/codegen/box/inline/inlineCtor.kt"); + } + + @Test + @TestMetadata("innerInlineFunCapturesOuter.kt") + public void testInnerInlineFunCapturesOuter() { + runTest("compiler/testData/codegen/box/inline/innerInlineFunCapturesOuter.kt"); + } + + @Test + @TestMetadata("lambdaAsAny.kt") + public void testLambdaAsAny() { + runTest("compiler/testData/codegen/box/inline/lambdaAsAny.kt"); + } + + @Test + @TestMetadata("lambdaInDefaultValue.kt") + public void testLambdaInDefaultValue() { + runTest("compiler/testData/codegen/box/inline/lambdaInDefaultValue.kt"); + } + + @Test + @TestMetadata("lateinitProperty.kt") + public void testLateinitProperty() { + runTest("compiler/testData/codegen/box/inline/lateinitProperty.kt"); + } + + @Test + @TestMetadata("localFunctionInInitializerBlock.kt") + public void testLocalFunctionInInitializerBlock() { + runTest("compiler/testData/codegen/box/inline/localFunctionInInitializerBlock.kt"); + } + + @Test + @TestMetadata("localObjectReturnedFromWhen.kt") + public void testLocalObjectReturnedFromWhen() { + runTest("compiler/testData/codegen/box/inline/localObjectReturnedFromWhen.kt"); + } + + @Test + @TestMetadata("propertyAccessorInline.kt") + public void testPropertyAccessorInline() { + runTest("compiler/testData/codegen/box/inline/propertyAccessorInline.kt"); + } + + @Test + @TestMetadata("redundantCoercionsCleaner.kt") + public void testRedundantCoercionsCleaner() { + runTest("compiler/testData/codegen/box/inline/redundantCoercionsCleaner.kt"); + } + + @Test + @TestMetadata("redundantCoercionsCleanerKT48876.kt") + public void testRedundantCoercionsCleanerKT48876() { + runTest("compiler/testData/codegen/box/inline/redundantCoercionsCleanerKT48876.kt"); + } + + @Test + @TestMetadata("redundantCoercionsCleanerKT49356.kt") + public void testRedundantCoercionsCleanerKT49356() { + runTest("compiler/testData/codegen/box/inline/redundantCoercionsCleanerKT49356.kt"); + } + + @Test + @TestMetadata("returnLocalClassFromBlock.kt") + public void testReturnLocalClassFromBlock() { + runTest("compiler/testData/codegen/box/inline/returnLocalClassFromBlock.kt"); + } + + @Test + @TestMetadata("sharedVar.kt") + public void testSharedVar() { + runTest("compiler/testData/codegen/box/inline/sharedVar.kt"); + } + + @Test + @TestMetadata("statementAsLastExprInBlock.kt") + public void testStatementAsLastExprInBlock() { + runTest("compiler/testData/codegen/box/inline/statementAsLastExprInBlock.kt"); + } + + @Test + @TestMetadata("twiceInlinedObject.kt") + public void testTwiceInlinedObject() { + runTest("compiler/testData/codegen/box/inline/twiceInlinedObject.kt"); + } + + @Test + @TestMetadata("typeSubstitutionInFakeOverride.kt") + public void testTypeSubstitutionInFakeOverride() { + runTest("compiler/testData/codegen/box/inline/typeSubstitutionInFakeOverride.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/inlineArgsInPlace") @TestDataPath("$PROJECT_ROOT") @@ -16676,6 +18930,40 @@ public class K1WasmCodegenBoxTestGenerated extends AbstractK1WasmCodegenBoxTest } } + @Nested + @TestMetadata("compiler/testData/codegen/box/inlineClass") + @TestDataPath("$PROJECT_ROOT") + public class InlineClass { + @Test + public void testAllFilesPresentInInlineClass() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inlineClass"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true); + } + + @Test + @TestMetadata("customEquals.kt") + public void testCustomEquals() { + runTest("compiler/testData/codegen/box/inlineClass/customEquals.kt"); + } + + @Test + @TestMetadata("defaultEquals.kt") + public void testDefaultEquals() { + runTest("compiler/testData/codegen/box/inlineClass/defaultEquals.kt"); + } + + @Test + @TestMetadata("nestedInlineClasses.kt") + public void testNestedInlineClasses() { + runTest("compiler/testData/codegen/box/inlineClass/nestedInlineClasses.kt"); + } + + @Test + @TestMetadata("secondaryConstructorWithGenerics.kt") + public void testSecondaryConstructorWithGenerics() { + runTest("compiler/testData/codegen/box/inlineClass/secondaryConstructorWithGenerics.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/inlineClasses") @TestDataPath("$PROJECT_ROOT") @@ -21592,6 +23880,88 @@ public class K1WasmCodegenBoxTestGenerated extends AbstractK1WasmCodegenBoxTest } } + @Nested + @TestMetadata("compiler/testData/codegen/box/innerClass") + @TestDataPath("$PROJECT_ROOT") + public class InnerClass { + @Test + public void testAllFilesPresentInInnerClass() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/innerClass"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true); + } + + @Test + @TestMetadata("doubleInner.kt") + public void testDoubleInner() { + runTest("compiler/testData/codegen/box/innerClass/doubleInner.kt"); + } + + @Test + @TestMetadata("generic.kt") + public void testGeneric() { + runTest("compiler/testData/codegen/box/innerClass/generic.kt"); + } + + @Test + @TestMetadata("getOuterVal.kt") + public void testGetOuterVal() { + runTest("compiler/testData/codegen/box/innerClass/getOuterVal.kt"); + } + + @Test + @TestMetadata("inheritanceMultipleModules1.kt") + public void testInheritanceMultipleModules1() { + runTest("compiler/testData/codegen/box/innerClass/inheritanceMultipleModules1.kt"); + } + + @Test + @TestMetadata("inheritanceMultipleModules2.kt") + public void testInheritanceMultipleModules2() { + runTest("compiler/testData/codegen/box/innerClass/inheritanceMultipleModules2.kt"); + } + + @Test + @TestMetadata("inheritanceMultipleModules3.kt") + public void testInheritanceMultipleModules3() { + runTest("compiler/testData/codegen/box/innerClass/inheritanceMultipleModules3.kt"); + } + + @Test + @TestMetadata("multipleModules.kt") + public void testMultipleModules() { + runTest("compiler/testData/codegen/box/innerClass/multipleModules.kt"); + } + + @Test + @TestMetadata("noPrimaryConstructor.kt") + public void testNoPrimaryConstructor() { + runTest("compiler/testData/codegen/box/innerClass/noPrimaryConstructor.kt"); + } + + @Test + @TestMetadata("qualifiedThis.kt") + public void testQualifiedThis() { + runTest("compiler/testData/codegen/box/innerClass/qualifiedThis.kt"); + } + + @Test + @TestMetadata("secondaryConstructor.kt") + public void testSecondaryConstructor() { + runTest("compiler/testData/codegen/box/innerClass/secondaryConstructor.kt"); + } + + @Test + @TestMetadata("simple.kt") + public void testSimple() { + runTest("compiler/testData/codegen/box/innerClass/simple.kt"); + } + + @Test + @TestMetadata("superOuter.kt") + public void testSuperOuter() { + runTest("compiler/testData/codegen/box/innerClass/superOuter.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/innerNested") @TestDataPath("$PROJECT_ROOT") @@ -21944,6 +24314,40 @@ public class K1WasmCodegenBoxTestGenerated extends AbstractK1WasmCodegenBoxTest } } + @Nested + @TestMetadata("compiler/testData/codegen/box/interfaceCallsNCasts") + @TestDataPath("$PROJECT_ROOT") + public class InterfaceCallsNCasts { + @Test + public void testAllFilesPresentInInterfaceCallsNCasts() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/interfaceCallsNCasts"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true); + } + + @Test + @TestMetadata("conservativeItable.kt") + public void testConservativeItable() { + runTest("compiler/testData/codegen/box/interfaceCallsNCasts/conservativeItable.kt"); + } + + @Test + @TestMetadata("diamond.kt") + public void testDiamond() { + runTest("compiler/testData/codegen/box/interfaceCallsNCasts/diamond.kt"); + } + + @Test + @TestMetadata("finalMethod.kt") + public void testFinalMethod() { + runTest("compiler/testData/codegen/box/interfaceCallsNCasts/finalMethod.kt"); + } + + @Test + @TestMetadata("interface0.kt") + public void testInterface0() { + runTest("compiler/testData/codegen/box/interfaceCallsNCasts/interface0.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/intrinsics") @TestDataPath("$PROJECT_ROOT") @@ -23212,6 +25616,80 @@ public class K1WasmCodegenBoxTestGenerated extends AbstractK1WasmCodegenBoxTest } } + @Nested + @TestMetadata("compiler/testData/codegen/box/kclass") + @TestDataPath("$PROJECT_ROOT") + public class Kclass { + @Test + public void testAllFilesPresentInKclass() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/kclass"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true); + } + + @Test + @TestMetadata("kClassEnumArgument.kt") + public void testKClassEnumArgument() { + runTest("compiler/testData/codegen/box/kclass/kClassEnumArgument.kt"); + } + + @Test + @TestMetadata("kclass1.kt") + public void testKclass1() { + runTest("compiler/testData/codegen/box/kclass/kclass1.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/ktype") + @TestDataPath("$PROJECT_ROOT") + public class Ktype { + @Test + public void testAllFilesPresentInKtype() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ktype"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true); + } + + @Test + @TestMetadata("ktype1_basics1.kt") + public void testKtype1_basics1() { + runTest("compiler/testData/codegen/box/ktype/ktype1_basics1.kt"); + } + + @Test + @TestMetadata("ktype1_inner.kt") + public void testKtype1_inner() { + runTest("compiler/testData/codegen/box/ktype/ktype1_inner.kt"); + } + + @Test + @TestMetadata("nonReified_class.kt") + public void testNonReified_class() { + runTest("compiler/testData/codegen/box/ktype/nonReified_class.kt"); + } + + @Test + @TestMetadata("nonReified_equality.kt") + public void testNonReified_equality() { + runTest("compiler/testData/codegen/box/ktype/nonReified_equality.kt"); + } + + @Test + @TestMetadata("nonReified_fun.kt") + public void testNonReified_fun() { + runTest("compiler/testData/codegen/box/ktype/nonReified_fun.kt"); + } + + @Test + @TestMetadata("nonReified_recursionInReified.kt") + public void testNonReified_recursionInReified() { + runTest("compiler/testData/codegen/box/ktype/nonReified_recursionInReified.kt"); + } + + @Test + @TestMetadata("nonReified_reifiedUpperBound.kt") + public void testNonReified_reifiedUpperBound() { + runTest("compiler/testData/codegen/box/ktype/nonReified_reifiedUpperBound.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/labels") @TestDataPath("$PROJECT_ROOT") @@ -23270,6 +25748,188 @@ public class K1WasmCodegenBoxTestGenerated extends AbstractK1WasmCodegenBoxTest } } + @Nested + @TestMetadata("compiler/testData/codegen/box/lambda") + @TestDataPath("$PROJECT_ROOT") + public class Lambda { + @Test + public void testAllFilesPresentInLambda() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/lambda"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true); + } + + @Test + @TestMetadata("lambda1.kt") + public void testLambda1() { + runTest("compiler/testData/codegen/box/lambda/lambda1.kt"); + } + + @Test + @TestMetadata("lambda10.kt") + public void testLambda10() { + runTest("compiler/testData/codegen/box/lambda/lambda10.kt"); + } + + @Test + @TestMetadata("lambda11.kt") + public void testLambda11() { + runTest("compiler/testData/codegen/box/lambda/lambda11.kt"); + } + + @Test + @TestMetadata("lambda12.kt") + public void testLambda12() { + runTest("compiler/testData/codegen/box/lambda/lambda12.kt"); + } + + @Test + @TestMetadata("lambda13.kt") + public void testLambda13() { + runTest("compiler/testData/codegen/box/lambda/lambda13.kt"); + } + + @Test + @TestMetadata("lambda14.kt") + public void testLambda14() { + runTest("compiler/testData/codegen/box/lambda/lambda14.kt"); + } + + @Test + @TestMetadata("lambda2.kt") + public void testLambda2() { + runTest("compiler/testData/codegen/box/lambda/lambda2.kt"); + } + + @Test + @TestMetadata("lambda3.kt") + public void testLambda3() { + runTest("compiler/testData/codegen/box/lambda/lambda3.kt"); + } + + @Test + @TestMetadata("lambda4.kt") + public void testLambda4() { + runTest("compiler/testData/codegen/box/lambda/lambda4.kt"); + } + + @Test + @TestMetadata("lambda5.kt") + public void testLambda5() { + runTest("compiler/testData/codegen/box/lambda/lambda5.kt"); + } + + @Test + @TestMetadata("lambda6.kt") + public void testLambda6() { + runTest("compiler/testData/codegen/box/lambda/lambda6.kt"); + } + + @Test + @TestMetadata("lambda7.kt") + public void testLambda7() { + runTest("compiler/testData/codegen/box/lambda/lambda7.kt"); + } + + @Test + @TestMetadata("lambda8.kt") + public void testLambda8() { + runTest("compiler/testData/codegen/box/lambda/lambda8.kt"); + } + + @Test + @TestMetadata("lambda9.kt") + public void testLambda9() { + runTest("compiler/testData/codegen/box/lambda/lambda9.kt"); + } + + @Test + @TestMetadata("lambda_kt49360_trivial.kt") + public void testLambda_kt49360_trivial() { + runTest("compiler/testData/codegen/box/lambda/lambda_kt49360_trivial.kt"); + } + + @Test + @TestMetadata("lambda_kt49360_withFlow.kt") + public void testLambda_kt49360_withFlow() { + runTest("compiler/testData/codegen/box/lambda/lambda_kt49360_withFlow.kt"); + } + + @Test + @TestMetadata("lambda_kt49360_wrapBlock.kt") + public void testLambda_kt49360_wrapBlock() { + runTest("compiler/testData/codegen/box/lambda/lambda_kt49360_wrapBlock.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/lateinit") + @TestDataPath("$PROJECT_ROOT") + public class Lateinit { + @Test + public void testAllFilesPresentInLateinit() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/lateinit"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true); + } + + @Test + @TestMetadata("globalIsInitialized.kt") + public void testGlobalIsInitialized() { + runTest("compiler/testData/codegen/box/lateinit/globalIsInitialized.kt"); + } + + @Test + @TestMetadata("inBaseClass.kt") + public void testInBaseClass() { + runTest("compiler/testData/codegen/box/lateinit/inBaseClass.kt"); + } + + @Test + @TestMetadata("initialized.kt") + public void testInitialized() { + runTest("compiler/testData/codegen/box/lateinit/initialized.kt"); + } + + @Test + @TestMetadata("innerIsInitialized.kt") + public void testInnerIsInitialized() { + runTest("compiler/testData/codegen/box/lateinit/innerIsInitialized.kt"); + } + + @Test + @TestMetadata("isInitialized.kt") + public void testIsInitialized() { + runTest("compiler/testData/codegen/box/lateinit/isInitialized.kt"); + } + + @Test + @TestMetadata("localCapturedInitialized.kt") + public void testLocalCapturedInitialized() { + runTest("compiler/testData/codegen/box/lateinit/localCapturedInitialized.kt"); + } + + @Test + @TestMetadata("localCapturedNotInitialized.kt") + public void testLocalCapturedNotInitialized() { + runTest("compiler/testData/codegen/box/lateinit/localCapturedNotInitialized.kt"); + } + + @Test + @TestMetadata("localInitialized.kt") + public void testLocalInitialized() { + runTest("compiler/testData/codegen/box/lateinit/localInitialized.kt"); + } + + @Test + @TestMetadata("localNotInitialized.kt") + public void testLocalNotInitialized() { + runTest("compiler/testData/codegen/box/lateinit/localNotInitialized.kt"); + } + + @Test + @TestMetadata("notInitialized.kt") + public void testNotInitialized() { + runTest("compiler/testData/codegen/box/lateinit/notInitialized.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/lazyCodegen") @TestDataPath("$PROJECT_ROOT") @@ -23398,6 +26058,98 @@ public class K1WasmCodegenBoxTestGenerated extends AbstractK1WasmCodegenBoxTest } } + @Nested + @TestMetadata("compiler/testData/codegen/box/literals") + @TestDataPath("$PROJECT_ROOT") + public class Literals { + @Test + public void testAllFilesPresentInLiterals() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/literals"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true); + } + + @Test + @TestMetadata("listof1.kt") + public void testListof1() { + runTest("compiler/testData/codegen/box/literals/listof1.kt"); + } + + @Test + @TestMetadata("strdedup1.kt") + public void testStrdedup1() { + runTest("compiler/testData/codegen/box/literals/strdedup1.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/localClass") + @TestDataPath("$PROJECT_ROOT") + public class LocalClass { + @Test + public void testAllFilesPresentInLocalClass() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/localClass"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true); + } + + @Test + @TestMetadata("innerTakesCapturedFromOuter.kt") + public void testInnerTakesCapturedFromOuter() { + runTest("compiler/testData/codegen/box/localClass/innerTakesCapturedFromOuter.kt"); + } + + @Test + @TestMetadata("innerWithCapture.kt") + public void testInnerWithCapture() { + runTest("compiler/testData/codegen/box/localClass/innerWithCapture.kt"); + } + + @Test + @TestMetadata("localFunctionCallFromLocalClass.kt") + public void testLocalFunctionCallFromLocalClass() { + runTest("compiler/testData/codegen/box/localClass/localFunctionCallFromLocalClass.kt"); + } + + @Test + @TestMetadata("localFunctionInLocalClass.kt") + public void testLocalFunctionInLocalClass() { + runTest("compiler/testData/codegen/box/localClass/localFunctionInLocalClass.kt"); + } + + @Test + @TestMetadata("localHierarchy.kt") + public void testLocalHierarchy() { + runTest("compiler/testData/codegen/box/localClass/localHierarchy.kt"); + } + + @Test + @TestMetadata("noPrimaryConstructor.kt") + public void testNoPrimaryConstructor() { + runTest("compiler/testData/codegen/box/localClass/noPrimaryConstructor.kt"); + } + + @Test + @TestMetadata("objectExpressionInInitializer.kt") + public void testObjectExpressionInInitializer() { + runTest("compiler/testData/codegen/box/localClass/objectExpressionInInitializer.kt"); + } + + @Test + @TestMetadata("objectExpressionInProperty.kt") + public void testObjectExpressionInProperty() { + runTest("compiler/testData/codegen/box/localClass/objectExpressionInProperty.kt"); + } + + @Test + @TestMetadata("tryCatch.kt") + public void testTryCatch() { + runTest("compiler/testData/codegen/box/localClass/tryCatch.kt"); + } + + @Test + @TestMetadata("virtualCallFromConstructor.kt") + public void testVirtualCallFromConstructor() { + runTest("compiler/testData/codegen/box/localClass/virtualCallFromConstructor.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/localClasses") @TestDataPath("$PROJECT_ROOT") @@ -23648,6 +26400,38 @@ public class K1WasmCodegenBoxTestGenerated extends AbstractK1WasmCodegenBoxTest } } + @Nested + @TestMetadata("compiler/testData/codegen/box/localEscapeAnalysis") + @TestDataPath("$PROJECT_ROOT") + public class LocalEscapeAnalysis { + @Test + public void testAllFilesPresentInLocalEscapeAnalysis() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/localEscapeAnalysis"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true); + } + + @Test + @TestMetadata("arraysFieldWrite.kt") + public void testArraysFieldWrite() { + runTest("compiler/testData/codegen/box/localEscapeAnalysis/arraysFieldWrite.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/lower") + @TestDataPath("$PROJECT_ROOT") + public class Lower { + @Test + public void testAllFilesPresentInLower() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/lower"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true); + } + + @Test + @TestMetadata("localDelegatedProperty.kt") + public void testLocalDelegatedProperty() { + runTest("compiler/testData/codegen/box/lower/localDelegatedProperty.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/mangling") @TestDataPath("$PROJECT_ROOT") @@ -23675,6 +26459,12 @@ public class K1WasmCodegenBoxTestGenerated extends AbstractK1WasmCodegenBoxTest runTest("compiler/testData/codegen/box/mangling/internalOverrideSuperCall.kt"); } + @Test + @TestMetadata("multipleConstructors.kt") + public void testMultipleConstructors() { + runTest("compiler/testData/codegen/box/mangling/multipleConstructors.kt"); + } + @Test @TestMetadata("parentheses.kt") public void testParentheses() { @@ -24632,6 +27422,98 @@ public class K1WasmCodegenBoxTestGenerated extends AbstractK1WasmCodegenBoxTest } } + @Nested + @TestMetadata("compiler/testData/codegen/box/object") + @TestDataPath("$PROJECT_ROOT") + public class Object { + @Test + public void testAllFilesPresentInObject() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/object"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true); + } + + @Test + @TestMetadata("constructor0.kt") + public void testConstructor0() { + runTest("compiler/testData/codegen/box/object/constructor0.kt"); + } + + @Test + @TestMetadata("fields.kt") + public void testFields() { + runTest("compiler/testData/codegen/box/object/fields.kt"); + } + + @Test + @TestMetadata("fields1.kt") + public void testFields1() { + runTest("compiler/testData/codegen/box/object/fields1.kt"); + } + + @Test + @TestMetadata("fields2.kt") + public void testFields2() { + runTest("compiler/testData/codegen/box/object/fields2.kt"); + } + + @Test + @TestMetadata("globalInitializer.kt") + public void testGlobalInitializer() { + runTest("compiler/testData/codegen/box/object/globalInitializer.kt"); + } + + @Test + @TestMetadata("init0.kt") + public void testInit0() { + runTest("compiler/testData/codegen/box/object/init0.kt"); + } + + @Test + @TestMetadata("initialization.kt") + public void testInitialization() { + runTest("compiler/testData/codegen/box/object/initialization.kt"); + } + + @Test + @TestMetadata("initialization1.kt") + public void testInitialization1() { + runTest("compiler/testData/codegen/box/object/initialization1.kt"); + } + + @Test + @TestMetadata("method_call.kt") + public void testMethod_call() { + runTest("compiler/testData/codegen/box/object/method_call.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/codegen/box/objectExpression") + @TestDataPath("$PROJECT_ROOT") + public class ObjectExpression { + @Test + public void testAllFilesPresentInObjectExpression() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/objectExpression"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true); + } + + @Test + @TestMetadata("expr1.kt") + public void testExpr1() { + runTest("compiler/testData/codegen/box/objectExpression/expr1.kt"); + } + + @Test + @TestMetadata("expr2.kt") + public void testExpr2() { + runTest("compiler/testData/codegen/box/objectExpression/expr2.kt"); + } + + @Test + @TestMetadata("expr3.kt") + public void testExpr3() { + runTest("compiler/testData/codegen/box/objectExpression/expr3.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/objectIntrinsics") @TestDataPath("$PROJECT_ROOT") @@ -27400,6 +30282,64 @@ public class K1WasmCodegenBoxTestGenerated extends AbstractK1WasmCodegenBoxTest } } + @Nested + @TestMetadata("compiler/testData/codegen/box/propertyCallableReference") + @TestDataPath("$PROJECT_ROOT") + public class PropertyCallableReference { + @Test + public void testAllFilesPresentInPropertyCallableReference() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/propertyCallableReference"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true); + } + + @Test + @TestMetadata("dynamicReceiver.kt") + public void testDynamicReceiver() { + runTest("compiler/testData/codegen/box/propertyCallableReference/dynamicReceiver.kt"); + } + + @Test + @TestMetadata("multipleModules.kt") + public void testMultipleModules() { + runTest("compiler/testData/codegen/box/propertyCallableReference/multipleModules.kt"); + } + + @Test + @TestMetadata("valClass.kt") + public void testValClass() { + runTest("compiler/testData/codegen/box/propertyCallableReference/valClass.kt"); + } + + @Test + @TestMetadata("valExtension.kt") + public void testValExtension() { + runTest("compiler/testData/codegen/box/propertyCallableReference/valExtension.kt"); + } + + @Test + @TestMetadata("valModule.kt") + public void testValModule() { + runTest("compiler/testData/codegen/box/propertyCallableReference/valModule.kt"); + } + + @Test + @TestMetadata("varClass.kt") + public void testVarClass() { + runTest("compiler/testData/codegen/box/propertyCallableReference/varClass.kt"); + } + + @Test + @TestMetadata("varExtension.kt") + public void testVarExtension() { + runTest("compiler/testData/codegen/box/propertyCallableReference/varExtension.kt"); + } + + @Test + @TestMetadata("varModule.kt") + public void testVarModule() { + runTest("compiler/testData/codegen/box/propertyCallableReference/varModule.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/publishedApi") @TestDataPath("$PROJECT_ROOT") @@ -35050,6 +37990,58 @@ public class K1WasmCodegenBoxTestGenerated extends AbstractK1WasmCodegenBoxTest } } + @Nested + @TestMetadata("compiler/testData/codegen/box/serialization") + @TestDataPath("$PROJECT_ROOT") + public class Serialization { + @Test + public void testAllFilesPresentInSerialization() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/serialization"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true); + } + + @Test + @TestMetadata("deserializedMembers.kt") + public void testDeserializedMembers() { + runTest("compiler/testData/codegen/box/serialization/deserializedMembers.kt"); + } + + @Test + @TestMetadata("serializedCatch.kt") + public void testSerializedCatch() { + runTest("compiler/testData/codegen/box/serialization/serializedCatch.kt"); + } + + @Test + @TestMetadata("serializedCharConstant.kt") + public void testSerializedCharConstant() { + runTest("compiler/testData/codegen/box/serialization/serializedCharConstant.kt"); + } + + @Test + @TestMetadata("serializedDefaultArgs.kt") + public void testSerializedDefaultArgs() { + runTest("compiler/testData/codegen/box/serialization/serializedDefaultArgs.kt"); + } + + @Test + @TestMetadata("serializedDoWhile.kt") + public void testSerializedDoWhile() { + runTest("compiler/testData/codegen/box/serialization/serializedDoWhile.kt"); + } + + @Test + @TestMetadata("serializedEnumOrdinal.kt") + public void testSerializedEnumOrdinal() { + runTest("compiler/testData/codegen/box/serialization/serializedEnumOrdinal.kt"); + } + + @Test + @TestMetadata("serializedVararg.kt") + public void testSerializedVararg() { + runTest("compiler/testData/codegen/box/serialization/serializedVararg.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/size") @TestDataPath("$PROJECT_ROOT") @@ -35572,6 +38564,22 @@ public class K1WasmCodegenBoxTestGenerated extends AbstractK1WasmCodegenBoxTest } } + @Nested + @TestMetadata("compiler/testData/codegen/box/stringTrim") + @TestDataPath("$PROJECT_ROOT") + public class StringTrim { + @Test + public void testAllFilesPresentInStringTrim() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/stringTrim"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true); + } + + @Test + @TestMetadata("stringTrim.kt") + public void testStringTrim() { + runTest("compiler/testData/codegen/box/stringTrim/stringTrim.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/strings") @TestDataPath("$PROJECT_ROOT") @@ -36632,6 +39640,142 @@ public class K1WasmCodegenBoxTestGenerated extends AbstractK1WasmCodegenBoxTest } } + @Nested + @TestMetadata("compiler/testData/codegen/box/try") + @TestDataPath("$PROJECT_ROOT") + public class Try { + @Test + public void testAllFilesPresentInTry() { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/try"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true); + } + + @Test + @TestMetadata("catch3.kt") + public void testCatch3() { + runTest("compiler/testData/codegen/box/try/catch3.kt"); + } + + @Test + @TestMetadata("catch4.kt") + public void testCatch4() { + runTest("compiler/testData/codegen/box/try/catch4.kt"); + } + + @Test + @TestMetadata("catch5.kt") + public void testCatch5() { + runTest("compiler/testData/codegen/box/try/catch5.kt"); + } + + @Test + @TestMetadata("catch6.kt") + public void testCatch6() { + runTest("compiler/testData/codegen/box/try/catch6.kt"); + } + + @Test + @TestMetadata("catch8.kt") + public void testCatch8() { + runTest("compiler/testData/codegen/box/try/catch8.kt"); + } + + @Test + @TestMetadata("finally1.kt") + public void testFinally1() { + runTest("compiler/testData/codegen/box/try/finally1.kt"); + } + + @Test + @TestMetadata("finally10.kt") + public void testFinally10() { + runTest("compiler/testData/codegen/box/try/finally10.kt"); + } + + @Test + @TestMetadata("finally11.kt") + public void testFinally11() { + runTest("compiler/testData/codegen/box/try/finally11.kt"); + } + + @Test + @TestMetadata("finally2.kt") + public void testFinally2() { + runTest("compiler/testData/codegen/box/try/finally2.kt"); + } + + @Test + @TestMetadata("finally3.kt") + public void testFinally3() { + runTest("compiler/testData/codegen/box/try/finally3.kt"); + } + + @Test + @TestMetadata("finally4.kt") + public void testFinally4() { + runTest("compiler/testData/codegen/box/try/finally4.kt"); + } + + @Test + @TestMetadata("finally5.kt") + public void testFinally5() { + runTest("compiler/testData/codegen/box/try/finally5.kt"); + } + + @Test + @TestMetadata("finally6.kt") + public void testFinally6() { + runTest("compiler/testData/codegen/box/try/finally6.kt"); + } + + @Test + @TestMetadata("finally7.kt") + public void testFinally7() { + runTest("compiler/testData/codegen/box/try/finally7.kt"); + } + + @Test + @TestMetadata("finally8.kt") + public void testFinally8() { + runTest("compiler/testData/codegen/box/try/finally8.kt"); + } + + @Test + @TestMetadata("finally9.kt") + public void testFinally9() { + runTest("compiler/testData/codegen/box/try/finally9.kt"); + } + + @Test + @TestMetadata("returnsDifferentTypes.kt") + public void testReturnsDifferentTypes() { + runTest("compiler/testData/codegen/box/try/returnsDifferentTypes.kt"); + } + + @Test + @TestMetadata("try1.kt") + public void testTry1() { + runTest("compiler/testData/codegen/box/try/try1.kt"); + } + + @Test + @TestMetadata("try2.kt") + public void testTry2() { + runTest("compiler/testData/codegen/box/try/try2.kt"); + } + + @Test + @TestMetadata("try3.kt") + public void testTry3() { + runTest("compiler/testData/codegen/box/try/try3.kt"); + } + + @Test + @TestMetadata("try4.kt") + public void testTry4() { + runTest("compiler/testData/codegen/box/try/try4.kt"); + } + } + @Nested @TestMetadata("compiler/testData/codegen/box/typeInfo") @TestDataPath("$PROJECT_ROOT")