Debian Codegraph @

gcc/testsuite/gcc.dg/lto/attr-weakref-2_0.c

raw
1 /* { dg-lto-do link } */
2 /* { dg-lto-options {{-O2 -flto}} } */
3
4 #define __weak __attribute__((__weak__))
5 void __weak other() {}
6 void __weak fn() {}
7
8 int main() {
9 fn();
10 other();
11 }