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-auto-import/] [dll.c] - Diff between revs 38 and 132

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

Rev 38 Rev 132
int var = 123;
int var = 123;
int foo = 121;
int foo = 121;
 
 
int var2[2]= { 123, 456 };
int var2[2]= { 123, 456 };
 
 
#include <stdio.h>
#include <stdio.h>
 
 
void
void
print_var (void)
print_var (void)
{
{
  printf ("DLL sees var = %d\n", var);
  printf ("DLL sees var = %d\n", var);
}
}
 
 
void
void
print_foo (void)
print_foo (void)
{
{
  printf ("DLL sees foo = %d\n", foo);
  printf ("DLL sees foo = %d\n", foo);
}
}
 
 
void (* func_ptr)(void) = print_foo;
void (* func_ptr)(void) = print_foo;
 
 

powered by: WebSVN 2.1.0

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