MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / test_debug_dwarf_translate

Function test_debug_dwarf_translate

tests/all/native_debug/translate.rs:50–75  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

48#[test]
49#[ignore]
50fn test_debug_dwarf_translate() -> Result<()> {
51 check_wasm(
52 DWARF_FIB_WASM,
53 r##"
54check: DW_TAG_compile_unit
55# We have "fib" function
56check: DW_TAG_subprogram
57check: DW_AT_name ("fib")
58# Accepts one parameter
59check: DW_TAG_formal_parameter
60check: DW_AT_name ("n")
61check: DW_AT_decl_line (3)
62# Has four locals: t, a, b, i
63check: DW_TAG_variable
64check: DW_AT_name ("t")
65check: DW_AT_decl_line (4)
66check: DW_TAG_variable
67check: DW_AT_name ("a")
68check: DW_TAG_variable
69check: DW_AT_name ("b")
70check: DW_TAG_variable
71check: DW_AT_name ("i")
72check: DW_AT_decl_line (5)
73 "##,
74 )
75}
76
77#[test]
78#[ignore]

Callers

nothing calls this directly

Calls 1

check_wasmFunction · 0.85

Tested by

no test coverage detected