]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
tests: Add regression test for bug 609642
authorLuca Bruno <lucabru@src.gnome.org>
Sat, 28 May 2011 08:15:37 +0000 (10:15 +0200)
committerLuca Bruno <lucabru@src.gnome.org>
Sat, 28 May 2011 08:15:37 +0000 (10:15 +0200)
tests/Makefile.am
tests/structs/bug609642.vala [new file with mode: 0644]

index 91b8c752c7dfa083e70fcfebf9230634aeef66a6..b4026c48614dba687be02e71f7557992696d9cdb 100644 (file)
@@ -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 (file)
index 0000000..f1327d6
--- /dev/null
@@ -0,0 +1,8 @@
+public Value foo () {
+       return "foo";
+}
+
+void main () {
+       var bar = (string) foo ();
+       assert (bar == "foo");
+}