()
| 253 | #[test] |
| 254 | #[ignore] |
| 255 | pub fn dwarf_codegen_optimized() -> Result<()> { |
| 256 | let output = lldb_with_script( |
| 257 | &[ |
| 258 | "-Ccache=n", |
| 259 | "-Ddebug-info", |
| 260 | "-Oopt-level=2", |
| 261 | DWARF_CODEGEN_OPTIMIZED, |
| 262 | ], |
| 263 | r#"b InitializeTest |
| 264 | r |
| 265 | b dwarf_codegen_optimized.cc:25 |
| 266 | b dwarf_codegen_optimized.cc:26 |
| 267 | c |
| 268 | v x |
| 269 | c |
| 270 | v x |
| 271 | c"#, |
| 272 | )?; |
| 273 | |
| 274 | check_lldb_output( |
| 275 | &output, |
| 276 | r#" |
| 277 | check: stop reason = breakpoint 1.1 |
| 278 | check: stop reason = breakpoint 2.1 |
| 279 | check: x = 42 |
| 280 | check: stop reason = breakpoint 3.1 |
| 281 | check: x = <variable not available> |
| 282 | check: exited with status = 0 |
| 283 | "#, |
| 284 | )?; |
| 285 | Ok(()) |
| 286 | } |
| 287 | |
| 288 | #[test] |
| 289 | #[ignore] |
nothing calls this directly
no test coverage detected