old-cross-binutils/ld/testsuite/ld-elf/pr2404a.c
H.J. Lu cec2c50d38 Add a testcase for PR ld/2404
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.
2014-01-20 04:50:47 -08:00

10 lines
152 B
C

#include <time.h>
#include <sys/times.h>
int
bar (void)
{
struct tms buf;
clock_t ticks = times (&buf);
return ticks == 0 && time (NULL) == 0;
}