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

int foo = 1;

extern int *bar (void);
extern int bar_ifunc (void);

int
main (void)
{
  if (bar () == &foo && bar_ifunc () == 0xbadbeef)
    printf ("PASS\n");
  return 0;
}