emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] scratch/merge-cedet-tests 7b417f2 131/316: Tests contribut


From: Edward John Steere
Subject: [Emacs-diffs] scratch/merge-cedet-tests 7b417f2 131/316: Tests contributed by Barry OReilly
Date: Fri, 27 Jan 2017 20:03:33 +0000 (UTC)

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

    Tests contributed by Barry OReilly
    
    * test/manual/cedet/integ_src/globalref/src/Util.cc: These test files
     contributed by Barry OReilly, modified for use in the automated tests
     for CEDET, and with additional comments.  inc/Util.hh, src/Util.cc:
     Search symbol both in and outside of namespaces.
---
 test/manual/cedet/integ_src/globalref/src/Util.cc |   22 +++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/test/manual/cedet/integ_src/globalref/src/Util.cc 
b/test/manual/cedet/integ_src/globalref/src/Util.cc
new file mode 100644
index 0000000..5c1b327
--- /dev/null
+++ b/test/manual/cedet/integ_src/globalref/src/Util.cc
@@ -0,0 +1,22 @@
+#include <stdio.h>
+#include "Util.hh"
+
+//
+// This file contains the impl for the symbols in inc/Util.hh
+// and this is the destination of some symref jumps.
+//
+namespace play { namespace prod {
+
+    // The symbol in namespaces.
+    int myUtilFunc(const int param) {
+      printf("Inside myUtilFunc(%d).\n", param);
+      return param;
+    }
+
+  }}
+
+// The symbol outside of namespaces.
+int myUtilFuncNoNS(const int param) {
+  printf("Inside myUtilFuncNoNS(%d).\n", param);
+  return param;
+}



reply via email to

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