[vala] Add test for bug 595587
- From: Jürg Billeter <juergbi src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [vala] Add test for bug 595587
- Date: Sat, 26 Sep 2009 14:10:36 +0000 (UTC)
commit 65ff8c34df5fd892e209e570c292a5f6a5c4d0ed
Author: Jürg Billeter <j bitron ch>
Date: Sat Sep 26 16:09:51 2009 +0200
Add test for bug 595587
tests/Makefile.am | 1 +
tests/structs/bug595587.vala | 14 ++++++++++++++
2 files changed, 15 insertions(+), 0 deletions(-)
---
diff --git a/tests/Makefile.am b/tests/Makefile.am
index f37128d..55825b3 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 0000000..84c0553
--- /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 () {
+}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]