Skip to content
File

Blob: src/workerd/io/wasm/signal-bounds-check-valid.wat

449 bytes
1;; Both addresses fit exactly at the boundary of a 1-page (65536-byte) memory.
2;; __instance_signal = 65528 (4 bytes from 65528..65531)
3;; __instance_terminated = 65532 (4 bytes from 65532..65535)
4 
5(module
6 (memory (export "memory") 1)
7 (global (export "__instance_signal") i32 (i32.const 65528))
8 (global (export "__instance_terminated") i32 (i32.const 65532))
9 
10 (func (export "get_signal") (result i32)
11 (i32.load (global.get 0))
12 )
13)