Add codegen box test templates for identifiers

This commit is contained in:
victor.petukhov
2018-09-25 13:06:55 +03:00
parent dd91727a78
commit 1bc0c4092c
28 changed files with 800 additions and 0 deletions
@@ -0,0 +1,24 @@
fun <!ELEMENT(3)!>() {
val l = <!ELEMENT(2)!>@ {
return@<!ELEMENT(2)!>
}
l()
return@<!ELEMENT(1)!>
}
fun box(): String? {
<!ELEMENT(3)!>()
var i = 0
<!ELEMENT(2)!>@ while (i < 10) {
i++
if (i <= 7) {
continue@<!ELEMENT(2)!>
}
if (i > 5) {
break@<!ELEMENT(2)!>
}
}
return "OK"
}