From 92b8593f594f0f95e59bd60e8c90047f95479c4f Mon Sep 17 00:00:00 2001 From: Reijo Tomperi Date: Mon, 14 Sep 2009 22:53:57 +0300 Subject: [PATCH] TODO test case for preprocessor macro handling --- test/testpreprocessor.cpp | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/test/testpreprocessor.cpp b/test/testpreprocessor.cpp index 2ad7c842d..03ed1d4c4 100644 --- a/test/testpreprocessor.cpp +++ b/test/testpreprocessor.cpp @@ -877,10 +877,19 @@ private: void macroInMacro() { - const char filedata[] = "#define A(m) long n = m; n++;\n" - "#define B(n) A(n)\n" - "B(0)"; - ASSERT_EQUALS("\n\nlong n=0;n++;", OurPreprocessor::expandMacros(filedata)); + { + const char filedata[] = "#define A(m) long n = m; n++;\n" + "#define B(n) A(n)\n" + "B(0)"; + ASSERT_EQUALS("\n\nlong n=0;n++;", OurPreprocessor::expandMacros(filedata)); + } + + { + const char filedata[] = "#define A B\n" + "#define B 3\n" + "A"; + TODO_ASSERT_EQUALS("\n\n3", OurPreprocessor::expandMacros(filedata)); + } } void macro_mismatch()