summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/virtual3.C
blob: c34f508f373e43284f66f1b2553f940c89c72b73 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// { dg-do assemble  }
// Origin: Mark Mitchell <mark@codesourcery.com>

struct S
{
  int i;
};

template <typename T>
struct X : virtual public T, virtual public S
{
  int i;

  X () : i (3) {}
};