Merge from mainline.
[official-gcc.git] / gcc / testsuite / gcc.dg / alias-4.c
blob0a2633932ef55221dc383fdea5a7c30538fe12d1
1 /* { dg-do compile } */
2 /* { dg-require-alias "" } */
3 /* { dg-options "-O2 -funit-at-a-time" } */
5 extern int foo();
7 int baz () { return foo(); }
9 static inline int bar () __attribute__ ((alias ("foo"))); /* { dg-error "aliased to" } */
11 int main () { return bar (); }