Debian Codegraph @

gcc/testsuite/g++.dg/ext/visibility/symbian1.C

raw
1 // { dg-do compile { target arm*-*-symbianelf* } }
2 // Class data should not be exported.
3 // { dg-final { scan-hidden "_ZTV2K3" } }
4 // But the constructor and destructor should be exported.
5 // { dg-final { scan-not-hidden "_ZN2K3C2Ev" } }
6 // { dg-final { scan-not-hidden "_ZN2K3D0Ev" } }
7
8 class __declspec(notshared) K3 {
9 public:
10 __declspec(dllimport) K3();
11 __declspec(dllimport) virtual ~K3();
12 virtual int m1();
13 };
14
15 __declspec(dllexport)
16 K3::K3(){}
17
18 __declspec(dllexport)
19 K3::~K3(){}
20
21 int K3::m1() { return 1; }
22