summaryrefslogtreecommitdiff
path: root/test/export-import.wast.fromBinary.noDebugInfo
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2018-02-22 11:10:12 -0800
committerGitHub <noreply@github.com>2018-02-22 11:10:12 -0800
commita40f14508fb769358737c3f8c9b94e6c42f79c61 (patch)
treef57dca752269f26168c98a2f224e57037b1faebf /test/export-import.wast.fromBinary.noDebugInfo
parent30c1b0c58ee60a730ddfd862fbed7dd5e4d7cf93 (diff)
downloadbinaryen-a40f14508fb769358737c3f8c9b94e6c42f79c61.tar.gz
binaryen-a40f14508fb769358737c3f8c9b94e6c42f79c61.tar.bz2
binaryen-a40f14508fb769358737c3f8c9b94e6c42f79c61.zip
ensure unique import names for each type, by giving them a prefix, avoiding collisions between say a global import and a function with a name from the name section that happens to match it (#1424)
Diffstat (limited to 'test/export-import.wast.fromBinary.noDebugInfo')
-rw-r--r--test/export-import.wast.fromBinary.noDebugInfo8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/export-import.wast.fromBinary.noDebugInfo b/test/export-import.wast.fromBinary.noDebugInfo
index b9c712134..3064e637d 100644
--- a/test/export-import.wast.fromBinary.noDebugInfo
+++ b/test/export-import.wast.fromBinary.noDebugInfo
@@ -1,9 +1,9 @@
(module
(type $0 (func))
(type $1 (func))
- (import "env" "test2" (global $import$1 i32))
- (import "env" "test1" (func $import$0))
- (export "test1" (func $import$0))
- (export "test2" (global $import$1))
+ (import "env" "test2" (global $gimport$1 i32))
+ (import "env" "test1" (func $fimport$0))
+ (export "test1" (func $fimport$0))
+ (export "test2" (global $gimport$1))
)