MOS Source Code
Loading...
Searching...
No Matches
test_strip_package_dependencies.c
Go to the documentation of this file.
1/*
2 * Tests if expected names are generated when M_STRIP_PACKAGE is used.
3 */
4
5#include <stdio.h>
6#include "unittests.h"
7#include "strip_package_b.pb.h"
8
9int main()
10{
11 MessageA msgA1 = package_a_MessageA_init_default;
12 package_a_MessageA msgA2 = MessageA_init_default;
13
14 MessageB msgB1 = package_b_MessageB_init_zero;
15 package_b_MessageB msgB2 = MessageB_init_zero;
16
17 package_a_EnumA e1 = EnumA_VALUE_A_0;
18 EnumA e2 = EnumA_VALUE_A_1;
19 e2 = _package_a_EnumA_MIN;
20 e2 = _EnumA_MIN;
21 e2 = _package_a_EnumA_MAX;
22 e2 = _EnumA_MAX;
23 e2 = _package_a_EnumA_ARRAYSIZE;
24 e2 = _EnumA_ARRAYSIZE;
25
26 return msgA1.enum_a_field + msgA2.enum_a_field + msgB1.nested_enum + msgB2.nested_enum + e1 + e2; /* marks variables as used */
27}