summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.law/virtual1.C
blob: 9cf6d8e454febab237a95fab50e671dd35739495 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// { dg-do assemble  }
// { dg-options "-Woverloaded-virtual" }
// GROUPS passed virtual-warnings
// copy file
// From: gfm@mencon.mencon.oz.au (Graham Menhennitt)
// Date:     Thu, 29 Apr 93 20:53:07 EST
// Subject:  4 bugs in g++ 2.3.3
// Message-ID: <9304291053.AA00090@mencon>

        struct A {
                virtual ~A(void);
        };

        struct B {
                friend class A;
                virtual void f(void);
        };

        struct C : public A {
                virtual void f(void);
        };