| 14 | BOOST_NOINLINE void bar(int i); |
| 15 | |
| 16 | BOOST_NOINLINE void bar(int i) { |
| 17 | boost::array<int, 5> a = {{-1, -231, -123, -23, -32}}; |
| 18 | if (i >= 0) { |
| 19 | foo(a[i]); |
| 20 | } else { |
| 21 | std::cerr << "Terminate called:\n" << boost::stacktrace::stacktrace() << '\n'; |
| 22 | std::exit(0); |
| 23 | } |
| 24 | } |
| 25 | |
| 26 | BOOST_NOINLINE void foo(int i) { |
| 27 | bar(--i); |