annotate gcc/testsuite/gcc.c-torture/compile/20011119-2.c @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 /* { dg-options "-fgnu89-inline" } */
kono
parents:
diff changeset
2 /* { dg-require-weak "" } */
kono
parents:
diff changeset
3 /* { dg-require-alias "" } */
kono
parents:
diff changeset
4 #define ASMNAME(cname) ASMNAME2 (__USER_LABEL_PREFIX__, cname)
kono
parents:
diff changeset
5 #define ASMNAME2(prefix, cname) STRING (prefix) cname
kono
parents:
diff changeset
6 #define STRING(x) #x
kono
parents:
diff changeset
7
kono
parents:
diff changeset
8 extern inline int foo (void) { return 23; }
kono
parents:
diff changeset
9 int bar (void) { return foo (); }
kono
parents:
diff changeset
10 extern int foo (void) __attribute__ ((weak, alias ("xxx")));
kono
parents:
diff changeset
11 int baz (void) { return foo (); }
kono
parents:
diff changeset
12 int xxx(void) __asm__(ASMNAME ("xxx"));
kono
parents:
diff changeset
13 int xxx(void) { return 23; }