diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/passes/metrics.txt | 12 | ||||
-rw-r--r-- | test/passes/metrics.wast | 6 |
2 files changed, 18 insertions, 0 deletions
diff --git a/test/passes/metrics.txt b/test/passes/metrics.txt index 041c79872..aee952bf5 100644 --- a/test/passes/metrics.txt +++ b/test/passes/metrics.txt @@ -1,5 +1,7 @@ Counts [funcs] : 1 + [memory-data] : 9 + [table-data] : 3 [total] : 24 [vars] : 1 binary : 1 @@ -9,7 +11,10 @@ Counts if : 4 (module (type $0 (func (param i32))) + (table 256 256 anyfunc) + (elem (i32.const 0) $ifs $ifs $ifs) (memory $0 256 256) + (data (i32.const 0) "\ff\ef\0f\1f 0@P\99") (func $ifs (type $0) (param $x i32) (local $y f32) (block $block0 @@ -50,3 +55,10 @@ Counts ) ) ) +Counts + [funcs] : 0 + [total] : 0 + [vars] : 0 +(module + (memory $0 0) +) diff --git a/test/passes/metrics.wast b/test/passes/metrics.wast index 76622bbf1..242b254da 100644 --- a/test/passes/metrics.wast +++ b/test/passes/metrics.wast @@ -1,5 +1,8 @@ (module (memory 256 256) + (table 256 256 anyfunc) + (elem (i32.const 0) $ifs $ifs $ifs) + (data (i32.const 0) "\ff\ef\0f\1f\20\30\40\50\99") (type $0 (func (param i32))) (func $ifs (type $0) (param $x i32) (local $y f32) @@ -41,3 +44,6 @@ ) ) ) +;; module with no table or memory or anything for that matter +(module +) |