summaryrefslogtreecommitdiffstats
path: root/gcc/testsuite/gcc.dg/dll-1.c
blob: eb3b9b867f0323bb401682341cdc292bd6af306e (plain)
1
2
3
4
5
6
7
8
9
10
/* { dg-do compile { target arm*-*-pe* } } */
/* { dg-do compile { target thumb*-*-pe* } } */
/* { dg-options -mno-nop-fun-dllimport } */

__declspec (dllimport) void imp ();

__declspec (dllexport) void exp () { imp (); }

/* { dg-final { scan-assembler dll-1.c "\.section\[ \t\]*.drectve\n\[^\n\]*-export:exp.*__imp_imp" } } */
/* { dg-final { scan-assembler-not dll-1.c "__imp_exp" } } */
OpenPOWER on IntegriCloud