github.com/gotranspile/cxgo@v0.3.7/runtime/libc/memory_test.go (about)

     1  package libc
     2  
     3  import "testing"
     4  
     5  func TestRealloc(t *testing.T) {
     6  	p := Malloc(1)
     7  	p = Realloc(p, 32*1024*1024)
     8  	Free(p)
     9  }