diff --git a/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2Tests.java b/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2Tests.java index 90ea39c5c2c..90ad3f1b529 100644 --- a/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2Tests.java +++ b/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2Tests.java @@ -4863,6 +4863,15 @@ public class AST2Tests extends AST2BaseTest { } } + // typedef int* TIntPtr; + // int x(int (int * a)); + // int x(int(TIntPtr)); + public void testInfiniteRecursion_Bug269052() throws Exception { + final String code= getAboveComment(); + parseAndCheckBindings(code, ParserLanguage.C, true); + parseAndCheckBindings(code, ParserLanguage.CPP, true); + } + // template class X { // typename T::t func() { // return typename T::t();