diff options
Diffstat (limited to 'test/binaryen.js/custom-section.js.txt')
-rw-r--r-- | test/binaryen.js/custom-section.js.txt | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/test/binaryen.js/custom-section.js.txt b/test/binaryen.js/custom-section.js.txt index 7c68582f1..9f5aeb001 100644 --- a/test/binaryen.js/custom-section.js.txt +++ b/test/binaryen.js/custom-section.js.txt @@ -1,26 +1,3 @@ -// beginning a Binaryen API trace -#include <math.h> -#include <map> -#include "binaryen-c.h" -int main() { - std::map<size_t, BinaryenType> types; - std::map<size_t, BinaryenExpressionRef> expressions; - std::map<size_t, BinaryenFunctionRef> functions; - std::map<size_t, BinaryenGlobalRef> globals; - std::map<size_t, BinaryenEventRef> events; - std::map<size_t, BinaryenExportRef> exports; - std::map<size_t, RelooperBlockRef> relooperBlocks; - std::map<size_t, ExpressionRunnerRef> expressionRunners; - BinaryenModuleRef the_module = NULL; - RelooperRef the_relooper = NULL; - the_module = BinaryenModuleCreate(); - expressions[size_t(NULL)] = BinaryenExpressionRef(NULL); - { - const char contents[] = { 119, 111, 114, 108, 100 }; - BinaryenAddCustomSection(the_module, "hello", contents, 5); - } - BinaryenModuleValidate(the_module); - BinaryenModulePrint(the_module); (module ;; custom section "hello", size 5, contents: "world" ) |