summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJürg Billeter <j@bitron.ch>2010-03-24 21:01:13 +0100
committerJürg Billeter <j@bitron.ch>2010-03-24 21:01:13 +0100
commiteb15c9844769c26cd4bf2196424941772dfee0a7 (patch)
tree05b39fd4313b76259440edcea986adcbec615209 /tests
parent697192068a4c9f42e5e3b1b7bb6f2c389c389506 (diff)
downloadvala-eb15c9844769c26cd4bf2196424941772dfee0a7.tar.gz
Fix struct initialization with member initializers
Fixes bug 613825.
Diffstat (limited to 'tests')
-rw-r--r--tests/Makefile.am1
-rw-r--r--tests/structs/bug613825.vala8
2 files changed, 9 insertions, 0 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 661de874f..04e3980a8 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -46,6 +46,7 @@ TESTS = \
structs/bug595587.vala \
structs/bug606202.vala \
structs/bug613513.vala \
+ structs/bug613825.vala \
delegates/delegates.vala \
delegates/bug595610.vala \
delegates/bug595639.vala \
diff --git a/tests/structs/bug613825.vala b/tests/structs/bug613825.vala
new file mode 100644
index 000000000..fc6cdd04b
--- /dev/null
+++ b/tests/structs/bug613825.vala
@@ -0,0 +1,8 @@
+struct Foo {
+ int i;
+}
+
+void main () {
+ var foo = Foo () { i = 42 };
+ assert (foo.i == 42);
+}