1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-04 06:45:43 +02:00

Bug 434383 - Organize Includes inserts unnecessary include for code

produced by macro expansion
This commit is contained in:
Sergey Prigogin 2014-05-07 20:26:40 -07:00
parent b88109c7f4
commit f8dc5e0c75
2 changed files with 541 additions and 484 deletions

View file

@ -600,4 +600,14 @@ public class BindingClassifierTest extends OneSourceMultipleHeadersTestCase {
assertDefined("MACRO", "INT"); // INT has to be defined because it is used outside of MACRO.
assertDeclared();
}
// class A {};
// A f();
// #define MACRO(x) A x = f()
// MACRO(a);
public void testMacro_3() throws Exception {
assertDefined("MACRO");
assertDeclared();
}
}