diff options
| author | Jim Ingham <jingham@apple.com> | 2011-05-17 00:45:52 +0000 |
|---|---|---|
| committer | Jim Ingham <jingham@apple.com> | 2011-05-17 00:45:52 +0000 |
| commit | 36b8aa7218337d7998eaf683a363a98149bd1578 (patch) | |
| tree | 82aa5836ee5b061006948db142b4351a1dc46ba1 | |
| parent | e5f7f26df00a5c88fca8c4f13b3710bfca2bcb68 (diff) | |
| download | bcm5719-llvm-36b8aa7218337d7998eaf683a363a98149bd1578.tar.gz bcm5719-llvm-36b8aa7218337d7998eaf683a363a98149bd1578.zip | |
Fix a bug in the test case file (doesn't affect the tests.)
llvm-svn: 131445
| -rw-r--r-- | lldb/test/cpp/dynamic-value/pass-to-base.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lldb/test/cpp/dynamic-value/pass-to-base.cpp b/lldb/test/cpp/dynamic-value/pass-to-base.cpp index dec04b42a02..a817bade941 100644 --- a/lldb/test/cpp/dynamic-value/pass-to-base.cpp +++ b/lldb/test/cpp/dynamic-value/pass-to-base.cpp @@ -17,6 +17,8 @@ public: 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 @@ class B : public Extra, public virtual A 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 @@ main (int argc, char **argv) A reallyA (500); myB.doSomething (reallyA); // Break here and get real address of reallyA. - delete my_global_A_ptr; - return 0; } |

