_wrap: llgo_check (to be continued)

This commit is contained in:
xushiwei
2024-07-13 19:53:55 +08:00
parent a3ea4798bc
commit 767a0cc1fd
6 changed files with 44 additions and 1 deletions

View File

@@ -0,0 +1,12 @@
package main
import (
"unsafe"
"github.com/goplus/llgo/c"
"github.com/goplus/llgo/cpp/std"
)
func main() {
c.Printf(c.Str("sizeof(std::string) = %lu\n"), unsafe.Sizeof(std.String{}))
}