Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / g++.dg / ext / visibility / symbian1.C
blob864ab2bb9eb5b8efa5c88fd9c121c6cc82c7e1da
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" } }
8 class __declspec(notshared) K3 {
9 public:
10   __declspec(dllimport) K3();
11   __declspec(dllimport) virtual ~K3();
12   virtual int m1();
15 __declspec(dllexport)
16   K3::K3(){}
18 __declspec(dllexport)
19   K3::~K3(){}
21 int K3::m1() { return 1; }