aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/warn/ctor1.C
blob: 00a6c952b6421be52c29cea9bdc645218200b0ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// PR c++/35734
// { dg-options "-W" }

struct A
{
  A();
  template<typename T> A(const T&);
};

struct B : A
{
  B(const B&) {}		// { dg-warning "base class" }
};