gcc/testsuite/gcc.dg/pr87483.c
raw| 1 | /* PR c/87483 */ |
| 2 | /* { dg-require-alias "" } */ |
| 3 | |
| 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 (); |
| 7 | |
| 8 | int h (void) |
| 9 | { |
| 10 | return g2 (); |
| 11 | } |
| 12 | |
| 13 | int main() |
| 14 | { |
| 15 | return h(); |
| 16 | } |