Duplicate tests that are run twice as both C and C++ tests to fix parallel make: overload_extend
This commit is contained in:
parent
0bd41dc14d
commit
155e31626c
10 changed files with 106 additions and 1 deletions
22
Examples/test-suite/go/overload_extend_c_runme.go
Normal file
22
Examples/test-suite/go/overload_extend_c_runme.go
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
package main
|
||||
|
||||
import "./overload_extend_c"
|
||||
|
||||
func main() {
|
||||
f := overload_extend_c.NewFoo()
|
||||
if f.Test().(int) != 0 {
|
||||
panic(0)
|
||||
}
|
||||
if f.Test(3).(int) != 1 {
|
||||
panic(0)
|
||||
}
|
||||
if f.Test("hello").(int) != 2 {
|
||||
panic(0)
|
||||
}
|
||||
if f.Test(float64(3), float64(2)).(float64) != 5 {
|
||||
panic(0)
|
||||
}
|
||||
if f.Test(3.0).(float64) != 1003 {
|
||||
panic(0)
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue