diff options
author | Jürg Billeter <j@bitron.ch> | 2010-03-24 21:01:13 +0100 |
---|---|---|
committer | Jürg Billeter <j@bitron.ch> | 2010-03-24 21:01:13 +0100 |
commit | eb15c9844769c26cd4bf2196424941772dfee0a7 (patch) | |
tree | 05b39fd4313b76259440edcea986adcbec615209 /tests | |
parent | 697192068a4c9f42e5e3b1b7bb6f2c389c389506 (diff) | |
download | vala-eb15c9844769c26cd4bf2196424941772dfee0a7.tar.gz |
Fix struct initialization with member initializers
Fixes bug 613825.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Makefile.am | 1 | ||||
-rw-r--r-- | tests/structs/bug613825.vala | 8 |
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); +} |