Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarco Stornelli2020-02-28 15:31:54 +0000
committerMarco Stornelli2020-03-01 14:09:29 +0000
commitc68fa249692398d39c18448d6d0280a9ff0739ec (patch)
treeb2c7a606ec2bd9d34a11c9663312f9247e514d85 /core/org.eclipse.cdt.core.tests
parent8bfc0447c9098e3de0bbf65fec2ee40c91886cea (diff)
downloadorg.eclipse.cdt-c68fa249692398d39c18448d6d0280a9ff0739ec.tar.gz
org.eclipse.cdt-c68fa249692398d39c18448d6d0280a9ff0739ec.tar.xz
org.eclipse.cdt-c68fa249692398d39c18448d6d0280a9ff0739ec.zip
Bug 560173 - Fix destructor lookup in case of typedef
Added field isDestructor to LookupData class Change-Id: If2707c96eeb54dfc938dfc5caf69f0bbf71589ef
Diffstat (limited to 'core/org.eclipse.cdt.core.tests')
-rw-r--r--core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2CPPSpecTest.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2CPPSpecTest.java b/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2CPPSpecTest.java
index b84af24aa38..63edd1505b0 100644
--- a/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2CPPSpecTest.java
+++ b/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2CPPSpecTest.java
@@ -3669,7 +3669,7 @@ public class AST2CPPSpecTest extends AST2SpecTestBase {
// B_ptr->~B(); //2 // calls D's destructor
// B_ptr->~B_alias(); //3 // calls D's destructor
// B_ptr->B_alias::~B(); //4 // calls B's destructor
- // B_ptr->B_alias::~B_alias(); //5 // error, no B_alias in class B
+ // B_ptr->B_alias::~B_alias(); //5 // calls B's destructor
// }
public void test12_4s12() throws Exception {
final String code = getAboveComment();
@@ -3685,8 +3685,8 @@ public class AST2CPPSpecTest extends AST2SpecTestBase {
assertSame(dtor, d);
d = bh.assertNonProblem("~B(); //4", 2);
assertSame(dtor, d);
-
- bh.assertProblem("~B_alias(); //5", 8);
+ d = bh.assertNonProblem("~B_alias(); //5", 8);
+ assertSame(dtor, d);
}
// void* operator new(size_t, void* p) { return p; }

Back to the top