summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2021-02-12 23:12:51 +0000
committerGitHub <noreply@github.com>2021-02-12 15:12:51 -0800
commitdf9389509c703ec0583d16a70306dbdd07426c56 (patch)
tree302f2994160b7ce6cab7e6135be0b1f5575e72ae /test
parent60eb7c8c4c76edb89e2d402769c6a3b8450ff7e8 (diff)
downloadbinaryen-df9389509c703ec0583d16a70306dbdd07426c56.tar.gz
binaryen-df9389509c703ec0583d16a70306dbdd07426c56.tar.bz2
binaryen-df9389509c703ec0583d16a70306dbdd07426c56.zip
Print the features section in a comment (#3563)
Diffstat (limited to 'test')
-rw-r--r--test/example/c-api-multiple-tables.c2
-rw-r--r--test/passes/dwarf_with_exceptions.bin.txt2
2 files changed, 3 insertions, 1 deletions
diff --git a/test/example/c-api-multiple-tables.c b/test/example/c-api-multiple-tables.c
index 4ba612658..9d0c9ebfd 100644
--- a/test/example/c-api-multiple-tables.c
+++ b/test/example/c-api-multiple-tables.c
@@ -1,6 +1,6 @@
#include <assert.h>
-#include <string.h>
#include <binaryen-c.h>
+#include <string.h>
// "hello world" type example: create a function that adds two i32s and returns
// the result
diff --git a/test/passes/dwarf_with_exceptions.bin.txt b/test/passes/dwarf_with_exceptions.bin.txt
index b11fa6437..5dd594461 100644
--- a/test/passes/dwarf_with_exceptions.bin.txt
+++ b/test/passes/dwarf_with_exceptions.bin.txt
@@ -120,6 +120,7 @@
;; custom section ".debug_line", size 92
;; custom section ".debug_str", size 194
;; custom section "producers", size 137
+ ;; features section: exception-handling, reference-types
)
DWARF debug info
================
@@ -541,4 +542,5 @@ file_names[ 1]:
;; custom section ".debug_line", size 145
;; custom section ".debug_str", size 194
;; custom section "producers", size 137
+ ;; features section: exception-handling, reference-types
)