summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.other/dll-3.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.other/dll-3.C')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.other/dll-3.C16
1 files changed, 16 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.other/dll-3.C b/gcc/testsuite/g++.old-deja/g++.other/dll-3.C
new file mode 100644
index 000000000..d2784bca8
--- /dev/null
+++ b/gcc/testsuite/g++.old-deja/g++.other/dll-3.C
@@ -0,0 +1,16 @@
+// { dg-do assemble { target arm-*-*pe } }
+// { dg-options "-mno-nop-fun-dllimport" }
+// set compiler_result "__imp_f1.*\.section${spaces}.drectve\n\[^\n\]*-export:f2"
+// set not_compiler_result "__imp_f2"
+
+class aClass
+{
+public:
+ __declspec(dllimport) int f1();
+ __declspec(dllexport) int f2();
+};
+
+__declspec(dllexport) int aClass::f2()
+{
+ return f1();
+}