When formatting a variable, the max depth would potentially be ignored if the current value object failed to print itself. Change that to always respect the max depth, even if failure occurs. rdar://109855463 Differential Revision: https://reviews.llvm.org/D152409
20 lines
160 B
C++
20 lines
160 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;
|
|
}
|