diff options
Diffstat (limited to 'codan')
-rw-r--r-- | codan/org.eclipse.cdt.codan.core.test/src/org/eclipse/cdt/codan/core/internal/checkers/ReturnCheckerTest.java | 12 |
1 files changed, 11 insertions, 1 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 cfe7cc23f09..fb3fc76ad8e 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 @@ -417,7 +417,17 @@ public class ReturnCheckerTest extends CheckerTestCase { // } public void testSelfReferencingVariable_452325() throws Exception { // Just check that codan runs without any exceptions being thrown. - checkSampleAbove(); + checkSampleAboveCpp(); + } + + // int bar(int x) { return x; } + // int foo() { // error + // int waldo = bar(waldo); + // if (bar(waldo)); + // } + public void testSelfReferencingVariable_479638() throws Exception { + // Just check that codan runs without any exceptions being thrown. + checkSampleAboveCpp(); } // int foo(int x) { // error |