summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/this.C
blob: 17e897851481b215dfbb275fb5defc8ae85f35b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// { dg-do assemble  }
// PRMS Id: 5190
// Bug: g++ fails to build up a const reference to `this'.

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

void print (const X* const &);

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