summaryrefslogtreecommitdiff
path: root/test/roundtrip/custom-sections.txt
diff options
context:
space:
mode:
authorDiego Frias <styx5242@gmail.com>2023-09-15 13:49:31 -0700
committerGitHub <noreply@github.com>2023-09-15 13:49:31 -0700
commitb22be5a08611c53e8a893bbab049e6f18da6c55a (patch)
tree9b998aee94bada6db5b5715afe99d806167c8d52 /test/roundtrip/custom-sections.txt
parent0869da3eb84616b0dabefc34ea0d5326c1f43888 (diff)
downloadwabt-b22be5a08611c53e8a893bbab049e6f18da6c55a.tar.gz
wabt-b22be5a08611c53e8a893bbab049e6f18da6c55a.tar.bz2
wabt-b22be5a08611c53e8a893bbab049e6f18da6c55a.zip
Implement custom section reading/writing (#2284)
Diffstat (limited to 'test/roundtrip/custom-sections.txt')
-rw-r--r--test/roundtrip/custom-sections.txt13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/roundtrip/custom-sections.txt b/test/roundtrip/custom-sections.txt
new file mode 100644
index 00000000..b41b1acc
--- /dev/null
+++ b/test/roundtrip/custom-sections.txt
@@ -0,0 +1,13 @@
+;;; TOOL: run-roundtrip
+;;; ARGS: --enable-annotations --stdout
+(module
+ (@custom "stuff" (before import) "hello")
+ (import "a" "b" (func (result i32)))
+ (@custom "section" "nice"))
+(;; STDOUT ;;;
+(module
+ (type (;0;) (func (result i32)))
+ (import "a" "b" (func (;0;) (type 0)))
+ (@custom "stuff" "hello")
+ (@custom "section" "nice"))
+;;; STDOUT ;;)