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

extern int foo();

int baz () { return foo(); }

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

int main () { return bar (); }