From 962bce19a22a572aabe2603d16595647f634608d Mon Sep 17 00:00:00 2001 From: Igor Chevdar Date: Sun, 30 Apr 2017 12:38:24 +0500 Subject: [PATCH] Enabled tests on coroutines for native --- .../box/coroutines/32defaultParametersInSuspend.kt | 1 - .../codegen/box/coroutines/accessorForSuspend.kt | 1 - .../testData/codegen/box/coroutines/asyncIterator.kt | 1 - .../codegen/box/coroutines/asyncIteratorToList.kt | 1 - compiler/testData/codegen/box/coroutines/await.kt | 1 - .../codegen/box/coroutines/beginWithException.kt | 1 - .../beginWithExceptionNoHandleException.kt | 1 - .../codegen/box/coroutines/coercionToUnit.kt | 1 - .../box/coroutines/controlFlow/breakFinally.kt | 1 - .../box/coroutines/controlFlow/breakStatement.kt | 1 - .../box/coroutines/controlFlow/doWhileStatement.kt | 1 - .../box/coroutines/controlFlow/forContinue.kt | 1 - .../box/coroutines/controlFlow/forStatement.kt | 1 - .../box/coroutines/controlFlow/ifStatement.kt | 1 - .../box/coroutines/controlFlow/labeledWhile.kt | 1 - .../box/coroutines/controlFlow/returnFromFinally.kt | 1 - .../box/coroutines/controlFlow/switchLikeWhen.kt | 1 - .../box/coroutines/controlFlow/throwFromCatch.kt | 1 - .../controlFlow/throwInTryWithHandleResult.kt | 1 - .../box/coroutines/controlFlow/whileStatement.kt | 1 - .../coroutines/controllerAccessFromInnerLambda.kt | 1 - .../codegen/box/coroutines/createCoroutineSafe.kt | 1 - .../coroutines/createCoroutinesOnManualInstances.kt | 2 +- .../box/coroutines/defaultParametersInSuspend.kt | 1 - .../codegen/box/coroutines/dispatchResume.kt | 1 - .../testData/codegen/box/coroutines/emptyClosure.kt | 1 - .../codegen/box/coroutines/falseUnitCoercion.kt | 1 - .../featureIntersection/destructuringInLambdas.kt | 1 - .../featureIntersection/safeCallOnTwoReceivers.kt | 1 - .../safeCallOnTwoReceiversLong.kt | 1 - .../suspendDestructuringInLambdas.kt | 1 - .../box/coroutines/featureIntersection/tailrec.kt | 1 - compiler/testData/codegen/box/coroutines/generate.kt | 1 - .../codegen/box/coroutines/handleException.kt | 1 - .../box/coroutines/handleResultCallEmptyBody.kt | 1 - .../box/coroutines/handleResultNonUnitExpression.kt | 1 - .../codegen/box/coroutines/handleResultSuspended.kt | 1 - .../testData/codegen/box/coroutines/illegalState.kt | 1 - .../codegen/box/coroutines/inlinedTryCatchFinally.kt | 1 - .../codegen/box/coroutines/innerSuspensionCalls.kt | 1 - .../intLikeVarSpilling/complicatedMerge.kt | 1 - .../box/coroutines/intLikeVarSpilling/i2bResult.kt | 1 - .../intLikeVarSpilling/loadFromBooleanArray.kt | 1 - .../intLikeVarSpilling/loadFromByteArray.kt | 1 - .../intLikeVarSpilling/noVariableInTable.kt | 1 - .../intLikeVarSpilling/sameIconst1ManyVars.kt | 1 - .../intLikeVarSpilling/usedInArrayStore.kt | 1 - .../intLikeVarSpilling/usedInMethodCall.kt | 1 - .../coroutines/intLikeVarSpilling/usedInPutfield.kt | 1 - .../coroutines/intLikeVarSpilling/usedInVarStore.kt | 1 - .../coroutines/intrinsicSemantics/startCoroutine.kt | 1 - .../startCoroutineUninterceptedOrReturn.kt | 1 - ...tartCoroutineUninterceptedOrReturnInterception.kt | 1 - .../codegen/box/coroutines/iterateOverArray.kt | 1 - compiler/testData/codegen/box/coroutines/kt12958.kt | 1 - compiler/testData/codegen/box/coroutines/kt15016.kt | 1 - compiler/testData/codegen/box/coroutines/kt15017.kt | 1 - .../codegen/box/coroutines/lastExpressionIsLoop.kt | 1 - .../codegen/box/coroutines/lastStatementInc.kt | 1 - .../codegen/box/coroutines/lastStementAssignment.kt | 1 - .../codegen/box/coroutines/lastUnitExpression.kt | 1 - .../testData/codegen/box/coroutines/localDelegate.kt | 1 - .../codegen/box/coroutines/mergeNullAndString.kt | 1 - .../multiModule/inlineFunctionWithOptionalParam.kt | 1 - .../codegen/box/coroutines/multiModule/simple.kt | 1 - .../codegen/box/coroutines/multipleInvokeCalls.kt | 1 - .../multipleInvokeCallsInsideInlineLambda1.kt | 1 - .../multipleInvokeCallsInsideInlineLambda2.kt | 1 - .../multipleInvokeCallsInsideInlineLambda3.kt | 1 - .../codegen/box/coroutines/nestedTryCatch.kt | 1 - .../codegen/box/coroutines/noSuspensionPoints.kt | 1 - .../box/coroutines/nonLocalReturnFromInlineLambda.kt | 1 - .../coroutines/nonLocalReturnFromInlineLambdaDeep.kt | 1 - .../box/coroutines/overrideDefaultArgument.kt | 1 - .../codegen/box/coroutines/recursiveSuspend.kt | 1 - .../testData/codegen/box/coroutines/returnByLabel.kt | 1 - compiler/testData/codegen/box/coroutines/simple.kt | 1 - .../codegen/box/coroutines/simpleException.kt | 1 - .../codegen/box/coroutines/simpleWithHandleResult.kt | 1 - .../box/coroutines/stackUnwinding/exception.kt | 1 - .../codegen/box/coroutines/stackUnwinding/simple.kt | 1 - .../box/coroutines/stackUnwinding/suspendInCycle.kt | 1 - .../box/coroutines/statementLikeLastExpression.kt | 1 - .../coroutines/suspendCoroutineFromStateMachine.kt | 1 - .../codegen/box/coroutines/suspendDefaultImpl.kt | 1 - .../codegen/box/coroutines/suspendDelegation.kt | 1 - .../box/coroutines/suspendFromInlineLambda.kt | 1 - .../box/coroutines/suspendFunImportedFromObject.kt | 1 - .../augmentedAssignment.kt | 3 +-- .../suspendFunctionAsCoroutine/dispatchResume.kt | 1 - .../suspendFunctionAsCoroutine/handleException.kt | 1 - .../coroutines/suspendFunctionAsCoroutine/inline.kt | 1 - .../suspendFunctionAsCoroutine/inlineTwoReceivers.kt | 3 +-- .../coroutines/suspendFunctionAsCoroutine/member.kt | 1 - .../noinlineTwoReceivers.kt | 1 - .../suspendFunctionAsCoroutine/operators.kt | 1 - .../suspendFunctionAsCoroutine/privateFunctions.kt | 1 - .../suspendFunctionAsCoroutine/privateInFile.kt | 1 - .../suspendFunctionAsCoroutine/returnNoSuspend.kt | 1 - .../coroutines/suspendFunctionAsCoroutine/simple.kt | 1 - .../suspendFunctionAsCoroutine/withVariables.kt | 1 - .../coroutines/suspendFunctionTypeCall/localVal.kt | 1 - .../suspendFunctionTypeCall/manyParameters.kt | 1 - .../box/coroutines/suspendFunctionTypeCall/simple.kt | 1 - .../codegen/box/coroutines/suspendInCycle.kt | 1 - .../suspendInTheMiddleOfObjectConstruction.kt | 1 - .../box/coroutines/suspensionInsideSafeCall.kt | 1 - .../coroutines/suspensionInsideSafeCallWithElvis.kt | 1 - .../box/coroutines/tailOperations/suspendWithIf.kt | 1 - .../coroutines/tailOperations/suspendWithTryCatch.kt | 1 - .../box/coroutines/tailOperations/suspendWithWhen.kt | 1 - .../box/coroutines/tailOperations/tailInlining.kt | 1 - .../coroutines/tryCatchFinallyWithHandleResult.kt | 1 - .../box/coroutines/tryCatchWithHandleResult.kt | 1 - .../box/coroutines/tryFinallyInsideInlineLambda.kt | 1 - .../box/coroutines/tryFinallyWithHandleResult.kt | 1 - .../unitTypeReturn/coroutineNonLocalReturn.kt | 1 - .../box/coroutines/unitTypeReturn/coroutineReturn.kt | 1 - .../unitTypeReturn/suspendNonLocalReturn.kt | 2 +- .../box/coroutines/unitTypeReturn/suspendReturn.kt | 1 - .../box/coroutines/varSpilling/nullSpilling.kt | 1 - .../box/coroutines/varValueConflictsWithTable.kt | 1 - .../coroutines/varValueConflictsWithTableSameSort.kt | 1 - .../codegen/ir/IrBlackBoxCodegenTestGenerated.java | 12 ++++++++++++ .../kotlin/codegen/BlackBoxCodegenTestGenerated.java | 12 ++++++++++++ .../codegen/LightAnalysisModeTestGenerated.java | 12 ++++++++++++ .../js/test/semantics/JsCodegenBoxTestGenerated.java | 12 ++++++++++++ .../semantics/OutputPrefixPostfixTestGenerated.java | 1 - .../SourceMapGenerationSmokeTestGenerated.java | 1 - 129 files changed, 52 insertions(+), 127 deletions(-) diff --git a/compiler/testData/codegen/box/coroutines/32defaultParametersInSuspend.kt b/compiler/testData/codegen/box/coroutines/32defaultParametersInSuspend.kt index b4db3363660..6903dcf0a31 100644 --- a/compiler/testData/codegen/box/coroutines/32defaultParametersInSuspend.kt +++ b/compiler/testData/codegen/box/coroutines/32defaultParametersInSuspend.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // WITH_RUNTIME // WITH_COROUTINES import kotlin.coroutines.experimental.* diff --git a/compiler/testData/codegen/box/coroutines/accessorForSuspend.kt b/compiler/testData/codegen/box/coroutines/accessorForSuspend.kt index 14c07d8753a..80d7e79a640 100644 --- a/compiler/testData/codegen/box/coroutines/accessorForSuspend.kt +++ b/compiler/testData/codegen/box/coroutines/accessorForSuspend.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // WITH_RUNTIME // WITH_COROUTINES import kotlin.coroutines.experimental.* diff --git a/compiler/testData/codegen/box/coroutines/asyncIterator.kt b/compiler/testData/codegen/box/coroutines/asyncIterator.kt index 3d296292cde..295062e2142 100644 --- a/compiler/testData/codegen/box/coroutines/asyncIterator.kt +++ b/compiler/testData/codegen/box/coroutines/asyncIterator.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // WITH_RUNTIME // WITH_COROUTINES import kotlin.coroutines.experimental.* diff --git a/compiler/testData/codegen/box/coroutines/asyncIteratorToList.kt b/compiler/testData/codegen/box/coroutines/asyncIteratorToList.kt index 76db51566d9..5b08a0d107b 100644 --- a/compiler/testData/codegen/box/coroutines/asyncIteratorToList.kt +++ b/compiler/testData/codegen/box/coroutines/asyncIteratorToList.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // WITH_RUNTIME // WITH_COROUTINES import kotlin.coroutines.experimental.* diff --git a/compiler/testData/codegen/box/coroutines/await.kt b/compiler/testData/codegen/box/coroutines/await.kt index 33c864a53b3..2a9d842c05d 100644 --- a/compiler/testData/codegen/box/coroutines/await.kt +++ b/compiler/testData/codegen/box/coroutines/await.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // WITH_RUNTIME // WITH_COROUTINES // FILE: promise.kt diff --git a/compiler/testData/codegen/box/coroutines/beginWithException.kt b/compiler/testData/codegen/box/coroutines/beginWithException.kt index e1bf8a4d75d..e11a087a858 100644 --- a/compiler/testData/codegen/box/coroutines/beginWithException.kt +++ b/compiler/testData/codegen/box/coroutines/beginWithException.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // WITH_RUNTIME // WITH_COROUTINES import kotlin.coroutines.experimental.* diff --git a/compiler/testData/codegen/box/coroutines/beginWithExceptionNoHandleException.kt b/compiler/testData/codegen/box/coroutines/beginWithExceptionNoHandleException.kt index 0d2871f61b2..235c8c3075b 100644 --- a/compiler/testData/codegen/box/coroutines/beginWithExceptionNoHandleException.kt +++ b/compiler/testData/codegen/box/coroutines/beginWithExceptionNoHandleException.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // WITH_RUNTIME // WITH_COROUTINES import kotlin.coroutines.experimental.* diff --git a/compiler/testData/codegen/box/coroutines/coercionToUnit.kt b/compiler/testData/codegen/box/coroutines/coercionToUnit.kt index 2703c04c7df..b748de8601d 100644 --- a/compiler/testData/codegen/box/coroutines/coercionToUnit.kt +++ b/compiler/testData/codegen/box/coroutines/coercionToUnit.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // WITH_RUNTIME // WITH_COROUTINES import kotlin.coroutines.experimental.* diff --git a/compiler/testData/codegen/box/coroutines/controlFlow/breakFinally.kt b/compiler/testData/codegen/box/coroutines/controlFlow/breakFinally.kt index d0e26cd30a7..c9d6469c61a 100644 --- a/compiler/testData/codegen/box/coroutines/controlFlow/breakFinally.kt +++ b/compiler/testData/codegen/box/coroutines/controlFlow/breakFinally.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // WITH_RUNTIME // WITH_COROUTINES import kotlin.coroutines.experimental.* diff --git a/compiler/testData/codegen/box/coroutines/controlFlow/breakStatement.kt b/compiler/testData/codegen/box/coroutines/controlFlow/breakStatement.kt index 580979e7978..d05c3b50e4b 100644 --- a/compiler/testData/codegen/box/coroutines/controlFlow/breakStatement.kt +++ b/compiler/testData/codegen/box/coroutines/controlFlow/breakStatement.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // WITH_RUNTIME // WITH_COROUTINES import kotlin.coroutines.experimental.* diff --git a/compiler/testData/codegen/box/coroutines/controlFlow/doWhileStatement.kt b/compiler/testData/codegen/box/coroutines/controlFlow/doWhileStatement.kt index a1989513e70..c6daeb7a1a0 100644 --- a/compiler/testData/codegen/box/coroutines/controlFlow/doWhileStatement.kt +++ b/compiler/testData/codegen/box/coroutines/controlFlow/doWhileStatement.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // WITH_RUNTIME // WITH_COROUTINES import kotlin.coroutines.experimental.* diff --git a/compiler/testData/codegen/box/coroutines/controlFlow/forContinue.kt b/compiler/testData/codegen/box/coroutines/controlFlow/forContinue.kt index 769fe1c7ddc..e07ea2612eb 100644 --- a/compiler/testData/codegen/box/coroutines/controlFlow/forContinue.kt +++ b/compiler/testData/codegen/box/coroutines/controlFlow/forContinue.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // WITH_RUNTIME // WITH_COROUTINES import kotlin.coroutines.experimental.* diff --git a/compiler/testData/codegen/box/coroutines/controlFlow/forStatement.kt b/compiler/testData/codegen/box/coroutines/controlFlow/forStatement.kt index 91c278f0faf..1361c86f414 100644 --- a/compiler/testData/codegen/box/coroutines/controlFlow/forStatement.kt +++ b/compiler/testData/codegen/box/coroutines/controlFlow/forStatement.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // WITH_RUNTIME // WITH_COROUTINES import kotlin.coroutines.experimental.* diff --git a/compiler/testData/codegen/box/coroutines/controlFlow/ifStatement.kt b/compiler/testData/codegen/box/coroutines/controlFlow/ifStatement.kt index ffcfef17c55..d3e0891127b 100644 --- a/compiler/testData/codegen/box/coroutines/controlFlow/ifStatement.kt +++ b/compiler/testData/codegen/box/coroutines/controlFlow/ifStatement.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // WITH_RUNTIME // WITH_COROUTINES import kotlin.coroutines.experimental.* diff --git a/compiler/testData/codegen/box/coroutines/controlFlow/labeledWhile.kt b/compiler/testData/codegen/box/coroutines/controlFlow/labeledWhile.kt index fda94456574..0be9b8010fd 100644 --- a/compiler/testData/codegen/box/coroutines/controlFlow/labeledWhile.kt +++ b/compiler/testData/codegen/box/coroutines/controlFlow/labeledWhile.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // WITH_RUNTIME // WITH_COROUTINES import kotlin.coroutines.experimental.* diff --git a/compiler/testData/codegen/box/coroutines/controlFlow/returnFromFinally.kt b/compiler/testData/codegen/box/coroutines/controlFlow/returnFromFinally.kt index 97823f76293..01f19d05911 100644 --- a/compiler/testData/codegen/box/coroutines/controlFlow/returnFromFinally.kt +++ b/compiler/testData/codegen/box/coroutines/controlFlow/returnFromFinally.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // WITH_RUNTIME // WITH_COROUTINES import kotlin.coroutines.experimental.* diff --git a/compiler/testData/codegen/box/coroutines/controlFlow/switchLikeWhen.kt b/compiler/testData/codegen/box/coroutines/controlFlow/switchLikeWhen.kt index af2096fa147..47cb022c353 100644 --- a/compiler/testData/codegen/box/coroutines/controlFlow/switchLikeWhen.kt +++ b/compiler/testData/codegen/box/coroutines/controlFlow/switchLikeWhen.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // WITH_RUNTIME // WITH_COROUTINES import kotlin.coroutines.experimental.* diff --git a/compiler/testData/codegen/box/coroutines/controlFlow/throwFromCatch.kt b/compiler/testData/codegen/box/coroutines/controlFlow/throwFromCatch.kt index 4ab3972e998..52d91402cb6 100644 --- a/compiler/testData/codegen/box/coroutines/controlFlow/throwFromCatch.kt +++ b/compiler/testData/codegen/box/coroutines/controlFlow/throwFromCatch.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // WITH_RUNTIME // WITH_COROUTINES import kotlin.coroutines.experimental.* diff --git a/compiler/testData/codegen/box/coroutines/controlFlow/throwInTryWithHandleResult.kt b/compiler/testData/codegen/box/coroutines/controlFlow/throwInTryWithHandleResult.kt index 15f2d1fb3e8..a1e9267f5fb 100644 --- a/compiler/testData/codegen/box/coroutines/controlFlow/throwInTryWithHandleResult.kt +++ b/compiler/testData/codegen/box/coroutines/controlFlow/throwInTryWithHandleResult.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // WITH_RUNTIME // WITH_COROUTINES import kotlin.coroutines.experimental.* diff --git a/compiler/testData/codegen/box/coroutines/controlFlow/whileStatement.kt b/compiler/testData/codegen/box/coroutines/controlFlow/whileStatement.kt index 0f9c8685e50..2f3c622e3d0 100644 --- a/compiler/testData/codegen/box/coroutines/controlFlow/whileStatement.kt +++ b/compiler/testData/codegen/box/coroutines/controlFlow/whileStatement.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // WITH_RUNTIME // WITH_COROUTINES import kotlin.coroutines.experimental.* diff --git a/compiler/testData/codegen/box/coroutines/controllerAccessFromInnerLambda.kt b/compiler/testData/codegen/box/coroutines/controllerAccessFromInnerLambda.kt index 74dbdf8b23f..e1f965aac16 100644 --- a/compiler/testData/codegen/box/coroutines/controllerAccessFromInnerLambda.kt +++ b/compiler/testData/codegen/box/coroutines/controllerAccessFromInnerLambda.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // WITH_RUNTIME // WITH_COROUTINES import kotlin.coroutines.experimental.* diff --git a/compiler/testData/codegen/box/coroutines/createCoroutineSafe.kt b/compiler/testData/codegen/box/coroutines/createCoroutineSafe.kt index 6c8f2330304..063b58847f9 100644 --- a/compiler/testData/codegen/box/coroutines/createCoroutineSafe.kt +++ b/compiler/testData/codegen/box/coroutines/createCoroutineSafe.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // WITH_RUNTIME // WITH_COROUTINES import kotlin.coroutines.experimental.* diff --git a/compiler/testData/codegen/box/coroutines/createCoroutinesOnManualInstances.kt b/compiler/testData/codegen/box/coroutines/createCoroutinesOnManualInstances.kt index 7b7ebf262ce..1834496d4ad 100644 --- a/compiler/testData/codegen/box/coroutines/createCoroutinesOnManualInstances.kt +++ b/compiler/testData/codegen/box/coroutines/createCoroutinesOnManualInstances.kt @@ -1,5 +1,5 @@ // WITH_RUNTIME -// IGNORE_BACKEND: JS, NATIVE +// IGNORE_BACKEND: JS import kotlin.coroutines.experimental.* import kotlin.coroutines.experimental.intrinsics.COROUTINE_SUSPENDED diff --git a/compiler/testData/codegen/box/coroutines/defaultParametersInSuspend.kt b/compiler/testData/codegen/box/coroutines/defaultParametersInSuspend.kt index 2c05ebcb014..9bf39a8e1e3 100644 --- a/compiler/testData/codegen/box/coroutines/defaultParametersInSuspend.kt +++ b/compiler/testData/codegen/box/coroutines/defaultParametersInSuspend.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // WITH_RUNTIME // WITH_COROUTINES import kotlin.coroutines.experimental.* diff --git a/compiler/testData/codegen/box/coroutines/dispatchResume.kt b/compiler/testData/codegen/box/coroutines/dispatchResume.kt index 6bcd95ff8e5..eba202028aa 100644 --- a/compiler/testData/codegen/box/coroutines/dispatchResume.kt +++ b/compiler/testData/codegen/box/coroutines/dispatchResume.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // WITH_RUNTIME // WITH_COROUTINES import kotlin.coroutines.experimental.* diff --git a/compiler/testData/codegen/box/coroutines/emptyClosure.kt b/compiler/testData/codegen/box/coroutines/emptyClosure.kt index 8e37d949a66..984f5d9887e 100644 --- a/compiler/testData/codegen/box/coroutines/emptyClosure.kt +++ b/compiler/testData/codegen/box/coroutines/emptyClosure.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // WITH_RUNTIME // WITH_COROUTINES import kotlin.coroutines.experimental.* diff --git a/compiler/testData/codegen/box/coroutines/falseUnitCoercion.kt b/compiler/testData/codegen/box/coroutines/falseUnitCoercion.kt index 39d9f4d74c8..5a0a32f9663 100644 --- a/compiler/testData/codegen/box/coroutines/falseUnitCoercion.kt +++ b/compiler/testData/codegen/box/coroutines/falseUnitCoercion.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // WITH_RUNTIME // WITH_COROUTINES import kotlin.coroutines.experimental.* diff --git a/compiler/testData/codegen/box/coroutines/featureIntersection/destructuringInLambdas.kt b/compiler/testData/codegen/box/coroutines/featureIntersection/destructuringInLambdas.kt index df8ef6d64be..ccd252770a7 100644 --- a/compiler/testData/codegen/box/coroutines/featureIntersection/destructuringInLambdas.kt +++ b/compiler/testData/codegen/box/coroutines/featureIntersection/destructuringInLambdas.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // WITH_RUNTIME // WITH_COROUTINES import kotlin.coroutines.experimental.* diff --git a/compiler/testData/codegen/box/coroutines/featureIntersection/safeCallOnTwoReceivers.kt b/compiler/testData/codegen/box/coroutines/featureIntersection/safeCallOnTwoReceivers.kt index 5a1116ebbf0..dd2da5f3fb7 100644 --- a/compiler/testData/codegen/box/coroutines/featureIntersection/safeCallOnTwoReceivers.kt +++ b/compiler/testData/codegen/box/coroutines/featureIntersection/safeCallOnTwoReceivers.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // WITH_RUNTIME // WITH_COROUTINES import kotlin.coroutines.experimental.* diff --git a/compiler/testData/codegen/box/coroutines/featureIntersection/safeCallOnTwoReceiversLong.kt b/compiler/testData/codegen/box/coroutines/featureIntersection/safeCallOnTwoReceiversLong.kt index 48f4c56b587..1be7838af41 100644 --- a/compiler/testData/codegen/box/coroutines/featureIntersection/safeCallOnTwoReceiversLong.kt +++ b/compiler/testData/codegen/box/coroutines/featureIntersection/safeCallOnTwoReceiversLong.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // WITH_RUNTIME // WITH_COROUTINES import kotlin.coroutines.experimental.* diff --git a/compiler/testData/codegen/box/coroutines/featureIntersection/suspendDestructuringInLambdas.kt b/compiler/testData/codegen/box/coroutines/featureIntersection/suspendDestructuringInLambdas.kt index 06a88fea79d..cd15d1c7a39 100644 --- a/compiler/testData/codegen/box/coroutines/featureIntersection/suspendDestructuringInLambdas.kt +++ b/compiler/testData/codegen/box/coroutines/featureIntersection/suspendDestructuringInLambdas.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // WITH_RUNTIME // WITH_COROUTINES import kotlin.coroutines.experimental.* diff --git a/compiler/testData/codegen/box/coroutines/featureIntersection/tailrec.kt b/compiler/testData/codegen/box/coroutines/featureIntersection/tailrec.kt index 8c0cd42e2f1..db05670e584 100644 --- a/compiler/testData/codegen/box/coroutines/featureIntersection/tailrec.kt +++ b/compiler/testData/codegen/box/coroutines/featureIntersection/tailrec.kt @@ -1,6 +1,5 @@ // WITH_RUNTIME // WITH_COROUTINES -// IGNORE_BACKEND: NATIVE import kotlin.coroutines.experimental.* import kotlin.coroutines.experimental.intrinsics.* import kotlin.test.assertEquals diff --git a/compiler/testData/codegen/box/coroutines/generate.kt b/compiler/testData/codegen/box/coroutines/generate.kt index 4a525f5e43d..3a5526d17cc 100644 --- a/compiler/testData/codegen/box/coroutines/generate.kt +++ b/compiler/testData/codegen/box/coroutines/generate.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // WITH_RUNTIME // WITH_COROUTINES // FULL_JDK diff --git a/compiler/testData/codegen/box/coroutines/handleException.kt b/compiler/testData/codegen/box/coroutines/handleException.kt index c8f97aa177c..83f07670ff5 100644 --- a/compiler/testData/codegen/box/coroutines/handleException.kt +++ b/compiler/testData/codegen/box/coroutines/handleException.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // WITH_RUNTIME // WITH_COROUTINES import kotlin.coroutines.experimental.* diff --git a/compiler/testData/codegen/box/coroutines/handleResultCallEmptyBody.kt b/compiler/testData/codegen/box/coroutines/handleResultCallEmptyBody.kt index 6efb0ecb5ce..20bf73c9e0e 100644 --- a/compiler/testData/codegen/box/coroutines/handleResultCallEmptyBody.kt +++ b/compiler/testData/codegen/box/coroutines/handleResultCallEmptyBody.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // WITH_RUNTIME // WITH_COROUTINES import kotlin.coroutines.experimental.* diff --git a/compiler/testData/codegen/box/coroutines/handleResultNonUnitExpression.kt b/compiler/testData/codegen/box/coroutines/handleResultNonUnitExpression.kt index 4b6d8b28f68..e39f079a618 100644 --- a/compiler/testData/codegen/box/coroutines/handleResultNonUnitExpression.kt +++ b/compiler/testData/codegen/box/coroutines/handleResultNonUnitExpression.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // WITH_RUNTIME // WITH_COROUTINES import kotlin.coroutines.experimental.* diff --git a/compiler/testData/codegen/box/coroutines/handleResultSuspended.kt b/compiler/testData/codegen/box/coroutines/handleResultSuspended.kt index f817b292bd3..d7ffca75fcb 100644 --- a/compiler/testData/codegen/box/coroutines/handleResultSuspended.kt +++ b/compiler/testData/codegen/box/coroutines/handleResultSuspended.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // WITH_RUNTIME // WITH_COROUTINES import kotlin.coroutines.experimental.* diff --git a/compiler/testData/codegen/box/coroutines/illegalState.kt b/compiler/testData/codegen/box/coroutines/illegalState.kt index 058c1bbd465..90c7c2bec8e 100644 --- a/compiler/testData/codegen/box/coroutines/illegalState.kt +++ b/compiler/testData/codegen/box/coroutines/illegalState.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // WITH_RUNTIME // WITH_COROUTINES // TARGET_BACKEND: JVM diff --git a/compiler/testData/codegen/box/coroutines/inlinedTryCatchFinally.kt b/compiler/testData/codegen/box/coroutines/inlinedTryCatchFinally.kt index 11ab7a0f6b4..5aa0d35642f 100644 --- a/compiler/testData/codegen/box/coroutines/inlinedTryCatchFinally.kt +++ b/compiler/testData/codegen/box/coroutines/inlinedTryCatchFinally.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // WITH_RUNTIME // WITH_COROUTINES import kotlin.coroutines.experimental.* diff --git a/compiler/testData/codegen/box/coroutines/innerSuspensionCalls.kt b/compiler/testData/codegen/box/coroutines/innerSuspensionCalls.kt index d6cd8e837b6..893313e1ebd 100644 --- a/compiler/testData/codegen/box/coroutines/innerSuspensionCalls.kt +++ b/compiler/testData/codegen/box/coroutines/innerSuspensionCalls.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // WITH_RUNTIME // WITH_COROUTINES import kotlin.coroutines.experimental.* diff --git a/compiler/testData/codegen/box/coroutines/intLikeVarSpilling/complicatedMerge.kt b/compiler/testData/codegen/box/coroutines/intLikeVarSpilling/complicatedMerge.kt index 52f27d180ed..b76a6afee15 100644 --- a/compiler/testData/codegen/box/coroutines/intLikeVarSpilling/complicatedMerge.kt +++ b/compiler/testData/codegen/box/coroutines/intLikeVarSpilling/complicatedMerge.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // WITH_RUNTIME // WITH_COROUTINES import kotlin.coroutines.experimental.* diff --git a/compiler/testData/codegen/box/coroutines/intLikeVarSpilling/i2bResult.kt b/compiler/testData/codegen/box/coroutines/intLikeVarSpilling/i2bResult.kt index 8b36e2d2347..b07c0563b2f 100644 --- a/compiler/testData/codegen/box/coroutines/intLikeVarSpilling/i2bResult.kt +++ b/compiler/testData/codegen/box/coroutines/intLikeVarSpilling/i2bResult.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // WITH_RUNTIME // WITH_COROUTINES import kotlin.coroutines.experimental.* diff --git a/compiler/testData/codegen/box/coroutines/intLikeVarSpilling/loadFromBooleanArray.kt b/compiler/testData/codegen/box/coroutines/intLikeVarSpilling/loadFromBooleanArray.kt index 29f168d04ea..8e4184b4f4f 100644 --- a/compiler/testData/codegen/box/coroutines/intLikeVarSpilling/loadFromBooleanArray.kt +++ b/compiler/testData/codegen/box/coroutines/intLikeVarSpilling/loadFromBooleanArray.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // WITH_RUNTIME // WITH_COROUTINES import kotlin.coroutines.experimental.* diff --git a/compiler/testData/codegen/box/coroutines/intLikeVarSpilling/loadFromByteArray.kt b/compiler/testData/codegen/box/coroutines/intLikeVarSpilling/loadFromByteArray.kt index f3fa12f8f0f..d80336da7a9 100644 --- a/compiler/testData/codegen/box/coroutines/intLikeVarSpilling/loadFromByteArray.kt +++ b/compiler/testData/codegen/box/coroutines/intLikeVarSpilling/loadFromByteArray.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // WITH_RUNTIME // WITH_COROUTINES import kotlin.coroutines.experimental.* diff --git a/compiler/testData/codegen/box/coroutines/intLikeVarSpilling/noVariableInTable.kt b/compiler/testData/codegen/box/coroutines/intLikeVarSpilling/noVariableInTable.kt index 56d07ff5cde..64cf6f7ba66 100644 --- a/compiler/testData/codegen/box/coroutines/intLikeVarSpilling/noVariableInTable.kt +++ b/compiler/testData/codegen/box/coroutines/intLikeVarSpilling/noVariableInTable.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // WITH_RUNTIME // WITH_COROUTINES import kotlin.coroutines.experimental.* diff --git a/compiler/testData/codegen/box/coroutines/intLikeVarSpilling/sameIconst1ManyVars.kt b/compiler/testData/codegen/box/coroutines/intLikeVarSpilling/sameIconst1ManyVars.kt index 2cf2ea7b57a..66c41f7f17d 100644 --- a/compiler/testData/codegen/box/coroutines/intLikeVarSpilling/sameIconst1ManyVars.kt +++ b/compiler/testData/codegen/box/coroutines/intLikeVarSpilling/sameIconst1ManyVars.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // WITH_RUNTIME // WITH_COROUTINES import kotlin.coroutines.experimental.* diff --git a/compiler/testData/codegen/box/coroutines/intLikeVarSpilling/usedInArrayStore.kt b/compiler/testData/codegen/box/coroutines/intLikeVarSpilling/usedInArrayStore.kt index 760ff0e035d..607e62bf21d 100644 --- a/compiler/testData/codegen/box/coroutines/intLikeVarSpilling/usedInArrayStore.kt +++ b/compiler/testData/codegen/box/coroutines/intLikeVarSpilling/usedInArrayStore.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // WITH_RUNTIME // WITH_COROUTINES // TARGET_BACKEND: JVM diff --git a/compiler/testData/codegen/box/coroutines/intLikeVarSpilling/usedInMethodCall.kt b/compiler/testData/codegen/box/coroutines/intLikeVarSpilling/usedInMethodCall.kt index ccc22a38043..754f98a689e 100644 --- a/compiler/testData/codegen/box/coroutines/intLikeVarSpilling/usedInMethodCall.kt +++ b/compiler/testData/codegen/box/coroutines/intLikeVarSpilling/usedInMethodCall.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // WITH_RUNTIME // WITH_COROUTINES import kotlin.coroutines.experimental.* diff --git a/compiler/testData/codegen/box/coroutines/intLikeVarSpilling/usedInPutfield.kt b/compiler/testData/codegen/box/coroutines/intLikeVarSpilling/usedInPutfield.kt index 07a11770dba..07f12615884 100644 --- a/compiler/testData/codegen/box/coroutines/intLikeVarSpilling/usedInPutfield.kt +++ b/compiler/testData/codegen/box/coroutines/intLikeVarSpilling/usedInPutfield.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // WITH_RUNTIME // WITH_COROUTINES // TARGET_BACKEND: JVM diff --git a/compiler/testData/codegen/box/coroutines/intLikeVarSpilling/usedInVarStore.kt b/compiler/testData/codegen/box/coroutines/intLikeVarSpilling/usedInVarStore.kt index 9f340b0f7b8..4a86e948b31 100644 --- a/compiler/testData/codegen/box/coroutines/intLikeVarSpilling/usedInVarStore.kt +++ b/compiler/testData/codegen/box/coroutines/intLikeVarSpilling/usedInVarStore.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // WITH_RUNTIME // WITH_COROUTINES import kotlin.coroutines.experimental.* diff --git a/compiler/testData/codegen/box/coroutines/intrinsicSemantics/startCoroutine.kt b/compiler/testData/codegen/box/coroutines/intrinsicSemantics/startCoroutine.kt index 3f815c14682..fdb722e8560 100644 --- a/compiler/testData/codegen/box/coroutines/intrinsicSemantics/startCoroutine.kt +++ b/compiler/testData/codegen/box/coroutines/intrinsicSemantics/startCoroutine.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // WITH_RUNTIME // WITH_COROUTINES import kotlin.coroutines.experimental.* diff --git a/compiler/testData/codegen/box/coroutines/intrinsicSemantics/startCoroutineUninterceptedOrReturn.kt b/compiler/testData/codegen/box/coroutines/intrinsicSemantics/startCoroutineUninterceptedOrReturn.kt index 01091e8da24..7ccdef95424 100644 --- a/compiler/testData/codegen/box/coroutines/intrinsicSemantics/startCoroutineUninterceptedOrReturn.kt +++ b/compiler/testData/codegen/box/coroutines/intrinsicSemantics/startCoroutineUninterceptedOrReturn.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // WITH_RUNTIME // WITH_COROUTINES import kotlin.coroutines.experimental.* diff --git a/compiler/testData/codegen/box/coroutines/intrinsicSemantics/startCoroutineUninterceptedOrReturnInterception.kt b/compiler/testData/codegen/box/coroutines/intrinsicSemantics/startCoroutineUninterceptedOrReturnInterception.kt index acf58ce553e..f7352ff650c 100644 --- a/compiler/testData/codegen/box/coroutines/intrinsicSemantics/startCoroutineUninterceptedOrReturnInterception.kt +++ b/compiler/testData/codegen/box/coroutines/intrinsicSemantics/startCoroutineUninterceptedOrReturnInterception.kt @@ -1,6 +1,5 @@ // WITH_RUNTIME // WITH_COROUTINES -// IGNORE_BACKEND: NATIVE import kotlin.coroutines.experimental.* import kotlin.coroutines.experimental.intrinsics.* import kotlin.test.assertEquals diff --git a/compiler/testData/codegen/box/coroutines/iterateOverArray.kt b/compiler/testData/codegen/box/coroutines/iterateOverArray.kt index 835ae396dbe..a04c9b6cdf7 100644 --- a/compiler/testData/codegen/box/coroutines/iterateOverArray.kt +++ b/compiler/testData/codegen/box/coroutines/iterateOverArray.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // WITH_RUNTIME // WITH_COROUTINES import kotlin.coroutines.experimental.* diff --git a/compiler/testData/codegen/box/coroutines/kt12958.kt b/compiler/testData/codegen/box/coroutines/kt12958.kt index a4c3a8dace2..f8d4ecddc51 100644 --- a/compiler/testData/codegen/box/coroutines/kt12958.kt +++ b/compiler/testData/codegen/box/coroutines/kt12958.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // WITH_RUNTIME // WITH_COROUTINES // WITH_CONTINUATION diff --git a/compiler/testData/codegen/box/coroutines/kt15016.kt b/compiler/testData/codegen/box/coroutines/kt15016.kt index e3052db6066..d64875ab1e8 100644 --- a/compiler/testData/codegen/box/coroutines/kt15016.kt +++ b/compiler/testData/codegen/box/coroutines/kt15016.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // WITH_RUNTIME // WITH_COROUTINES diff --git a/compiler/testData/codegen/box/coroutines/kt15017.kt b/compiler/testData/codegen/box/coroutines/kt15017.kt index f7c1e60f3f2..7ea892a72de 100644 --- a/compiler/testData/codegen/box/coroutines/kt15017.kt +++ b/compiler/testData/codegen/box/coroutines/kt15017.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // WITH_RUNTIME // WITH_COROUTINES import kotlin.coroutines.experimental.startCoroutine diff --git a/compiler/testData/codegen/box/coroutines/lastExpressionIsLoop.kt b/compiler/testData/codegen/box/coroutines/lastExpressionIsLoop.kt index 541742d5fcc..c66a58230a1 100644 --- a/compiler/testData/codegen/box/coroutines/lastExpressionIsLoop.kt +++ b/compiler/testData/codegen/box/coroutines/lastExpressionIsLoop.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // WITH_RUNTIME // WITH_COROUTINES import kotlin.coroutines.experimental.* diff --git a/compiler/testData/codegen/box/coroutines/lastStatementInc.kt b/compiler/testData/codegen/box/coroutines/lastStatementInc.kt index 4ac571292f2..61e2c26e3e1 100644 --- a/compiler/testData/codegen/box/coroutines/lastStatementInc.kt +++ b/compiler/testData/codegen/box/coroutines/lastStatementInc.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // WITH_RUNTIME // WITH_COROUTINES import kotlin.coroutines.experimental.* diff --git a/compiler/testData/codegen/box/coroutines/lastStementAssignment.kt b/compiler/testData/codegen/box/coroutines/lastStementAssignment.kt index cb9029d88b5..6e718c6c5bf 100644 --- a/compiler/testData/codegen/box/coroutines/lastStementAssignment.kt +++ b/compiler/testData/codegen/box/coroutines/lastStementAssignment.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // WITH_RUNTIME // WITH_COROUTINES import kotlin.coroutines.experimental.* diff --git a/compiler/testData/codegen/box/coroutines/lastUnitExpression.kt b/compiler/testData/codegen/box/coroutines/lastUnitExpression.kt index c8b48fe0087..b0cd8f5e999 100644 --- a/compiler/testData/codegen/box/coroutines/lastUnitExpression.kt +++ b/compiler/testData/codegen/box/coroutines/lastUnitExpression.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // WITH_RUNTIME // WITH_COROUTINES import kotlin.coroutines.experimental.* diff --git a/compiler/testData/codegen/box/coroutines/localDelegate.kt b/compiler/testData/codegen/box/coroutines/localDelegate.kt index 89b337ffee0..1958e47b65b 100644 --- a/compiler/testData/codegen/box/coroutines/localDelegate.kt +++ b/compiler/testData/codegen/box/coroutines/localDelegate.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // WITH_RUNTIME // WITH_COROUTINES import kotlin.coroutines.experimental.* diff --git a/compiler/testData/codegen/box/coroutines/mergeNullAndString.kt b/compiler/testData/codegen/box/coroutines/mergeNullAndString.kt index 79d2d6aaec0..5dff958abf9 100644 --- a/compiler/testData/codegen/box/coroutines/mergeNullAndString.kt +++ b/compiler/testData/codegen/box/coroutines/mergeNullAndString.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // WITH_RUNTIME // WITH_COROUTINES import kotlin.coroutines.experimental.* diff --git a/compiler/testData/codegen/box/coroutines/multiModule/inlineFunctionWithOptionalParam.kt b/compiler/testData/codegen/box/coroutines/multiModule/inlineFunctionWithOptionalParam.kt index 7169206bb51..8bd32078f68 100644 --- a/compiler/testData/codegen/box/coroutines/multiModule/inlineFunctionWithOptionalParam.kt +++ b/compiler/testData/codegen/box/coroutines/multiModule/inlineFunctionWithOptionalParam.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // MODULE: lib // FILE: lib.kt inline fun foo(x: String = "OK"): String { diff --git a/compiler/testData/codegen/box/coroutines/multiModule/simple.kt b/compiler/testData/codegen/box/coroutines/multiModule/simple.kt index e5fdc55d60f..905ef1eca6b 100644 --- a/compiler/testData/codegen/box/coroutines/multiModule/simple.kt +++ b/compiler/testData/codegen/box/coroutines/multiModule/simple.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // WITH_RUNTIME // WITH_COROUTINES // MODULE: controller diff --git a/compiler/testData/codegen/box/coroutines/multipleInvokeCalls.kt b/compiler/testData/codegen/box/coroutines/multipleInvokeCalls.kt index 519cb59c915..0d2c85f9269 100644 --- a/compiler/testData/codegen/box/coroutines/multipleInvokeCalls.kt +++ b/compiler/testData/codegen/box/coroutines/multipleInvokeCalls.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // WITH_RUNTIME // WITH_COROUTINES import kotlin.coroutines.experimental.* diff --git a/compiler/testData/codegen/box/coroutines/multipleInvokeCallsInsideInlineLambda1.kt b/compiler/testData/codegen/box/coroutines/multipleInvokeCallsInsideInlineLambda1.kt index 63a8ecc6905..2d4fef59734 100644 --- a/compiler/testData/codegen/box/coroutines/multipleInvokeCallsInsideInlineLambda1.kt +++ b/compiler/testData/codegen/box/coroutines/multipleInvokeCallsInsideInlineLambda1.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // WITH_RUNTIME // WITH_COROUTINES import kotlin.coroutines.experimental.* diff --git a/compiler/testData/codegen/box/coroutines/multipleInvokeCallsInsideInlineLambda2.kt b/compiler/testData/codegen/box/coroutines/multipleInvokeCallsInsideInlineLambda2.kt index 748aeb78071..9e332c6a522 100644 --- a/compiler/testData/codegen/box/coroutines/multipleInvokeCallsInsideInlineLambda2.kt +++ b/compiler/testData/codegen/box/coroutines/multipleInvokeCallsInsideInlineLambda2.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // WITH_RUNTIME // WITH_COROUTINES import kotlin.coroutines.experimental.* diff --git a/compiler/testData/codegen/box/coroutines/multipleInvokeCallsInsideInlineLambda3.kt b/compiler/testData/codegen/box/coroutines/multipleInvokeCallsInsideInlineLambda3.kt index a70e8237c89..3ae8ff00b88 100644 --- a/compiler/testData/codegen/box/coroutines/multipleInvokeCallsInsideInlineLambda3.kt +++ b/compiler/testData/codegen/box/coroutines/multipleInvokeCallsInsideInlineLambda3.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // WITH_RUNTIME // WITH_COROUTINES import kotlin.coroutines.experimental.* diff --git a/compiler/testData/codegen/box/coroutines/nestedTryCatch.kt b/compiler/testData/codegen/box/coroutines/nestedTryCatch.kt index 2d73e3f4323..42f2b2fcb9a 100644 --- a/compiler/testData/codegen/box/coroutines/nestedTryCatch.kt +++ b/compiler/testData/codegen/box/coroutines/nestedTryCatch.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // WITH_RUNTIME // WITH_COROUTINES import kotlin.coroutines.experimental.* diff --git a/compiler/testData/codegen/box/coroutines/noSuspensionPoints.kt b/compiler/testData/codegen/box/coroutines/noSuspensionPoints.kt index a581b1246a8..407817b38dc 100644 --- a/compiler/testData/codegen/box/coroutines/noSuspensionPoints.kt +++ b/compiler/testData/codegen/box/coroutines/noSuspensionPoints.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // WITH_RUNTIME // WITH_COROUTINES import kotlin.coroutines.experimental.* diff --git a/compiler/testData/codegen/box/coroutines/nonLocalReturnFromInlineLambda.kt b/compiler/testData/codegen/box/coroutines/nonLocalReturnFromInlineLambda.kt index ebc43368846..dcc2aa2ea4f 100644 --- a/compiler/testData/codegen/box/coroutines/nonLocalReturnFromInlineLambda.kt +++ b/compiler/testData/codegen/box/coroutines/nonLocalReturnFromInlineLambda.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // WITH_RUNTIME // WITH_COROUTINES import kotlin.coroutines.experimental.* diff --git a/compiler/testData/codegen/box/coroutines/nonLocalReturnFromInlineLambdaDeep.kt b/compiler/testData/codegen/box/coroutines/nonLocalReturnFromInlineLambdaDeep.kt index ef60c14a4da..0b96c70729e 100644 --- a/compiler/testData/codegen/box/coroutines/nonLocalReturnFromInlineLambdaDeep.kt +++ b/compiler/testData/codegen/box/coroutines/nonLocalReturnFromInlineLambdaDeep.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // WITH_RUNTIME // WITH_COROUTINES import kotlin.coroutines.experimental.* diff --git a/compiler/testData/codegen/box/coroutines/overrideDefaultArgument.kt b/compiler/testData/codegen/box/coroutines/overrideDefaultArgument.kt index f248d0181de..e8d3016fc1b 100644 --- a/compiler/testData/codegen/box/coroutines/overrideDefaultArgument.kt +++ b/compiler/testData/codegen/box/coroutines/overrideDefaultArgument.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // WITH_RUNTIME // WITH_COROUTINES import kotlin.coroutines.experimental.* diff --git a/compiler/testData/codegen/box/coroutines/recursiveSuspend.kt b/compiler/testData/codegen/box/coroutines/recursiveSuspend.kt index 099cbb57781..75d44d53540 100644 --- a/compiler/testData/codegen/box/coroutines/recursiveSuspend.kt +++ b/compiler/testData/codegen/box/coroutines/recursiveSuspend.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // WITH_RUNTIME // WITH_COROUTINES import kotlin.coroutines.experimental.* diff --git a/compiler/testData/codegen/box/coroutines/returnByLabel.kt b/compiler/testData/codegen/box/coroutines/returnByLabel.kt index a1ca0187b0c..5e95df2c18a 100644 --- a/compiler/testData/codegen/box/coroutines/returnByLabel.kt +++ b/compiler/testData/codegen/box/coroutines/returnByLabel.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // WITH_RUNTIME // WITH_COROUTINES import kotlin.coroutines.experimental.* diff --git a/compiler/testData/codegen/box/coroutines/simple.kt b/compiler/testData/codegen/box/coroutines/simple.kt index dbfd0f4f439..3949a59fc55 100644 --- a/compiler/testData/codegen/box/coroutines/simple.kt +++ b/compiler/testData/codegen/box/coroutines/simple.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // WITH_RUNTIME // WITH_COROUTINES import kotlin.coroutines.experimental.* diff --git a/compiler/testData/codegen/box/coroutines/simpleException.kt b/compiler/testData/codegen/box/coroutines/simpleException.kt index 2bfb2dd1b69..161997d1900 100644 --- a/compiler/testData/codegen/box/coroutines/simpleException.kt +++ b/compiler/testData/codegen/box/coroutines/simpleException.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // WITH_RUNTIME // WITH_COROUTINES import kotlin.coroutines.experimental.* diff --git a/compiler/testData/codegen/box/coroutines/simpleWithHandleResult.kt b/compiler/testData/codegen/box/coroutines/simpleWithHandleResult.kt index e3587825778..c1ff5344a56 100644 --- a/compiler/testData/codegen/box/coroutines/simpleWithHandleResult.kt +++ b/compiler/testData/codegen/box/coroutines/simpleWithHandleResult.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // WITH_RUNTIME // WITH_COROUTINES import kotlin.coroutines.experimental.* diff --git a/compiler/testData/codegen/box/coroutines/stackUnwinding/exception.kt b/compiler/testData/codegen/box/coroutines/stackUnwinding/exception.kt index cc152d0e318..3b8542609ac 100644 --- a/compiler/testData/codegen/box/coroutines/stackUnwinding/exception.kt +++ b/compiler/testData/codegen/box/coroutines/stackUnwinding/exception.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // WITH_RUNTIME // WITH_COROUTINES import kotlin.coroutines.experimental.* diff --git a/compiler/testData/codegen/box/coroutines/stackUnwinding/simple.kt b/compiler/testData/codegen/box/coroutines/stackUnwinding/simple.kt index deb77541c28..8490f059c65 100644 --- a/compiler/testData/codegen/box/coroutines/stackUnwinding/simple.kt +++ b/compiler/testData/codegen/box/coroutines/stackUnwinding/simple.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // WITH_RUNTIME // WITH_COROUTINES import kotlin.coroutines.experimental.* diff --git a/compiler/testData/codegen/box/coroutines/stackUnwinding/suspendInCycle.kt b/compiler/testData/codegen/box/coroutines/stackUnwinding/suspendInCycle.kt index 2cc8829dfa9..949eb98b135 100644 --- a/compiler/testData/codegen/box/coroutines/stackUnwinding/suspendInCycle.kt +++ b/compiler/testData/codegen/box/coroutines/stackUnwinding/suspendInCycle.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // WITH_RUNTIME // WITH_COROUTINES import kotlin.coroutines.experimental.* diff --git a/compiler/testData/codegen/box/coroutines/statementLikeLastExpression.kt b/compiler/testData/codegen/box/coroutines/statementLikeLastExpression.kt index ce5b968b2b0..e0c534dcd9f 100644 --- a/compiler/testData/codegen/box/coroutines/statementLikeLastExpression.kt +++ b/compiler/testData/codegen/box/coroutines/statementLikeLastExpression.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // WITH_RUNTIME // WITH_COROUTINES import kotlin.coroutines.experimental.* diff --git a/compiler/testData/codegen/box/coroutines/suspendCoroutineFromStateMachine.kt b/compiler/testData/codegen/box/coroutines/suspendCoroutineFromStateMachine.kt index 650eb832356..0414efb0f85 100644 --- a/compiler/testData/codegen/box/coroutines/suspendCoroutineFromStateMachine.kt +++ b/compiler/testData/codegen/box/coroutines/suspendCoroutineFromStateMachine.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // WITH_RUNTIME // WITH_COROUTINES import kotlin.coroutines.experimental.* diff --git a/compiler/testData/codegen/box/coroutines/suspendDefaultImpl.kt b/compiler/testData/codegen/box/coroutines/suspendDefaultImpl.kt index 48d5e86af8d..535f646fe2d 100644 --- a/compiler/testData/codegen/box/coroutines/suspendDefaultImpl.kt +++ b/compiler/testData/codegen/box/coroutines/suspendDefaultImpl.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // WITH_RUNTIME // WITH_COROUTINES import kotlin.coroutines.experimental.startCoroutine diff --git a/compiler/testData/codegen/box/coroutines/suspendDelegation.kt b/compiler/testData/codegen/box/coroutines/suspendDelegation.kt index edd82ac6830..423bdabc38d 100644 --- a/compiler/testData/codegen/box/coroutines/suspendDelegation.kt +++ b/compiler/testData/codegen/box/coroutines/suspendDelegation.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // WITH_RUNTIME // WITH_COROUTINES import kotlin.coroutines.experimental.* diff --git a/compiler/testData/codegen/box/coroutines/suspendFromInlineLambda.kt b/compiler/testData/codegen/box/coroutines/suspendFromInlineLambda.kt index 8bb1c374599..c018dba5681 100644 --- a/compiler/testData/codegen/box/coroutines/suspendFromInlineLambda.kt +++ b/compiler/testData/codegen/box/coroutines/suspendFromInlineLambda.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // WITH_RUNTIME // WITH_COROUTINES import kotlin.coroutines.experimental.* diff --git a/compiler/testData/codegen/box/coroutines/suspendFunImportedFromObject.kt b/compiler/testData/codegen/box/coroutines/suspendFunImportedFromObject.kt index a0ea8b7a8d0..cc8ed7b6667 100644 --- a/compiler/testData/codegen/box/coroutines/suspendFunImportedFromObject.kt +++ b/compiler/testData/codegen/box/coroutines/suspendFunImportedFromObject.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // WITH_RUNTIME // WITH_COROUTINES diff --git a/compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/augmentedAssignment.kt b/compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/augmentedAssignment.kt index 7cf0c97d532..9151a5b6af6 100644 --- a/compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/augmentedAssignment.kt +++ b/compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/augmentedAssignment.kt @@ -1,8 +1,7 @@ -// IGNORE_BACKEND: NATIVE +// IGNORE_BACKEND: JVM // WITH_RUNTIME // WITH_COROUTINES -// TARGET_BACKEND: JS // TODO: looks like this is a bug in JVM backend import kotlin.coroutines.experimental.* import kotlin.coroutines.experimental.intrinsics.* diff --git a/compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/dispatchResume.kt b/compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/dispatchResume.kt index 0037fcda1dc..b1e3c89fb50 100644 --- a/compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/dispatchResume.kt +++ b/compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/dispatchResume.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // WITH_RUNTIME // WITH_COROUTINES import kotlin.coroutines.experimental.* diff --git a/compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/handleException.kt b/compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/handleException.kt index c682cc3bed1..ccc3838bcd7 100644 --- a/compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/handleException.kt +++ b/compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/handleException.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // WITH_RUNTIME // WITH_COROUTINES import kotlin.coroutines.experimental.* diff --git a/compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/inline.kt b/compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/inline.kt index c7d21c9a645..484da635199 100644 --- a/compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/inline.kt +++ b/compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/inline.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // WITH_RUNTIME // WITH_COROUTINES import kotlin.coroutines.experimental.* diff --git a/compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/inlineTwoReceivers.kt b/compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/inlineTwoReceivers.kt index 98aaa64a6e7..b8e07042827 100644 --- a/compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/inlineTwoReceivers.kt +++ b/compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/inlineTwoReceivers.kt @@ -1,7 +1,6 @@ -// IGNORE_BACKEND: NATIVE +// IGNORE_BACKEND: JS // WITH_RUNTIME // WITH_COROUTINES -// TARGET_BACKEND: JVM import kotlin.coroutines.experimental.* import kotlin.coroutines.experimental.intrinsics.COROUTINE_SUSPENDED import kotlin.coroutines.experimental.intrinsics.suspendCoroutineOrReturn diff --git a/compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/member.kt b/compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/member.kt index fc41ba1d09c..14f5c6d089b 100644 --- a/compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/member.kt +++ b/compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/member.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // WITH_RUNTIME // WITH_COROUTINES import kotlin.coroutines.experimental.* diff --git a/compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/noinlineTwoReceivers.kt b/compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/noinlineTwoReceivers.kt index 469b0f94906..a67c2b935f0 100644 --- a/compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/noinlineTwoReceivers.kt +++ b/compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/noinlineTwoReceivers.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // WITH_RUNTIME // WITH_COROUTINES import kotlin.coroutines.experimental.* diff --git a/compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/operators.kt b/compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/operators.kt index cd1d9b497df..b09942baf2e 100644 --- a/compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/operators.kt +++ b/compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/operators.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // WITH_RUNTIME // WITH_COROUTINES import kotlin.coroutines.experimental.* diff --git a/compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/privateFunctions.kt b/compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/privateFunctions.kt index 824a558e679..cf95e3b1d0f 100644 --- a/compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/privateFunctions.kt +++ b/compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/privateFunctions.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // WITH_RUNTIME // WITH_COROUTINES import kotlin.coroutines.experimental.* diff --git a/compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/privateInFile.kt b/compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/privateInFile.kt index f0ca5bb02b0..26954d16631 100644 --- a/compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/privateInFile.kt +++ b/compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/privateInFile.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // WITH_RUNTIME // WITH_COROUTINES import kotlin.coroutines.experimental.* diff --git a/compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/returnNoSuspend.kt b/compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/returnNoSuspend.kt index 8f42616ddca..6751108c537 100644 --- a/compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/returnNoSuspend.kt +++ b/compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/returnNoSuspend.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // WITH_RUNTIME // WITH_COROUTINES import kotlin.coroutines.experimental.* diff --git a/compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/simple.kt b/compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/simple.kt index 64f63b458dc..0fd4107a54a 100644 --- a/compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/simple.kt +++ b/compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/simple.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // WITH_RUNTIME // WITH_COROUTINES import kotlin.coroutines.experimental.* diff --git a/compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/withVariables.kt b/compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/withVariables.kt index c170cfc5d30..68617ba7227 100644 --- a/compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/withVariables.kt +++ b/compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/withVariables.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // WITH_RUNTIME // WITH_COROUTINES import kotlin.coroutines.experimental.* diff --git a/compiler/testData/codegen/box/coroutines/suspendFunctionTypeCall/localVal.kt b/compiler/testData/codegen/box/coroutines/suspendFunctionTypeCall/localVal.kt index c2e2bef61a9..0d95e70c76d 100644 --- a/compiler/testData/codegen/box/coroutines/suspendFunctionTypeCall/localVal.kt +++ b/compiler/testData/codegen/box/coroutines/suspendFunctionTypeCall/localVal.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // WITH_RUNTIME // WITH_COROUTINES import kotlin.coroutines.experimental.* diff --git a/compiler/testData/codegen/box/coroutines/suspendFunctionTypeCall/manyParameters.kt b/compiler/testData/codegen/box/coroutines/suspendFunctionTypeCall/manyParameters.kt index 51ffa67e2d2..fe815ef93f1 100644 --- a/compiler/testData/codegen/box/coroutines/suspendFunctionTypeCall/manyParameters.kt +++ b/compiler/testData/codegen/box/coroutines/suspendFunctionTypeCall/manyParameters.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // WITH_RUNTIME // WITH_COROUTINES import kotlin.coroutines.experimental.* diff --git a/compiler/testData/codegen/box/coroutines/suspendFunctionTypeCall/simple.kt b/compiler/testData/codegen/box/coroutines/suspendFunctionTypeCall/simple.kt index 0fd80016b77..e797beca64a 100644 --- a/compiler/testData/codegen/box/coroutines/suspendFunctionTypeCall/simple.kt +++ b/compiler/testData/codegen/box/coroutines/suspendFunctionTypeCall/simple.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // WITH_RUNTIME // WITH_COROUTINES import kotlin.coroutines.experimental.* diff --git a/compiler/testData/codegen/box/coroutines/suspendInCycle.kt b/compiler/testData/codegen/box/coroutines/suspendInCycle.kt index bf37740dd72..40bef11b10a 100644 --- a/compiler/testData/codegen/box/coroutines/suspendInCycle.kt +++ b/compiler/testData/codegen/box/coroutines/suspendInCycle.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // WITH_RUNTIME // WITH_COROUTINES import kotlin.coroutines.experimental.* diff --git a/compiler/testData/codegen/box/coroutines/suspendInTheMiddleOfObjectConstruction.kt b/compiler/testData/codegen/box/coroutines/suspendInTheMiddleOfObjectConstruction.kt index bf256012136..f4f32779de0 100644 --- a/compiler/testData/codegen/box/coroutines/suspendInTheMiddleOfObjectConstruction.kt +++ b/compiler/testData/codegen/box/coroutines/suspendInTheMiddleOfObjectConstruction.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // WITH_RUNTIME // WITH_COROUTINES import kotlin.coroutines.experimental.* diff --git a/compiler/testData/codegen/box/coroutines/suspensionInsideSafeCall.kt b/compiler/testData/codegen/box/coroutines/suspensionInsideSafeCall.kt index a9061aa9e1e..9252012ee0c 100644 --- a/compiler/testData/codegen/box/coroutines/suspensionInsideSafeCall.kt +++ b/compiler/testData/codegen/box/coroutines/suspensionInsideSafeCall.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // WITH_RUNTIME // WITH_COROUTINES import kotlin.coroutines.experimental.* diff --git a/compiler/testData/codegen/box/coroutines/suspensionInsideSafeCallWithElvis.kt b/compiler/testData/codegen/box/coroutines/suspensionInsideSafeCallWithElvis.kt index 1c0b91b13e7..a34c114d65f 100644 --- a/compiler/testData/codegen/box/coroutines/suspensionInsideSafeCallWithElvis.kt +++ b/compiler/testData/codegen/box/coroutines/suspensionInsideSafeCallWithElvis.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // WITH_RUNTIME // WITH_COROUTINES import kotlin.coroutines.experimental.* diff --git a/compiler/testData/codegen/box/coroutines/tailOperations/suspendWithIf.kt b/compiler/testData/codegen/box/coroutines/tailOperations/suspendWithIf.kt index eaffd184b67..9ff9c6fe814 100644 --- a/compiler/testData/codegen/box/coroutines/tailOperations/suspendWithIf.kt +++ b/compiler/testData/codegen/box/coroutines/tailOperations/suspendWithIf.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // WITH_RUNTIME // WITH_COROUTINES import kotlin.coroutines.experimental.* diff --git a/compiler/testData/codegen/box/coroutines/tailOperations/suspendWithTryCatch.kt b/compiler/testData/codegen/box/coroutines/tailOperations/suspendWithTryCatch.kt index 06f4137b619..666bdf4fb82 100644 --- a/compiler/testData/codegen/box/coroutines/tailOperations/suspendWithTryCatch.kt +++ b/compiler/testData/codegen/box/coroutines/tailOperations/suspendWithTryCatch.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // WITH_RUNTIME // WITH_COROUTINES import kotlin.coroutines.experimental.* diff --git a/compiler/testData/codegen/box/coroutines/tailOperations/suspendWithWhen.kt b/compiler/testData/codegen/box/coroutines/tailOperations/suspendWithWhen.kt index 045a0b87aed..0829512e05e 100644 --- a/compiler/testData/codegen/box/coroutines/tailOperations/suspendWithWhen.kt +++ b/compiler/testData/codegen/box/coroutines/tailOperations/suspendWithWhen.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // WITH_RUNTIME // WITH_COROUTINES import kotlin.coroutines.experimental.* diff --git a/compiler/testData/codegen/box/coroutines/tailOperations/tailInlining.kt b/compiler/testData/codegen/box/coroutines/tailOperations/tailInlining.kt index ac9cce596d1..9c637bfb27a 100644 --- a/compiler/testData/codegen/box/coroutines/tailOperations/tailInlining.kt +++ b/compiler/testData/codegen/box/coroutines/tailOperations/tailInlining.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // WITH_RUNTIME // WITH_COROUTINES import kotlin.coroutines.experimental.* diff --git a/compiler/testData/codegen/box/coroutines/tryCatchFinallyWithHandleResult.kt b/compiler/testData/codegen/box/coroutines/tryCatchFinallyWithHandleResult.kt index d27e8595dcf..556f281e9f7 100644 --- a/compiler/testData/codegen/box/coroutines/tryCatchFinallyWithHandleResult.kt +++ b/compiler/testData/codegen/box/coroutines/tryCatchFinallyWithHandleResult.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // WITH_RUNTIME // WITH_COROUTINES import kotlin.coroutines.experimental.* diff --git a/compiler/testData/codegen/box/coroutines/tryCatchWithHandleResult.kt b/compiler/testData/codegen/box/coroutines/tryCatchWithHandleResult.kt index 01e4ad5aeff..b8a1a2ae95e 100644 --- a/compiler/testData/codegen/box/coroutines/tryCatchWithHandleResult.kt +++ b/compiler/testData/codegen/box/coroutines/tryCatchWithHandleResult.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // WITH_RUNTIME // WITH_COROUTINES import kotlin.coroutines.experimental.* diff --git a/compiler/testData/codegen/box/coroutines/tryFinallyInsideInlineLambda.kt b/compiler/testData/codegen/box/coroutines/tryFinallyInsideInlineLambda.kt index 575dceea708..bca482fa815 100644 --- a/compiler/testData/codegen/box/coroutines/tryFinallyInsideInlineLambda.kt +++ b/compiler/testData/codegen/box/coroutines/tryFinallyInsideInlineLambda.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // WITH_RUNTIME // WITH_COROUTINES import kotlin.coroutines.experimental.* diff --git a/compiler/testData/codegen/box/coroutines/tryFinallyWithHandleResult.kt b/compiler/testData/codegen/box/coroutines/tryFinallyWithHandleResult.kt index f61dd4924de..568a20b0f0c 100644 --- a/compiler/testData/codegen/box/coroutines/tryFinallyWithHandleResult.kt +++ b/compiler/testData/codegen/box/coroutines/tryFinallyWithHandleResult.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // WITH_RUNTIME // WITH_COROUTINES import kotlin.coroutines.experimental.* diff --git a/compiler/testData/codegen/box/coroutines/unitTypeReturn/coroutineNonLocalReturn.kt b/compiler/testData/codegen/box/coroutines/unitTypeReturn/coroutineNonLocalReturn.kt index 5dc6fa0f082..c4e4d577a41 100644 --- a/compiler/testData/codegen/box/coroutines/unitTypeReturn/coroutineNonLocalReturn.kt +++ b/compiler/testData/codegen/box/coroutines/unitTypeReturn/coroutineNonLocalReturn.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // WITH_RUNTIME // WITH_COROUTINES import kotlin.coroutines.experimental.* diff --git a/compiler/testData/codegen/box/coroutines/unitTypeReturn/coroutineReturn.kt b/compiler/testData/codegen/box/coroutines/unitTypeReturn/coroutineReturn.kt index cf6c8dc755e..a9ea599524b 100644 --- a/compiler/testData/codegen/box/coroutines/unitTypeReturn/coroutineReturn.kt +++ b/compiler/testData/codegen/box/coroutines/unitTypeReturn/coroutineReturn.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // WITH_RUNTIME // WITH_COROUTINES import kotlin.coroutines.experimental.* diff --git a/compiler/testData/codegen/box/coroutines/unitTypeReturn/suspendNonLocalReturn.kt b/compiler/testData/codegen/box/coroutines/unitTypeReturn/suspendNonLocalReturn.kt index 9d722a8b25f..ce54742b4b1 100644 --- a/compiler/testData/codegen/box/coroutines/unitTypeReturn/suspendNonLocalReturn.kt +++ b/compiler/testData/codegen/box/coroutines/unitTypeReturn/suspendNonLocalReturn.kt @@ -1,6 +1,6 @@ // WITH_RUNTIME // WITH_COROUTINES -// IGNORE_BACKEND: JS, NATIVE +// IGNORE_BACKEND: JS import kotlin.coroutines.experimental.* import kotlin.coroutines.experimental.intrinsics.* diff --git a/compiler/testData/codegen/box/coroutines/unitTypeReturn/suspendReturn.kt b/compiler/testData/codegen/box/coroutines/unitTypeReturn/suspendReturn.kt index 00f1db901a6..171f24a3422 100644 --- a/compiler/testData/codegen/box/coroutines/unitTypeReturn/suspendReturn.kt +++ b/compiler/testData/codegen/box/coroutines/unitTypeReturn/suspendReturn.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // WITH_RUNTIME // WITH_COROUTINES import kotlin.coroutines.experimental.* diff --git a/compiler/testData/codegen/box/coroutines/varSpilling/nullSpilling.kt b/compiler/testData/codegen/box/coroutines/varSpilling/nullSpilling.kt index 8147ffec376..e3f75d35f15 100644 --- a/compiler/testData/codegen/box/coroutines/varSpilling/nullSpilling.kt +++ b/compiler/testData/codegen/box/coroutines/varSpilling/nullSpilling.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // WITH_RUNTIME // WITH_COROUTINES import kotlin.coroutines.experimental.* diff --git a/compiler/testData/codegen/box/coroutines/varValueConflictsWithTable.kt b/compiler/testData/codegen/box/coroutines/varValueConflictsWithTable.kt index c0506126a28..cb7d794eb9b 100644 --- a/compiler/testData/codegen/box/coroutines/varValueConflictsWithTable.kt +++ b/compiler/testData/codegen/box/coroutines/varValueConflictsWithTable.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // WITH_RUNTIME // WITH_COROUTINES import kotlin.coroutines.experimental.* diff --git a/compiler/testData/codegen/box/coroutines/varValueConflictsWithTableSameSort.kt b/compiler/testData/codegen/box/coroutines/varValueConflictsWithTableSameSort.kt index 295b123c98f..8c4a25b2131 100644 --- a/compiler/testData/codegen/box/coroutines/varValueConflictsWithTableSameSort.kt +++ b/compiler/testData/codegen/box/coroutines/varValueConflictsWithTableSameSort.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // WITH_RUNTIME // WITH_COROUTINES import kotlin.coroutines.experimental.* diff --git a/compiler/tests-ir-jvm/tests/org/jetbrains/kotlin/codegen/ir/IrBlackBoxCodegenTestGenerated.java b/compiler/tests-ir-jvm/tests/org/jetbrains/kotlin/codegen/ir/IrBlackBoxCodegenTestGenerated.java index 6925c12e001..1e6ed20a8f8 100644 --- a/compiler/tests-ir-jvm/tests/org/jetbrains/kotlin/codegen/ir/IrBlackBoxCodegenTestGenerated.java +++ b/compiler/tests-ir-jvm/tests/org/jetbrains/kotlin/codegen/ir/IrBlackBoxCodegenTestGenerated.java @@ -5596,6 +5596,18 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.JVM, true); } + @TestMetadata("augmentedAssignment.kt") + public void testAugmentedAssignment() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/augmentedAssignment.kt"); + try { + doTest(fileName); + } + catch (Throwable ignore) { + return; + } + throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); + } + @TestMetadata("dispatchResume.kt") public void testDispatchResume() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/dispatchResume.kt"); diff --git a/compiler/tests/org/jetbrains/kotlin/codegen/BlackBoxCodegenTestGenerated.java b/compiler/tests/org/jetbrains/kotlin/codegen/BlackBoxCodegenTestGenerated.java index 19bd61d284f..3b6425a7c06 100644 --- a/compiler/tests/org/jetbrains/kotlin/codegen/BlackBoxCodegenTestGenerated.java +++ b/compiler/tests/org/jetbrains/kotlin/codegen/BlackBoxCodegenTestGenerated.java @@ -5596,6 +5596,18 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.JVM, true); } + @TestMetadata("augmentedAssignment.kt") + public void testAugmentedAssignment() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/augmentedAssignment.kt"); + try { + doTest(fileName); + } + catch (Throwable ignore) { + return; + } + throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); + } + @TestMetadata("dispatchResume.kt") public void testDispatchResume() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/dispatchResume.kt"); diff --git a/compiler/tests/org/jetbrains/kotlin/codegen/LightAnalysisModeTestGenerated.java b/compiler/tests/org/jetbrains/kotlin/codegen/LightAnalysisModeTestGenerated.java index 67483f1170c..7d4b0db75e7 100644 --- a/compiler/tests/org/jetbrains/kotlin/codegen/LightAnalysisModeTestGenerated.java +++ b/compiler/tests/org/jetbrains/kotlin/codegen/LightAnalysisModeTestGenerated.java @@ -5596,6 +5596,18 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.JVM, true); } + @TestMetadata("augmentedAssignment.kt") + public void testAugmentedAssignment() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/augmentedAssignment.kt"); + try { + doTest(fileName); + } + catch (Throwable ignore) { + return; + } + throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); + } + @TestMetadata("dispatchResume.kt") public void testDispatchResume() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/dispatchResume.kt"); diff --git a/js/js.tests/test/org/jetbrains/kotlin/js/test/semantics/JsCodegenBoxTestGenerated.java b/js/js.tests/test/org/jetbrains/kotlin/js/test/semantics/JsCodegenBoxTestGenerated.java index 60174543315..6807fc97edb 100644 --- a/js/js.tests/test/org/jetbrains/kotlin/js/test/semantics/JsCodegenBoxTestGenerated.java +++ b/js/js.tests/test/org/jetbrains/kotlin/js/test/semantics/JsCodegenBoxTestGenerated.java @@ -6323,6 +6323,18 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { doTest(fileName); } + @TestMetadata("inlineTwoReceivers.kt") + public void testInlineTwoReceivers() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/inlineTwoReceivers.kt"); + try { + doTest(fileName); + } + catch (Throwable ignore) { + return; + } + throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); + } + @TestMetadata("member.kt") public void testMember() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/member.kt"); diff --git a/js/js.tests/test/org/jetbrains/kotlin/js/test/semantics/OutputPrefixPostfixTestGenerated.java b/js/js.tests/test/org/jetbrains/kotlin/js/test/semantics/OutputPrefixPostfixTestGenerated.java index 4e3aaea953d..76c4255046c 100644 --- a/js/js.tests/test/org/jetbrains/kotlin/js/test/semantics/OutputPrefixPostfixTestGenerated.java +++ b/js/js.tests/test/org/jetbrains/kotlin/js/test/semantics/OutputPrefixPostfixTestGenerated.java @@ -59,5 +59,4 @@ public class OutputPrefixPostfixTestGenerated extends AbstractOutputPrefixPostfi String fileName = KotlinTestUtils.navigationMetadata("js/js.translator/testData/outputPrefixPostfix/simpleWithPrefixAndPostfix.kt"); doTest(fileName); } - } diff --git a/js/js.tests/test/org/jetbrains/kotlin/js/test/semantics/SourceMapGenerationSmokeTestGenerated.java b/js/js.tests/test/org/jetbrains/kotlin/js/test/semantics/SourceMapGenerationSmokeTestGenerated.java index dccfefd35fb..d9470ebf8c7 100644 --- a/js/js.tests/test/org/jetbrains/kotlin/js/test/semantics/SourceMapGenerationSmokeTestGenerated.java +++ b/js/js.tests/test/org/jetbrains/kotlin/js/test/semantics/SourceMapGenerationSmokeTestGenerated.java @@ -53,5 +53,4 @@ public class SourceMapGenerationSmokeTestGenerated extends AbstractSourceMapGene String fileName = KotlinTestUtils.navigationMetadata("js/js.translator/testData/sourcemap/methodCallInMethod.kt"); doTest(fileName); } - }