summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture/pr47278-2.c
blob: 0c700d19612e90b025c0db5bbeeebc46c829d83c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* { dg-require-visibility "" } */

extern void abort (void);

int __attribute__((weak,visibility("hidden"))) foo (void)
{
  return 0;
}

int main()
{
  if (foo() != 1)
    abort ();
  return 0;
}