emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] scratch/merge-cedet-tests 0a0dd27 167/316: Test typedef wh


From: Edward John Steere
Subject: [Emacs-diffs] scratch/merge-cedet-tests 0a0dd27 167/316: Test typedef which has the keyword "class" included
Date: Fri, 27 Jan 2017 20:03:37 +0000 (UTC)

branch: scratch/merge-cedet-tests
commit 0a0dd2725479e5e19c58cfc27effa76041e8d321
Author: Eric Ludlam <address@hidden>
Commit: Edward John Steere <address@hidden>

    Test typedef which has the keyword "class" included
    
    * 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.
---
 .../cedet/cedet/semantic/tests/testtypedefs.cpp    |   30 ++++++++++++++++++++
 1 file changed, 30 insertions(+)

diff --git a/test/manual/cedet/cedet/semantic/tests/testtypedefs.cpp 
b/test/manual/cedet/cedet/semantic/tests/testtypedefs.cpp
index daf7bb6..1fdc87f 100644
--- a/test/manual/cedet/cedet/semantic/tests/testtypedefs.cpp
+++ b/test/manual/cedet/cedet/semantic/tests/testtypedefs.cpp
@@ -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;
+}



reply via email to

[Prev in Thread] Current Thread [Next in Thread]