OSDN Git Service

gcc:
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / dll-4.c
1 /* { dg-do compile { target arm*-*-pe* } } */
2 /* { dg-do compile { target i?86-pc-cygwin } } */
3 /* { dg-do compile { target i?86-pc-mingw* } } */
4
5 __declspec (dllimport) int foo1;
6 int foo1;
7
8 __declspec (dllimport) int foo2;
9 int foo2 = 5;
10
11 int f () { return foo1 + foo2; }
12
13 /* FIXME: We should scan the output of nm for this case.  */
14 /* { dg-final { scan-assembler "(foo2:.*\.comm\[ \t_\]*foo1)" } } */
15 /* { dg-final { scan-assembler-not "(__imp_|_imp__)" } } */