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