summaryrefslogtreecommitdiffstats
path: root/cxx/cxx_throw/init.cc
diff options
context:
space:
mode:
Diffstat (limited to 'cxx/cxx_throw/init.cc')
-rw-r--r--cxx/cxx_throw/init.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/cxx/cxx_throw/init.cc b/cxx/cxx_throw/init.cc
index b17341f..d030b67 100644
--- a/cxx/cxx_throw/init.cc
+++ b/cxx/cxx_throw/init.cc
@@ -15,11 +15,14 @@
* $Id$
*/
-#define RTEMS_TEST_IO_STREAM
+#include <bsp.h>
#include <rtems.h>
#include <stdio.h>
#include <stdlib.h>
+
+#if !defined(BSP_SMALL_MEMORY)
+#define RTEMS_TEST_IO_STREAM
#ifdef RTEMS_TEST_IO_STREAM
#include <iostream>
#endif
@@ -128,6 +131,7 @@ cdtest(void)
}
printf( "catch got called, exception handling worked !!!\n" );
}
+#endif
@@ -143,7 +147,9 @@ rtems_task Init(
{
printf( "\n\n*** CONSTRUCTOR/DESTRUCTOR TEST ***\n" );
+#if !defined(BSP_SMALL_MEMORY)
cdtest();
+#endif
printf( "*** END OF CONSTRUCTOR/DESTRUCTOR TEST ***\n\n\n" );