libgfortran/ChangeLog:
[official-gcc.git] / gcc / testsuite / gcc.dg / pr43157.c
blobc06f98ac02e459077d3a6e0a39a643b5d16f7308
1 /* { dg-do link } */
2 /* { dg-require-effective-target lto } */
3 /* { dg-require-linker-plugin "" } */
4 /* { dg-options "-O1 -flto -fuse-linker-plugin" } */
6 #define LABEL3(pfx, x) # pfx x
7 #define LABEL2(pfx, x) LABEL3(pfx, x)
8 #define LABEL(x) LABEL2(__USER_LABEL_PREFIX__, x)
10 unsigned int factorial_ (unsigned int) __asm__ (LABEL ("factorial"));
12 unsigned int factorial (unsigned int i)
14 return i > 1 ? i * factorial_ (i - 1) : 1;
17 int main (void)
19 return factorial (5);