File tree 1 file changed +6
-2
lines changed 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 179
179
;; Test that the data segment index is properly encoded as an unsigned (not
180
180
;; signed) LEB.
181
181
(module
182
- (memory 1 )
183
182
;; 65 data segments. 64 is the smallest positive number that is encoded
184
183
;; differently as a signed LEB.
185
184
(data " " ) (data " " ) (data " " ) (data " " ) (data " " ) (data " " ) (data " " ) (data " " )
193
192
(data " " )
194
193
(func (data.drop 64 )))
195
194
195
+ ;; No memory is required for the data.drop instruction.
196
+ (module (data " goodbye" ) (func (data.drop 0 )))
197
+
196
198
;; table.init
197
199
(module
198
200
(table 3 funcref )
270
272
;; Test that the elem segment index is properly encoded as an unsigned (not
271
273
;; signed) LEB.
272
274
(module
273
- (table 1 funcref )
274
275
;; 65 elem segments. 64 is the smallest positive number that is encoded
275
276
;; differently as a signed LEB.
276
277
(elem funcref ) (elem funcref ) (elem funcref ) (elem funcref )
292
293
(elem funcref )
293
294
(func (elem.drop 64 )))
294
295
296
+ ;; No table is required for the elem.drop instruction.
297
+ (module (elem funcref (ref.func 0 )) (func (elem.drop 0 )))
298
+
295
299
;; table.copy
296
300
(module
297
301
(table 10 funcref )
You can’t perform that action at this time.
0 commit comments