summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/alias-3.c
blob: 3dc25a91c49adc3285418ce6cfb76b22d19c176f (plain)
1
2
3
4
5
6
7
8
9
10
11
/* { dg-do compile } */
/* { dg-require-alias "" } */
/* { dg-options "" } */

extern int foo();

int baz () { return foo(); }

static inline int bar () __attribute__ ((alias ("foo"))); /* { dg-error "aliased to" } */

int main () { return bar (); }