aboutsummaryrefslogtreecommitdiff
path: root/tests/regression/issue_259/callback_pointer.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/regression/issue_259/callback_pointer.c')
-rw-r--r--tests/regression/issue_259/callback_pointer.c30
1 files changed, 0 insertions, 30 deletions
diff --git a/tests/regression/issue_259/callback_pointer.c b/tests/regression/issue_259/callback_pointer.c
deleted file mode 100644
index f150fbe..0000000
--- a/tests/regression/issue_259/callback_pointer.c
+++ /dev/null
@@ -1,30 +0,0 @@
-#include "callback_pointer.pb.h"
-#include <unittests.h>
-#include <pb_decode.h>
-
-int main()
-{
- int status = 0;
- const uint8_t msgdata[] = {0x0A, 0x02, 0x08, 0x7F};
-
- MainMessage msg = MainMessage_init_zero;
-
- {
- pb_istream_t stream = pb_istream_from_buffer(msgdata, sizeof(msgdata));
- COMMENT("Running first decode");
- TEST(pb_decode(&stream, MainMessage_fields, &msg));
- pb_release(MainMessage_fields, &msg);
- }
-
- {
- pb_istream_t stream = pb_istream_from_buffer(msgdata, sizeof(msgdata));
- COMMENT("Running second decode");
- TEST(pb_decode(&stream, MainMessage_fields, &msg));
- pb_release(MainMessage_fields, &msg);
- }
-
- TEST(get_alloc_count() == 0);
-
- return status;
-}
-