PageRenderTime 24ms CodeModel.GetById 0ms RepoModel.GetById 0ms app.codeStats 0ms

/trunk/Examples/test-suite/go/extend_template_runme.go

#
Go | 14 lines | 11 code | 3 blank | 0 comment | 4 complexity | 49b636c6bb4226f9b589a8ed46e63db9 MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
  1. package main
  2. import "./extend_template"
  3. func main() {
  4. f := extend_template.NewFoo_0()
  5. if f.Test1(37) != 37 {
  6. panic(0)
  7. }
  8. if f.Test2(42) != 42 {
  9. panic(0)
  10. }
  11. }