view test/cedet/tests/testnsp.cpp @ 111825:52f1a401269c

Remove empty machine description files * configure.in: Remove reference to removed machine description files and allow $machine and $machfile to be empty. Substitute M_FILE/S_FILE instead of machfile/opsysfile. * msdos/sed1v2.inp (M_FILE, S_FILE): Add $(srcdir)/ prefix. * Makefile.in (M_FILE): Substitute @M_FILE@ instead of @machfile@. (S_FILE): Substitute @S_FILE@ instead of @opsysfile@. * src/m/arm.h, src/m/sh3.h, src/m/xtensa.h: Remove files.
author Andreas Schwab <schwab@linux-m68k.org>
date Sat, 04 Dec 2010 20:50:39 +0100
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