From 3c21deaf5b357b69a32b515c620616a2b6242594 Mon Sep 17 00:00:00 2001 From: patacongo Date: Fri, 2 Nov 2012 23:22:48 +0000 Subject: Create an STM32F4Discovery configuration for testing uClibc++ git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5300 42af7a65-404d-4744-a932-0658087f49c3 --- apps/examples/cxxtest/cxxtest_main.cxx | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) (limited to 'apps') diff --git a/apps/examples/cxxtest/cxxtest_main.cxx b/apps/examples/cxxtest/cxxtest_main.cxx index 70d54109f..9c2974826 100644 --- a/apps/examples/cxxtest/cxxtest_main.cxx +++ b/apps/examples/cxxtest/cxxtest_main.cxx @@ -203,21 +203,25 @@ static void test_exception(void) // Name: cxxtest_main //***************************************************************************/ -int cxxtest_main(int argc, char *argv[]) +extern "C" { - // If C++ initialization for static constructors is supported, then do - // that first + int cxxtest_main(int argc, char *argv[]) + { + // If C++ initialization for static constructors is supported, then do + // that first #ifdef CONFIG_HAVE_CXXINITIALIZE - up_cxxinitialize(); + up_cxxinitialize(); #endif - test_iostream(); - test_stl(); - test_rtti(); + test_iostream(); + test_stl(); + test_rtti(); #ifdef CONFIG_UCLIBCXX_EXCEPTION - test_exception(); + test_exception(); #endif - return 0; + return 0; + } } + -- cgit v1.2.3