Duplicate tests that are run twice as both C and C++ tests to fix parallel make: li_cdata

This commit is contained in:
William S Fulton 2016-02-21 15:01:37 +00:00
commit 819bd9c97e
5 changed files with 55 additions and 1 deletions

View 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")
}
}