OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [g++.dg/] [ext/] [visibility/] [symbian1.C] - Blame information for rev 338

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 301 jeremybenn
// { 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
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.