[vala-tests] Add bug 627093 test case
- From: Marc-Andre Lureau <malureau src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala-tests] Add bug 627093 test case
- Date: Tue, 17 Aug 2010 00:51:42 +0000 (UTC)
commit 2597e5929f364612dc34e2c2cb75d80f86f8e488
Author: Marc-André Lureau <marcandre lureau gmail com>
Date: Tue Aug 17 02:51:13 2010 +0200
Add bug 627093 test case
tests/bugs/627093.test | 3 +++
tests/bugs/627093.vala | 27 +++++++++++++++++++++++++++
2 files changed, 30 insertions(+), 0 deletions(-)
---
diff --git a/tests/bugs/627093.test b/tests/bugs/627093.test
new file mode 100755
index 0000000..8c65445
--- /dev/null
+++ b/tests/bugs/627093.test
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+. test-common.sh
diff --git a/tests/bugs/627093.vala b/tests/bugs/627093.vala
new file mode 100644
index 0000000..6283085
--- /dev/null
+++ b/tests/bugs/627093.vala
@@ -0,0 +1,27 @@
+public struct MyStruct
+{
+ public int[] array;
+}
+
+struct MyStruct2
+{
+ public int[] array;
+}
+
+int main ()
+{
+ MyStruct test = MyStruct ();
+ test.array += 1;
+ test.array += 2;
+
+ stdout.printf ("%d\n", test.array[1]);
+
+ MyStruct2 test2 = MyStruct2 ();
+ test2.array += 1;
+ test2.array += 2;
+
+ stdout.printf ("%d\n", test2.array[1]);
+
+
+ return 0;
+}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]