A do-while loop serialization test.

This commit is contained in:
Alexander Gorshenev
2017-11-13 14:51:06 +03:00
committed by alexander-gorshenev
parent 63821fe837
commit 5c1a414347
2 changed files with 13 additions and 0 deletions
+6
View File
@@ -2053,6 +2053,12 @@ task serialized_catch(type: LinkKonanTest) {
goldValue = "Gotcha1: XXX\nGotcha2: YYY\n"
}
task serialized_doWhile(type: LinkKonanTest) {
source = "serialization/use.kt"
lib = "serialization/do_while.kt"
goldValue = "999\n"
}
task testing_annotations(type: RunStandaloneKonanTest) {
source = "testing/annotations.kt"
flags = ['-tr']
@@ -0,0 +1,7 @@
inline fun foo() {
do {
var x: Int = 999
println(x)
} while (x != 999)
}