summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenCXX/2005-02-19-UnnamedVirtualThunkArgument.cpp
blob: 986001ada0daf01fbe6d834c02b606048a00c2b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// RUN: %clang_cc1 -emit-llvm %s -o /dev/null

struct Foo  {
    Foo();
    virtual ~Foo();
};

struct Bar  {
    Bar();
    virtual ~Bar();
    virtual bool test(bool) const;
};

struct Baz : public Foo, public Bar  {
    Baz();
    virtual ~Baz();
    virtual bool test(bool) const;
};

bool Baz::test(bool) const  {
    return true;
}
OpenPOWER on IntegriCloud