diff --git a/packages/validation/test/fixtures/global-initilizer/module.wast b/packages/validation/test/fixtures/global-initilizer/module.wast new file mode 100644 index 000000000..c36cbbd94 --- /dev/null +++ b/packages/validation/test/fixtures/global-initilizer/module.wast @@ -0,0 +1,4 @@ +(module + (global (mut i32) (i32.const 1)) + (global i32 (get_global 0)) +) diff --git a/packages/validation/test/fixtures/global-initilizer/output.txt b/packages/validation/test/fixtures/global-initilizer/output.txt new file mode 100644 index 000000000..dfb1841f6 --- /dev/null +++ b/packages/validation/test/fixtures/global-initilizer/output.txt @@ -0,0 +1 @@ +initializer expression can only reference an imported global