self.expect("breakpoint list -f", BREAKPOINT_HIT_ONCE,
substrs = [' resolved, hit count = 1'])
+ # The padding should be an array of size 0
+ self.expect("image lookup -t point_tag",
+ DATA_TYPES_DISPLAYED_CORRECTLY,
+ substrs = ['padding[0]'])
+
if __name__ == '__main__':
import atexit
{
struct point_tag {
int x;
- char padding[0];
int y;
+ char padding[0];
}; // Set break point at this line.
struct rect_tag {
struct point_tag bottom_left;
struct point_tag top_right;
};
- struct point_tag pt = { 2, {}, 3 }; // This is the first executable statement.
- struct rect_tag rect = {{1, {}, 2}, {3, {}, 4}};
+ struct point_tag pt = { 2, 3, {} }; // This is the first executable statement.
+ struct rect_tag rect = {{1, 2, {}}, {3, 4, {}}};
return 0;
}