summaryrefslogtreecommitdiff
path: root/test/parse/module/global.txt
diff options
context:
space:
mode:
authorBen Smith <binji@chromium.org>2016-08-23 12:54:19 -0700
committerBen Smith <binji@chromium.org>2016-09-29 11:37:27 -0700
commit46b98638b8d0d4fc20ea0c3f53fda2abb43da971 (patch)
tree856918a8c43ea1ae88f00e04699eb7cd66462346 /test/parse/module/global.txt
parent3c69386308638f004a659b0f65a984a9e6fc9074 (diff)
downloadwabt-46b98638b8d0d4fc20ea0c3f53fda2abb43da971.tar.gz
wabt-46b98638b8d0d4fc20ea0c3f53fda2abb43da971.tar.bz2
wabt-46b98638b8d0d4fc20ea0c3f53fda2abb43da971.zip
implement globals
Diffstat (limited to 'test/parse/module/global.txt')
-rw-r--r--test/parse/module/global.txt10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/parse/module/global.txt b/test/parse/module/global.txt
new file mode 100644
index 00000000..b473f0a6
--- /dev/null
+++ b/test/parse/module/global.txt
@@ -0,0 +1,10 @@
+(module
+ (global i32 (i32.const 1))
+ (global i64 (i64.const 2))
+ (global f32 (f32.const 3))
+ (global f64 (f64.const 4))
+
+ (global i32 (get_global 0))
+ (global i64 (get_global 1))
+ (global f32 (get_global 2))
+ (global f64 (get_global 3)))