Source file test/fixedbugs/issue42401.dir/b.go
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 5 package main 6 7 import ( 8 _ "unsafe" 9 10 "./a" 11 ) 12 13 //go:linkname s test/a.s 14 var s string 15 16 func 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