/trunk/Examples/test-suite/go/template_typedef_cplx4_runme.go
Go | 29 lines | 20 code | 7 blank | 2 comment | 0 complexity | 67471cfab602602d55e4c964866f799e MD5 | raw file
1package main 2 3import . "./template_typedef_cplx4" 4 5func main() { 6 // this is OK 7 8 9 s := NewSin() 10 s.Get_base_value() 11 s.Get_value() 12 s.Get_arith_value() 13 My_func_r(s) 14 Make_Multiplies_double_double_double_double(s, s) 15 16 z := NewCSin() 17 z.Get_base_value() 18 z.Get_value() 19 z.Get_arith_value() 20 My_func_c(z) 21 Make_Multiplies_complex_complex_complex_complex(z, z) 22 23 // Here we fail 24 d := Make_Identity_double() 25 My_func_r(d) 26 27 c := Make_Identity_complex() 28 My_func_c(c) 29}