MOS Source Code
Loading...
Searching...
No Matches
test_strip_package.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.pb.h"
8
9int main()
10{
11 TopLevelMessage msg = {0};
12 TopLevelMessage_NestedMessage_NestedLevel2_NestedLevel3 nmsg = msg.nested.nested.nested;
13
14 msg.short_if_none = TopLevelMessage_ShortIfNone_IfNone_A;
15 msg.short_if_strip_package = TopLevelMessage_IfPackage_A;
16 msg.short_if_flatten = TopLevelMessage_ShortIfFlatten_IfFlatten_A;
17
18 return nmsg.nothing; /* marks nmsg as used */
19}
int main()