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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.c-torture/] [compile/] [dll.c] - Diff between revs 149 and 154

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

Rev 149 Rev 154
/* { dg-require-dll "" } */
/* { dg-require-dll "" } */
 
 
__declspec (dllimport) int foo;
__declspec (dllimport) int foo;
extern int (* import) (void) __attribute__((dllimport));
extern int (* import) (void) __attribute__((dllimport));
int func2 (void) __attribute__((dllexport));
int func2 (void) __attribute__((dllexport));
 
 
__declspec(dllexport) int
__declspec(dllexport) int
func1 (int a)
func1 (int a)
{
{
  return a + foo;
  return a + foo;
}
}
 
 
static int
static int
internal (void)
internal (void)
{
{
  return 77;
  return 77;
}
}
 
 
int
int
func2 (void)
func2 (void)
{
{
  return import ();
  return import ();
}
}
 
 

powered by: WebSVN 2.1.0

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