The `target.max-children-depth` setting and `--depth` flag would be ignored if treating pointer as arrays, fix that by always incrementing the current depth when printing a new child. rdar://109855463 Differential Revision: https://reviews.llvm.org/D151950
20 lines
174 B
C++
20 lines
174 B
C++
#include <cstdio>
|
|
|
|
struct A {
|
|
int i = 42;
|
|
};
|
|
|
|
struct B {
|
|
A a;
|
|
};
|
|
|
|
struct C {
|
|
B b;
|
|
};
|
|
|
|
int main() {
|
|
C *c = new C[5];
|
|
puts("break here");
|
|
return 0; // break here
|
|
}
|