OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Backported from mainline
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
gcc.c-torture
/
compile
/
dll.c
1
/* { 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
}