/* -*- C++ -*- */
/*************************************************************************
 * Copyright(c) 1995~2005  Masaharu Goto (cint@pcroot.cern.ch)
 *
 * For the licensing terms see the file COPYING
 *
 ************************************************************************/
#include <stdio.h>
class B {
  int b;
  void dispprivate() { printf("b=%d\n",b); }
public:
  B() { b =3229; }
  friend class A;
};

class A {
  int a;
  void dispprivate() { printf("a=%d\n",a); }
public:
  A() { a=1234; }
  void disppublic() {
    B b;
    A *pa;
    pa = this;
    pa->a++;
    pa->dispprivate();
    //fprintf(stderr,"Intentinnal error below b.dispprivate()\n");
    b.dispprivate();
  }
};


int main()
{
  A obja;
  obja.disppublic();
  return 0;
}
