Projet_SETI_RISC-V/riscv-gnu-toolchain/gdb/ld/testsuite/ld-plugin/pr22502a.c
2023-03-06 14:48:14 +01:00

16 lines
205 B
C

#include <stdio.h>
volatile int x;
extern void abort ();
__attribute__((weak))
void foobar (void) { x++; }
int main (void)
{
foobar ();
if (x != -1)
abort ();
printf ("PASS\n");
return 0;
}