OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [binutils-2.18.50/] [ld/] [testsuite/] [ld-pie/] [weakundef.c] - Diff between revs 38 and 156

Only display areas with differences | Details | Blame | View Log

Rev 38 Rev 156
#include <stdio.h>
#include <stdio.h>
 
 
#pragma weak undef_func
#pragma weak undef_func
 
 
extern int undef_func (void);
extern int undef_func (void);
int (*ptr_to_func)(void) = undef_func;
int (*ptr_to_func)(void) = undef_func;
 
 
int
int
main (void)
main (void)
{
{
  if (ptr_to_func == NULL)
  if (ptr_to_func == NULL)
    printf ("PASSED\n");
    printf ("PASSED\n");
 
 
  return 0;
  return 0;
}
}
 
 

powered by: WebSVN 2.1.0

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