backend: add failing test for break

This commit is contained in:
Svyatoslav Scherbina
2016-12-05 12:44:01 +07:00
parent b193ade131
commit 96b30f574f
2 changed files with 13 additions and 0 deletions
+6
View File
@@ -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")
}