gcc/testsuite/g++.dg/lto/20081120-1_0.C
raw| 1 | // { dg-lto-do link } |
| 2 | // { dg-lto-options {{-flto -r -nostdlib}} } |
| 3 | /* { dg-extra-ld-options "-flinker-output=nolto-rel" } */ |
| 4 | extern "C" |
| 5 | { |
| 6 | extern __inline __attribute__((__gnu_inline__)) int pthread_equal(int, int) |
| 7 | { |
| 8 | return 0; |
| 9 | } |
| 10 | } |
| 11 | static __typeof(pthread_equal) |
| 12 | __gthrw_pthread_equal __attribute__((__weakref__("pthread_equal"))); |