xref: /llvm-project/lldb/test/Shell/Recognizer/verbose_trap-in-stl-callback.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 STL
8*bca50738SMichael Buch# #2 user-code
9*bca50738SMichael Buch# #3 STL
10*bca50738SMichael Buch# #4 user-code
11*bca50738SMichael Buch
12*bca50738SMichael Buch# UNSUPPORTED: system-windows
13*bca50738SMichael Buch#
14*bca50738SMichael Buch# RUN: %clang_host -g -O0 %S/Inputs/verbose_trap-in-stl-callback.cpp -o %t.out
15*bca50738SMichael Buch# RUN: %lldb -b -s %s %t.out | FileCheck %s --check-prefixes=CHECK
16*bca50738SMichael Buch
17*bca50738SMichael Buchrun
18*bca50738SMichael Buch# CHECK: thread #{{.*}}stop reason = Failed: Invariant violated
19*bca50738SMichael Buchframe info
20*bca50738SMichael Buch# CHECK: frame #{{.*}}`g() at verbose_trap-in-stl-callback.cpp
21*bca50738SMichael Buchq
22