mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 08:31:26 +00:00
Ensure that 'in/!in x until y' intrinsic works
This commit is contained in:
12
compiler/testData/codegen/bytecodeText/ranges/inUntil.kt
vendored
Normal file
12
compiler/testData/codegen/bytecodeText/ranges/inUntil.kt
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
// WITH_RUNTIME
|
||||
|
||||
fun testByte(a: Byte, x: Byte, y: Byte) = a in x until y
|
||||
|
||||
fun testShort(a: Short, x: Short, y: Short) = a in x until y
|
||||
|
||||
fun testInt(a: Int, x: Int, y: Int) = a in x until y
|
||||
|
||||
fun testLong(a: Long, x: Long, y: Long) = a in x until y
|
||||
|
||||
// 0 INVOKESTATIC kotlin/ranges/RangesKt.until
|
||||
// 0 INVOKEVIRTUAL
|
||||
Reference in New Issue
Block a user