diff options
author | Alon Zakai <alonzakai@gmail.com> | 2015-12-27 20:31:23 -0500 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2015-12-27 20:31:23 -0500 |
commit | 600d2c32cc347d77826de8e0c996949536f5c209 (patch) | |
tree | 5cfa9f76ebf33248181b7dc2ab244c4bd8d9a064 | |
parent | 49bc6a370abf20ee2b2749ee3ca73373bfeceeb7 (diff) | |
download | binaryen-600d2c32cc347d77826de8e0c996949536f5c209.tar.gz binaryen-600d2c32cc347d77826de8e0c996949536f5c209.tar.bz2 binaryen-600d2c32cc347d77826de8e0c996949536f5c209.zip |
add test with negative relocation
-rw-r--r-- | test/dot_s/basics.s | 5 | ||||
-rw-r--r-- | test/dot_s/basics.wast | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/test/dot_s/basics.s b/test/dot_s/basics.s index c4f6776d6..9e4876abf 100644 --- a/test/dot_s/basics.s +++ b/test/dot_s/basics.s @@ -66,3 +66,8 @@ a2: .ascii "cq" .size a2, 3 # surprisingly large size + .type a3,@object # @a3 + .globl a3 +a3: + .int32 a2-10 + diff --git a/test/dot_s/basics.wast b/test/dot_s/basics.wast index 22691644a..eb7ec8e45 100644 --- a/test/dot_s/basics.wast +++ b/test/dot_s/basics.wast @@ -1,5 +1,5 @@ (module - (memory 35 4294967295 (segment 16 "hello, world!\n\00") (segment 32 "vcq")) + (memory 52 4294967295 (segment 16 "hello, world!\n\00") (segment 32 "vcq") (segment 48 "\16\00\00\00")) (import $puts "env" "puts") (export "main" $main) (table $main) @@ -94,4 +94,4 @@ ) ) ) -;; METADATA: { "asmConsts": {},"staticBump": 34 } +;; METADATA: { "asmConsts": {},"staticBump": 51 } |