aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/warn/Wreturn-type-10.C
blob: 2043b6cf21a911c62851c28e6c1cf5fa865c94df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// PR c++/59916
// { dg-options "-Os -Wreturn-type" }

class A {};

struct B : virtual public A
{
  B();
  virtual ~B();
};

B::B() {}
B::~B() {}