summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/compat/break/vbase11_x.C
blob: 4b2398ae10dfe17979295b17c6c356ce929b7472 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include "vbase11.h"

extern void vbase11_y (derived&);

int base::foo() { return 1; }
int derived::foo() { return 2; }
int derived::bar() { return 3; }

void vbase11_x ()
{
  derived d;

  vbase11_y (d);
}