summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.other/dll-3.C
blob: d2784bca8d7c217dd3e4a02c5c2eaea6bd679a58 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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(); 
}