summaryrefslogtreecommitdiffstats
path: root/testsuites/samples/iostream/init.cc
diff options
context:
space:
mode:
Diffstat (limited to 'testsuites/samples/iostream/init.cc')
-rw-r--r--testsuites/samples/iostream/init.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/testsuites/samples/iostream/init.cc b/testsuites/samples/iostream/init.cc
index 8616ff2f7c..26fb7b754b 100644
--- a/testsuites/samples/iostream/init.cc
+++ b/testsuites/samples/iostream/init.cc
@@ -23,15 +23,25 @@
#define CONFIGURE_INIT
#include "system.h"
+#if BSP_SMALL_MEMORY
+#include <stdio.h>
+#else
#include <iostream>
+#endif
+
#include <stdlib.h>
rtems_task Init(
rtems_task_argument ignored
)
{
+#if BSP_SMALL_MEMORY
+ printf ("NO STDC++. MEMORY TOO SMALL");
+#else
std::cout << "\n\n*** HELLO WORLD TEST ***" << std::endl;
std::cout << "Hello World" << std::endl;
std::cout << "*** END OF HELLO WORLD TEST ***" << std::endl;
+#endif
exit( 0 );
}
+