[Tests] Add missing diagnostics handler to irText tests

Merge-request: KT-MR-11721
Merged-by: Vladimir Sukharev <Vladimir.Sukharev@jetbrains.com>
This commit is contained in:
Vladimir Sukharev
2023-08-22 10:44:41 +00:00
committed by Space Team
parent ccfbb5f77a
commit 90904e4f8a
7 changed files with 21 additions and 14 deletions
@@ -1,27 +1,24 @@
// IGNORE_BACKEND_K1: JS_IR
// IGNORE_BACKEND_K1: JS_IR_ES6
fun test1(c: Boolean?) {
L@ while (true) {
L2@while (c ?: break)
L2@while (c ?: break) ;
}
}
fun test2(c: Boolean?) {
L@ while (true) {
L2@while (c ?: continue)
L2@while (c ?: continue) ;
}
}
fun test3(ss: List<String>?) {
L@ while (true) {
L2@for (s in ss ?: continue)
L2@for (s in ss ?: continue) ;
}
}
fun test4(ss: List<String>?) {
L@ while (true) {
L2@for (s in ss ?: break)
L2@for (s in ss ?: break) ;
}
}