OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [dll-2.c] - Blame information for rev 154

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
/* These dllimport and dllexport appearing for a symbol.
2
   The desired behavior 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-require-dll "" } */
12
 
13
__declspec (dllimport) int foo1 ();
14
__declspec (dllexport) int foo1 ();     /* { dg-warning "previous dllimport ignored" } */
15
__declspec (dllexport) int foo2 ();
16
__declspec (dllimport) int foo2 ();     /* { dg-warning "dllimport ignored" } */
17
 
18
__declspec (dllimport) int bar1;
19
__declspec (dllexport) int bar1;        /* { dg-warning "previous dllimport ignored" } */
20
 
21
__declspec (dllexport) int bar2;
22
__declspec (dllimport) int bar2;        /* { dg-warning "dllimport ignored" } */

powered by: WebSVN 2.1.0

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