build: separate compiler and libs
This commit is contained in:
16
compiler/cl/_testrt/slicelen/in.go
Normal file
16
compiler/cl/_testrt/slicelen/in.go
Normal file
@@ -0,0 +1,16 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"unsafe"
|
||||
)
|
||||
|
||||
func main() {
|
||||
var s *int
|
||||
var lens uint32
|
||||
sl := unsafe.Slice(s, lens)
|
||||
slen := len(sl)
|
||||
println(slen)
|
||||
if slen > 0 {
|
||||
println("len > 0")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user