summaryrefslogtreecommitdiffstats
path: root/ld/testsuite/ld-elf/dl2.c
blob: b5cd9275dab4947993f481a4796778aa3b9fc8bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include <stdio.h>

int foo;

extern void xxx (void);

void
bar (int x)
{
  if (foo == 1)
    printf ("OK1\n");
  else if (foo == 0)
    printf ("OK2\n");
  foo = -1;
  xxx ();
}
OpenPOWER on IntegriCloud