aboutsummaryrefslogtreecommitdiffstats
path: root/test/cedet/tests/testdoublens.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/cedet/tests/testdoublens.cpp')
-rw-r--r--test/cedet/tests/testdoublens.cpp37
1 files changed, 27 insertions, 10 deletions
diff --git a/test/cedet/tests/testdoublens.cpp b/test/cedet/tests/testdoublens.cpp
index c3a2fc4a5e6..59e820027c3 100644
--- a/test/cedet/tests/testdoublens.cpp
+++ b/test/cedet/tests/testdoublens.cpp
@@ -1,7 +1,24 @@
1// 1// testdoublens.cpp --- semantic-ia-utest completion engine unit tests
2// CPP file for semantic-ia-utest 2
3// completion engine unit tests. 3// Copyright (C) 2008, 2009, 2010 Free Software Foundation, Inc.
4// 4
5// Author: Eric M. Ludlam <eric@siege-engine.com>
6
7// This file is part of GNU Emacs.
8
9// GNU Emacs is free software: you can redistribute it and/or modify
10// it under the terms of the GNU General Public License as published by
11// the Free Software Foundation, either version 3 of the License, or
12// (at your option) any later version.
13
14// GNU Emacs is distributed in the hope that it will be useful,
15// but WITHOUT ANY WARRANTY; without even the implied warranty of
16// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17// GNU General Public License for more details.
18
19// You should have received a copy of the GNU General Public License
20// along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
21
5#include "testdoublens.hpp" 22#include "testdoublens.hpp"
6 23
7namespace Name1 { 24namespace Name1 {
@@ -29,7 +46,7 @@ namespace Name1 {
29 void Foo::sendStuff(int /* a */, int /* b */) // ^3^ 46 void Foo::sendStuff(int /* a */, int /* b */) // ^3^
30 { 47 {
31 } 48 }
32 49
33 } // namespace Name2 50 } // namespace Name2
34} // namespace Name1 51} // namespace Name1
35 52
@@ -44,7 +61,7 @@ int test_fcn () {
44 Name1::Name2::F//-4- 61 Name1::Name2::F//-4-
45 // #4# ( "Foo" ) 62 // #4# ( "Foo" )
46 ; 63 ;
47 64
48 // @TODO - get this working... 65 // @TODO - get this working...
49 Name1::stage2_Foo::M//-5- 66 Name1::stage2_Foo::M//-5-
50 /// #5# ( "Mumble" ) 67 /// #5# ( "Mumble" )
@@ -58,15 +75,15 @@ stage3_Foo foo_fcn() {
58 75
59// Second test from Ravikiran Rajagopal 76// Second test from Ravikiran Rajagopal
60 77
61namespace A { 78namespace A {
62 class foo { 79 class foo {
63 public: 80 public:
64 void aa(); 81 void aa();
65 void bb(); 82 void bb();
66 }; 83 };
67} 84}
68namespace A { 85namespace A {
69 class bar { 86 class bar {
70 public: 87 public:
71 void xx(); 88 void xx();
72 public: 89 public:
@@ -96,7 +113,7 @@ namespace a {
96 113
97 int Bar::baz() 114 int Bar::baz()
98 { 115 {
99 return dum// -7- 116 return dum// -7-
100 // #7# ( "dumdum" ) 117 // #7# ( "dumdum" )
101 ; 118 ;
102 } 119 }