gcc/testsuite/g++.dg/lto/pr68811_0.C
raw| 1 | // { dg-lto-do link } |
| 2 | /* { dg-lto-options { { -O2 -w } { -w } } } */ |
| 3 | // { dg-extra-ld-options "-r -nostdlib -flinker-output=nolto-rel" } |
| 4 | extern "C" char *strcpy(char *, const char *); |
| 5 | char InitXPCOMGlue_lastSlash; |
| 6 | void InitXPCOMGlue() { strcpy(&InitXPCOMGlue_lastSlash, ".so"); } |
| 7 | extern "C" void memcpy(void *); |
| 8 | char LZ4_decompress_safe_usingDict_ip; |
| 9 | void LZ4_decompress_safe_usingDict() { |
| 10 | memcpy(&LZ4_decompress_safe_usingDict_ip); |
| 11 | } |