[vala] Add test for bug 579101
- From: Jürg Billeter <juergbi src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [vala] Add test for bug 579101
- Date: Wed, 30 Sep 2009 08:53:09 +0000 (UTC)
commit 9f21d0b182edad861f93a91674787b8b3b4fc2c5
Author: Jürg Billeter <j bitron ch>
Date: Wed Sep 30 10:52:27 2009 +0200
Add test for bug 579101
tests/Makefile.am | 1 +
tests/errors/bug579101.vala | 14 ++++++++++++++
2 files changed, 15 insertions(+), 0 deletions(-)
---
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 41213ce..f3771d5 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -53,6 +53,7 @@ TESTS = \
objects/bug593260.vala \
objects/bug596621.vala \
errors/errors.vala \
+ errors/bug579101.vala \
errors/bug596228.vala \
asynchronous/bug595735.vala \
asynchronous/bug596177.vala \
diff --git a/tests/errors/bug579101.vala b/tests/errors/bug579101.vala
new file mode 100644
index 0000000..68726ba
--- /dev/null
+++ b/tests/errors/bug579101.vala
@@ -0,0 +1,14 @@
+void do_foo (out int i) {
+ i = 0;
+ try {
+ return;
+ } finally {
+ i = 42;
+ }
+}
+
+void main () {
+ int i;
+ do_foo (out i);
+ assert (i == 42);
+}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]