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:
parent
be0c3c2347
commit
ea15b5e2bd
1 changed files with 16 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue