summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.other/override2.C
blob: 01ff84c69146d5e25c172f47b5dad0a7b243e8c2 (plain)
1
2
3
4
5
6
7
8
9
10
// { dg-do assemble  }
// Copyright (C) 2001 Free Software Foundation, Inc.
// Contributed by Jason Merrill 14 Jun 2001 <jason@redhat.com>

// Test for diagnosis of missing final overrider.

struct A { virtual void f (); };
struct B1: virtual A { virtual void f (); };
struct B2: virtual A { virtual void f (); };
struct C: public B1, public B2 {}; // { dg-error "" } no final overrider