multi_module_aot_ignore_cases.patch 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. diff --git a/test/core/linking.wast b/test/core/linking.wast
  2. index 8fbcc02..a2254b3 100644
  3. --- a/test/core/linking.wast
  4. +++ b/test/core/linking.wast
  5. @@ -23,6 +23,8 @@
  6. (import "spectest" "print_i32" (func $f (param i32)))
  7. (export "print" (func $f))
  8. )
  9. +
  10. +(; doesn't support empty files
  11. (register "reexport_f" $M1)
  12. (assert_unlinkable
  13. (module (import "reexport_f" "print" (func (param i64))))
  14. @@ -32,9 +34,11 @@
  15. (module (import "reexport_f" "print" (func (param i32) (result i32))))
  16. "incompatible import type"
  17. )
  18. +;)
  19. ;; Globals
  20. +(; aot doesn't support to import globals
  21. (module $Mg
  22. (global $glob (export "glob") i32 (i32.const 42))
  23. (func (export "get") (result i32) (global.get $glob))
  24. @@ -45,6 +49,7 @@
  25. (func (export "set_mut") (param i32) (global.set $mut_glob (local.get 0)))
  26. )
  27. (register "Mg" $Mg)
  28. +;)
  29. (; only sharing initial values
  30. (module $Ng
  31. @@ -83,6 +88,7 @@
  32. (assert_return (invoke $Ng "Mg.get_mut") (i32.const 241))
  33. ;)
  34. +(;
  35. (assert_unlinkable
  36. (module (import "Mg" "mut_glob" (global i32)))
  37. "incompatible import type"
  38. @@ -92,7 +98,6 @@
  39. "incompatible import type"
  40. )
  41. -
  42. (module $Mref_ex
  43. (global (export "g-const-func") funcref (ref.null func))
  44. (global (export "g-var-func") (mut funcref) (ref.null func))
  45. @@ -127,6 +132,7 @@
  46. (module (global (import "Mref_ex" "g-var-extern") (mut funcref)))
  47. "incompatible import type"
  48. )
  49. +;)
  50. ;; Tables