summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/defaulted9.C
blob: 1e5e2cbf9fbc5d8f526af19d9ceaf252971c8d49 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// PR c++/39153
// { dg-options "-std=c++0x -fno-inline" }

struct _Impl_base
{
  _Impl_base() = default;
  virtual ~_Impl_base();
};

inline _Impl_base::~_Impl_base() = default;

template<typename _Tp>
class _Impl : public _Impl_base
{ };

int main()
{
  _Impl<int> i;
  return 0;
}