Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlena Laskavaia2014-09-09 22:54:48 -0400
committerElena Laskavaia2014-09-12 20:13:29 -0400
commitac1150170353d2f6e598da5c29ca610f72d9b430 (patch)
tree0c724262559c4e802aed426bb2dd9600bf2d4f2d /codan/org.eclipse.cdt.codan.core.test
parentd5b3ed1ce7a0fde221784721d11459e2284edf44 (diff)
downloadorg.eclipse.cdt-ac1150170353d2f6e598da5c29ca610f72d9b430.tar.gz
org.eclipse.cdt-ac1150170353d2f6e598da5c29ca610f72d9b430.tar.xz
org.eclipse.cdt-ac1150170353d2f6e598da5c29ca610f72d9b430.zip
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>
Diffstat (limited to 'codan/org.eclipse.cdt.codan.core.test')
-rw-r--r--codan/org.eclipse.cdt.codan.core.test/src/org/eclipse/cdt/codan/core/cfg/ControlFlowGraphTest.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/codan/org.eclipse.cdt.codan.core.test/src/org/eclipse/cdt/codan/core/cfg/ControlFlowGraphTest.java b/codan/org.eclipse.cdt.codan.core.test/src/org/eclipse/cdt/codan/core/cfg/ControlFlowGraphTest.java
index e1cf5596a4..dd29b23c73 100644
--- a/codan/org.eclipse.cdt.codan.core.test/src/org/eclipse/cdt/codan/core/cfg/ControlFlowGraphTest.java
+++ b/codan/org.eclipse.cdt.codan.core.test/src/org/eclipse/cdt/codan/core/cfg/ControlFlowGraphTest.java
@@ -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
}

Back to the top