/trunk/Examples/test-suite/go/typedef_scope_runme.go
Go | 16 lines | 13 code | 3 blank | 0 comment | 4 complexity | 580bd74812af836c0b5f690eaf3aa6e5 MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
- package main
- import "./typedef_scope"
- func main() {
- b := typedef_scope.NewBar()
- x := b.Test1(42, "hello")
- if x != 42 {
- panic("Failed!!")
- }
- xb := b.Test2(42, "hello")
- if xb != "hello" {
- panic("Failed!!")
- }
- }