Fix a bug in the test case file (doesn't affect the tests.)

llvm-svn: 131445
This commit is contained in:
Jim Ingham 2011-05-17 00:45:52 +00:00
parent e5f7f26df0
commit 36b8aa7218
1 changed files with 5 additions and 2 deletions

View File

@ -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;
}