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