aboutsummaryrefslogtreecommitdiff
path: root/Examples/test-suite/javascript/template_typedef_cplx4_runme.js
blob: 1f6a65c021e1c8f93c8139b60ddd6f6e26037f49 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
var template_typedef_cplx4 = require("template_typedef_cplx4");

//
// this is OK
//


s = new template_typedef_cplx4.Sin();
s.get_base_value();
s.get_value();
s.get_arith_value();
template_typedef_cplx4.my_func_r(s);
template_typedef_cplx4.make_Multiplies_double_double_double_double(s, s);

//
// Here we fail
//
d = template_typedef_cplx4.make_Identity_double();
template_typedef_cplx4.my_func_r(d);