1// Copyright 2020 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 (
8	_ "unsafe"
9
10	"./a"
11)
12
13//go:linkname s test/a.s
14var s string
15
16func main() {
17	if a.Get() != "a" {
18		panic("FAIL")
19	}
20
21	s = "b"
22	if a.Get() != "b" {
23		panic("FAIL")
24	}
25}
26