Mercurial > emacs
view test/cedet/tests/testnsp.cpp @ 112404:2b0d6f7bbb80
Merge: src/config.in: shrink slightly
author | Paul Eggert <eggert@cs.ucla.edu> |
---|---|
date | Fri, 21 Jan 2011 16:13:42 -0800 |
parents | ef719132ddfa |
children |
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" ) }