24 lines
314 B
C
24 lines
314 B
C
/* { 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 ();
|
|
}
|