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

Function duplicate_gv

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

Source from the content-addressed store, hash-verified

3299
3300 #[test]
3301 fn duplicate_gv() {
3302 let ParseError {
3303 location,
3304 message,
3305 is_warning,
3306 } = Parser::new(
3307 "function %blocks() system_v {
3308 gv0 = vmctx
3309 gv0 = vmctx",
3310 )
3311 .parse_function()
3312 .unwrap_err();
3313
3314 assert_eq!(location.line_number, 3);
3315 assert_eq!(message, "duplicate entity: gv0");
3316 assert!(!is_warning);
3317 }
3318
3319 #[test]
3320 fn duplicate_sig() {

Callers

nothing calls this directly

Calls 2

parse_functionMethod · 0.80
newFunction · 0.50

Tested by

no test coverage detected