summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.abi/vtable3a.C
blob: d2eaa562ddbf866f4d553a862aff304d593e7d7e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// { dg-do run  }
// { dg-additional-files "vtable3.h" }

// Copyright (C) 2000, 2003 Free Software Foundation, Inc.
// Contributed by Nathan Sidwell 4 February 2001 <nathan@codesourcery.com>

// Check constructor vtables work.

#define A_EMPTY
#define B1_EMPTY
#define B2_EMPTY
#define C_EMPTY
#define C_PARENTS B1, B2

#include "vtable3.h"

/*
  A = { vptr }
  B1, B2 = { A }
  C = { B1, B2 }
  D = { C }
  D1 = {
 */