OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [binutils-2.20.1/] [ld/] [testsuite/] [ld-pie/] [weakundef.c] - Blame information for rev 620

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 205 julius
#include <stdio.h>
2
 
3
#pragma weak undef_func
4
 
5
extern int undef_func (void);
6
int (*ptr_to_func)(void) = undef_func;
7
 
8
int
9
main (void)
10
{
11
  if (ptr_to_func == NULL)
12
    printf ("PASSED\n");
13
 
14
  return 0;
15
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.