diff options
Diffstat (limited to 'misc/cgo/test/testdata/issue29563/weak2.c')
-rw-r--r-- | misc/cgo/test/testdata/issue29563/weak2.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/misc/cgo/test/testdata/issue29563/weak2.c b/misc/cgo/test/testdata/issue29563/weak2.c new file mode 100644 index 0000000..e01eae8 --- /dev/null +++ b/misc/cgo/test/testdata/issue29563/weak2.c @@ -0,0 +1,11 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +extern int weaksym __attribute__((__weak__)); +int weaksym = 42; + +int foo2() +{ + return weaksym; +} |