]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
tests: Add regression test for bug 623092
authorLuca Bruno <lucabru@src.gnome.org>
Mon, 13 Jun 2011 08:37:20 +0000 (10:37 +0200)
committerLuca Bruno <lucabru@src.gnome.org>
Mon, 13 Jun 2011 08:37:20 +0000 (10:37 +0200)
tests/Makefile.am
tests/structs/bug623092.vala [new file with mode: 0644]

index 9e3ee86356792aee1aa89e0475e64326b8dcb135..693551d8521b5d897280658ad0e7b1ccdd438c24 100644 (file)
@@ -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 (file)
index 0000000..4bc1dcb
--- /dev/null
@@ -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));
+}