aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-empic/runtest2.c
blob: 000525f11ea44b6b1b7570a5cc514f4d6a7d4878 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/* Second C source file for actual execution test.  */

int k;
extern int i;
extern int j;
extern char small_buf[];
extern char *small_pointer;

extern int chkstr ();

int
bar (n)
     int n;
{
  int r;

  if (i != 1
      || j != 0
      || ! chkstr (small_buf, 4)
      || ! chkstr (small_pointer, 4))
    return k + 1;

  r = k;
  k = n;
  return r;
}