Cover with a test current Double/Float companion values access
This commit is contained in:
+22
@@ -0,0 +1,22 @@
|
|||||||
|
|
||||||
|
fun main() {
|
||||||
|
val dmax = Double.MAX_VALUE
|
||||||
|
val dmin = Double.MIN_VALUE
|
||||||
|
val dnan = Double.NaN
|
||||||
|
val dinfp = Double.POSITIVE_INFINITY
|
||||||
|
val dinfn = Double.NEGATIVE_INFINITY
|
||||||
|
|
||||||
|
val fmax = Float.MAX_VALUE
|
||||||
|
val fmin = Float.MIN_VALUE
|
||||||
|
val fnan = Float.NaN
|
||||||
|
val finfp = Float.POSITIVE_INFINITY
|
||||||
|
val finfn = Float.NEGATIVE_INFINITY
|
||||||
|
}
|
||||||
|
|
||||||
|
// 5 GETSTATIC kotlin/jvm/internal/DoubleCompanionObject.INSTANCE
|
||||||
|
// 5 GETSTATIC kotlin/jvm/internal/FloatCompanionObject.INSTANCE
|
||||||
|
// 2 getMAX_VALUE
|
||||||
|
// 2 getMIN_VALUE
|
||||||
|
// 2 getNaN
|
||||||
|
// 2 getPOSITIVE_INFINITY
|
||||||
|
// 2 getNEGATIVE_INFINITY
|
||||||
@@ -916,6 +916,11 @@ public class BytecodeTextTestGenerated extends AbstractBytecodeTextTest {
|
|||||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/companion"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
|
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/companion"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("floatingPointCompanionAccess.kt")
|
||||||
|
public void testFloatingPointCompanionAccess() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/bytecodeText/companion/floatingPointCompanionAccess.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("kt14258_1.kt")
|
@TestMetadata("kt14258_1.kt")
|
||||||
public void testKt14258_1() throws Exception {
|
public void testKt14258_1() throws Exception {
|
||||||
runTest("compiler/testData/codegen/bytecodeText/companion/kt14258_1.kt");
|
runTest("compiler/testData/codegen/bytecodeText/companion/kt14258_1.kt");
|
||||||
|
|||||||
+5
@@ -916,6 +916,11 @@ public class IrBytecodeTextTestGenerated extends AbstractIrBytecodeTextTest {
|
|||||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/companion"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/companion"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("floatingPointCompanionAccess.kt")
|
||||||
|
public void testFloatingPointCompanionAccess() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/bytecodeText/companion/floatingPointCompanionAccess.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("kt14258_1.kt")
|
@TestMetadata("kt14258_1.kt")
|
||||||
public void testKt14258_1() throws Exception {
|
public void testKt14258_1() throws Exception {
|
||||||
runTest("compiler/testData/codegen/bytecodeText/companion/kt14258_1.kt");
|
runTest("compiler/testData/codegen/bytecodeText/companion/kt14258_1.kt");
|
||||||
|
|||||||
Reference in New Issue
Block a user