Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lldb / test / Shell / SymbolFile / NativePDB / stack_unwinding01.cpp
blobe96e3ed6a0107cc6218c1c3abac7ab3042c5290e
1 // clang-format off
2 // REQUIRES: lld, system-windows
4 // RUN: %build --compiler=clang-cl --nodefaultlib -o %t.exe -- %s
5 // RUN: env LLDB_USE_NATIVE_PDB_READER=1 %lldb -f %t.exe -s \
6 // RUN: %p/Inputs/stack_unwinding01.lldbinit 2>&1 | FileCheck %s
9 struct Struct {
10 void simple_method(int a, int b) {
11 a += 1;
12 simple_method(a, b);
18 int main(int argc, char **argv) {
19 Struct s;
20 s.simple_method(1,2);
21 return 0;
25 // CHECK: (lldb) thread backtrace
26 // CHECK-NEXT: * thread #1, stop reason = breakpoint 1.1
27 // CHECK-NEXT: * frame #0: {{.*}} stack_unwinding01.cpp.tmp.exe`Struct::simple_method(this={{.*}}, a=2, b=2) at stack_unwinding01.cpp:12
28 // CHECK-NEXT: frame #1: {{.*}} stack_unwinding01.cpp.tmp.exe`main(argc={{.*}}, argv={{.*}}) at stack_unwinding01.cpp:20
31 // CHECK: (lldb) thread backtrace
32 // CHECK-NEXT: * thread #1, stop reason = breakpoint 1.1
33 // CHECK-NEXT: * frame #0: {{.*}} stack_unwinding01.cpp.tmp.exe`Struct::simple_method(this={{.*}}, a=3, b=2) at stack_unwinding01.cpp:12
34 // CHECK-NEXT: frame #1: {{.*}} stack_unwinding01.cpp.tmp.exe`Struct::simple_method(this={{.*}}, a=2, b=2) at stack_unwinding01.cpp:12
35 // CHECK-NEXT: frame #2: {{.*}} stack_unwinding01.cpp.tmp.exe`main(argc={{.*}}, argv={{.*}}) at stack_unwinding01.cpp:20
37 // CHECK: (lldb) thread backtrace
38 // CHECK-NEXT: * thread #1, stop reason = breakpoint 1.1
39 // CHECK-NEXT: * frame #0: {{.*}} stack_unwinding01.cpp.tmp.exe`Struct::simple_method(this={{.*}}, a=4, b=2) at stack_unwinding01.cpp:12
40 // CHECK-NEXT: frame #1: {{.*}} stack_unwinding01.cpp.tmp.exe`Struct::simple_method(this={{.*}}, a=3, b=2) at stack_unwinding01.cpp:12
41 // CHECK-NEXT: frame #2: {{.*}} stack_unwinding01.cpp.tmp.exe`Struct::simple_method(this={{.*}}, a=2, b=2) at stack_unwinding01.cpp:12
42 // CHECK-NEXT: frame #3: {{.*}} stack_unwinding01.cpp.tmp.exe`main(argc={{.*}}, argv={{.*}}) at stack_unwinding01.cpp:20