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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [binutils-2.20.1/] [ld/] [testsuite/] [ld-pie/] [weakundef.c] - Diff between revs 816 and 818

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 816 Rev 818
#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.