1// Copyright 2016 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
5package main
6
7import "./a"
8
9type Value interface {
10	a.Stringer
11	Addr() *a.Mode
12}
13
14var global a.Mode
15
16func f() int {
17	var v Value
18	v = &global
19	return int(v.String()[0])
20}
21
22func main() {
23	f()
24}
25