Fix for x86_64 build fail
[platform/upstream/connectedhomeip.git] / third_party / nlfaultinjection / repo / third_party / cstyle / repo / tests / missing-space-after-else-if.cpp
1 extern void foo(void);
2 extern void bar(void);
3
4 void test_1(int aArgument)
5 {
6     if(aArgument % 2 != 0) foo(); else if(aArgument == 0) bar();
7 }
8
9 void test_2(int aArgument)
10 {
11     if(aArgument % 2 != 0) { foo(); } else if(aArgument == 0) { bar(); }
12 }
13
14 void test_3(int aArgument)
15 {
16     if(aArgument % 2 != 0) {
17         foo();
18     } else if(aArgument == 0) {
19         bar();
20     }
21 }
22
23 void test_4(int aArgument)
24 {
25     if(aArgument % 2 != 0)
26     {
27         foo();
28     }
29     else if(aArgument == 0)
30     {
31         bar();
32     }
33 }