Skip to content
This repository was archived by the owner on Apr 25, 2025. It is now read-only.

Commit a1c04b5

Browse files
authored
[test] Add required funcref to passive elems (#68)
1 parent 72ada2b commit a1c04b5

File tree

4 files changed

+139
-139
lines changed

4 files changed

+139
-139
lines changed

test/core/table_copy.wast

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@
2121
(import "a" "ef4" (func (result i32))) ;; index 4
2222
(table 30 30 funcref)
2323
(elem (i32.const 2) 3 1 4 1)
24-
(elem passive 2 7 1 8)
24+
(elem passive funcref 2 7 1 8)
2525
(elem (i32.const 12) 7 5 2 3 6)
26-
(elem passive 5 9 2 7 6)
26+
(elem passive funcref 5 9 2 7 6)
2727
(func (result i32) (i32.const 5)) ;; index 5
2828
(func (result i32) (i32.const 6))
2929
(func (result i32) (i32.const 7))
@@ -76,9 +76,9 @@
7676
(import "a" "ef4" (func (result i32))) ;; index 4
7777
(table 30 30 funcref)
7878
(elem (i32.const 2) 3 1 4 1)
79-
(elem passive 2 7 1 8)
79+
(elem passive funcref 2 7 1 8)
8080
(elem (i32.const 12) 7 5 2 3 6)
81-
(elem passive 5 9 2 7 6)
81+
(elem passive funcref 5 9 2 7 6)
8282
(func (result i32) (i32.const 5)) ;; index 5
8383
(func (result i32) (i32.const 6))
8484
(func (result i32) (i32.const 7))
@@ -131,9 +131,9 @@
131131
(import "a" "ef4" (func (result i32))) ;; index 4
132132
(table 30 30 funcref)
133133
(elem (i32.const 2) 3 1 4 1)
134-
(elem passive 2 7 1 8)
134+
(elem passive funcref 2 7 1 8)
135135
(elem (i32.const 12) 7 5 2 3 6)
136-
(elem passive 5 9 2 7 6)
136+
(elem passive funcref 5 9 2 7 6)
137137
(func (result i32) (i32.const 5)) ;; index 5
138138
(func (result i32) (i32.const 6))
139139
(func (result i32) (i32.const 7))
@@ -186,9 +186,9 @@
186186
(import "a" "ef4" (func (result i32))) ;; index 4
187187
(table 30 30 funcref)
188188
(elem (i32.const 2) 3 1 4 1)
189-
(elem passive 2 7 1 8)
189+
(elem passive funcref 2 7 1 8)
190190
(elem (i32.const 12) 7 5 2 3 6)
191-
(elem passive 5 9 2 7 6)
191+
(elem passive funcref 5 9 2 7 6)
192192
(func (result i32) (i32.const 5)) ;; index 5
193193
(func (result i32) (i32.const 6))
194194
(func (result i32) (i32.const 7))
@@ -241,9 +241,9 @@
241241
(import "a" "ef4" (func (result i32))) ;; index 4
242242
(table 30 30 funcref)
243243
(elem (i32.const 2) 3 1 4 1)
244-
(elem passive 2 7 1 8)
244+
(elem passive funcref 2 7 1 8)
245245
(elem (i32.const 12) 7 5 2 3 6)
246-
(elem passive 5 9 2 7 6)
246+
(elem passive funcref 5 9 2 7 6)
247247
(func (result i32) (i32.const 5)) ;; index 5
248248
(func (result i32) (i32.const 6))
249249
(func (result i32) (i32.const 7))
@@ -296,9 +296,9 @@
296296
(import "a" "ef4" (func (result i32))) ;; index 4
297297
(table 30 30 funcref)
298298
(elem (i32.const 2) 3 1 4 1)
299-
(elem passive 2 7 1 8)
299+
(elem passive funcref 2 7 1 8)
300300
(elem (i32.const 12) 7 5 2 3 6)
301-
(elem passive 5 9 2 7 6)
301+
(elem passive funcref 5 9 2 7 6)
302302
(func (result i32) (i32.const 5)) ;; index 5
303303
(func (result i32) (i32.const 6))
304304
(func (result i32) (i32.const 7))
@@ -351,9 +351,9 @@
351351
(import "a" "ef4" (func (result i32))) ;; index 4
352352
(table 30 30 funcref)
353353
(elem (i32.const 2) 3 1 4 1)
354-
(elem passive 2 7 1 8)
354+
(elem passive funcref 2 7 1 8)
355355
(elem (i32.const 12) 7 5 2 3 6)
356-
(elem passive 5 9 2 7 6)
356+
(elem passive funcref 5 9 2 7 6)
357357
(func (result i32) (i32.const 5)) ;; index 5
358358
(func (result i32) (i32.const 6))
359359
(func (result i32) (i32.const 7))
@@ -406,9 +406,9 @@
406406
(import "a" "ef4" (func (result i32))) ;; index 4
407407
(table 30 30 funcref)
408408
(elem (i32.const 2) 3 1 4 1)
409-
(elem passive 2 7 1 8)
409+
(elem passive funcref 2 7 1 8)
410410
(elem (i32.const 12) 7 5 2 3 6)
411-
(elem passive 5 9 2 7 6)
411+
(elem passive funcref 5 9 2 7 6)
412412
(func (result i32) (i32.const 5)) ;; index 5
413413
(func (result i32) (i32.const 6))
414414
(func (result i32) (i32.const 7))
@@ -455,9 +455,9 @@
455455
(module
456456
(table 30 30 funcref)
457457
(elem (i32.const 2) 3 1 4 1)
458-
(elem passive 2 7 1 8)
458+
(elem passive funcref 2 7 1 8)
459459
(elem (i32.const 12) 7 5 2 3 6)
460-
(elem passive 5 9 2 7 6)
460+
(elem passive funcref 5 9 2 7 6)
461461
(func (result i32) (i32.const 0))
462462
(func (result i32) (i32.const 1))
463463
(func (result i32) (i32.const 2))
@@ -477,9 +477,9 @@
477477
(module
478478
(table 30 30 funcref)
479479
(elem (i32.const 2) 3 1 4 1)
480-
(elem passive 2 7 1 8)
480+
(elem passive funcref 2 7 1 8)
481481
(elem (i32.const 12) 7 5 2 3 6)
482-
(elem passive 5 9 2 7 6)
482+
(elem passive funcref 5 9 2 7 6)
483483
(func (result i32) (i32.const 0))
484484
(func (result i32) (i32.const 1))
485485
(func (result i32) (i32.const 2))
@@ -499,9 +499,9 @@
499499
(module
500500
(table 30 30 funcref)
501501
(elem (i32.const 2) 3 1 4 1)
502-
(elem passive 2 7 1 8)
502+
(elem passive funcref 2 7 1 8)
503503
(elem (i32.const 12) 7 5 2 3 6)
504-
(elem passive 5 9 2 7 6)
504+
(elem passive funcref 5 9 2 7 6)
505505
(func (result i32) (i32.const 0))
506506
(func (result i32) (i32.const 1))
507507
(func (result i32) (i32.const 2))
@@ -521,9 +521,9 @@
521521
(module
522522
(table 30 30 funcref)
523523
(elem (i32.const 2) 3 1 4 1)
524-
(elem passive 2 7 1 8)
524+
(elem passive funcref 2 7 1 8)
525525
(elem (i32.const 12) 7 5 2 3 6)
526-
(elem passive 5 9 2 7 6)
526+
(elem passive funcref 5 9 2 7 6)
527527
(func (result i32) (i32.const 0))
528528
(func (result i32) (i32.const 1))
529529
(func (result i32) (i32.const 2))
@@ -543,9 +543,9 @@
543543
(module
544544
(table 30 30 funcref)
545545
(elem (i32.const 2) 3 1 4 1)
546-
(elem passive 2 7 1 8)
546+
(elem passive funcref 2 7 1 8)
547547
(elem (i32.const 12) 7 5 2 3 6)
548-
(elem passive 5 9 2 7 6)
548+
(elem passive funcref 5 9 2 7 6)
549549
(func (result i32) (i32.const 0))
550550
(func (result i32) (i32.const 1))
551551
(func (result i32) (i32.const 2))
@@ -565,9 +565,9 @@
565565
(module
566566
(table 30 30 funcref)
567567
(elem (i32.const 2) 3 1 4 1)
568-
(elem passive 2 7 1 8)
568+
(elem passive funcref 2 7 1 8)
569569
(elem (i32.const 12) 7 5 2 3 6)
570-
(elem passive 5 9 2 7 6)
570+
(elem passive funcref 5 9 2 7 6)
571571
(func (result i32) (i32.const 0))
572572
(func (result i32) (i32.const 1))
573573
(func (result i32) (i32.const 2))
@@ -587,9 +587,9 @@
587587
(module
588588
(table 30 30 funcref)
589589
(elem (i32.const 2) 3 1 4 1)
590-
(elem passive 2 7 1 8)
590+
(elem passive funcref 2 7 1 8)
591591
(elem (i32.const 12) 7 5 2 3 6)
592-
(elem passive 5 9 2 7 6)
592+
(elem passive funcref 5 9 2 7 6)
593593
(func (result i32) (i32.const 0))
594594
(func (result i32) (i32.const 1))
595595
(func (result i32) (i32.const 2))

0 commit comments

Comments
 (0)