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

int foo;
void bar (void);

int
main ()
{
  if (foo != 0)
    abort ();
  foo = 200; 
  bar ();
  if (foo == 200)
    printf ("PASS\n");
  return 0;
}