build: separate compiler and libs
This commit is contained in:
12
compiler/cl/_testdata/printf/in.go
Normal file
12
compiler/cl/_testdata/printf/in.go
Normal file
@@ -0,0 +1,12 @@
|
||||
package main
|
||||
|
||||
import _ "unsafe"
|
||||
|
||||
//go:linkname printf C.printf
|
||||
func printf(format *int8, __llgo_va_list ...any)
|
||||
|
||||
var hello = [...]int8{'H', 'e', 'l', 'l', 'o', '\n', 0}
|
||||
|
||||
func main() {
|
||||
printf(&hello[0])
|
||||
}
|
||||
Reference in New Issue
Block a user