mirror of
https://github.com/golang/go
synced 2024-11-19 15:14:45 -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)
|
||
|
}
|