From 38fb5e16ef0625bc260c354027a818c8f5a24355 Mon Sep 17 00:00:00 2001 From: Mikhael Bogdanov Date: Tue, 6 Jul 2021 09:40:46 +0200 Subject: [PATCH] Update test affected by `ApproximateIntegerLiteralTypesInReceiverPosition` feature --- .../box/binaryOp/boxingOfLiteralReceiverWithIntegerValueType.kt | 1 + compiler/testData/codegen/box/fullJdk/kt46540.kt | 1 + .../box/unsignedTypes/evaluateConstructorOfUnsignedArrayType.kt | 1 + .../box/unsignedTypes/evaluateConstructorOfUnsignedType.kt | 1 + .../tests/annotations/parameters/expressions/maxValueInt.fir.kt | 1 + .../tests/annotations/parameters/expressions/maxValueInt.kt | 1 + compiler/testData/ir/irText/expressions/kt42321.kt | 1 + jps-plugin/testData/incremental/pureKotlin/allConstants/args.txt | 1 + .../testData/box/expression/cast/implicitCastToLong.kt | 1 + 9 files changed, 9 insertions(+) create mode 100644 jps-plugin/testData/incremental/pureKotlin/allConstants/args.txt diff --git a/compiler/testData/codegen/box/binaryOp/boxingOfLiteralReceiverWithIntegerValueType.kt b/compiler/testData/codegen/box/binaryOp/boxingOfLiteralReceiverWithIntegerValueType.kt index 2c5917d5e69..4335619ab3a 100644 --- a/compiler/testData/codegen/box/binaryOp/boxingOfLiteralReceiverWithIntegerValueType.kt +++ b/compiler/testData/codegen/box/binaryOp/boxingOfLiteralReceiverWithIntegerValueType.kt @@ -1,3 +1,4 @@ +// !LANGUAGE: -ApproximateIntegerLiteralTypesInReceiverPosition // TARGET_BACKEND: JVM // IGNORE_BACKEND_FIR: JVM_IR // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/fullJdk/kt46540.kt b/compiler/testData/codegen/box/fullJdk/kt46540.kt index 10b608d0b57..16b5f3411fa 100644 --- a/compiler/testData/codegen/box/fullJdk/kt46540.kt +++ b/compiler/testData/codegen/box/fullJdk/kt46540.kt @@ -1,3 +1,4 @@ +// !LANGUAGE: -ApproximateIntegerLiteralTypesInReceiverPosition // TARGET_BACKEND: JVM // IGNORE_BACKEND_FIR: JVM_IR // For reasons this test is ignored, go to KT-46419 diff --git a/compiler/testData/codegen/box/unsignedTypes/evaluateConstructorOfUnsignedArrayType.kt b/compiler/testData/codegen/box/unsignedTypes/evaluateConstructorOfUnsignedArrayType.kt index 885faf92093..af6f5f856d1 100644 --- a/compiler/testData/codegen/box/unsignedTypes/evaluateConstructorOfUnsignedArrayType.kt +++ b/compiler/testData/codegen/box/unsignedTypes/evaluateConstructorOfUnsignedArrayType.kt @@ -1,3 +1,4 @@ +// !LANGUAGE: -ApproximateIntegerLiteralTypesInReceiverPosition // WITH_REFLECT // TARGET_BACKEND: JVM diff --git a/compiler/testData/codegen/box/unsignedTypes/evaluateConstructorOfUnsignedType.kt b/compiler/testData/codegen/box/unsignedTypes/evaluateConstructorOfUnsignedType.kt index 55d578105c9..3eb4952fb33 100644 --- a/compiler/testData/codegen/box/unsignedTypes/evaluateConstructorOfUnsignedType.kt +++ b/compiler/testData/codegen/box/unsignedTypes/evaluateConstructorOfUnsignedType.kt @@ -1,3 +1,4 @@ +// !LANGUAGE: -ApproximateIntegerLiteralTypesInReceiverPosition // WITH_REFLECT // TARGET_BACKEND: JVM diff --git a/compiler/testData/diagnostics/tests/annotations/parameters/expressions/maxValueInt.fir.kt b/compiler/testData/diagnostics/tests/annotations/parameters/expressions/maxValueInt.fir.kt index e75681b68f5..a84efe598fb 100644 --- a/compiler/testData/diagnostics/tests/annotations/parameters/expressions/maxValueInt.fir.kt +++ b/compiler/testData/diagnostics/tests/annotations/parameters/expressions/maxValueInt.fir.kt @@ -1,3 +1,4 @@ +// !LANGUAGE: -ApproximateIntegerLiteralTypesInReceiverPosition package test annotation class Ann( diff --git a/compiler/testData/diagnostics/tests/annotations/parameters/expressions/maxValueInt.kt b/compiler/testData/diagnostics/tests/annotations/parameters/expressions/maxValueInt.kt index de017572ec4..2e0a3594e50 100644 --- a/compiler/testData/diagnostics/tests/annotations/parameters/expressions/maxValueInt.kt +++ b/compiler/testData/diagnostics/tests/annotations/parameters/expressions/maxValueInt.kt @@ -1,3 +1,4 @@ +// !LANGUAGE: -ApproximateIntegerLiteralTypesInReceiverPosition package test annotation class Ann( diff --git a/compiler/testData/ir/irText/expressions/kt42321.kt b/compiler/testData/ir/irText/expressions/kt42321.kt index beef0c923d2..044d7c61761 100644 --- a/compiler/testData/ir/irText/expressions/kt42321.kt +++ b/compiler/testData/ir/irText/expressions/kt42321.kt @@ -1,3 +1,4 @@ +// !LANGUAGE: -ApproximateIntegerLiteralTypesInReceiverPosition // IGNORE_BACKEND_FIR: JVM_IR // SKIP_KT_DUMP // This test exists only to check that we don't accidentally break the buggy behavior of the old JVM backend in JVM IR (KT-42321). diff --git a/jps-plugin/testData/incremental/pureKotlin/allConstants/args.txt b/jps-plugin/testData/incremental/pureKotlin/allConstants/args.txt new file mode 100644 index 00000000000..3c5bcf7cf4d --- /dev/null +++ b/jps-plugin/testData/incremental/pureKotlin/allConstants/args.txt @@ -0,0 +1 @@ +-XXLanguage:-ApproximateIntegerLiteralTypesInReceiverPosition -XXLanguage:-ProhibitSimplificationOfNonTrivialConstBooleanExpressions \ No newline at end of file diff --git a/js/js.translator/testData/box/expression/cast/implicitCastToLong.kt b/js/js.translator/testData/box/expression/cast/implicitCastToLong.kt index 9447c19a339..12b49ede575 100644 --- a/js/js.translator/testData/box/expression/cast/implicitCastToLong.kt +++ b/js/js.translator/testData/box/expression/cast/implicitCastToLong.kt @@ -1,3 +1,4 @@ +// !LANGUAGE: -ApproximateIntegerLiteralTypesInReceiverPosition // EXPECTED_REACHABLE_NODES: 1375 package foo