Summary: This patch adds a few comments for GetValueDidChange and contains improvements for TestValueVarUpdate.py test which checks ValueObject::GetValueDidChange for complex types. Reviewers: zturner, granata.enrico, clayborg Reviewed By: clayborg Subscribers: jingham, lldb-commits, granata.enrico, zturner, clayborg Differential Revision: http://reviews.llvm.org/D8103 llvm-svn: 231526
16 lines
291 B
C
16 lines
291 B
C
struct complex_type {
|
|
struct { long l; } inner;
|
|
struct complex_type *complex_ptr;
|
|
};
|
|
|
|
int main() {
|
|
int i = 0;
|
|
struct complex_type c = { { 1L }, &c };
|
|
for (int j = 3; j < 20; j++)
|
|
{
|
|
c.inner.l += (i += j);
|
|
i = i - 1; // break here
|
|
}
|
|
return i;
|
|
}
|