diff --git a/test/Jamfile.v2 b/test/Jamfile.v2 index 8b80c065..2cc17d95 100644 --- a/test/Jamfile.v2 +++ b/test/Jamfile.v2 @@ -16,6 +16,7 @@ project preprocessor_tests : requirements on gcc-4.5.2:all gcc-4.5.2:-Wno-variadic-macros msvc:all + . ; alias preprocessor : : diff --git a/test/arithmetic.c b/test/arithmetic.c index 53a071e9..f9bcc938 100644 --- a/test/arithmetic.c +++ b/test/arithmetic.c @@ -9,4 +9,4 @@ # # /* See http://www.boost.org for most recent version. */ # -# include +# include "arithmetic.cxx" diff --git a/test/arithmetic.cpp b/test/arithmetic.cpp index 53a071e9..f9bcc938 100644 --- a/test/arithmetic.cpp +++ b/test/arithmetic.cpp @@ -9,4 +9,4 @@ # # /* See http://www.boost.org for most recent version. */ # -# include +# include "arithmetic.cxx" diff --git a/test/arithmetic.cxx b/test/arithmetic.cxx index 3290dc2d..caf509b1 100644 --- a/test/arithmetic.cxx +++ b/test/arithmetic.cxx @@ -11,7 +11,7 @@ # # include # include -# include +# include "test.h" /* addition */ diff --git a/test/array.c b/test/array.c index 9150747b..725a6f18 100644 --- a/test/array.c +++ b/test/array.c @@ -11,4 +11,4 @@ # # /* See http://www.boost.org for most recent version. */ # -# include +# include "array.cxx" diff --git a/test/array.cpp b/test/array.cpp index 9150747b..725a6f18 100644 --- a/test/array.cpp +++ b/test/array.cpp @@ -11,4 +11,4 @@ # # /* See http://www.boost.org for most recent version. */ # -# include +# include "array.cxx" diff --git a/test/array.cxx b/test/array.cxx index 895b7a6e..c7e3be94 100644 --- a/test/array.cxx +++ b/test/array.cxx @@ -13,7 +13,7 @@ # # include # include -# include +# include "test.h" # include # include # include diff --git a/test/checkempty.cpp b/test/checkempty.cpp index 63067082..62a55fd5 100644 --- a/test/checkempty.cpp +++ b/test/checkempty.cpp @@ -9,4 +9,4 @@ # # /* See http://www.boost.org for most recent version. */ # -# include +# include "checkempty.cxx" diff --git a/test/checkempty.cxx b/test/checkempty.cxx index ef32da1f..c6421118 100644 --- a/test/checkempty.cxx +++ b/test/checkempty.cxx @@ -9,7 +9,7 @@ # # /* See http://www.boost.org for most recent version. */ # -# include +# include "test.h" # include # if BOOST_PP_VARIADIC_HAS_OPT() diff --git a/test/clang_cuda.cu b/test/clang_cuda.cu index e13d6563..c360a387 100644 --- a/test/clang_cuda.cu +++ b/test/clang_cuda.cu @@ -9,7 +9,7 @@ # # /* See http://www.boost.org for most recent version. */ # -# include +# include "test_macro.h" #if defined(__clang__) && defined(__CUDACC__) && defined(__CUDA__) diff --git a/test/comparison.c b/test/comparison.c index 5f7daea4..170b6361 100644 --- a/test/comparison.c +++ b/test/comparison.c @@ -9,5 +9,5 @@ # # /* See http://www.boost.org for most recent version. */ # -# include +# include "comparison.cxx" diff --git a/test/comparison.cpp b/test/comparison.cpp index 40720c60..c812b2dd 100644 --- a/test/comparison.cpp +++ b/test/comparison.cpp @@ -9,4 +9,4 @@ # # /* See http://www.boost.org for most recent version. */ # -# include +# include "comparison.cxx" diff --git a/test/comparison.cxx b/test/comparison.cxx index 0e7ff9d4..65ae94d3 100644 --- a/test/comparison.cxx +++ b/test/comparison.cxx @@ -11,7 +11,7 @@ # # include # include -# include +# include "test.h" /* equality */ diff --git a/test/control.c b/test/control.c index db729d90..786b4dcc 100644 --- a/test/control.c +++ b/test/control.c @@ -9,4 +9,4 @@ # # /* See http://www.boost.org for most recent version. */ # -# include +# include "control.cxx" diff --git a/test/control.cpp b/test/control.cpp index db729d90..786b4dcc 100644 --- a/test/control.cpp +++ b/test/control.cpp @@ -9,4 +9,4 @@ # # /* See http://www.boost.org for most recent version. */ # -# include +# include "control.cxx" diff --git a/test/control.cxx b/test/control.cxx index e449ed19..8a2b7c8d 100644 --- a/test/control.cxx +++ b/test/control.cxx @@ -13,7 +13,7 @@ # include # include # include -# include +# include "test.h" # define TR(x) 1 diff --git a/test/debug.c b/test/debug.c index 7325e336..82504987 100644 --- a/test/debug.c +++ b/test/debug.c @@ -9,4 +9,4 @@ # # /* See http://www.boost.org for most recent version. */ # -# include +# include "debug.cxx" diff --git a/test/debug.cpp b/test/debug.cpp index 7325e336..82504987 100644 --- a/test/debug.cpp +++ b/test/debug.cpp @@ -9,4 +9,4 @@ # # /* See http://www.boost.org for most recent version. */ # -# include +# include "debug.cxx" diff --git a/test/debug.cxx b/test/debug.cxx index 6c4c5fa7..6495fc8f 100644 --- a/test/debug.cxx +++ b/test/debug.cxx @@ -10,7 +10,7 @@ # /* See http://www.boost.org for most recent version. */ # # include -# include +# include "test.h" BEGIN sizeof(BOOST_PP_ASSERT_MSG(0, "text") "") / sizeof(char) != 1 END BEGIN sizeof(BOOST_PP_ASSERT_MSG(1, "text") "") / sizeof(char) == 1 END diff --git a/test/facilities.c b/test/facilities.c index 25cef088..5a56359e 100644 --- a/test/facilities.c +++ b/test/facilities.c @@ -9,4 +9,4 @@ # # /* See http://www.boost.org for most recent version. */ # -# include +# include "facilities.cxx" diff --git a/test/facilities.cpp b/test/facilities.cpp index 25cef088..5a56359e 100644 --- a/test/facilities.cpp +++ b/test/facilities.cpp @@ -9,4 +9,4 @@ # # /* See http://www.boost.org for most recent version. */ # -# include +# include "facilities.cxx" diff --git a/test/facilities.cxx b/test/facilities.cxx index dbc45d98..0c402fd0 100644 --- a/test/facilities.cxx +++ b/test/facilities.cxx @@ -13,7 +13,7 @@ # include # include # include -# include +# include "test.h" BEGIN BOOST_PP_APPLY(BOOST_PP_NIL) 0 == 0 END BEGIN BOOST_PP_APPLY((0)) == 0 END diff --git a/test/isempty.c b/test/isempty.c index bd4c2c6a..d0a41339 100644 --- a/test/isempty.c +++ b/test/isempty.c @@ -9,4 +9,4 @@ # # /* See http://www.boost.org for most recent version. */ # -# include +# include "isempty.cxx" diff --git a/test/isempty.cpp b/test/isempty.cpp index bd4c2c6a..d0a41339 100644 --- a/test/isempty.cpp +++ b/test/isempty.cpp @@ -9,4 +9,4 @@ # # /* See http://www.boost.org for most recent version. */ # -# include +# include "isempty.cxx" diff --git a/test/isempty.cxx b/test/isempty.cxx index 073d0ae8..f6e3aa78 100644 --- a/test/isempty.cxx +++ b/test/isempty.cxx @@ -15,7 +15,7 @@ # include # include -# include +# include "test.h" #define DATA #define OBJECT OBJECT2 diff --git a/test/isempty_variadic_standard_failure.c b/test/isempty_variadic_standard_failure.c index 36f6ff7e..45fa207e 100644 --- a/test/isempty_variadic_standard_failure.c +++ b/test/isempty_variadic_standard_failure.c @@ -9,4 +9,4 @@ # # /* See http://www.boost.org for most recent version. */ # -# include +# include "isempty_variadic_standard_failure.cxx" diff --git a/test/isempty_variadic_standard_failure.cpp b/test/isempty_variadic_standard_failure.cpp index 36f6ff7e..45fa207e 100644 --- a/test/isempty_variadic_standard_failure.cpp +++ b/test/isempty_variadic_standard_failure.cpp @@ -9,4 +9,4 @@ # # /* See http://www.boost.org for most recent version. */ # -# include +# include "isempty_variadic_standard_failure.cxx" diff --git a/test/isempty_variadic_standard_failure.cxx b/test/isempty_variadic_standard_failure.cxx index a6258e4e..1bfe0eec 100644 --- a/test/isempty_variadic_standard_failure.cxx +++ b/test/isempty_variadic_standard_failure.cxx @@ -10,7 +10,7 @@ # /* See http://www.boost.org for most recent version. */ # # include -# include +# include "test.h" #if (BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_STRICT()) && !BOOST_PP_VARIADICS_MSVC diff --git a/test/isempty_variadic_standard_failure2.c b/test/isempty_variadic_standard_failure2.c index a2aa690b..6be243dc 100644 --- a/test/isempty_variadic_standard_failure2.c +++ b/test/isempty_variadic_standard_failure2.c @@ -9,4 +9,4 @@ # # /* See http://www.boost.org for most recent version. */ # -# include +# include "isempty_variadic_standard_failure2.cxx" diff --git a/test/isempty_variadic_standard_failure2.cpp b/test/isempty_variadic_standard_failure2.cpp index a2aa690b..6be243dc 100644 --- a/test/isempty_variadic_standard_failure2.cpp +++ b/test/isempty_variadic_standard_failure2.cpp @@ -9,4 +9,4 @@ # # /* See http://www.boost.org for most recent version. */ # -# include +# include "isempty_variadic_standard_failure2.cxx" diff --git a/test/isempty_variadic_standard_failure2.cxx b/test/isempty_variadic_standard_failure2.cxx index be92d47f..ae067f57 100644 --- a/test/isempty_variadic_standard_failure2.cxx +++ b/test/isempty_variadic_standard_failure2.cxx @@ -10,7 +10,7 @@ # /* See http://www.boost.org for most recent version. */ # # include -# include +# include "test.h" #if (BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_STRICT()) && !BOOST_PP_VARIADICS_MSVC diff --git a/test/iteration.cpp b/test/iteration.cpp index f06be5d7..2b551ebd 100644 --- a/test/iteration.cpp +++ b/test/iteration.cpp @@ -13,7 +13,7 @@ # # if !BOOST_PP_IS_SELFISH # -# include +# include "iteration.h" # # define TEST(n) BEGIN n == n END # @@ -37,7 +37,7 @@ # # endif # -# define BOOST_PP_INDIRECT_SELF +# define BOOST_PP_INDIRECT_SELF "iteration.cpp" # include BOOST_PP_INCLUDE_SELF() # # else diff --git a/test/iteration.h b/test/iteration.h index 035531aa..37bda60c 100644 --- a/test/iteration.h +++ b/test/iteration.h @@ -16,19 +16,19 @@ # include # include # include -# include +# include "test.h" # # define NO_FLAGS # -# define BOOST_PP_ITERATION_PARAMS_1 (3, (1, 10, )) +# define BOOST_PP_ITERATION_PARAMS_1 (3, (1, 10, "iteration.h")) # include BOOST_PP_ITERATE() # # undef NO_FLAGS # -# define BOOST_PP_ITERATION_PARAMS_1 (4, (1, 5, , 0x0001)) +# define BOOST_PP_ITERATION_PARAMS_1 (4, (1, 5, "iteration.h", 0x0001)) # include BOOST_PP_ITERATE() # -# define BOOST_PP_ITERATION_PARAMS_1 (4, (1, 5, , 0x0002)) +# define BOOST_PP_ITERATION_PARAMS_1 (4, (1, 5, "iteration.h", 0x0002)) # include BOOST_PP_ITERATE() # # if BOOST_PP_LIMIT_ITERATION == 512 @@ -53,7 +53,7 @@ ) \ /* */ # -# define BOOST_PP_ITERATION_PARAMS_1 (4, (0, 512, , 0x0003)) +# define BOOST_PP_ITERATION_PARAMS_1 (4, (0, 512, "iteration.h", 0x0003)) # include BOOST_PP_ITERATE() # # undef ITER100S @@ -78,7 +78,7 @@ ) \ /* */ # -# define BOOST_PP_ITERATION_PARAMS_1 (4, (512, 0, , 0x0004)) +# define BOOST_PP_ITERATION_PARAMS_1 (4, (512, 0, "iteration.h", 0x0004)) # include BOOST_PP_ITERATE() # # undef ITER50S @@ -127,7 +127,7 @@ ) \ /* */ # -# define BOOST_PP_ITERATION_PARAMS_1 (4, (0, 1024, , 0x0005)) +# define BOOST_PP_ITERATION_PARAMS_1 (4, (0, 1024, "iteration.h", 0x0005)) # include BOOST_PP_ITERATE() # # undef ITER100SA @@ -172,7 +172,7 @@ ) \ /* */ # -# define BOOST_PP_ITERATION_PARAMS_1 (4, (1024, 0, , 0x0006)) +# define BOOST_PP_ITERATION_PARAMS_1 (4, (1024, 0, "iteration.h", 0x0006)) # include BOOST_PP_ITERATE() # # undef ITER50SA @@ -197,7 +197,7 @@ struct BOOST_PP_CAT(Y, BOOST_PP_ITERATION()) { }; # elif BOOST_PP_ITERATION_DEPTH() == 1 \ && BOOST_PP_ITERATION_FLAGS() == 0x0002 -# define BOOST_PP_ITERATION_PARAMS_2 (3, (1, BOOST_PP_ITERATION(), )) +# define BOOST_PP_ITERATION_PARAMS_2 (3, (1, BOOST_PP_ITERATION(), "iteration.h")) # include BOOST_PP_ITERATE() # elif BOOST_PP_ITERATION_DEPTH() == 1 \ diff --git a/test/list.c b/test/list.c index 23bb7b18..e97f2d18 100644 --- a/test/list.c +++ b/test/list.c @@ -11,4 +11,4 @@ # # /* See http://www.boost.org for most recent version. */ # -# include +# include "list.cxx" diff --git a/test/list.cpp b/test/list.cpp index 23bb7b18..e97f2d18 100644 --- a/test/list.cpp +++ b/test/list.cpp @@ -11,4 +11,4 @@ # # /* See http://www.boost.org for most recent version. */ # -# include +# include "list.cxx" diff --git a/test/list.cxx b/test/list.cxx index c9f8583c..ce621091 100644 --- a/test/list.cxx +++ b/test/list.cxx @@ -26,7 +26,7 @@ # include # include # include -# include +# include "test.h" # define LISTNIL BOOST_PP_NIL # define LIST (4, (1, (5, (2, BOOST_PP_NIL)))) diff --git a/test/logical.c b/test/logical.c index 9f502870..666241fe 100644 --- a/test/logical.c +++ b/test/logical.c @@ -9,4 +9,4 @@ # # /* See http://www.boost.org for most recent version. */ # -# include +# include "logical.cxx" diff --git a/test/logical.cpp b/test/logical.cpp index 9f502870..666241fe 100644 --- a/test/logical.cpp +++ b/test/logical.cpp @@ -9,4 +9,4 @@ # # /* See http://www.boost.org for most recent version. */ # -# include +# include "logical.cxx" diff --git a/test/logical.cxx b/test/logical.cxx index 755d2a61..08c02164 100644 --- a/test/logical.cxx +++ b/test/logical.cxx @@ -11,7 +11,7 @@ # # include # include -# include +# include "test.h" BEGIN BOOST_PP_NOT(0) == 1 END BEGIN BOOST_PP_NOT(2) == 0 END diff --git a/test/punctuation.c b/test/punctuation.c index 8fc5dfc3..410ec7ba 100644 --- a/test/punctuation.c +++ b/test/punctuation.c @@ -11,4 +11,4 @@ # # /* See http://www.boost.org for most recent version. */ # -# include +# include "punctuation.cxx" diff --git a/test/punctuation.cpp b/test/punctuation.cpp index 8fc5dfc3..410ec7ba 100644 --- a/test/punctuation.cpp +++ b/test/punctuation.cpp @@ -11,4 +11,4 @@ # # /* See http://www.boost.org for most recent version. */ # -# include +# include "punctuation.cxx" diff --git a/test/punctuation.cxx b/test/punctuation.cxx index 67bc0b87..ea198f5c 100644 --- a/test/punctuation.cxx +++ b/test/punctuation.cxx @@ -10,7 +10,7 @@ # /* See http://www.boost.org for most recent version. */ # # include -# include +# include "test.h" # define A_TUPLE (*,#,zz) # define A_TUPLE2 (*,#,(zz,44,(e7))) diff --git a/test/quick.cpp b/test/quick.cpp index 73372a3c..56e7c28a 100644 --- a/test/quick.cpp +++ b/test/quick.cpp @@ -4,7 +4,7 @@ // https://www.boost.org/LICENSE_1_0.txt #include -#include "test_macro.h" +# include "test_macro.h" /* equality */ diff --git a/test/repetition.cpp b/test/repetition.cpp index f35d394a..4147878e 100644 --- a/test/repetition.cpp +++ b/test/repetition.cpp @@ -18,7 +18,7 @@ # include # include # include -# include +# include "test.h" # define MAX 10 diff --git a/test/selection.c b/test/selection.c index f8fdaba6..b21282cc 100644 --- a/test/selection.c +++ b/test/selection.c @@ -9,4 +9,4 @@ # # /* See http://www.boost.org for most recent version. */ # -# include +# include "selection.cxx" diff --git a/test/selection.cpp b/test/selection.cpp index f8fdaba6..b21282cc 100644 --- a/test/selection.cpp +++ b/test/selection.cpp @@ -9,4 +9,4 @@ # # /* See http://www.boost.org for most recent version. */ # -# include +# include "selection.cxx" diff --git a/test/selection.cxx b/test/selection.cxx index 6891b28b..720a7768 100644 --- a/test/selection.cxx +++ b/test/selection.cxx @@ -11,7 +11,7 @@ # # include # include -# include +# include "test.h" BEGIN BOOST_PP_MAX(2, 2) == 2 END BEGIN BOOST_PP_MAX(2, 1) == 2 END diff --git a/test/seq.c b/test/seq.c index e36c5d14..6200def1 100644 --- a/test/seq.c +++ b/test/seq.c @@ -11,4 +11,4 @@ # # /* See http://www.boost.org for most recent version. */ # -# include +# include "seq.cxx" diff --git a/test/seq.cpp b/test/seq.cpp index e36c5d14..6200def1 100644 --- a/test/seq.cpp +++ b/test/seq.cpp @@ -11,4 +11,4 @@ # # /* See http://www.boost.org for most recent version. */ # -# include +# include "seq.cxx" diff --git a/test/seq.cxx b/test/seq.cxx index f96e7f96..26291a71 100644 --- a/test/seq.cxx +++ b/test/seq.cxx @@ -36,7 +36,7 @@ # include # include # include -# include +# include "test.h" # define SEQ_NONE () # define SEQ (4)(1)(5)(2) diff --git a/test/slot.c b/test/slot.c index 4b97bcdc..3cc1b2db 100644 --- a/test/slot.c +++ b/test/slot.c @@ -9,4 +9,4 @@ # # /* See http://www.boost.org for most recent version. */ # -# include +# include "slot.cxx" diff --git a/test/slot.cpp b/test/slot.cpp index 4b97bcdc..3cc1b2db 100644 --- a/test/slot.cpp +++ b/test/slot.cpp @@ -9,4 +9,4 @@ # # /* See http://www.boost.org for most recent version. */ # -# include +# include "slot.cxx" diff --git a/test/slot.cxx b/test/slot.cxx index 2b5b3f8f..c26cfe15 100644 --- a/test/slot.cxx +++ b/test/slot.cxx @@ -10,7 +10,7 @@ # /* See http://www.boost.org for most recent version. */ # # include -# include +# include "test.h" # include # define X() 4 diff --git a/test/stringize.c b/test/stringize.c index 0ac19ecc..d00111cd 100644 --- a/test/stringize.c +++ b/test/stringize.c @@ -9,4 +9,4 @@ # # /* See http://www.boost.org for most recent version. */ # -# include +# include "stringize.cxx" diff --git a/test/stringize.cpp b/test/stringize.cpp index 0ac19ecc..d00111cd 100644 --- a/test/stringize.cpp +++ b/test/stringize.cpp @@ -9,4 +9,4 @@ # # /* See http://www.boost.org for most recent version. */ # -# include +# include "stringize.cxx" diff --git a/test/stringize.cxx b/test/stringize.cxx index c21d1f61..8c8b7630 100644 --- a/test/stringize.cxx +++ b/test/stringize.cxx @@ -15,7 +15,7 @@ # if !defined __cplusplus #include #endif -# include +# include "test.h" #define VDATA 1,2,3,4 #define NDATA diff --git a/test/test.h b/test/test.h index d1d60c38..1fc33af6 100644 --- a/test/test.h +++ b/test/test.h @@ -14,7 +14,7 @@ # ifndef BOOST_LIBS_PREPROCESSOR_REGRESSION_TEST_H # define BOOST_LIBS_PREPROCESSOR_REGRESSION_TEST_H # -# include -# include +# include "test_macro.h" +#include "test_main.h" # # endif diff --git a/test/tuple.c b/test/tuple.c index e9864a04..dc4f932c 100644 --- a/test/tuple.c +++ b/test/tuple.c @@ -11,4 +11,4 @@ # # /* See http://www.boost.org for most recent version. */ # -# include +# include "tuple.cxx" diff --git a/test/tuple.cpp b/test/tuple.cpp index e9864a04..dc4f932c 100644 --- a/test/tuple.cpp +++ b/test/tuple.cpp @@ -11,4 +11,4 @@ # # /* See http://www.boost.org for most recent version. */ # -# include +# include "tuple.cxx" diff --git a/test/tuple.cxx b/test/tuple.cxx index bfcdecb8..08c12a4f 100644 --- a/test/tuple.cxx +++ b/test/tuple.cxx @@ -25,8 +25,8 @@ # include # include # include -# include -# include +# include "test.h" +# include "tuple_elem_bug_test.cxx" # define TUPLE (0, 1, 2, 3, 4, 5) # define TUPLE_NONE () diff --git a/test/tuple_elem_bug_test.cxx b/test/tuple_elem_bug_test.cxx index c3656096..217a6dcf 100644 --- a/test/tuple_elem_bug_test.cxx +++ b/test/tuple_elem_bug_test.cxx @@ -12,7 +12,7 @@ # include # include # include -# include +# include "test.h" #define TN_GEN_ONE(p) (1) #define TN_GEN_ZERO(p) (0) diff --git a/test/vaopt.cpp b/test/vaopt.cpp index 9801a19e..4eb6069d 100644 --- a/test/vaopt.cpp +++ b/test/vaopt.cpp @@ -9,4 +9,4 @@ # # /* See http://www.boost.org for most recent version. */ # -# include +# include "vaopt.cxx" diff --git a/test/vaopt.cxx b/test/vaopt.cxx index 6cb87021..a0f9659d 100644 --- a/test/vaopt.cxx +++ b/test/vaopt.cxx @@ -9,7 +9,7 @@ # # /* See http://www.boost.org for most recent version. */ # -# include +# include "test.h" # include # if BOOST_PP_VARIADIC_HAS_OPT() diff --git a/test/variadic.c b/test/variadic.c index a9d25323..385f4bb1 100644 --- a/test/variadic.c +++ b/test/variadic.c @@ -9,4 +9,4 @@ # # /* See http://www.boost.org for most recent version. */ # -# include +# include "variadic.cxx" diff --git a/test/variadic.cpp b/test/variadic.cpp index a9d25323..385f4bb1 100644 --- a/test/variadic.cpp +++ b/test/variadic.cpp @@ -9,4 +9,4 @@ # # /* See http://www.boost.org for most recent version. */ # -# include +# include "variadic.cxx" diff --git a/test/variadic.cxx b/test/variadic.cxx index 2646cc3f..732ea78a 100644 --- a/test/variadic.cxx +++ b/test/variadic.cxx @@ -19,7 +19,7 @@ # include # include # include -# include +# include "test.h" #define VDATA 0,1,2,3,4,5,6 #define VDATA_LARGE 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32