]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/gcc.dg/attr-alias-2.c
replace ISL with isl
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / attr-alias-2.c
CommitLineData
bedb9fc0
RH
1/* PR 19031 */
2/* { dg-do link } */
0c12d24f 3/* { dg-require-alias "" } */
bedb9fc0
RH
4/* { dg-options "-funit-at-a-time" } */
5
6static int f1 (void) { return 0; }
7extern int g1 (void) __attribute__((__alias__("f1")));
8
9#define STR(x) STR1(__USER_LABEL_PREFIX__, x)
10#define STR1(x,y) STR2(x, y)
11#define STR2(x,y) #x #y
12
13static int f2 (void) __asm__(STR(a2));
14static int f2 (void) { return 0; }
15extern int g2 (void) __attribute__((__alias__("a2")));
16
17int main ()
18{
19 return g1() + g2();
20}