]> gcc.gnu.org Git - gcc.git/blame - gcc/testsuite/gcc.dg/dll-2.c
c-common.c (scanf_flag_specs): Add flags ' and I.
[gcc.git] / gcc / testsuite / gcc.dg / dll-2.c
CommitLineData
921e5a0e
JL
1/* These dllimport and dllexport appearing for a symbol.
2 The desired behaviour is that if both dllimport
3 and dllexport appear (in either order) the result is dllexport.
4
5 Microsoft's MSVC 2.0 allows dllimport followed by dllexport for variables,
6 but does not allow dllexport followed by dllimport.
7
8 In C, it's ok to redeclare a variable so this works for variables
9 and functions. In C++, it only works for functions. */
10
11/* { dg-do compile { target arm*-*-pe* } } */
ba0dcc87 12/* { dg-do compile { target thumb*-*-pe* } } */
921e5a0e
JL
13
14__declspec (dllimport) int foo1 ();
15__declspec (dllexport) int foo1 ();
16
17__declspec (dllexport) int foo2 ();
18__declspec (dllimport) int foo2 ();
19
20__declspec (dllimport) int bar1;
21__declspec (dllexport) int bar1;
22
23__declspec (dllexport) int bar2;
24__declspec (dllimport) int bar2;
This page took 0.852529 seconds and 5 git commands to generate.