aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/c-c++-common/torture/pr57945.c
blob: 0803e8ff21f9639dc5e07e6826918a217b7ea50c (plain)
1
2
3
4
5
6
7
8
9
10
11
/* PR c++/57945 */
/* { dg-do compile } */

extern int j;
static int i __attribute__((weakref("j")));

int
foo (void)
{
  return &i ? i : 0;
}