gcc/testsuite/gcc.dg/lto/pr59626_0.c
raw| 1 | /* { dg-lto-do run } */ |
| 2 | |
| 3 | #define ASMNAME(cname) ASMNAME2 (__USER_LABEL_PREFIX__, cname) |
| 4 | #define ASMNAME2(prefix, cname) STRING (prefix) cname |
| 5 | #define STRING(x) #x |
| 6 | |
| 7 | int __atoi (const char *) __asm__(ASMNAME ("atoi")); |
| 8 | extern inline __attribute__((always_inline,gnu_inline)) |
| 9 | int atoi (const char *x) |
| 10 | { |
| 11 | return __atoi (x); |
| 12 | } |
| 13 | |
| 14 | int bar (int (*)(const char *)); |
| 15 | |
| 16 | int main() |
| 17 | { |
| 18 | return bar (atoi); |
| 19 | } |