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 (); }