aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-elf/pr25754-2a.c
blob: 7c7fb28f4d5286da1f1f7ec311d9d45e9b20b9ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#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 () == 0xfffffff0U)
    printf ("PASS\n");
  return 0;
}
#include <stdio.h>