# Tests that we show the first non-STL frame when
# a verbose_trap triggers from within the STL.
#
# Specifically tests that we correctly handle backtraces
# of the form:
# #0 __builtin_verbose_trap
# #1 STL
# #2 user-code
# #3 STL
# #4 user-code
# UNSUPPORTED: system-windows
#
# RUN: %clang_host -g -O0 %S/Inputs/verbose_trap-in-stl-callback.cpp -o %t.out
# RUN: %lldb -b -s %s %t.out | FileCheck %s --check-prefixes=CHECK
run
# CHECK: thread #{{.*}}stop reason = Failed: Invariant violated
frame info
# CHECK: frame #{{.*}}`g() at verbose_trap-in-stl-callback.cpp
q