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/] [staticdatamem.C] - Blame information for rev 338

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 301 jeremybenn
// PR c++/18925
2
// { dg-do compile { target ia64-*-linux* } }
3
// { dg-options "-fPIC -fvisibility=hidden" }
4
// { dg-final { scan-assembler-not "gprel" } }
5
 
6
class __attribute__ ((visibility("default"))) Type
7
{
8
 private:
9
  static long _staticTypeCount;
10
 public:
11
  Type() { _staticTypeCount++; }
12
  ~Type();
13
};
14
 
15
long Type::_staticTypeCount = 0;
16
 
17
Type::~Type()
18
{
19
 _staticTypeCount--;
20
}

powered by: WebSVN 2.1.0

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