multi_module_ignore_cases.patch 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. diff --git a/test/core/imports.wast b/test/core/imports.wast
  2. index 0cc07cb..4e8367a 100644
  3. --- a/test/core/imports.wast
  4. +++ b/test/core/imports.wast
  5. @@ -86,7 +86,7 @@
  6. (assert_return (invoke "print64" (i64.const 24)))
  7. (assert_invalid
  8. - (module
  9. + (module
  10. (type (func (result i32)))
  11. (import "test" "func" (func (type 1)))
  12. )
  13. @@ -578,6 +578,7 @@
  14. (assert_return (invoke "grow" (i32.const 1)) (i32.const -1))
  15. (assert_return (invoke "grow" (i32.const 0)) (i32.const 2))
  16. +(;
  17. (module $Mgm
  18. (memory (export "memory") 1) ;; initial size is 1
  19. (func (export "grow") (result i32) (memory.grow (i32.const 1)))
  20. @@ -586,7 +587,7 @@
  21. (assert_return (invoke $Mgm "grow") (i32.const 1)) ;; now size is 2
  22. (module $Mgim1
  23. ;; imported memory limits should match, because external memory size is 2 now
  24. - (memory (export "memory") (import "grown-memory" "memory") 2)
  25. + (memory (export "memory") (import "grown-memory" "memory") 2)
  26. (func (export "grow") (result i32) (memory.grow (i32.const 1)))
  27. )
  28. (register "grown-imported-memory" $Mgim1)
  29. @@ -597,7 +598,7 @@
  30. (func (export "size") (result i32) (memory.size))
  31. )
  32. (assert_return (invoke $Mgim2 "size") (i32.const 3))
  33. -
  34. +;)
  35. ;; Syntax errors
  36. @@ -669,6 +670,7 @@
  37. "import after memory"
  38. )
  39. +(;
  40. ;; This module is required to validate, regardless of whether it can be
  41. ;; linked. Overloading is not possible in wasm itself, but it is possible
  42. ;; in modules from which wasm can import.
  43. @@ -695,3 +697,4 @@
  44. )
  45. "unknown import"
  46. )
  47. +;)
  48. \ No newline at end of file
  49. diff --git a/test/core/linking.wast b/test/core/linking.wast
  50. index 994e0f4..8fbcc02 100644
  51. --- a/test/core/linking.wast
  52. +++ b/test/core/linking.wast
  53. @@ -19,11 +19,11 @@
  54. (assert_return (invoke $Nf "call") (i32.const 3))
  55. (assert_return (invoke $Nf "call Mf.call") (i32.const 2))
  56. -(module
  57. +(module $M1
  58. (import "spectest" "print_i32" (func $f (param i32)))
  59. (export "print" (func $f))
  60. )
  61. -(register "reexport_f")
  62. +(register "reexport_f" $M1)
  63. (assert_unlinkable
  64. (module (import "reexport_f" "print" (func (param i64))))
  65. "incompatible import type"
  66. @@ -35,7 +35,6 @@
  67. ;; Globals
  68. -
  69. (module $Mg
  70. (global $glob (export "glob") i32 (i32.const 42))
  71. (func (export "get") (result i32) (global.get $glob))
  72. @@ -47,6 +46,7 @@
  73. )
  74. (register "Mg" $Mg)
  75. +(; only sharing initial values
  76. (module $Ng
  77. (global $x (import "Mg" "glob") i32)
  78. (global $mut_glob (import "Mg" "mut_glob") (mut i32))
  79. @@ -81,7 +81,7 @@
  80. (assert_return (get $Ng "Mg.mut_glob") (i32.const 241))
  81. (assert_return (invoke $Mg "get_mut") (i32.const 241))
  82. (assert_return (invoke $Ng "Mg.get_mut") (i32.const 241))
  83. -
  84. +;)
  85. (assert_unlinkable
  86. (module (import "Mg" "mut_glob" (global i32)))
  87. @@ -130,7 +130,7 @@
  88. ;; Tables
  89. -
  90. +(; no such support
  91. (module $Mt
  92. (type (func (result i32)))
  93. (type (func))
  94. @@ -307,10 +307,11 @@
  95. (module (table (import "Mtable_ex" "t-extern") 1 funcref))
  96. "incompatible import type"
  97. )
  98. +;)
  99. ;; Memories
  100. -
  101. +(; no such support
  102. (module $Mm
  103. (memory (export "mem") 1 5)
  104. (data (i32.const 10) "\00\01\02\03\04\05\06\07\08\09")
  105. @@ -451,3 +452,4 @@
  106. (assert_return (invoke $Ms "get memory[0]") (i32.const 104)) ;; 'h'
  107. (assert_return (invoke $Ms "get table[0]") (i32.const 0xdead))
  108. +;)
  109. \ No newline at end of file