summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/expected/cpp/33086-bug_i_568.cpp
blob: 2e1a00d7080570e78066c424e19b3589f8eb7dcb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
enum { // Keep this line as it is. It's a regression test for checking pc->prev->prev-> on CT_BRACE_OPEN.
	kEnumValue =5,
};

struct foo
{
	int bar : kEnumValue;
	int pad : 3;
};

class cls
{
	int bar : kEnumValue;
	int pad : 3;

	void func()
	{
		goto end;
		bar = 1;
end:
		pad = 2;
	}
};