diff options
author | Nathan Ridge | 2013-08-19 00:09:54 +0000 |
---|---|---|
committer | Sergey Prigogin | 2013-08-19 01:42:34 +0000 |
commit | be4ec06f4b8664d05a6ab2d132ec9c2d1c3d24de (patch) | |
tree | 57dc64d6d202260222a4b5c0f8f2c352aee6d698 /codan/org.eclipse.cdt.codan.core.test | |
parent | e288c295968a5b75fdb303dd380c25579b69f214 (diff) | |
download | org.eclipse.cdt-be4ec06f4b8664d05a6ab2d132ec9c2d1c3d24de.tar.gz org.eclipse.cdt-be4ec06f4b8664d05a6ab2d132ec9c2d1c3d24de.tar.xz org.eclipse.cdt-be4ec06f4b8664d05a6ab2d132ec9c2d1c3d24de.zip |
Bug 414279 - Derived class method that overrides a base class method
brought into the derived scope with a using-declaration
Change-Id: Ibeb49dddb7ef3768ffd4964e22a139afba8690fb
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
Reviewed-on: https://git.eclipse.org/r/15573
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
IP-Clean: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Sergey Prigogin <eclipse.sprigogin@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/internal/checkers/AbstractClassInstantiationCheckerTest.java | 19 |
1 files changed, 19 insertions, 0 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 df33e42fd17..c9bd97f9f2d 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 @@ -312,4 +312,23 @@ public class AbstractClassInstantiationCheckerTest extends CheckerTestCase { loadCodeAndRun(getAboveComment()); checkErrorLine(13); } + + // struct A { + // virtual void test(int) = 0; + // virtual ~A(); + // }; + // + // struct B : public A { + // using A::test; + // void test(const char*); + // void test(int); + // }; + // + // int main() { + // B c; + // } + public void testUsingDeclarationInDerivedClass_bug414279() { + loadCodeAndRun(getAboveComment()); + checkNoErrors(); + } } |