Error about alias attribute with body definition (PR c/87483).
[official-gcc.git] / gcc / testsuite / gcc.dg / pr87483.c
blobd3af8dfee5d76b1b8a4639dc4e3d2215dfc912e3
1 /* PR c/87483 */
2 /* { dg-require-alias "" } */
4 int f (void) { return 0; }
5 __attribute__ ((alias ("f"))) int g () { return 1; } /* { dg-warning "attribute ignored because function is defined" } */
6 __attribute__ ((alias ("f"))) int g2 ();
8 int h (void)
10 return g2 ();
13 int main()
15 return h();