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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [ext/] [visibility/] [staticdatamem.C] - Diff between revs 149 and 154

Only display areas with differences | Details | Blame | View Log

Rev 149 Rev 154
// PR c++/18925
// PR c++/18925
// { dg-do compile { target ia64-*-linux* } }
// { dg-do compile { target ia64-*-linux* } }
// { dg-options "-fPIC -fvisibility=hidden" }
// { dg-options "-fPIC -fvisibility=hidden" }
// { dg-final { scan-assembler-not "gprel" } }
// { dg-final { scan-assembler-not "gprel" } }
class __attribute__ ((visibility("default"))) Type
class __attribute__ ((visibility("default"))) Type
{
{
 private:
 private:
  static long _staticTypeCount;
  static long _staticTypeCount;
 public:
 public:
  Type() { _staticTypeCount++; }
  Type() { _staticTypeCount++; }
  ~Type();
  ~Type();
};
};
long Type::_staticTypeCount = 0;
long Type::_staticTypeCount = 0;
Type::~Type()
Type::~Type()
{
{
 _staticTypeCount--;
 _staticTypeCount--;
}
}
 
 

powered by: WebSVN 2.1.0

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