From 52f60a00baf07acb9565695cde26382c580747fb Mon Sep 17 00:00:00 2001 From: Sergey Prigogin Date: Mon, 5 Jan 2015 16:02:05 -0800 Subject: [PATCH] Added a test for string concatenation with macro. --- .../eclipse/cdt/core/parser/tests/ast2/AST2CPPTests.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2CPPTests.java b/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2CPPTests.java index c9fa1e31a9f..255c355c3cb 100644 --- a/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2CPPTests.java +++ b/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2CPPTests.java @@ -7845,6 +7845,15 @@ public class AST2CPPTests extends AST2TestBase { checkDeclDef(declNames, defNames, cls.getMembers()); } + // #define MACRO "macro" + // void f(const char* s); + // void test() { + // f("aaa"MACRO); + // } + public void testStringConcatenationWithMacro() throws Exception { + parseAndCheckBindings(); + } + // class X { // struct S* m1; // struct T;