1// Copyright 2019 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 5extern int weaksym __attribute__((__weak__)); 6int weaksym = 42; 7 8int foo1() 9{ 10 return weaksym; 11}