[test] Drop unnecessary WITH_STDLIB in an irText test

This commit is contained in:
Sergej Jaskiewicz
2024-02-06 15:51:00 +01:00
committed by Space Team
parent 4468167a64
commit b5793222d8
4 changed files with 19 additions and 7 deletions
+8 -6
View File
@@ -1,28 +1,30 @@
FILE fqName:<root> fileName:/tryCatch.kt
FUN name:println visibility:public modality:FINAL <> () returnType:kotlin.Unit
BLOCK_BODY
FUN name:test1 visibility:public modality:FINAL <> () returnType:kotlin.Unit
BLOCK_BODY
TRY type=kotlin.Unit
try: BLOCK type=kotlin.Unit origin=null
CALL 'public final fun println (): kotlin.Unit declared in kotlin.io' type=kotlin.Unit origin=null
CALL 'public final fun println (): kotlin.Unit declared in <root>' type=kotlin.Unit origin=null
CATCH parameter=val e: kotlin.Throwable declared in <root>.test1
VAR CATCH_PARAMETER name:e type:kotlin.Throwable [val]
BLOCK type=kotlin.Unit origin=null
CALL 'public final fun println (): kotlin.Unit declared in kotlin.io' type=kotlin.Unit origin=null
CALL 'public final fun println (): kotlin.Unit declared in <root>' type=kotlin.Unit origin=null
finally: BLOCK type=kotlin.Unit origin=null
CALL 'public final fun println (): kotlin.Unit declared in kotlin.io' type=kotlin.Unit origin=null
CALL 'public final fun println (): kotlin.Unit declared in <root>' type=kotlin.Unit origin=null
FUN name:test2 visibility:public modality:FINAL <> () returnType:kotlin.Int
BLOCK_BODY
RETURN type=kotlin.Nothing from='public final fun test2 (): kotlin.Int declared in <root>'
TRY type=kotlin.Int
try: BLOCK type=kotlin.Int origin=null
CALL 'public final fun println (): kotlin.Unit declared in kotlin.io' type=kotlin.Unit origin=null
CALL 'public final fun println (): kotlin.Unit declared in <root>' type=kotlin.Unit origin=null
CONST Int type=kotlin.Int value=42
CATCH parameter=val e: kotlin.Throwable declared in <root>.test2
VAR CATCH_PARAMETER name:e type:kotlin.Throwable [val]
BLOCK type=kotlin.Int origin=null
CALL 'public final fun println (): kotlin.Unit declared in kotlin.io' type=kotlin.Unit origin=null
CALL 'public final fun println (): kotlin.Unit declared in <root>' type=kotlin.Unit origin=null
CONST Int type=kotlin.Int value=24
finally: BLOCK type=kotlin.Unit origin=null
CALL 'public final fun println (): kotlin.Unit declared in kotlin.io' type=kotlin.Unit origin=null
CALL 'public final fun println (): kotlin.Unit declared in <root>' type=kotlin.Unit origin=null
TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit
CONST Int type=kotlin.Int value=555
+2 -1
View File
@@ -1,5 +1,6 @@
// FIR_IDENTICAL
// WITH_STDLIB
fun println() {}
fun test1() {
try {
@@ -1,3 +1,6 @@
fun println() {
}
fun test1() {
try { // BLOCK
println()
@@ -1,3 +1,9 @@
// CHECK:
// Mangled name: #println(){}
// Public signature: /println|917930009141132257[0]
// Public signature debug description: println(){}
fun println(): Unit
// CHECK:
// Mangled name: #test1(){}
// Public signature: /test1|4297044443957252634[0]