diff --git a/test/Function/FunctionTest.cpp b/test/Function/FunctionTest.cpp index 1aba30c..a096e4a 100755 --- a/test/Function/FunctionTest.cpp +++ b/test/Function/FunctionTest.cpp @@ -13,7 +13,7 @@ #include #include -//#define TEST_LOKI_FUNCTION +#define TEST_LOKI_FUNCTION #ifndef TEST_LOKI_FUNCTION #include @@ -21,6 +21,11 @@ using namespace boost; #else +#define LOKI_CLASS_LEVEL_THREADING + +// disable to see "static instantiation order fiasco" crash +#define LOKI_FUNCTOR_IS_NOT_A_SMALLOBJECT + #include #include using namespace Loki; @@ -64,6 +69,12 @@ struct add_to_obj int value; }; +function static_func(write_five); + +static void test_static_function() +{ + static_func(); +} static void test_zero_args() { @@ -754,6 +765,7 @@ static void test_call() int test_main(int, char* []) { + test_static_function(); test_zero_args(); test_one_arg(); test_two_args();