view test/cedet/tests/testnsp.cpp @ 105374:28c45fa22117

* w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
author Michael Albinus <michael.albinus@gmx.de>
date Fri, 02 Oct 2009 06:00:58 +0000
parents e480034314ce
children 7f4c7f5c0eba
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" )
}