1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 14:42:11 +02:00

Test case for bug 285368.

This commit is contained in:
Sergey Prigogin 2009-08-02 00:13:34 +00:00
parent be0c3c2347
commit ea15b5e2bd

View file

@ -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);
}
}