aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.8/gcc/testsuite/g++.dg/lto/pr53470_0.C
blob: 217c02a482bfbcbdc99a7fc115d10b40f5fc1c33 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// { dg-lto-do link }
// { dg-lto-options { { -g -flto } } }

class sp_counted_base;
class shared_count {
  sp_counted_base *pi_;
public:
  template<class Y> shared_count(Y) : pi_() {}
  ~shared_count() {}
};
template<class T> struct shared_ptr {
  T element_type;
  template<class Y> shared_ptr(Y) : pn(0) {}
  shared_count pn;
};
template<class> class ECGetterBase;
template<class T> struct ExtensionCord {
  struct Holder {
    ECGetterBase<T> *getter_;
  };
  ExtensionCord() : holder_(new Holder) {}

  shared_ptr<Holder> holder_;
};
ExtensionCord<int> a;
int main() {}