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

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [dll-5.c] - Blame information for rev 298

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* { dg-do compile { target i?86-pc-cygwin } } */
2
/* { dg-do compile { target i?86-pc-mingw* } } */
3
/* { dg-do compile { target arm*-*-pe* } } */
4
 
5
/* { dg-options -mnop-fun-dllimport } */
6
 
7
/* The dllimport attribute should be ignored for functions. */
8
__declspec (dllimport) void dllimpfn ();
9
 
10
/* The dllimport attribute should not be ignored for variables. */
11
__declspec (dllimport) int dllimpvar;
12
 
13
/* The dllexport attribute should not be ignored. */
14
__declspec (dllexport) void dllexp ()
15
{
16
  dllimpfn ();
17
  dllimpvar = 0;
18
}
19
 
20
/* { dg-final { scan-assembler-not "(__imp_dllimpfn|_imp__dllimpfn)" } } */
21
/* { dg-final { scan-assembler "(__imp_dllimpvar|_imp__dllimpvar)" } } */
22
/* { dg-final { scan-assembler "\.section\[ \t\]*.drectve\n\.*-export:dllexp" } } */

powered by: WebSVN 2.1.0

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