/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

  1. package main
  2. import . "./template_typedef_cplx4"
  3. func main() {
  4. // this is OK
  5. s := NewSin()
  6. s.Get_base_value()
  7. s.Get_value()
  8. s.Get_arith_value()
  9. My_func_r(s)
  10. Make_Multiplies_double_double_double_double(s, s)
  11. z := NewCSin()
  12. z.Get_base_value()
  13. z.Get_value()
  14. z.Get_arith_value()
  15. My_func_c(z)
  16. Make_Multiplies_complex_complex_complex_complex(z, z)
  17. // Here we fail
  18. d := Make_Identity_double()
  19. My_func_r(d)
  20. c := Make_Identity_complex()
  21. My_func_c(c)
  22. }