Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc-Andre Laperle2011-07-25 13:49:00 -0400
committerMarc-Andre Laperle2011-07-25 13:49:00 -0400
commit74ecb38ea31e7ac24a73f060477ade5300f04aa8 (patch)
tree1b6ab3c95ee6edcdff1dde440dd7654fb08ab275 /codan/org.eclipse.cdt.codan.core.test
parent579f5aa0ec4d299d18af50f0af7313aa64b4ecdc (diff)
downloadorg.eclipse.cdt-74ecb38ea31e7ac24a73f060477ade5300f04aa8.tar.gz
org.eclipse.cdt-74ecb38ea31e7ac24a73f060477ade5300f04aa8.tar.xz
org.eclipse.cdt-74ecb38ea31e7ac24a73f060477ade5300f04aa8.zip
Bug 352983 - internal error in switch isFallThroughStatement
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/internal/checkers/CaseBreakCheckerTest.java13
1 files changed, 12 insertions, 1 deletions
diff --git a/codan/org.eclipse.cdt.codan.core.test/src/org/eclipse/cdt/codan/core/internal/checkers/CaseBreakCheckerTest.java b/codan/org.eclipse.cdt.codan.core.test/src/org/eclipse/cdt/codan/core/internal/checkers/CaseBreakCheckerTest.java
index 0c82b2e0ff..3872ba617e 100644
--- a/codan/org.eclipse.cdt.codan.core.test/src/org/eclipse/cdt/codan/core/internal/checkers/CaseBreakCheckerTest.java
+++ b/codan/org.eclipse.cdt.codan.core.test/src/org/eclipse/cdt/codan/core/internal/checkers/CaseBreakCheckerTest.java
@@ -558,5 +558,16 @@ public class CaseBreakCheckerTest extends CheckerTestCase {
checkNoErrors();
}
-
+ //void foo()
+ //{
+ //switch(0)
+ //default:
+ //{
+ //}
+ //}
+ public void testEmptyCompoundStatement() {
+ String code = getAboveComment();
+ loadCodeAndRun(code);
+ checkErrorLine(4);
+ }
}

Back to the top