summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/alias-6.c
blob: 3ba101aa1b4d5a3530b6f50d970710c0720ddfa3 (plain)
1
2
3
4
5
6
7
/* { dg-do link } */
/* { dg-require-alias "" } */
/* { dg-options "-O2 -funit-at-a-time" } */

static inline int foo () { return 0; }
static int bar () __attribute__ ((alias ("foo")));
int main () { return bar (); }