mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-27 04:52:05 +08:00
cec2c50d38
PR ld/2404 was fixed without a testcase. This patch to add one. PR ld/2404 * ld-elf/pr2404.out: New file. * ld-elf/pr2404a.c: Likewise. * ld-elf/pr2404b.c: Likewise. * ld-elf/shared.exp (build_tests): Build libpr2404a.so and libpr2404b.a. (run_tests): Run pr2404.
22 lines
266 B
C
22 lines
266 B
C
#include <stdio.h>
|
|
|
|
extern int bar (void);
|
|
|
|
int times = -1;
|
|
int time;
|
|
|
|
int
|
|
main ()
|
|
{
|
|
printf ("times: %d\n", times);
|
|
times = 20;
|
|
printf ("times: %d\n", times);
|
|
|
|
printf ("time: %d\n", time);
|
|
time = 10;
|
|
printf ("time: %d\n", time);
|
|
bar ();
|
|
|
|
return 0;
|
|
}
|