[vala/wip/transform: 96/99] tests: Add test for do-while statement control-flow



commit 897bf7e66aa7fede5adc8eb409ed107e2f6dff15
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Wed Dec 13 15:00:56 2017 +0100

    tests: Add test for do-while statement control-flow
    
    https://bugzilla.gnome.org/show_bug.cgi?id=574352

 tests/Makefile.am                 |    1 +
 tests/control-flow/bug574352.vala |    6 ++++++
 2 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 8529187..e5db6ec 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -132,6 +132,7 @@ TESTS = \
        control-flow/unassigned-local-block-variable.test \
        control-flow/unassigned-local-variable.test \
        control-flow/while-false.vala \
+       control-flow/bug574352.vala \
        control-flow/bug628336.vala \
        control-flow/bug639482.vala \
        control-flow/bug652549.vala \
diff --git a/tests/control-flow/bug574352.vala b/tests/control-flow/bug574352.vala
new file mode 100644
index 0000000..b79de18
--- /dev/null
+++ b/tests/control-flow/bug574352.vala
@@ -0,0 +1,6 @@
+void main () {
+       int i;
+       do {
+               i = 0;
+       } while (i != 0);
+}


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]