summaryrefslogtreecommitdiff
path: root/Examples/test-suite/octave/struct_value_runme.m
diff options
context:
space:
mode:
Diffstat (limited to 'Examples/test-suite/octave/struct_value_runme.m')
-rw-r--r--Examples/test-suite/octave/struct_value_runme.m13
1 files changed, 13 insertions, 0 deletions
diff --git a/Examples/test-suite/octave/struct_value_runme.m b/Examples/test-suite/octave/struct_value_runme.m
new file mode 100644
index 000000000..7340a36ec
--- /dev/null
+++ b/Examples/test-suite/octave/struct_value_runme.m
@@ -0,0 +1,13 @@
+struct_value
+
+b = struct_value.Bar();
+
+b.a.x = 3;
+if (b.a.x != 3)
+ error
+endif
+
+b.b.x = 3;
+if (b.b.x != 3)
+ error
+endif