test: add labels and breaks count tests.

This commit is contained in:
Artem Kobzar
2022-04-08 01:30:37 +02:00
committed by teamcity
parent 12f337f63d
commit c724ca943d
69 changed files with 217 additions and 1 deletions
+4
View File
@@ -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