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] - Rev 338

Compare with Previous | Blame | View Log

// { dg-do compile { target arm*-*-symbianelf* } }
// Class data should not be exported.
// { dg-final { scan-hidden "_ZTV2K3" } }
// But the constructor and destructor should be exported.
// { dg-final { scan-not-hidden "_ZN2K3C2Ev" } }
// { dg-final { scan-not-hidden "_ZN2K3D0Ev" } }

class __declspec(notshared) K3 {
public:
  __declspec(dllimport) K3();
  __declspec(dllimport) virtual ~K3();
  virtual int m1();
};

__declspec(dllexport)
  K3::K3(){}

__declspec(dllexport)
  K3::~K3(){}

int K3::m1() { return 1; }

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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