test: add labels and breaks count tests.
This commit is contained in:
@@ -3,6 +3,8 @@ package foo
|
||||
|
||||
// CHECK_FUNCTIONS_HAVE_SAME_LINES: declaredBefore declaredAfter match=(h|g)1 replace=$1 TARGET_BACKENDS=JS
|
||||
|
||||
// CHECK_BREAKS_COUNT: function=declaredBefore count=0 TARGET_BACKENDS=JS_IR
|
||||
// CHECK_LABELS_COUNT: function=declaredBefore name=$l$block count=0 TARGET_BACKENDS=JS_IR
|
||||
fun declaredBefore(): Int {
|
||||
val a = g() + h()
|
||||
return a
|
||||
@@ -28,6 +30,8 @@ inline fun h1(): Int {
|
||||
return a
|
||||
}
|
||||
|
||||
// CHECK_BREAKS_COUNT: function=declaredAfter count=0 TARGET_BACKENDS=JS_IR
|
||||
// CHECK_LABELS_COUNT: function=declaredAfter name=$l$block count=0 TARGET_BACKENDS=JS_IR
|
||||
fun declaredAfter(): Int {
|
||||
val a = g1() + h1()
|
||||
return a
|
||||
|
||||
Reference in New Issue
Block a user