Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/defaulted9.C

raw
1 // PR c++/39153
2 // { dg-do compile { target c++11 } }
3 // { dg-options "-fno-inline" }
4
5 struct _Impl_base
6 {
7 _Impl_base() = default;
8 virtual ~_Impl_base();
9 };
10
11 inline _Impl_base::~_Impl_base() = default;
12
13 template<typename _Tp>
14 class _Impl : public _Impl_base
15 { };
16
17 int main()
18 {
19 _Impl<int> i;
20 return 0;
21 }