diff options
Diffstat (limited to 'test/lit/validation/bad-non-nullable-locals.wast')
-rw-r--r-- | test/lit/validation/bad-non-nullable-locals.wast | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/test/lit/validation/bad-non-nullable-locals.wast b/test/lit/validation/bad-non-nullable-locals.wast index e34970fde..558759aeb 100644 --- a/test/lit/validation/bad-non-nullable-locals.wast +++ b/test/lit/validation/bad-non-nullable-locals.wast @@ -49,10 +49,14 @@ (if (i32.const 1) ;; Superficially the order is right, but not really. - (local.set $x - (ref.func $helper) + (then + (local.set $x + (ref.func $helper) + ) + ) + (else + (local.get $x) ) - (local.get $x) ) ) |