diff options
author | Jürg Billeter <j@bitron.ch> | 2009-09-26 16:09:51 +0200 |
---|---|---|
committer | Jürg Billeter <j@bitron.ch> | 2009-09-26 16:09:51 +0200 |
commit | 65ff8c34df5fd892e209e570c292a5f6a5c4d0ed (patch) | |
tree | d0bc1cc73bb9e8d2145ee90aed3ef2c2952184a4 | |
parent | 22700451b50c25bc85e94c443b4747273319b46b (diff) | |
download | vala-65ff8c34df5fd892e209e570c292a5f6a5c4d0ed.tar.gz |
Add test for bug 595587
-rw-r--r-- | tests/Makefile.am | 1 | ||||
-rw-r--r-- | tests/structs/bug595587.vala | 14 |
2 files changed, 15 insertions, 0 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am index f37128dff..55825b36a 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -32,6 +32,7 @@ TESTS = \ enums/enums.vala \ structs/structs.vala \ structs/gvalue.vala \ + structs/bug595587.vala \ delegates/delegates.vala \ objects/classes.vala \ objects/fields.vala \ diff --git a/tests/structs/bug595587.vala b/tests/structs/bug595587.vala new file mode 100644 index 000000000..84c055360 --- /dev/null +++ b/tests/structs/bug595587.vala @@ -0,0 +1,14 @@ +struct Foo { + int x; +} + +class Bar { + public Foo? foo { + set { + bool b = (value == null); + } + } +} + +void main () { +} |