/*! ========================================================================
** Extended Template and Library Test Suite
** Smart Pointer Template Class Test
-** $Id: smart_ptr.cpp,v 1.1.1.1 2005/01/04 01:31:48 darco Exp $
+** $Id$
**
** Copyright (c) 2002 Robert B. Quattlebaum Jr.
**
int smart_ptr_basic_test(void)
{
- printf("smart_ptr: Size of a smart_ptr: %d\n",sizeof(obj_smart_ptr));
- printf("smart_ptr: Size of a reference_counter: %d\n",sizeof(etl::reference_counter));
+ printf("smart_ptr: Size of a smart_ptr: %u\n",(unsigned int)sizeof(obj_smart_ptr));
+ printf("smart_ptr: Size of a reference_counter: %u\n",(unsigned int)sizeof(etl::reference_counter));
printf("smart_ptr: Basic test: ");
return 0;
}
-void test_func(etl::smart_ptr<my_test_obj> smart_ptr)
+void test_func(etl::smart_ptr<my_test_obj> smart_ptr __attribute__ ((unused)))
{
}
error+=smart_ptr_general_use_test();
error+=smart_ptr_inheritance_test();
error+=loose_smart_ptr_test();
-
+
return error;
}