1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-25 06:50:46 -08:00
emacs/test/cedet/tests/testnsp.cpp
2011-01-15 15:16:57 -08:00

29 lines
432 B
C++

// 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" )
}