diff options
| author | Chong Yidong | 2010-03-29 17:26:49 -0400 |
|---|---|---|
| committer | Chong Yidong | 2010-03-29 17:26:49 -0400 |
| commit | a4100ebe291e4d2aca4dd8178e7632ba87f7a65e (patch) | |
| tree | 974cde909168950c49e79efea01558e68e434789 /test/cedet/tests/testtemplates.cpp | |
| parent | fe59d70512322e7001ffd772f5e74c7302b7e1d5 (diff) | |
| download | emacs-a4100ebe291e4d2aca4dd8178e7632ba87f7a65e.tar.gz emacs-a4100ebe291e4d2aca4dd8178e7632ba87f7a65e.zip | |
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.
Diffstat (limited to 'test/cedet/tests/testtemplates.cpp')
| -rw-r--r-- | test/cedet/tests/testtemplates.cpp | 92 |
1 files changed, 0 insertions, 92 deletions
diff --git a/test/cedet/tests/testtemplates.cpp b/test/cedet/tests/testtemplates.cpp deleted file mode 100644 index 4e0f0e4abfa..00000000000 --- a/test/cedet/tests/testtemplates.cpp +++ /dev/null | |||
| @@ -1,92 +0,0 @@ | |||
| 1 | // Templates Test file: | ||
| 2 | // Written by 'Raf' | ||
| 3 | |||
| 4 | template <class T, int U, class V> | ||
| 5 | class read_ref { | ||
| 6 | public: | ||
| 7 | const T* read_ref_member_one( T); | ||
| 8 | const V* read_ref_member_two(); | ||
| 9 | }; | ||
| 10 | |||
| 11 | namespace NS { | ||
| 12 | template <class T, int U, class V> | ||
| 13 | class ref { | ||
| 14 | public: | ||
| 15 | read_ref<T,10,V> operator->() { | ||
| 16 | m_// -1- | ||
| 17 | ; | ||
| 18 | // #1# ( "m_datas" ) | ||
| 19 | } | ||
| 20 | |||
| 21 | private: | ||
| 22 | T m_datas[U]; | ||
| 23 | }; | ||
| 24 | |||
| 25 | } | ||
| 26 | |||
| 27 | class FooOne { | ||
| 28 | public: | ||
| 29 | int fooOneMember(); | ||
| 30 | }; | ||
| 31 | |||
| 32 | class FooTwo { | ||
| 33 | public: | ||
| 34 | int fooTwoMember(); | ||
| 35 | }; | ||
| 36 | |||
| 37 | class FooThree { | ||
| 38 | public: | ||
| 39 | int fooThreeMember(); | ||
| 40 | |||
| 41 | FooOne * operator->(); | ||
| 42 | }; | ||
| 43 | |||
| 44 | typedef ref<FooOne, 10,FooTwo> Test; | ||
| 45 | |||
| 46 | using NS; | ||
| 47 | |||
| 48 | void | ||
| 49 | main(void) { | ||
| 50 | ref<FooOne, 10, FooTwo> v; | ||
| 51 | |||
| 52 | v->read_ref_member_one()-> // -2- | ||
| 53 | ; | ||
| 54 | // #2# ( "fooOneMember" ) | ||
| 55 | |||
| 56 | v->read_ref_member_two()-> // -3- | ||
| 57 | ; | ||
| 58 | // #3# ( "fooTwoMember" ) | ||
| 59 | |||
| 60 | v-> // -4- | ||
| 61 | ; | ||
| 62 | // #4# ( "read_ref_member_one" "read_ref_member_two" ) | ||
| 63 | |||
| 64 | Test t; | ||
| 65 | |||
| 66 | t->read_ref_member_two()-> // -5- | ||
| 67 | ; | ||
| 68 | // #5# ( "fooTwoMember" ) | ||
| 69 | |||
| 70 | ref<FooOne, 10, FooThree> v2; | ||
| 71 | |||
| 72 | v2->read_ref_member_two()-> // -6- | ||
| 73 | ; | ||
| 74 | // #6# ( "fooOneMember" ) | ||
| 75 | |||
| 76 | /* Try all these things by also specifying the namespace in the name. */ | ||
| 77 | NS::ref<FooOne, 10, FooTwo> v3; | ||
| 78 | |||
| 79 | v3->read_ref_member_one()-> // -7- | ||
| 80 | ; | ||
| 81 | // #7# ( "fooOneMember" ) | ||
| 82 | |||
| 83 | v3->read_ref_member_two()-> // -8- | ||
| 84 | ; | ||
| 85 | // #8# ( "fooTwoMember" ) | ||
| 86 | |||
| 87 | v3->read_ref_member_two// @1@ 5 | ||
| 88 | ; | ||
| 89 | |||
| 90 | } | ||
| 91 | |||
| 92 | // arch-tag: 03cbb8c3-3d01-42ab-b416-42a08ea7b896 | ||