binutils-gdb/ld/testsuite/ld-elf/wrap2b.c
H.J. Lu 1509f0c231 ld: Add PR ld/31710 tests
PR ld/31710
	* testsuite/ld-elf/wrap.exp: Run ld/31710 tests.
	* testsuite/ld-elf/wrap2.h: New file.
	* testsuite/ld-elf/wrap2a.c: Likewise.
	* testsuite/ld-elf/wrap2b.c: Likewise.
2024-05-08 07:01:24 -07:00

21 lines
186 B
C

#include <stdio.h>
#include "wrap2.h"
static void
loaded(void)
{
printf ("PASS\n");
}
struct ops __wrap_impl =
{
.loaded = loaded,
};
int
main()
{
impl.loaded ();
return 0;
}