Skip to content

Commit

Permalink
A do-while loop serialization test.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-gorshenev committed Nov 15, 2017
1 parent 63821fe commit 5c1a414
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
6 changes: 6 additions & 0 deletions backend.native/tests/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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']
Expand Down
7 changes: 7 additions & 0 deletions backend.native/tests/serialization/do_while.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@

inline fun foo() {
do {
var x: Int = 999
println(x)
} while (x != 999)
}

0 comments on commit 5c1a414

Please sign in to comment.