aboutsummaryrefslogtreecommitdiff
path: root/Examples/test-suite/javascript/template_typedef_cplx3_runme.js
diff options
context:
space:
mode:
Diffstat (limited to 'Examples/test-suite/javascript/template_typedef_cplx3_runme.js')
-rw-r--r--Examples/test-suite/javascript/template_typedef_cplx3_runme.js19
1 files changed, 19 insertions, 0 deletions
diff --git a/Examples/test-suite/javascript/template_typedef_cplx3_runme.js b/Examples/test-suite/javascript/template_typedef_cplx3_runme.js
new file mode 100644
index 000000000..0bec61109
--- /dev/null
+++ b/Examples/test-suite/javascript/template_typedef_cplx3_runme.js
@@ -0,0 +1,19 @@
+var template_typedef_cplx3 = require("template_typedef_cplx3");
+
+//
+// this is OK
+//
+
+
+s = new template_typedef_cplx3.Sin();
+s.get_base_value();
+s.get_value();
+s.get_arith_value();
+template_typedef_cplx3.my_func_r(s);
+template_typedef_cplx3.make_Multiplies_double_double_double_double(s, s);
+
+//
+// Here we fail
+//
+d = template_typedef_cplx3.make_Identity_double();
+template_typedef_cplx3.my_func_r(d);