summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/lto/20081222_1.c
blob: e8f9254421be0c948932a2b4ae5866f66a78b3ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include "20081222_0.h"

/* Actually, call "x" "INT_X", and make it hidden.  */
extern __typeof (x) x
	__asm__ ("INT_x")
	__attribute__ ((__visibility__ ("hidden")));

int x ()
{
  return 7;
}

/* Make an externally-visible symbol "X" that's an alias for INT_x.  */
extern __typeof (x) EXT_x
	__asm__ ("x")
	__attribute__ ((__alias__ ("INT_x")));