comparison test/cedet/tests/testsubclass.cpp @ 107698:89eccb374dec

Update Semantic test copyrights, delete some test files (Bug#4656). * cedet/tests/test.cpp: * cedet/tests/test.py: * cedet/tests/teststruct.cpp: * cedet/tests/testtemplates.cpp: * cedet/tests/testusing.cpp: * cedet/tests/scopetest.cpp: * cedet/tests/scopetest.java: Files deleted. * cedet/tests/test.make: * cedet/tests/test.c: * cedet/tests/testjavacomp.java: * cedet/tests/testspp.c: * cedet/tests/testsppreplace.c: * cedet/tests/testsppreplaced.c: * cedet/tests/testsubclass.cpp: * cedet/tests/testsubclass.hh: * cedet/tests/testtypedefs.cpp: * cedet/tests/testvarnames.c: * cedet/tests/test.el: * cedet/tests/testdoublens.cpp: * cedet/tests/testdoublens.hpp: Add copyright header. * cedet/semantic-tests.el (semanticdb-test-gnu-global): Remove reference to deleted files.
author Chong Yidong <cyd@stupidchicken.com>
date Mon, 29 Mar 2010 17:26:49 -0400
parents 7f4c7f5c0eba
children 376148b31b5e
comparison
equal deleted inserted replaced
107697:11f529f4b5bd 107698:89eccb374dec
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"
6 24
7 void animal::moose::setFeet(int numfeet) //^1^ 25 void animal::moose::setFeet(int numfeet) //^1^
92 int fast; 110 int fast;
93 111
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 ;
101 119
102 itmp = this.f// -2- 120 itmp = this.f// -2-
123 * for different locations in local variable parsing. 141 * for different locations in local variable parsing.
124 */ 142 */
125 int someFunction(int mPickle) 143 int 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;
132 150
133 m// -5- 151 m// -5-
150 namespace pub_priv { 168 namespace pub_priv {
151 169
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
159 void A::public_a() { 177 void A::public_a() {
160 A other_a; 178 A other_a;