multi_module_ignore_cases.patch 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. diff --git a/test/core/linking.wast b/test/core/linking.wast
  2. index 994e0f4..8fbcc02 100644
  3. --- a/test/core/linking.wast
  4. +++ b/test/core/linking.wast
  5. @@ -19,11 +19,11 @@
  6. (assert_return (invoke $Nf "call") (i32.const 3))
  7. (assert_return (invoke $Nf "call Mf.call") (i32.const 2))
  8. -(module
  9. +(module $M1
  10. (import "spectest" "print_i32" (func $f (param i32)))
  11. (export "print" (func $f))
  12. )
  13. -(register "reexport_f")
  14. +(register "reexport_f" $M1)
  15. (assert_unlinkable
  16. (module (import "reexport_f" "print" (func (param i64))))
  17. "incompatible import type"
  18. @@ -35,7 +35,6 @@
  19. ;; Globals
  20. -
  21. (module $Mg
  22. (global $glob (export "glob") i32 (i32.const 42))
  23. (func (export "get") (result i32) (global.get $glob))
  24. @@ -47,6 +46,7 @@
  25. )
  26. (register "Mg" $Mg)
  27. +(; only sharing initial values
  28. (module $Ng
  29. (global $x (import "Mg" "glob") i32)
  30. (global $mut_glob (import "Mg" "mut_glob") (mut i32))
  31. @@ -81,7 +81,7 @@
  32. (assert_return (get $Ng "Mg.mut_glob") (i32.const 241))
  33. (assert_return (invoke $Mg "get_mut") (i32.const 241))
  34. (assert_return (invoke $Ng "Mg.get_mut") (i32.const 241))
  35. -
  36. +;)
  37. (assert_unlinkable
  38. (module (import "Mg" "mut_glob" (global i32)))
  39. @@ -130,7 +130,7 @@
  40. ;; Tables
  41. -
  42. +(; no such support
  43. (module $Mt
  44. (type (func (result i32)))
  45. (type (func))
  46. @@ -307,10 +307,11 @@
  47. (module (table (import "Mtable_ex" "t-extern") 1 funcref))
  48. "incompatible import type"
  49. )
  50. +;)
  51. ;; Memories
  52. -
  53. +(; no such support
  54. (module $Mm
  55. (memory (export "mem") 1 5)
  56. (data (i32.const 10) "\00\01\02\03\04\05\06\07\08\09")
  57. @@ -451,3 +452,4 @@
  58. (assert_return (invoke $Ms "get memory[0]") (i32.const 104)) ;; 'h'
  59. (assert_return (invoke $Ms "get table[0]") (i32.const 0xdead))
  60. +;)
  61. \ No newline at end of file