[vala] tests: Add regression test for bug 623092
- From: Luca Bruno <lucabru src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] tests: Add regression test for bug 623092
- Date: Mon, 13 Jun 2011 08:40:07 +0000 (UTC)
commit a4eb4890e3be062e56e71339c0b44cd1bc88e5b1
Author: Luca Bruno <lucabru src gnome org>
Date: Mon Jun 13 10:37:20 2011 +0200
tests: Add regression test for bug 623092
tests/Makefile.am | 1 +
tests/structs/bug623092.vala | 15 +++++++++++++++
2 files changed, 16 insertions(+), 0 deletions(-)
---
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 9e3ee86..693551d 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 0000000..4bc1dcb
--- /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));
+}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]