Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.jason/this.C

raw
1 // { dg-do assemble }
2 // PRMS Id: 5190
3 // Bug: g++ fails to build up a const reference to `this'.
4
5 class X
6 {
7 public:
8 void member ();
9 };
10
11 void print (const X* const &);
12
13 void X::member ()
14 {
15 print (this);
16 }