Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/g++.dg/ext/visibility/staticdatamem.C @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 // 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 } |