Add a testcase for PR ld/2404
[platform/upstream/binutils.git] / ld / testsuite / ld-elf / pr2404b.c
1 #include <stdio.h>
2
3 extern int bar (void);
4
5 int times = -1;
6 int time;
7
8 int
9 main ()
10 {
11   printf ("times: %d\n", times);
12   times = 20;
13   printf ("times: %d\n", times);
14
15   printf ("time: %d\n", time);
16   time = 10;
17   printf ("time: %d\n", time);
18   bar ();
19
20   return 0;
21 }