diff --git a/backend.native/tests/build.gradle b/backend.native/tests/build.gradle index 91fd5f1cffc..c5aeca822f6 100644 --- a/backend.native/tests/build.gradle +++ b/backend.native/tests/build.gradle @@ -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'] diff --git a/backend.native/tests/serialization/do_while.kt b/backend.native/tests/serialization/do_while.kt new file mode 100644 index 00000000000..ee2ef54276d --- /dev/null +++ b/backend.native/tests/serialization/do_while.kt @@ -0,0 +1,7 @@ + +inline fun foo() { + do { + var x: Int = 999 + println(x) + } while (x != 999) +}