Debian Codegraph @

tests/cli/producers.wast

raw
1 ;; RUN: wast --assert default --snapshot tests/snapshots %
2
3 (module
4 (@producers)
5 )
6
7 (module
8 (@producers
9 (language "foo" "bar")
10 )
11 )
12
13 (module
14 (@producers
15 (language "foo" "bar")
16 (language "foo" "bar")
17 (sdk "foo" "bar")
18 (processed-by "foo" "bar")
19 )
20 )
21
22 (module
23 (@producers)
24 (@producers (sdk "foo" "bar"))
25 )
26
27 (assert_malformed
28 (module quote "(@producers (foo))")
29 "unexpected token")
30
31
32 ;; invalid is ok
33 (module binary
34 "\00asm" "\01\00\00\00"
35
36 "\00" ;; custom
37 "\0b" ;; length
38 "\09producers" ;; custom section name
39 "\01" ;; 1 entry
40 )
41
42 ;; weird name
43 (module binary
44 "\00asm" "\01\00\00\00"
45
46 "\00" ;; custom
47 "\14" ;; length
48 "\09producers" ;; custom section name
49 "\01" ;; 1 entry
50 "\03a\na" ;; name = "a\na"
51 "\01" ;; 1 field
52 "\01a\01a" ;; value = "a" version = "a"
53 )