Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/gcc.dg/pr87483.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
111:04ced10e8804 | 131:84e7813d76e9 |
---|---|
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 } |