libgo/misc/cgo/testplugin/testdata/issue22295.pkg/plugin.go
raw| 1 | // Copyright 2017 The Go Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style |
| 3 | // license that can be found in the LICENSE file. |
| 4 | |
| 5 | package main |
| 6 | |
| 7 | var f *int |
| 8 | |
| 9 | func init() { |
| 10 | f = new(int) |
| 11 | *f = 2503 |
| 12 | } |
| 13 | |
| 14 | func F() int { return *f } |
| 15 | |
| 16 | func main() {} |