emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] scratch/merge-cedet-tests a2c77d6 022/316: Move tests in c


From: Edward John Steere
Subject: [Emacs-diffs] scratch/merge-cedet-tests a2c77d6 022/316: Move tests in cedet/semantic
Date: Sat, 28 Jan 2017 09:09:43 +0000 (UTC)

branch: scratch/merge-cedet-tests
commit a2c77d6ed85ad021aca877cd16fa21b4cb877f4d
Author: xscript <address@hidden>
Commit: Edward John Steere <address@hidden>

    Move tests in cedet/semantic
---
 .../cedet/cedet/semantic/tests/testfriends.cpp     |   37 ++++++++++++++++++++
 1 file changed, 37 insertions(+)

diff --git a/test/manual/cedet/cedet/semantic/tests/testfriends.cpp 
b/test/manual/cedet/cedet/semantic/tests/testfriends.cpp
new file mode 100644
index 0000000..f84ed5a
--- /dev/null
+++ b/test/manual/cedet/cedet/semantic/tests/testfriends.cpp
@@ -0,0 +1,37 @@
+// Test parsing of friends and how they are used in completion.
+/*
+  >>  Thanks Damien Profeta for the nice example.
+  >
+  >  I paste a small example.
+  >  It would be great if friend can be well parsed and even greater if
+  >  class B can access to all the members of A.
+*/
+
+class Af // %2% ( ( "testfriends.cpp" ) ( "Af" "B::testB" ) )
+{
+public:
+  int pubVar;
+private:
+  int privateVar;
+
+  friend class B;
+
+};
+
+class B
+{
+public:
+  int testB();
+  int testAB();
+
+};
+
+
+int B::testB() {
+  Af classA;
+  classA.//-1-
+    ; //#1# ( "privateVar" "pubVar" )
+}
+
+int B::testAB() { // %1% ( ( "testfriends.cpp" ) ( "B" "B::testAB" ) )
+}



reply via email to

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