Mercurial > emacs
annotate test/cedet/tests/testnsp.cpp @ 111421:ac911360c429
Minor emerge changes.
* lisp/vc/emerge.el (emerge-eval-in-buffer): Remove, and replace all uses
with with-current-buffer.
(diff, template): Give dynamic local variables a prefix.
(emerge-line-numbers): Rename local `diff' to emerge-line-diff.
(emerge-line-number-in-buf): Update for above name change.
(emerge-combine-versions-internal): Rename local `template' to
emerge-combine-template.
(emerge-combine-versions-edit): Update for above name change.
author | Glenn Morris <rgm@gnu.org> |
---|---|
date | Sat, 06 Nov 2010 11:51:11 -0700 |
parents | 7f4c7f5c0eba |
children | ef719132ddfa |
rev | line source |
---|---|
104494 | 1 // Test NSP (Name space parent) |
2 // | |
3 // Test dereferencing parents based on local parent scope. | |
4 // | |
5 // Derived from data David Engster provided. | |
6 | |
7 namespace nsp { | |
8 | |
9 class rootclass { | |
10 public: | |
11 int fromroot() {}; | |
12 }; | |
13 | |
14 } | |
15 | |
16 namespace nsp { | |
17 class childclass : public rootclass { | |
18 public: | |
19 int fromchild() {}; | |
20 }; | |
21 } | |
22 | |
23 void myfcn_not_in_ns (void) { | |
24 nsp::childclass test; | |
25 | |
26 test.// -1- | |
27 ; // #1# ( "fromchild" "fromroot" ) | |
28 } | |
105377 | 29 |
30 // arch-tag: 2e9c6bf7-1574-440f-ba66-5c8fe034cdec |