]> git.eshelyaron.com Git - emacs.git/commitdiff
Test `this' from in inline member functions
authorDavid Engster <dengste@eml.cc>
Thu, 28 Feb 2013 21:52:16 +0000 (22:52 +0100)
committerEdward John Steere <edward.steere@gmail.com>
Wed, 25 Jan 2017 15:59:25 +0000 (17:59 +0200)
* tests/cedet/semantic/test/manual/cedet/testsubclass.cpp: Add test
 for 'this' in inline member function.

test/manual/cedet/cedet/semantic/tests/testsubclass.cpp

index ede4b370708d54783bbea6eda4fe7ce544ffedba..68d48e873db042cf09bec2d2f223a900f7e54e09 100644 (file)
@@ -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" )
+  }
+};