From f47b672db24766910f476ff601c6d3df5175089b Mon Sep 17 00:00:00 2001 From: Sven SAULEAU Date: Mon, 28 May 2018 10:17:50 +0200 Subject: [PATCH] feat: add failing test --- .../validation/test/fixtures/global-initilizer/module.wast | 4 ++++ .../validation/test/fixtures/global-initilizer/output.txt | 1 + 2 files changed, 5 insertions(+) create mode 100644 packages/validation/test/fixtures/global-initilizer/module.wast create mode 100644 packages/validation/test/fixtures/global-initilizer/output.txt 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