aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.target/i386/alias-1.c
blob: a556259a1e0b7ec6029a052a8624c5e4f776bc5d (plain)
1
2
3
4
5
6
7
8
9
10
/* { dg-do compile } */
/* { dg-require-alias "" } */

int yum;
void dessert (void) { ++yum; }
extern void jelly (void) __attribute__ ((alias ("dessert"), weak));
extern void wobbly (void) __attribute__ ((alias ("jelly"), weak));

/* { dg-final { scan-assembler "wobbly" } } */
/* { dg-final { scan-assembler "jelly" } } */