diff options
author | Alon Zakai <alonzakai@gmail.com> | 2017-05-21 08:07:56 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-21 08:07:56 -0700 |
commit | 21cb9e8fa9f12680df0a25d969c935c79b388d3e (patch) | |
tree | e26a0fd5865003a7a18ab8735ff6411fc2bf465f /test/example/c-api-kitchen-sink.c | |
parent | 9e0958982d2044949746c2d8290dbc0368546ebf (diff) | |
parent | 026accbe55dde6b9d769292195c3ad1ac0a3b8b0 (diff) | |
download | binaryen-21cb9e8fa9f12680df0a25d969c935c79b388d3e.tar.gz binaryen-21cb9e8fa9f12680df0a25d969c935c79b388d3e.tar.bz2 binaryen-21cb9e8fa9f12680df0a25d969c935c79b388d3e.zip |
Merge pull request #1019 from WebAssembly/fuzz
More fuzz bug fixes
Diffstat (limited to 'test/example/c-api-kitchen-sink.c')
-rw-r--r-- | test/example/c-api-kitchen-sink.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/example/c-api-kitchen-sink.c b/test/example/c-api-kitchen-sink.c index 5935e9993..b2218993c 100644 --- a/test/example/c-api-kitchen-sink.c +++ b/test/example/c-api-kitchen-sink.c @@ -427,6 +427,9 @@ void test_relooper() { RelooperRef relooper = RelooperCreate(); BinaryenExpressionRef temp = makeInt32(module, -99); RelooperBlockRef block0 = RelooperAddBlockWithSwitch(relooper, makeCallCheck(module, 0), temp); + // TODO: this example is not very good, the blocks should end in a |return| as otherwise they + // fall through to each other. A relooper block should end in something that stops control + // flow, if it doesn't have branches going out RelooperBlockRef block1 = RelooperAddBlock(relooper, makeCallCheck(module, 1)); RelooperBlockRef block2 = RelooperAddBlock(relooper, makeCallCheck(module, 2)); RelooperBlockRef block3 = RelooperAddBlock(relooper, makeCallCheck(module, 3)); |