mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 14:42:11 +02:00
Test case for bug 284690.
This commit is contained in:
parent
a3c171f7e4
commit
14e6048592
1 changed files with 12 additions and 0 deletions
|
@ -7286,4 +7286,16 @@ public class AST2CPPTests extends AST2BaseTest {
|
|||
final long time = System.currentTimeMillis() - now;
|
||||
assertTrue("Lasted " + time + "ms", time < 5000);
|
||||
}
|
||||
|
||||
// class A {
|
||||
// friend inline void m(A p1, A p2) {}
|
||||
// };
|
||||
//
|
||||
// void test(A a1, A a2) {
|
||||
// m(a1, a2); // problem on m
|
||||
// }
|
||||
public void _testInlineFriendFunction_284690() throws Exception {
|
||||
final String code = getAboveComment();
|
||||
parseAndCheckBindings(code, ParserLanguage.CPP);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue