aboutsummaryrefslogtreecommitdiff
path: root/lldb/test/Shell/Recognizer/Inputs/verbose_trap-in-stl-callback.cpp
blob: 23beed4c62c3b3d77301d5b898cb7c846e802de2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
namespace std {
void definitely_aborts() { __builtin_verbose_trap("Failed", "Invariant violated"); }

void aborts_soon() { definitely_aborts(); }
} // namespace std

void g() { std::aborts_soon(); }

namespace std {
namespace detail {
void eventually_aborts() { g(); }
} // namespace detail

inline namespace __1 {
void eventually_aborts() { detail::eventually_aborts(); }
} // namespace __1
} // namespace std

int main() {
  std::eventually_aborts();
  return 0;
}