PageRenderTime 44ms CodeModel.GetById 18ms RepoModel.GetById 1ms app.codeStats 0ms

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

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