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

Function duplicate_sig

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

Source from the content-addressed store, hash-verified

3318
3319 #[test]
3320 fn duplicate_sig() {
3321 let ParseError {
3322 location,
3323 message,
3324 is_warning,
3325 } = Parser::new(
3326 "function %blocks() system_v {
3327 sig0 = ()
3328 sig0 = ()",
3329 )
3330 .parse_function()
3331 .unwrap_err();
3332
3333 assert_eq!(location.line_number, 3);
3334 assert_eq!(message, "duplicate entity: sig0");
3335 assert!(!is_warning);
3336 }
3337
3338 #[test]
3339 fn duplicate_fn() {

Callers

nothing calls this directly

Calls 2

parse_functionMethod · 0.80
newFunction · 0.50

Tested by

no test coverage detected