Mercurial > emacs
comparison test/cedet/tests/testdoublens.hpp @ 105267:c99cf31de3f2
Add CEDET tests.
author | Chong Yidong <cyd@stupidchicken.com> |
---|---|
date | Mon, 28 Sep 2009 23:23:31 +0000 |
parents | e480034314ce |
children | 7f4c7f5c0eba |
comparison
equal
deleted
inserted
replaced
105266:c02e98221afe | 105267:c99cf31de3f2 |
---|---|
1 // | |
2 // Header file used in one of the ia-utest tests. | |
3 // | |
4 namespace Name1 { | |
5 namespace Name2 { | |
6 | |
7 class Foo | |
8 { | |
9 typedef unsigned int Mumble; | |
10 public: | |
11 Foo(); | |
12 ~Foo(); | |
13 int get(); | |
14 | |
15 private: | |
16 void publishStuff(int a, int b); | |
17 | |
18 void sendStuff(int a, int b); | |
19 | |
20 Mumble* pMumble; | |
21 }; | |
22 | |
23 typedef Foo stage1_Foo; | |
24 | |
25 } // namespace Name2 | |
26 | |
27 typedef Name2::stage1_Foo stage2_Foo; | |
28 | |
29 typedef Name2::Foo decl_stage1_Foo; | |
30 | |
31 } // namespace Name1 | |
32 | |
33 typedef Name1::stage2_Foo stage3_Foo; | |
34 | |
35 | |
36 // Double namespace from Hannu Koivisto | |
37 namespace a { | |
38 namespace b { | |
39 | |
40 class Foo | |
41 { | |
42 struct Dum { | |
43 int diDum; | |
44 }; | |
45 | |
46 protected: | |
47 mutable a::b::Foo::Dum dumdum; | |
48 }; | |
49 | |
50 } // namespace b | |
51 } // namespace a |