PR tree-optimization/84740
[official-gcc.git] / gcc / testsuite / gcc.dg / lto / 20081222_1.c
blob755eb9918e9a9300229a00a5a647a171a78b9ff1
1 #include "20081222_0.h"
3 #define ASMNAME(cname) ASMNAME2 (__USER_LABEL_PREFIX__, cname)
4 #define ASMNAME2(prefix, cname) STRING (prefix) cname
5 #define STRING(x) #x
7 /* Actually, call "x" "INT_X", and make it hidden. */
8 extern __typeof (x) x
9 __asm__ (ASMNAME ("INT_x"))
10 __attribute__ ((__visibility__ ("hidden")));
12 int x ()
14 return 7;
17 /* Make an externally-visible symbol "X" that's an alias for INT_x. */
18 extern __typeof (x) EXT_x
19 __asm__ (ASMNAME ("x"))
20 __attribute__ ((__alias__ ("INT_x")));