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: Type()11 Type() { _staticTypeCount++; } 12 ~Type(); 13 }; 14 15 long Type::_staticTypeCount = 0; 16 ~Type()17Type::~Type() 18 { 19 _staticTypeCount--; 20 } 21