]> git.eshelyaron.com Git - emacs.git/commitdiff
Test typedef which has the keyword "class" included
authorEric Ludlam <zappo@gnu.org>
Mon, 24 Nov 2014 17:38:04 +0000 (12:38 -0500)
committerEdward John Steere <edward.steere@gmail.com>
Wed, 25 Jan 2017 16:30:35 +0000 (18:30 +0200)
* test/manual/cedet/cedet/semantic/tests/testtypedefs.cpp:
 (NS2::Myclass, MyClassHandle, dixon): New test w/ a typedef that has
 keyword "class" included, instead of omitted as with other tests.

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

index daf7bb6060f0edf8aee4def421e6137d5e0b145b..1fdc87f4ff416a7a8726111370d258cce880198d 100644 (file)
@@ -118,3 +118,33 @@ int func(void)
      ; // #7# ( "field_a" "field_b" )
    return 0;
 }
+
+
+// ------------------
+// Example from Dixon Ryan
+
+
+namespace NS2 {
+   class MyClass {
+
+   public:
+      void myFunction() { }
+   };
+}
+
+typedef class NS2::MyClass* MyClassHandle;
+
+int dixon ( void ) {
+  MyClassHandle mch = getMyClassHandle();
+  NS2::MyClass* mcptr = getMyClassHandle();
+
+  mch-> // -8-
+    ; // #8# ( "myFunction" )
+
+  mcptr-> // -9-
+    ; // #9# ( "myFunction" )
+
+  deleteMyClassHandle(mch);
+
+  return 0;
+}