[vala-tests] Add test case for bug 571960



commit 3ee45dcabba5064e80385794597d431ffdb16d3f
Author: Levi Bard <taktaktaktaktaktaktaktaktaktak gmail com>
Date:   Wed Apr 15 22:35:32 2009 +0200

    Add test case for bug 571960
---
 tests/bugs/571960.vala |   15 +++++++++++++++
 tests/bugs/test.sh     |    1 +
 2 files changed, 16 insertions(+), 0 deletions(-)

diff --git a/tests/bugs/571960.vala b/tests/bugs/571960.vala
new file mode 100644
index 0000000..78737a0
--- /dev/null
+++ b/tests/bugs/571960.vala
@@ -0,0 +1,15 @@
+public class Klass
+{
+	private uint8[] data;
+}
+
+public class ABC
+{
+	public void a (out ABC? b)
+	{
+		Klass k;
+		if (k.data.length < 4 || k.data[0])
+			return;
+	}
+		
+}
diff --git a/tests/bugs/test.sh b/tests/bugs/test.sh
index a5bef02..71833c1 100755
--- a/tests/bugs/test.sh
+++ b/tests/bugs/test.sh
@@ -28,6 +28,7 @@ invalid="
 435853
 435854
 556881
+571960
 "
 
 SRCDIR=../tests/bugs



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]