From: David Engster Date: Thu, 28 Feb 2013 21:52:16 +0000 (+0100) Subject: Test `this' from in inline member functions X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=fb82965eefbeadb060c0a75310c1560104c00fe9;p=emacs.git Test `this' from in inline member functions * tests/cedet/semantic/test/manual/cedet/testsubclass.cpp: Add test for 'this' in inline member function. --- diff --git a/test/manual/cedet/cedet/semantic/tests/testsubclass.cpp b/test/manual/cedet/cedet/semantic/tests/testsubclass.cpp index ede4b370708..68d48e873db 100644 --- a/test/manual/cedet/cedet/semantic/tests/testsubclass.cpp +++ b/test/manual/cedet/cedet/semantic/tests/testsubclass.cpp @@ -210,21 +210,21 @@ int otherFunction() bool sneaky::antelope::testAccess() //^7^ { - this.// -12- + this->// -12- // #12# ( "fAntyPrivate" "fAntyProtected" "fAntyPublic" "fQuadProtected" "fQuadPublic" "testAccess" ) ; } bool sneaky::jackalope::testAccess() //^8^ { - this.// -13- + this->// -13- // #13# ( "fBunnyPrivate" "fBunnyProtected" "fBunnyPublic" "fQuadProtected" "fQuadPublic" "testAccess" ) ; } bool sneaky::bugalope::testAccess() //^9^ { - this.// -14- + this->// -14- // #14# ( "fBugPrivate" "fBugProtected" "fBugPublic" "fQuadPublic" "testAccess" ) ; } @@ -238,3 +238,14 @@ namespace deer { { } } + +// Test 'this' in inline methods +// See rev. 8488f. +class outer { + int asdf; + int qwer; + char inlineMethod(void) { + this->// -16- + // #16# ( "asdf" "inlineMethod" "qwer" ) + } +};