1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-08 18:26:01 +02:00

Test case for 195127, failure in binding resolution (plain C).

This commit is contained in:
Markus Schorn 2007-07-03 08:27:29 +00:00
parent 3ee5f868fe
commit b9916f7846

View file

@ -219,4 +219,19 @@ public class IndexCBindingResolutionBugs extends IndexBindingResolutionTestBase
assertTrue(((IBasicType) type).getType() == IBasicType.t_char);
}
// struct st_20070703 {
// int member;
// };
// #include "header.h"
// struct st_20070703;
// void func(struct st_20070703* x) {
// x->member= 0;
// }
public void _testAstIndexConflictStruct_Bug195227() throws Exception {
fakeFailForMultiProject();
IBinding b0 = getBindingFromASTName("member=", 6);
assertTrue(b0 instanceof IField);
}
}