Mercurial > hg > CbC > CbC_gcc
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 |
rev | line source |
---|---|
111 | 1 /* { dg-options "-fgnu89-inline" } */ |
2 /* { dg-require-weak "" } */ | |
3 /* { dg-require-alias "" } */ | |
4 #define ASMNAME(cname) ASMNAME2 (__USER_LABEL_PREFIX__, cname) | |
5 #define ASMNAME2(prefix, cname) STRING (prefix) cname | |
6 #define STRING(x) #x | |
7 | |
8 extern inline int foo (void) { return 23; } | |
9 int bar (void) { return foo (); } | |
10 extern int foo (void) __attribute__ ((weak, alias ("xxx"))); | |
11 int baz (void) { return foo (); } | |
12 int xxx(void) __asm__(ASMNAME ("xxx")); | |
13 int xxx(void) { return 23; } |