1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-03 22:35:43 +02:00

Created testcases for 178405, parsing rather simple function declaration.

This commit is contained in:
Markus Schorn 2007-05-31 13:02:48 +00:00
parent 9964787e29
commit fb0d03553c

View file

@ -3790,4 +3790,22 @@ public class AST2Tests extends AST2BaseTest {
assertEquals("A", ((ICPPMethod)methodA).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);
}
}