From ea15b5e2bde202b7dd2059df48117e6663c8d0d1 Mon Sep 17 00:00:00 2001 From: Sergey Prigogin Date: Sun, 2 Aug 2009 00:13:34 +0000 Subject: [PATCH] Test case for bug 285368. --- .../core/parser/tests/ast2/AST2CPPTests.java | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) 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 d950eb790ca..3ef845904d5 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 @@ -7288,14 +7288,27 @@ public class AST2CPPTests extends AST2BaseTest { } // class A { - // friend inline void m(A p1, A p2) {} + // friend inline void m(A p) {} // }; // - // void test(A a1, A a2) { - // m(a1, a2); + // void test(A a) { + // m(a); // } public void _testInlineFriendFunction_284690() throws Exception { final String code = getAboveComment(); parseAndCheckBindings(code, ParserLanguage.CPP); } + + // void f(int t); + // void f(unsigned int t); + // + // enum E { e1 }; + // + // void test() { + // f(e1); // problem on f + // } + public void _testEnumToIntConversion_285368() throws Exception { + final String code = getAboveComment(); + parseAndCheckBindings(code, ParserLanguage.CPP); + } }