aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-x86-64/pr18900b.c
blob: e6663056e704cc57fc4e6dc1293a3ece093fa626 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
extern void abort (void);
extern void foo (void);
extern void *bar (void);

typedef void (*func_p) (void);

extern const func_p p1;

func_p p2 = &foo;
func_p p3 = &foo;

int
main ()
{
  void *p = bar ();
  p1 ();
  p2 ();
  p3 ();
  if (p != p1)
    abort ();
  return 0;
}