Debian Codegraph @

libgo/misc/cgo/test/testdata/issue29563/weak2.c

raw
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 }