[libc++] Add __iswctype to the locale base API since it's required by <locale> (...
[llvm-project.git] / lldb / test / Shell / Recognizer / Inputs / verbose_trap-in-stl-nested.cpp
blob67fa65c9ceae22b57f1e74c5af45a6c0805d8bbd
1 namespace std {
2 namespace detail {
3 void function_that_aborts() { __builtin_verbose_trap("Bounds error", "out-of-bounds access"); }
4 } // namespace detail
6 inline namespace __1 {
7 template <typename T> struct vector {
8 void operator[](unsigned) { detail::function_that_aborts(); }
9 };
10 } // namespace __1
11 } // namespace std
13 void g() {
14 std::vector<int> v;
15 v[10];
18 int main() {
19 g();
20 return 0;