mirror of
https://github.com/golang/go
synced 2024-11-06 01:26:10 -07:00
17 lines
157 B
Go
17 lines
157 B
Go
|
package x1
|
||
|
|
||
|
import "fmt"
|
||
|
|
||
|
var P int
|
||
|
|
||
|
var b bool
|
||
|
|
||
|
func F(x *int) string {
|
||
|
if b { // avoid inlining
|
||
|
F(x)
|
||
|
}
|
||
|
P = 50
|
||
|
*x = 100
|
||
|
return fmt.Sprintln(P, *x)
|
||
|
}
|