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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [binutils-2.20.1/] [ld/] [testsuite/] [ld-auto-import/] [dll.c] - Blame information for rev 299

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

Line No. Rev Author Line
1 215 jeremybenn
int var = 123;
2
int foo = 121;
3
 
4
int var2[2]= { 123, 456 };
5
 
6
#include <stdio.h>
7
 
8
void
9
print_var (void)
10
{
11
  printf ("DLL sees var = %d\n", var);
12
}
13
 
14
void
15
print_foo (void)
16
{
17
  printf ("DLL sees foo = %d\n", foo);
18
}
19
 
20
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.