aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/this.C
blob: 544db6c361a56a66a69244714bcee77900749113 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// PRMS Id: 5190
// Bug: g++ fails to build up a const reference to `this'.
// Build don't link:

class X
{
public:
    void member ();
};

void print (const X* const &);

void X::member ()
{
    print (this);
}