3 // ignore-test // Test temporarily ignored due to debuginfo tests being disabled, see PR 47155
4 // min-lldb-version: 310
8 // compile-flags:-g -O -C no-prepopulate-passes
9 // -O -C no-prepopulate-passes added to work around https://bugs.llvm.org/show_bug.cgi?id=32123
11 // This test checks that drop glue code gets attributed to scope's closing brace,
12 // and function epilogues - to function's closing brace.
14 // === GDB TESTS ===================================================================================
19 // gdb-check:[...]#loc1[...]
22 // gdb-check:[...]#loc2[...]
25 // gdb-check:[...]#loc3[...]
28 // gdb-check:[...]#loc4[...]
31 // gdb-check:[...]#loc5[...]
34 // gdb-check:[...]#loc6[...]
36 // === LLDB TESTS ==================================================================================
38 // lldb-command:set set stop-line-count-before 0
39 // lldb-command:set set stop-line-count-after 1
40 // Can't set both to zero or lldb will stop printing source at all. So it will output the current
41 // line and the next. We deal with this by having at least 2 lines between the #loc's
45 // lldb-command:frame select
46 // lldb-check:[...]#loc1[...]
48 // lldb-command:frame select
49 // lldb-check:[...]#loc2[...]
51 // lldb-command:frame select
52 // lldb-check:[...]#loc3[...]
54 // lldb-command:frame select
55 // lldb-check:[...]#loc4[...]
57 // lldb-command:frame select
58 // lldb-check:[...]#loc5[...]
60 // lldb-command:frame select
61 // lldb-check:[...]#loc6[...]
73 let s = String::from("s"); // #break