1namespace std {
2void recursively_aborts(int depth) {
3 if (depth == 0)
4 __builtin_verbose_trap("Error", "max depth");
5
6 recursively_aborts(depth: --depth);
7}
8} // namespace std
9
10int main() {
11 std::recursively_aborts(depth: 256);
12 return 0;
13}
14

Provided by KDAB

Privacy Policy
Improve your Profiling and Debugging skills
Find out more

source code of lldb/test/Shell/Recognizer/Inputs/verbose_trap-in-stl-max-depth.cpp