repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
./:
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.c-torture
/
compile
/
dll.c
blob
7f7bfcee55c6a030626d014fe3e00a4b7f074f65
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
}