2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.other / dll-4.C
blobea5593e5fd8c399003247e910b74be0d165df3ee
1 // { dg-do assemble { target arm-*-*pe } }
2 // Ensure dllexport overrides dllimport.
3 // set compiler_result "\.section${spaces}\.drectve\n\[^\n\]*-export:foo1.*\.section${spaces}\.drectve\n\[^\n\]*-export:foo2"
4 // set not_compiler_result "(__imp_foo1|__imp_foo2)"
6 __declspec (dllimport) int foo1 ();
7 __declspec (dllexport) int foo1 ();
9 __declspec (dllexport) int foo2 ();
10 __declspec (dllimport) int foo2 ();
12 __declspec (dllexport) int foo1 () { return foo2 (); }
13 __declspec (dllexport) int foo2 () { return foo1 (); }