Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergey Prigogin2011-07-31 01:59:14 -0400
committerSergey Prigogin2011-07-31 02:03:30 -0400
commit33c2e373d4d562de2fe1dadf3afd7bf1ad1db265 (patch)
tree6225404669e030a1ce9fa59e6103aa2781d6e39e /codan/org.eclipse.cdt.codan.core.test
parent14afc9f4f44602d7ddf351a2f391c4a3702e1b61 (diff)
downloadorg.eclipse.cdt-33c2e373d4d562de2fe1dadf3afd7bf1ad1db265.tar.gz
org.eclipse.cdt-33c2e373d4d562de2fe1dadf3afd7bf1ad1db265.tar.xz
org.eclipse.cdt-33c2e373d4d562de2fe1dadf3afd7bf1ad1db265.zip
Bug 353360 - Bogus "type must implement the inherited pure virtual
method" error. Fix and test case.
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/AbstractClassInstantiationCheckerTest.java16
1 files changed, 15 insertions, 1 deletions
diff --git a/codan/org.eclipse.cdt.codan.core.test/src/org/eclipse/cdt/codan/core/internal/checkers/AbstractClassInstantiationCheckerTest.java b/codan/org.eclipse.cdt.codan.core.test/src/org/eclipse/cdt/codan/core/internal/checkers/AbstractClassInstantiationCheckerTest.java
index d9fda5899c..207fa0f022 100644
--- a/codan/org.eclipse.cdt.codan.core.test/src/org/eclipse/cdt/codan/core/internal/checkers/AbstractClassInstantiationCheckerTest.java
+++ b/codan/org.eclipse.cdt.codan.core.test/src/org/eclipse/cdt/codan/core/internal/checkers/AbstractClassInstantiationCheckerTest.java
@@ -240,7 +240,21 @@ public class AbstractClassInstantiationCheckerTest extends CheckerTestCase {
// };
//
// B b;
- public void testPureVirtualDestructorOverride() {
+ public void testPureVirtualDestructorOverride_1() {
+ loadCodeAndRun(getAboveComment());
+ checkNoErrors();
+ }
+
+ // class A {
+ // public:
+ // virtual ~A() = 0;
+ // };
+ //
+ // class B : public A {
+ // };
+ //
+ // B b;
+ public void testPureVirtualDestructorOverride_2() {
loadCodeAndRun(getAboveComment());
checkNoErrors();
}

Back to the top