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

Function duplicate_ss

cranelift/reader/src/parser.rs:3282–3298  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3280
3281 #[test]
3282 fn duplicate_ss() {
3283 let ParseError {
3284 location,
3285 message,
3286 is_warning,
3287 } = Parser::new(
3288 "function %blocks() system_v {
3289 ss0 = explicit_slot 8
3290 ss0 = explicit_slot 8",
3291 )
3292 .parse_function()
3293 .unwrap_err();
3294
3295 assert_eq!(location.line_number, 3);
3296 assert_eq!(message, "duplicate entity: ss0");
3297 assert!(!is_warning);
3298 }
3299
3300 #[test]
3301 fn duplicate_gv() {

Callers

nothing calls this directly

Calls 2

parse_functionMethod · 0.80
newFunction · 0.50

Tested by

no test coverage detected