* 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.
; // #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;
+}