%description: Check simple field types in structs %file: test.msg namespace @TESTNAME@; struct MyStruct { bool b; char c; short s; unsigned short us; int i; unsigned int ui; long l; unsigned long ul; double d; }; %includes: #include "test_m.h" %activity: #define PRINT(X) EV << #X << ":" << X << endl MyStruct x; // scalars x.b = true; PRINT(x.b); x.b = false; PRINT(x.b); x.c = 'a'; PRINT(x.c); x.s = 10; PRINT(x.s); x.s = -10; PRINT(x.s); x.us = 10; PRINT(x.us); x.us = -10; PRINT((x.us>0)); x.i = 10; PRINT(x.i); x.i = -10; PRINT(x.i); x.ui = 10; PRINT(x.ui); x.ui = -10; PRINT((x.ui>0)); x.l = 10; PRINT(x.l); x.l = -10; PRINT(x.l); x.ul = 10; PRINT(x.ul); x.ul = -10; PRINT((x.ul>0)); x.d = 3.1415; PRINT(x.d); %contains: stdout x.b:1 x.b:0 x.c:a x.s:10 x.s:-10 x.us:10 (x.us>0):1 x.i:10 x.i:-10 x.ui:10 (x.ui>0):1 x.l:10 x.l:-10 x.ul:10 (x.ul>0):1 x.d:3.1415