Mercurial > emacs
view test/cedet/tests/testnsp.cpp @ 109983:a44dc3503539
* vol2.texi (Top): Update.
* vol1.texi (Top): Update.
* tips.texi (Library Headers): Mention Package-Version and
Package-Requires.
* package.texi: New file.
* os.texi (System Interface): Update pointers.
* elisp.texi (Top): Link to new nodes. Include package.texi.
* anti.texi (Antinews): Update pointers.
author | Tom Tromey <tromey@redhat.com> |
---|---|
date | Wed, 25 Aug 2010 14:25:32 -0600 |
parents | 7f4c7f5c0eba |
children | ef719132ddfa |
line wrap: on
line source
// Test NSP (Name space parent) // // Test dereferencing parents based on local parent scope. // // Derived from data David Engster provided. namespace nsp { class rootclass { public: int fromroot() {}; }; } namespace nsp { class childclass : public rootclass { public: int fromchild() {}; }; } void myfcn_not_in_ns (void) { nsp::childclass test; test.// -1- ; // #1# ( "fromchild" "fromroot" ) } // arch-tag: 2e9c6bf7-1574-440f-ba66-5c8fe034cdec