Skip to content
Snippets Groups Projects
Commit 14b17550 authored by nickc's avatar nickc
Browse files

Test DLL attribute support.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@27843 138bc75d-0d04-0410-961f-82ee72b054a4
parent 0f1adac2
No related branches found
No related tags found
No related merge requests found
1999-06-23 Nick Clifton <nickc@cygnus.com>
* compile/dll.c: New test case. Check that dll attributes
compile.
* compile/dll.x: Only support the dll.c test on ports that
use the COFF/PE file format.
1999-05-25 Nick Clifton <nickc@cygnus.com>
* execute/bf-sign-2.c: Explicitly declare signed bitfields as
......
__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 ();
}
# This test examines the attribute support for DLLs.
# Only COFF/PE formats support DLLs, (plus, as a special case
# the mcore-elf toolchain), so the code here tries to determine
# the file format and decide whether the test should be marked
# as unsupported.
set torture_eval_before_compile {
if ![istarget "mcore-*-elf"] {
set objformat [gcc_target_object_format]
if { $objformat != "pe" } {
unsupported "dll.c"
return 1
}
}
}
return 0
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment