[vala] tests: Add regression test for bug 609642
- From: Luca Bruno <lucabru src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] tests: Add regression test for bug 609642
- Date: Sat, 28 May 2011 08:17:22 +0000 (UTC)
commit 5f1b860c75ce38d980ee8a51eb624410e2344121
Author: Luca Bruno <lucabru src gnome org>
Date: Sat May 28 10:15:37 2011 +0200
tests: Add regression test for bug 609642
tests/Makefile.am | 1 +
tests/structs/bug609642.vala | 8 ++++++++
2 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 91b8c75..b4026c4 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -52,6 +52,7 @@ TESTS = \
structs/bug583603.vala \
structs/bug595587.vala \
structs/bug606202.vala \
+ structs/bug609642.vala \
structs/bug613513.vala \
structs/bug613825.vala \
structs/bug621176.vala \
diff --git a/tests/structs/bug609642.vala b/tests/structs/bug609642.vala
new file mode 100644
index 0000000..f1327d6
--- /dev/null
+++ b/tests/structs/bug609642.vala
@@ -0,0 +1,8 @@
+public Value foo () {
+ return "foo";
+}
+
+void main () {
+ var bar = (string) foo ();
+ assert (bar == "foo");
+}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]