// This may look like C code, but it is really -*- C++ -*-

//
//  monopoly-template  --  Copyright (c) University of Aizu 1994
//
// [# Edit, Date, User, Module #]

#include <Game.h>
#include <stream.h>

class testClass : public Base {
public:
  virtual char* classname() { return "testClass"; }
  virtual IOstatus readContents() { return theGame->read(); }
  virtual IOstatus writeContents() { return theGame->write(); }
  void check() { cout << "game pointer reset to 0 ? " << (theGame == 0) << "\n"; }
};

testNewGame(void)
{
  testClass t;
  {
    Game game; // This sets up a global variable pointing to this place...
    t.read();
    t.write();
    t.check();
  }
  t.check();
}
// End of file
