aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/dll-1.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.dg/dll-1.c')
-rw-r--r--gcc/testsuite/gcc.dg/dll-1.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/dll-1.c b/gcc/testsuite/gcc.dg/dll-1.c
new file mode 100644
index 00000000000..72c6ba5b24e
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/dll-1.c
@@ -0,0 +1,9 @@
+/* { dg-do compile { target arm*-*-pe* } } */
+/* { dg-options -mno-nop-fun-dllimport } */
+
+__declspec (dllimport) void imp ();
+
+__declspec (dllexport) void exp () { imp (); }
+
+/* { dg-final { scan-assembler dll-1.c "__imp_imp.*\.section\[ \t\]*.drectve\n\[^\n\]*-export:exp" } } */
+/* { dg-final { scan-assembler-not dll-1.c "__imp_exp" } } */