summaryrefslogtreecommitdiffstats
path: root/lldb/test/lang/cpp/dynamic-value/pass-to-base.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/test/lang/cpp/dynamic-value/pass-to-base.cpp')
-rw-r--r--lldb/test/lang/cpp/dynamic-value/pass-to-base.cpp28
1 files changed, 0 insertions, 28 deletions
diff --git a/lldb/test/lang/cpp/dynamic-value/pass-to-base.cpp b/lldb/test/lang/cpp/dynamic-value/pass-to-base.cpp
index 79ea332444b..2bccf330382 100644
--- a/lldb/test/lang/cpp/dynamic-value/pass-to-base.cpp
+++ b/lldb/test/lang/cpp/dynamic-value/pass-to-base.cpp
@@ -52,31 +52,6 @@ private:
static A* my_global_A_ptr;
-class BaseClass
-{
-public:
- BaseClass();
- virtual ~BaseClass() { }
-};
-
-class DerivedClass : public BaseClass
-{
-public:
- DerivedClass();
- virtual ~DerivedClass() { }
-protected:
- int mem;
-};
-
-BaseClass::BaseClass()
-{
-}
-
-DerivedClass::DerivedClass() : BaseClass()
-{
- mem = 101;
-}
-
int
main (int argc, char **argv)
{
@@ -90,8 +65,5 @@ main (int argc, char **argv)
A reallyA (500);
myB.doSomething (reallyA); // Break here and get real address of reallyA.
- BaseClass *b = nullptr; // Break here and check b has 0 children
- b = new DerivedClass(); // Break here and check b still has 0 children
- b = nullptr; // Break here and check b has one child now
return 0;
}
OpenPOWER on IntegriCloud