summaryrefslogtreecommitdiff
path: root/Examples/test-suite/octave/smart_pointer_templatevariables_runme.m
diff options
context:
space:
mode:
Diffstat (limited to 'Examples/test-suite/octave/smart_pointer_templatevariables_runme.m')
-rw-r--r--Examples/test-suite/octave/smart_pointer_templatevariables_runme.m19
1 files changed, 19 insertions, 0 deletions
diff --git a/Examples/test-suite/octave/smart_pointer_templatevariables_runme.m b/Examples/test-suite/octave/smart_pointer_templatevariables_runme.m
new file mode 100644
index 0000000..4884fa2
--- /dev/null
+++ b/Examples/test-suite/octave/smart_pointer_templatevariables_runme.m
@@ -0,0 +1,19 @@
+smart_pointer_templatevariables
+
+d = DiffImContainerPtr_D(create(1234, 5678));
+
+if (d.id != 1234)
+ error
+endif
+#if (d.xyz != 5678):
+# error
+
+d.id = 4321;
+#d.xyz = 8765
+
+if (d.id != 4321)
+ error
+endif
+#if (d.xyz != 8765):
+# error
+