func1.wast 693 B

1234567891011121314151617181920212223242526272829303132333435
  1. (module
  2. (type $t (func))
  3. (func (export "test") (param structref i31ref)
  4. (local funcref)
  5. (local funcref)
  6. (local funcref)
  7. (local externref)
  8. (local externref)
  9. (local externref)
  10. (local anyref)
  11. (local eqref)
  12. (local structref)
  13. (local arrayref)
  14. (local i31ref)
  15. (local (ref null 0))
  16. (local (ref null 0))
  17. (local (ref null 0))
  18. (local (ref null 1))
  19. (local (ref null func))
  20. (local (ref null 0))
  21. (local (ref null extern))
  22. (local (ref null any))
  23. (local (ref null eq))
  24. (local (ref null i31))
  25. (local (ref null struct))
  26. local.get 0
  27. ref.test null array
  28. drop
  29. local.get 1
  30. ref.cast i31
  31. drop
  32. )
  33. )