mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-04 23:05:47 +02:00
Created testcases for 178405, parsing rather simple function declaration.
This commit is contained in:
parent
9964787e29
commit
fb0d03553c
1 changed files with 18 additions and 0 deletions
|
@ -3790,4 +3790,22 @@ public class AST2Tests extends AST2BaseTest {
|
||||||
assertEquals("A", ((ICPPMethod)methodA).getClassOwner().getName());
|
assertEquals("A", ((ICPPMethod)methodA).getClassOwner().getName());
|
||||||
assertEquals("AA", ((ICPPMethod)methodAA).getClassOwner().getName());
|
assertEquals("AA", ((ICPPMethod)methodAA).getClassOwner().getName());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// typedef int int32;
|
||||||
|
// int32 f(int32 (*p)) {
|
||||||
|
// return *p;
|
||||||
|
// }
|
||||||
|
public void test167833_cpp() throws Exception {
|
||||||
|
StringBuffer buffer = getContents(1)[0];
|
||||||
|
parseAndCheckBindings(buffer.toString(), ParserLanguage.CPP);
|
||||||
|
}
|
||||||
|
|
||||||
|
// typedef int int32;
|
||||||
|
// int32 f(int32 (*p)) {
|
||||||
|
// return *p;
|
||||||
|
// }
|
||||||
|
public void _test167833_c() throws Exception {
|
||||||
|
StringBuffer buffer = getContents(1)[0];
|
||||||
|
parseAndCheckBindings(buffer.toString(), ParserLanguage.C);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue