mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-04 14:55:41 +02:00
Bug 434383 - Organize Includes inserts unnecessary include for code
produced by macro expansion
This commit is contained in:
parent
b88109c7f4
commit
f8dc5e0c75
2 changed files with 541 additions and 484 deletions
|
@ -600,4 +600,14 @@ public class BindingClassifierTest extends OneSourceMultipleHeadersTestCase {
|
||||||
assertDefined("MACRO", "INT"); // INT has to be defined because it is used outside of MACRO.
|
assertDefined("MACRO", "INT"); // INT has to be defined because it is used outside of MACRO.
|
||||||
assertDeclared();
|
assertDeclared();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// class A {};
|
||||||
|
// A f();
|
||||||
|
// #define MACRO(x) A x = f()
|
||||||
|
|
||||||
|
// MACRO(a);
|
||||||
|
public void testMacro_3() throws Exception {
|
||||||
|
assertDefined("MACRO");
|
||||||
|
assertDeclared();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
File diff suppressed because it is too large
Load diff
Loading…
Add table
Reference in a new issue