From: Luca Bruno Date: Mon, 13 Jun 2011 08:37:20 +0000 (+0200) Subject: tests: Add regression test for bug 623092 X-Git-Tag: 0.13.0~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a4eb4890e3be062e56e71339c0b44cd1bc88e5b1;p=thirdparty%2Fvala.git tests: Add regression test for bug 623092 --- diff --git a/tests/Makefile.am b/tests/Makefile.am index 9e3ee8635..693551d85 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -58,6 +58,7 @@ TESTS = \ structs/bug613825.vala \ structs/bug621176.vala \ structs/bug622422.vala \ + structs/bug623092.vala \ structs/bug651441.vala \ delegates/delegates.vala \ delegates/bug595610.vala \ diff --git a/tests/structs/bug623092.vala b/tests/structs/bug623092.vala new file mode 100644 index 000000000..4bc1dcbc2 --- /dev/null +++ b/tests/structs/bug623092.vala @@ -0,0 +1,15 @@ +public struct Foo { + public int bar; + public Foo (int bar) { + this.bar = bar; + } +} + +public Foo make_foo (int bar) { + return Foo (bar); +} + +void main () { + var foo = Foo (10); + assert (foo == make_foo (10)); +}