summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/bug_i_568.cpp
blob: 68729907b0e93b85fded776ab09f9f025103fdc8 (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->GetPrev()->GetPrev()-> 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;
  }
};