summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.76.0/tests/input/cpp/bug_1068.cpp
blob: 74fbc8e7d4c8fd30ce287fdea75e0439114ea4fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
// No extra line added
void test1()
{
	if ( i == 10 )
		i++;
}

// No extra line added
void test2()
{
	if ( i == 10 )
	{
		i++;
	}
}

// No extra line added
void test3()
{
	if ( i == 10 )
	{
		if ( j == 10 )
		{
			i++;
		}
	}
}

// No extra line added
void test4()
{
	if ( i == 10 )
	{
		if ( j == 10 )
			i++;
	}
}

// Extra line added (after Uncrustify)
void test5()
{
	if ( i == 10 )
		if ( j == 10 )
		{
			i++;
		}
}

// Extra line added (after Uncrustify)
void test6()
{
	if ( i == 10 )
		if ( j == 10 )
			i++;
}