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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [dll-3.c] - Blame information for rev 689

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 689 jeremybenn
/* Ensure dllexport overrides dllimport.  */
2
 
3
/* { dg-do compile { target arm*-*-pe* } } */
4
/* { dg-do compile { target i?86-pc-cygwin } } */
5
/* { dg-do compile { target i?86-*-mingw* x86_64-*-mingw*} } */
6
 
7
__declspec (dllimport) int foo1 ();
8
__declspec (dllexport) int foo1 ();     /* { dg-warning "previous dllimport ignored" } */
9
 
10
__declspec (dllexport) int foo2 ();
11
__declspec (dllimport) int foo2 ();     /* { dg-warning "dllimport ignored" } */
12
 
13
__declspec (dllexport) int foo1 () { return foo2 (); }
14
__declspec (dllexport) int foo2 () { return foo1 (); }
15
 
16
/* { dg-final { scan-assembler "\.section\[ \t\]*.drectve\n.*-export:\[\\\\\"\]*foo2" } } */
17
/* { dg-final { scan-assembler "-export:\[\\\\\"\]*foo1" } } */
18
/* { dg-final { scan-assembler-not "(__imp_foo1|_imp__foo1|__imp_foo2|_imp__foo2)" } } */

powered by: WebSVN 2.1.0

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