aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-sparc/gotop-hidden.c
blob: d769c6ddc668f85818739332b8de68297b4fab65 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <stdio.h>

extern unsigned int foo (void);

__attribute__((visibility("hidden"))) unsigned int var = 0xdeadbeef;

int main (void)
{
  if (var == foo ())
    puts ("PASS");

  return 0;
}