Duplicate tests that are run twice as both C and C++ tests to fix parallel make: li_cdata
This commit is contained in:
parent
9600c95234
commit
819bd9c97e
5 changed files with 55 additions and 1 deletions
13
Examples/test-suite/go/li_cdata_cpp_runme.go
Normal file
13
Examples/test-suite/go/li_cdata_cpp_runme.go
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
package main
|
||||
|
||||
import . "./li_cdata_cpp"
|
||||
|
||||
func main() {
|
||||
s := "ABC abc"
|
||||
m := Malloc(256)
|
||||
Memmove(m, s, len(s))
|
||||
ss := Cdata(m, 7)
|
||||
if string(ss) != "ABC abc" {
|
||||
panic("failed")
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue