xref: /llvm-project/lldb/test/Shell/Recognizer/verbose_trap-in-stl-callback-user-leaf.test (revision bca507387ae1945137214ec7fb80b709927ee6e8)
1*bca50738SMichael Buch# Tests that we show the first non-STL frame when
2*bca50738SMichael Buch# a verbose_trap triggers from within the STL.
3*bca50738SMichael Buch#
4*bca50738SMichael Buch# Specifically tests that we correctly handle backtraces
5*bca50738SMichael Buch# of the form:
6*bca50738SMichael Buch# #0 __builtin_verbose_trap
7*bca50738SMichael Buch# #1 user-code
8*bca50738SMichael Buch# #2 STL
9*bca50738SMichael Buch# #3 user-code
10*bca50738SMichael Buch# #4 STL
11*bca50738SMichael Buch# #5 user-code
12*bca50738SMichael Buch
13*bca50738SMichael Buch# UNSUPPORTED: system-windows
14*bca50738SMichael Buch#
15*bca50738SMichael Buch# RUN: %clang_host -g -O0 %S/Inputs/verbose_trap-in-stl-callback-user-leaf.cpp -o %t.out
16*bca50738SMichael Buch# RUN: %lldb -b -s %s %t.out | FileCheck %s --check-prefixes=CHECK
17*bca50738SMichael Buch
18*bca50738SMichael Buchrun
19*bca50738SMichael Buch# CHECK: thread #{{.*}}stop reason = User: Invariant violated
20*bca50738SMichael Buchframe info
21*bca50738SMichael Buch# CHECK: frame #{{.*}}`definitely_aborts() at verbose_trap-in-stl-callback-user-leaf.cpp
22*bca50738SMichael Buchq
23