Files
clang-p2996/lldb/test/python_api/value_var_update/main.c
Ilia K d4ec5a70ea Improve ValueObject::GetValueDidChange test; Add a comment for it
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
2015-03-06 22:35:08 +00:00

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