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

Function number_of_blocks

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

Source from the content-addressed store, hash-verified

3262
3263 #[test]
3264 fn number_of_blocks() {
3265 let ParseError {
3266 location,
3267 message,
3268 is_warning,
3269 } = Parser::new(
3270 "function %a() {
3271 block100000:",
3272 )
3273 .parse_function()
3274 .unwrap_err();
3275
3276 assert_eq!(location.line_number, 2);
3277 assert_eq!(message, "too many blocks");
3278 assert!(!is_warning);
3279 }
3280
3281 #[test]
3282 fn duplicate_ss() {

Callers

nothing calls this directly

Calls 2

parse_functionMethod · 0.80
newFunction · 0.50

Tested by

no test coverage detected