backend: add failing test for break
This commit is contained in:
@@ -615,6 +615,12 @@ task break_continue(type: RunKonanTest) {
|
||||
source = "codegen/controlflow/break.kt"
|
||||
}
|
||||
|
||||
task break1(type: RunKonanTest) {
|
||||
disabled = true
|
||||
goldValue = "Body\nDone\n"
|
||||
source = "codegen/controlflow/break1.kt"
|
||||
}
|
||||
|
||||
task range0(type: RunKonanTest) {
|
||||
goldValue = "123\nabcd\n"
|
||||
source = "runtime/collections/range0.kt"
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
fun main(args: Array<String>) {
|
||||
loop@ while (true) {
|
||||
println("Body")
|
||||
break
|
||||
}
|
||||
println("Done")
|
||||
}
|
||||
Reference in New Issue
Block a user