Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomasz Wesolowski2011-06-27 20:29:36 -0400
committerAlena Laskavaia2011-06-27 20:47:43 -0400
commit6b80326e1789315fc94f20aedf3e38b67f218a89 (patch)
tree17a3ddd1db9f2144aa1b43054182e7d773644e22 /codan/org.eclipse.cdt.codan.core.test
parent2041eb9870092b33d3fad240b840e216e5adac7a (diff)
downloadorg.eclipse.cdt-6b80326e1789315fc94f20aedf3e38b67f218a89.tar.gz
org.eclipse.cdt-6b80326e1789315fc94f20aedf3e38b67f218a89.tar.xz
org.eclipse.cdt-6b80326e1789315fc94f20aedf3e38b67f218a89.zip
Bug 345687 - [fp] "No return, in function returning non-void" for
compound statement at the end
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/ReturnCheckerTest.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/codan/org.eclipse.cdt.codan.core.test/src/org/eclipse/cdt/codan/core/internal/checkers/ReturnCheckerTest.java b/codan/org.eclipse.cdt.codan.core.test/src/org/eclipse/cdt/codan/core/internal/checkers/ReturnCheckerTest.java
index b69f416b1d..aba819266d 100644
--- a/codan/org.eclipse.cdt.codan.core.test/src/org/eclipse/cdt/codan/core/internal/checkers/ReturnCheckerTest.java
+++ b/codan/org.eclipse.cdt.codan.core.test/src/org/eclipse/cdt/codan/core/internal/checkers/ReturnCheckerTest.java
@@ -256,6 +256,16 @@ public class ReturnCheckerTest extends CheckerTestCase {
checkErrorLine(1);
}
+ // int f345687() {
+ // {
+ // return 0;
+ // }
+ // }
+ public void testNextedBlock_Bug345687() {
+ loadCodeAndRunCpp(getAboveComment());
+ checkNoErrors();
+ }
+
// int
// fp_goto(int a)
// {

Back to the top