OSDN Git Service

cp/ChangeLog
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.other / dll-4.C
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)"
5
6 __declspec (dllimport) int foo1 ();
7 __declspec (dllexport) int foo1 ();
8
9 __declspec (dllexport) int foo2 ();
10 __declspec (dllimport) int foo2 ();
11
12 __declspec (dllexport) int foo1 () { return foo2 (); }
13 __declspec (dllexport) int foo2 () { return foo1 (); }