aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.4.3/gcc/testsuite/gcc.c-torture/compile/dll.c
blob: 7f7bfcee55c6a030626d014fe3e00a4b7f074f65 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* { dg-require-dll "" } */

__declspec (dllimport) int foo;
extern int (* import) (void) __attribute__((dllimport));
int func2 (void) __attribute__((dllexport));

__declspec(dllexport) int 
func1 (int a)
{
  return a + foo;
}

static int
internal (void)
{
  return 77;
}

int
func2 (void)
{
  return import ();
}