view test/cedet/tests/testnsp.cpp @ 111841:25e3c2636c1f

* lisp/gnus/message.el: Use completion-at-point. (message-completion-function): New fun, extracted from message-tab. (message-mode): Use it for completion-at-point-functions. (message-tab): Use it and completion-at-point.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Mon, 06 Dec 2010 21:01:00 -0500
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