[vala/wip/code-transformer: 11/27] tests: Add test for do-while statement control-flow
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/wip/code-transformer: 11/27] tests: Add test for do-while statement control-flow
- Date: Fri, 19 Apr 2019 13:31:18 +0000 (UTC)
commit 4cb12b7b400ae22e50d8e09fa89ddf7657f6618b
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://gitlab.gnome.org/GNOME/vala/issues/27
tests/Makefile.am | 1 +
tests/control-flow/bug574352.vala | 6 ++++++
2 files changed, 7 insertions(+)
---
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 456761ea6..cd8cc1f1a 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -167,6 +167,7 @@ TESTS = \
control-flow/unassigned-local-variable.test \
control-flow/unassigned-local-variable-while.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 000000000..b79de180c
--- /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]