weak1.c 257 B

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