]> gcc.gnu.org Git - gcc.git/blame - gcc/testsuite/g++.old-deja/g++.other/dll-2.C
spec4.C: Remove stray semicolon.
[gcc.git] / gcc / testsuite / g++.old-deja / g++.other / dll-2.C
CommitLineData
921e5a0e
JL
1// Skip if not target: arm-*pe
2// Build don't link:
3// Microsoft's MSVC 2.0 allows dllimport followed by dllexport for variables,
4// but does not allow dllexport followed by dllimport.
5//
6// Switching between dll{export,import} works for functions.
7// We test for that too (by ensuring no error is produced).
8
9__declspec (dllimport) int foo1 ();
10__declspec (dllexport) int foo1 ();
11
12__declspec (dllexport) int foo2 ();
13__declspec (dllimport) int foo2 ();
14
15__declspec (dllimport) int bar1;
16__declspec (dllexport) int bar1;
17
18__declspec (dllexport) int bar2; // ERROR - previously declared
19__declspec (dllimport) int bar2; // ERROR - redefinition
This page took 1.478117 seconds and 5 git commands to generate.