github.com/golang/gofrontend@v0.0.0-20240429183944-60f985a78526/libgo/misc/cgo/test/testdata/issue29563/weak2.c (about)

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