A do-while loop serialization test.
This commit is contained in:
committed by
alexander-gorshenev
parent
63821fe837
commit
5c1a414347
@@ -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)
|
||||
}
|
||||
Reference in New Issue
Block a user