https://github.com/root-project/root
Raw File
Tip revision: 8fbce697c224a5587c141f0e6e244db7942ba153 authored by Fons Rademakers on 06 March 2012, 10:02:48 UTC
tag development release v5-33-02.
Tip revision: 8fbce69
t1015.cxx
/* -*- C++ -*- */
/*************************************************************************
 * Copyright(c) 1995~2005  Masaharu Goto (cint@pcroot.cern.ch)
 *
 * For the licensing terms see the file COPYING
 *
 ************************************************************************/

#include <stdio.h>

namespace ns {
  class A {
  public:
  };

  class B {
  public:
    void Print(const ns::A* x) { printf("%p\n",x); }
  };
  
}

int main() {
  //ns::A a;
  void *x= 0;
  ns::B b;
  b.Print((const ns::A*)x);
#ifdef __CINT__
  G__calc("b.Print((const ns::A*)x)");
#else
  b.Print((const ns::A*)x);
#endif
  return 0;
}

back to top