summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.72.0/tests/input/cpp/bug_i_568.cpp
blob: 7b93e223b5e5fd130f28a7e1ffb609803c2d96bd (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;
  }
};