annotate gcc/testsuite/gcc.dg/pr43157.c @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 /* { dg-do link } */
kono
parents:
diff changeset
2 /* { dg-require-effective-target lto } */
kono
parents:
diff changeset
3 /* { dg-require-linker-plugin "" } */
kono
parents:
diff changeset
4 /* { dg-options "-O1 -flto -fuse-linker-plugin" } */
kono
parents:
diff changeset
5
kono
parents:
diff changeset
6 #define LABEL3(pfx, x) # pfx x
kono
parents:
diff changeset
7 #define LABEL2(pfx, x) LABEL3(pfx, x)
kono
parents:
diff changeset
8 #define LABEL(x) LABEL2(__USER_LABEL_PREFIX__, x)
kono
parents:
diff changeset
9
kono
parents:
diff changeset
10 unsigned int factorial_ (unsigned int) __asm__ (LABEL ("factorial"));
kono
parents:
diff changeset
11
kono
parents:
diff changeset
12 unsigned int factorial (unsigned int i)
kono
parents:
diff changeset
13 {
kono
parents:
diff changeset
14 return i > 1 ? i * factorial_ (i - 1) : 1;
kono
parents:
diff changeset
15 }
kono
parents:
diff changeset
16
kono
parents:
diff changeset
17 int main (void)
kono
parents:
diff changeset
18 {
kono
parents:
diff changeset
19 return factorial (5);
kono
parents:
diff changeset
20 }