//listmain.cpp

#include "Common/list.h"
#include "Common/string.h"
#include "Common/log.h"

int error = 0;
int main()	{

   List list;
   list.append(new String("1"));
   String *s1 = (String*)list.remove();
   delete s1;
   if (list.getFirst()) LOGERROR;

   list.append(new String("2"));
   list.append(new String("3"));
   s1 = (String*)list.remove();
   delete s1;
   s1 = (String*)list.remove();
   delete s1;
   if (list.getFirst()) LOGERROR;

   return error;
}
//end of file

