[Lldb-commits] [lldb] r131445 - /lldb/trunk/test/cpp/dynamic-value/pass-to-base.cpp
Jim Ingham
jingham at apple.com
Mon May 16 17:45:52 PDT 2011
Author: jingham
Date: Mon May 16 19:45:52 2011
New Revision: 131445
URL: http://llvm.org/viewvc/llvm-project?rev=131445&view=rev
Log:
Fix a bug in the test case file (doesn't affect the tests.)
Modified:
lldb/trunk/test/cpp/dynamic-value/pass-to-base.cpp
Modified: lldb/trunk/test/cpp/dynamic-value/pass-to-base.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/cpp/dynamic-value/pass-to-base.cpp?rev=131445&r1=131444&r2=131445&view=diff
==============================================================================
--- lldb/trunk/test/cpp/dynamic-value/pass-to-base.cpp (original)
+++ lldb/trunk/test/cpp/dynamic-value/pass-to-base.cpp Mon May 16 19:45:52 2011
@@ -17,6 +17,8 @@
A(int value) : m_a_value (value) {}
A(int value, A* client_A) : m_a_value (value), m_client_A (client_A) {}
+ virtual ~A() {}
+
virtual void
doSomething (A &anotherA)
{
@@ -40,6 +42,9 @@
public:
B (int b_value, int a_value) : Extra(b_value, a_value), A(a_value), m_b_value(b_value) {}
B (int b_value, int a_value, A *client_A) : Extra(b_value, a_value), A(a_value, client_A), m_b_value(b_value) {}
+
+ virtual ~B () {}
+
private:
int m_b_value;
};
@@ -59,7 +64,5 @@
A reallyA (500);
myB.doSomething (reallyA); // Break here and get real address of reallyA.
- delete my_global_A_ptr;
-
return 0;
}
More information about the lldb-commits
mailing list