2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.other / dll-5.C
blobc02be8932636606d146354bd278b5c7fbc8cbefc
1 // { dg-do assemble { target arm-*-*pe } }
2 // dllimport is "sorta like" to "extern".
3 // set compiler_result "(\nfoo1:.*\nfoo2:|\nfoo2:.*\nfoo1:)"
4 // set not_compiler_result "__imp_"
6 __declspec (dllimport) int foo1;
7 int foo1;
9 __declspec (dllimport) int foo2;
10 int foo2 = 5;
12 int f () { return foo1 + foo2; }