summaryrefslogtreecommitdiffstats
path: root/misc/cgo/testplugin/testdata/issue22295.pkg/plugin.go
blob: 46b08a405bce9ce98c54f1920c731aa11c90822f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Copyright 2017 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

package main

var f *int

func init() {
	f = new(int)
	*f = 2503
}

func F() int { return *f }

func main() {}