Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/pr84739.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | |
children |
rev | line source |
---|---|
131 | 1 /* PR tree-optimization/84739 */ |
2 /* { dg-do compile } */ | |
3 /* { dg-require-weak "" } */ | |
4 /* { dg-options "-O2" } */ | |
5 | |
6 static void baz (void) __attribute__((weakref("bar"))); /* { dg-warning "alias between functions of incompatible types" } */ | |
7 | |
8 int | |
9 foo (int x, int y) | |
10 { | |
11 if (x) | |
12 y = 0; | |
13 if (y) | |
14 goto lab; | |
15 y = 0; | |
16 lab: | |
17 return y; | |
18 } | |
19 | |
20 void | |
21 bar (int x, int y) /* { dg-message "aliased declaration here" } */ | |
22 { | |
23 y = foo (x, y); | |
24 if (y != 0) | |
25 baz (); | |
26 } |