build: separate compiler and libs
This commit is contained in:
17
compiler/cl/_testgo/allocinloop/in.go
Normal file
17
compiler/cl/_testgo/allocinloop/in.go
Normal file
@@ -0,0 +1,17 @@
|
||||
package main
|
||||
|
||||
func Foo(s string) int {
|
||||
return len(s)
|
||||
}
|
||||
|
||||
func Test() {
|
||||
j := 0
|
||||
for i := 0; i < 10000000; i++ {
|
||||
j += Foo("hello")
|
||||
}
|
||||
println(j)
|
||||
}
|
||||
|
||||
func main() {
|
||||
Test()
|
||||
}
|
||||
Reference in New Issue
Block a user