From 6e909d2ccb1e475f32321299a78ab38a8d6aabcd Mon Sep 17 00:00:00 2001 From: Sven Gestegard Robertz <sven.robertz@cs.lth.se> Date: Fri, 21 Mar 2014 16:08:09 +0100 Subject: [PATCH] started adding void test --- examples/simple/example_encoder.c | 4 ++++ examples/simple/simple.lc | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/examples/simple/example_encoder.c b/examples/simple/example_encoder.c index 1746942..ea77e11 100644 --- a/examples/simple/example_encoder.c +++ b/examples/simple/example_encoder.c @@ -20,9 +20,13 @@ int main(int argc, char *argv[]) { labcomm_default_error_handler, labcomm_default_memory, labcomm_default_scheduler); + labcomm_encoder_register_simple_doavoid(encoder); labcomm_encoder_register_simple_theTwoInts(encoder); labcomm_encoder_register_simple_anotherTwoInts(encoder); labcomm_encoder_register_simple_IntString(encoder); + + labcomm_encode_simple_doavoid(encoder); + simple_IntString is; is.x = 24; is.s = "Hello, LabComm!"; diff --git a/examples/simple/simple.lc b/examples/simple/simple.lc index 5183957..b0fe24a 100644 --- a/examples/simple/simple.lc +++ b/examples/simple/simple.lc @@ -25,3 +25,7 @@ sample struct { int a[2]; int b[2,3]; } TwoFixedArrays; + +// typedef void avoid; + +sample void doavoid; -- GitLab