diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.jason/this.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.jason/this.C | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.jason/this.C b/gcc/testsuite/g++.old-deja/g++.jason/this.C new file mode 100644 index 00000000000..544db6c361a --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.jason/this.C @@ -0,0 +1,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); +} |