summaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-elf/pr25754-1a.c
blob: bc65c174d055f18334765909cd16f68de1079ec7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include <stdio.h>
#include <stdint.h>

extern uintptr_t bar;

uintptr_t *
__attribute__ ((noinline, noclone))
get_bar (void)
{
  return &bar;
}

int
main ()
{
  if ((uintptr_t) get_bar () == 42)
    printf ("PASS\n");
  return 0;
}