Mercurial > emacs
comparison test/cedet/tests/testdoublens.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 // | 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 |
| 7 namespace Name1 { | 24 namespace Name1 { |
| 8 namespace Name2 { | 25 namespace Name2 { |
| 9 | 26 |
| 27 } | 44 } |
| 28 | 45 |
| 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 |
| 36 // Test multiple levels of metatype expansion | 53 // Test multiple levels of metatype expansion |
| 37 int test_fcn () { | 54 int test_fcn () { |
| 42 ; | 59 ; |
| 43 | 60 |
| 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" ) |
| 51 ; | 68 ; |
| 52 } | 69 } |
| 56 } | 73 } |
| 57 | 74 |
| 58 | 75 |
| 59 // Second test from Ravikiran Rajagopal | 76 // Second test from Ravikiran Rajagopal |
| 60 | 77 |
| 61 namespace A { | 78 namespace 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 } |
| 68 namespace A { | 85 namespace A { |
| 69 class bar { | 86 class bar { |
| 70 public: | 87 public: |
| 71 void xx(); | 88 void xx(); |
| 72 public: | 89 public: |
| 73 foo myFoo; | 90 foo myFoo; |
| 74 }; | 91 }; |
| 94 int baz(); | 111 int baz(); |
| 95 }; | 112 }; |
| 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 } |
| 103 | 120 |
| 104 } // namespace b | 121 } // namespace b |
