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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.c-torture/] [compile/] [dll.c] - Blame information for rev 859

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

Line No. Rev Author Line
1 297 jeremybenn
/* { dg-require-dll "" } */
2
 
3
__declspec (dllimport) int foo;
4
extern int (* import) (void) __attribute__((dllimport));
5
int func2 (void) __attribute__((dllexport));
6
 
7
__declspec(dllexport) int
8
func1 (int a)
9
{
10
  return a + foo;
11
}
12
 
13
static int
14
internal (void)
15
{
16
  return 77;
17
}
18
 
19
int
20
func2 (void)
21
{
22
  return import ();
23
}

powered by: WebSVN 2.1.0

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