build: separate compiler and libs
This commit is contained in:
23
compiler/cl/internal/linktarget/foo.go
Normal file
23
compiler/cl/internal/linktarget/foo.go
Normal file
@@ -0,0 +1,23 @@
|
||||
package linktarget
|
||||
|
||||
import (
|
||||
"github.com/goplus/llgo/c"
|
||||
)
|
||||
|
||||
func F(a, b *c.Char) {
|
||||
c.Printf(c.Str("a: %s, b: %s\n"), a, b)
|
||||
}
|
||||
|
||||
var _ m
|
||||
|
||||
type m struct {
|
||||
s string
|
||||
}
|
||||
|
||||
func (t m) info() string {
|
||||
return t.s
|
||||
}
|
||||
|
||||
func (t *m) setInfo(s string) {
|
||||
t.s = s
|
||||
}
|
||||
Reference in New Issue
Block a user