OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.other/] [dll-2.C] - Diff between revs 305 and 384

Only display areas with differences | Details | Blame | View Log

Rev 305 Rev 384
// { dg-do assemble { target arm-*-*pe } }
// { dg-do assemble { target arm-*-*pe } }
// Microsoft's MSVC 2.0 allows dllimport followed by dllexport for variables,
// Microsoft's MSVC 2.0 allows dllimport followed by dllexport for variables,
// but does not allow dllexport followed by dllimport.
// but does not allow dllexport followed by dllimport.
//
//
// Switching between dll{export,import} works for functions.
// Switching between dll{export,import} works for functions.
// We test for that too (by ensuring no error is produced).
// We test for that too (by ensuring no error is produced).
__declspec (dllimport) int foo1 ();
__declspec (dllimport) int foo1 ();
__declspec (dllexport) int foo1 ();
__declspec (dllexport) int foo1 ();
__declspec (dllexport) int foo2 ();
__declspec (dllexport) int foo2 ();
__declspec (dllimport) int foo2 ();
__declspec (dllimport) int foo2 ();
__declspec (dllimport) int bar1;
__declspec (dllimport) int bar1;
__declspec (dllexport) int bar1;
__declspec (dllexport) int bar1;
__declspec (dllexport) int bar2; // { dg-error "" } previously declared
__declspec (dllexport) int bar2; // { dg-error "" } previously declared
__declspec (dllimport) int bar2; // { dg-error "" } redefinition
__declspec (dllimport) int bar2; // { dg-error "" } redefinition
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.