summaryrefslogtreecommitdiff
path: root/test/parse
diff options
context:
space:
mode:
Diffstat (limited to 'test/parse')
-rw-r--r--test/parse/module/struct-and-func.txt7
-rw-r--r--test/parse/module/struct-field-name.txt5
-rw-r--r--test/parse/module/struct-mut-field.txt3
-rw-r--r--test/parse/module/struct.txt2
4 files changed, 16 insertions, 1 deletions
diff --git a/test/parse/module/struct-and-func.txt b/test/parse/module/struct-and-func.txt
new file mode 100644
index 00000000..93a524e1
--- /dev/null
+++ b/test/parse/module/struct-and-func.txt
@@ -0,0 +1,7 @@
+;;; TOOL: wat2wasm
+;;; ARGS: --enable-gc
+(type (struct i32 i32))
+(type (func (result i32)))
+
+(func (result i32)
+ i32.const 0)
diff --git a/test/parse/module/struct-field-name.txt b/test/parse/module/struct-field-name.txt
new file mode 100644
index 00000000..ea42514e
--- /dev/null
+++ b/test/parse/module/struct-field-name.txt
@@ -0,0 +1,5 @@
+;;; TOOL: wat2wasm
+;;; ARGS: --enable-gc
+(type
+ (struct (field $a f32)
+ (field $b (mut f64))))
diff --git a/test/parse/module/struct-mut-field.txt b/test/parse/module/struct-mut-field.txt
new file mode 100644
index 00000000..8189179a
--- /dev/null
+++ b/test/parse/module/struct-mut-field.txt
@@ -0,0 +1,3 @@
+;;; TOOL: wat2wasm
+;;; ARGS: --enable-gc
+(type (struct (mut f32) (field (mut f64))))
diff --git a/test/parse/module/struct.txt b/test/parse/module/struct.txt
index e199a0ce..825e9d67 100644
--- a/test/parse/module/struct.txt
+++ b/test/parse/module/struct.txt
@@ -1,3 +1,3 @@
;;; TOOL: wat2wasm
;;; ARGS: --enable-gc
-(type (struct))
+(type (struct i32 (field i64)))