aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-i386/plt-main3.c
blob: 026e05febb27c5eb8d25c9410b17e307fb548741 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
extern int bar(void);
typedef int (*func_p) (void);
extern func_p get_bar (void);

void
check_bar (void)
{
  func_p bar_ptr = get_bar ();
  if (bar_ptr != bar)
    __builtin_abort ();
  if (bar_ptr() != -1)
    __builtin_abort ();
  if (bar() != -1)
    __builtin_abort ();
}