aboutsummaryrefslogtreecommitdiffstats
path: root/test/cedet/tests/testsubclass.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/cedet/tests/testsubclass.cpp')
-rw-r--r--test/cedet/tests/testsubclass.cpp28
1 files changed, 23 insertions, 5 deletions
diff --git a/test/cedet/tests/testsubclass.cpp b/test/cedet/tests/testsubclass.cpp
index 4e0e0c0dbda..4d379f707a5 100644
--- a/test/cedet/tests/testsubclass.cpp
+++ b/test/cedet/tests/testsubclass.cpp
@@ -1,5 +1,23 @@
1/* Special test file for Semantic Analyzer and complex C++ inheritance. 1// testsubclass.cpp --- unit test for analyzer and complex C++ inheritance
2 */ 2
3// Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
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/>.
3 21
4//#include <iostream> 22//#include <iostream>
5#include "testsubclass.hh" 23#include "testsubclass.hh"
@@ -94,7 +112,7 @@ moose deer::alces::createMoose()
94 MooseVariableName = createMoose(); 112 MooseVariableName = createMoose();
95 113
96 doLatinStuff(MooseVariableName); 114 doLatinStuff(MooseVariableName);
97 115
98 tmp = this.f// -1- 116 tmp = this.f// -1-
99 // #1# ( "fAlcesBool" "fIsValid" "fLatin" ) 117 // #1# ( "fAlcesBool" "fIsValid" "fLatin" )
100 ; 118 ;
@@ -125,7 +143,7 @@ moose deer::alces::createMoose()
125int someFunction(int mPickle) 143int someFunction(int mPickle)
126{ 144{
127 moose mMoose = deer::alces::createMoose(); 145 moose mMoose = deer::alces::createMoose();
128 146
129 if (mPickle == 1) { 147 if (mPickle == 1) {
130 148
131 int mOption1 = 2; 149 int mOption1 = 2;
@@ -152,7 +170,7 @@ namespace pub_priv {
152 class A{ 170 class A{
153 private: 171 private:
154 void private_a(){} 172 void private_a(){}
155 public: 173 public:
156 void public_a(); 174 void public_a();
157 }; 175 };
158 176