summaryrefslogtreecommitdiff
path: root/tests/structs
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/structs
parent697192068a4c9f42e5e3b1b7bb6f2c389c389506 (diff)
downloadvala-eb15c9844769c26cd4bf2196424941772dfee0a7.tar.gz
Fix struct initialization with member initializers
Fixes bug 613825.
Diffstat (limited to 'tests/structs')
-rw-r--r--tests/structs/bug613825.vala8
1 files changed, 8 insertions, 0 deletions
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);
+}