From: Luca Bruno Date: Sat, 28 May 2011 08:15:37 +0000 (+0200) Subject: tests: Add regression test for bug 609642 X-Git-Tag: 0.13.0~58 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=5f1b860c75ce38d980ee8a51eb624410e2344121;p=thirdparty%2Fvala.git tests: Add regression test for bug 609642 --- diff --git a/tests/Makefile.am b/tests/Makefile.am index 91b8c752c..b4026c486 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 000000000..f1327d60c --- /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"); +}