Projet_SETI_RISC-V/riscv-gnu-toolchain/gdb/ld/testsuite/ld-pie/weakundef-data.c

16 lines
186 B
C
Raw Normal View History

2023-03-06 14:48:14 +01:00
#include <stdio.h>
#pragma weak undef_data
extern int undef_data;
int *ptr_to_data = &undef_data;
int
main (void)
{
if (ptr_to_data == NULL)
printf ("PASSED\n");
return 0;
}