mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-22 14:12:10 +02:00
Bug 353352 - CFG doesn't handle range-based for loop
Change-Id: Ic4334ce82585d4dbfbbd008fd013b0ce97cca434 Reviewed-on: https://git.eclipse.org/r/33155 Tested-by: Hudson CI Reviewed-by: Elena Laskavaia <elaskavaia.cdt@gmail.com>
This commit is contained in:
parent
d5b3ed1ce7
commit
ac11501703
1 changed files with 2 additions and 1 deletions
|
@ -503,7 +503,8 @@ public class ControlFlowGraphTest extends CodanFastCxxAstTestCase {
|
|||
IBasicBlock bElse = branchEnd(des, IBranchNode.ELSE);
|
||||
assertNotNull(bElse);
|
||||
IBasicBlock m2 = bThen.getOutgoing();
|
||||
|
||||
IBasicBlock m1 = jumpEnd(bElse);
|
||||
assertNotNull(m1);
|
||||
assertSame(conn, jumpEnd(bThen));
|
||||
assertEquals("", data(((IConnectorNode) m2).getOutgoing())); // increment
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue