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
@@ -13,11 +13,15 @@ class Foo {
val baz = Baz()
}
// CHECK_BREAKS_COUNT: function=testDispatch count=0 TARGET_BACKENDS=JS_IR
// CHECK_LABELS_COUNT: function=testDispatch name=$l$block count=0 TARGET_BACKENDS=JS_IR
fun testDispatch(foo: Foo): String {
foo.bar { return "O" }
return "FailDispatch;"
}
// CHECK_BREAKS_COUNT: function=testExtension count=0 TARGET_BACKENDS=JS_IR
// CHECK_LABELS_COUNT: function=testExtension name=$l$block count=0 TARGET_BACKENDS=JS_IR
fun testExtension(foo: Foo): String {
foo.baz { return "K" }
return "FailExtension;"