summaryrefslogtreecommitdiff
path: root/Examples/test-suite/octave/dynamic_cast_runme.m
diff options
context:
space:
mode:
Diffstat (limited to 'Examples/test-suite/octave/dynamic_cast_runme.m')
-rw-r--r--Examples/test-suite/octave/dynamic_cast_runme.m14
1 files changed, 14 insertions, 0 deletions
diff --git a/Examples/test-suite/octave/dynamic_cast_runme.m b/Examples/test-suite/octave/dynamic_cast_runme.m
new file mode 100644
index 0000000..dad0ba2
--- /dev/null
+++ b/Examples/test-suite/octave/dynamic_cast_runme.m
@@ -0,0 +1,14 @@
+dynamic_cast
+
+f = dynamic_cast.Foo();
+b = dynamic_cast.Bar();
+
+x = f.blah();
+y = b.blah();
+
+a = dynamic_cast.do_test(y);
+if (!strcmp(a,"Bar::test"))
+ error("Failed!!")
+endif
+
+