diff options
Diffstat (limited to 'test/example/c-api-kitchen-sink.c')
-rw-r--r-- | test/example/c-api-kitchen-sink.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/test/example/c-api-kitchen-sink.c b/test/example/c-api-kitchen-sink.c index 68d7e82ea..f438015b8 100644 --- a/test/example/c-api-kitchen-sink.c +++ b/test/example/c-api-kitchen-sink.c @@ -272,10 +272,8 @@ void test_core() { temp15 = makeInt32(module, 110), temp16 = makeInt64(module, 111); // Events - BinaryenType eparams[1] = {BinaryenTypeInt32()}; - BinaryenFunctionTypeRef vi = - BinaryenAddFunctionType(module, "vi", BinaryenTypeNone(), eparams, 1); - BinaryenAddEvent(module, "a-event", 0, vi); + BinaryenAddEvent( + module, "a-event", 0, BinaryenTypeInt32(), BinaryenTypeNone()); // Exception handling |