summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.75.0/tests/input/c/Issue_3169.c
blob: bf67ca55955ebaf305ddafe236ad9b3015f7fd32 (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
#include <stdint.h>

void bar (void)
{

  int32_t result;
  const int32_t other
    = 7;
}

#define P(bits)               \
  void foo(void)              \
  {                           \
                              \
    int##bits##_t result15;     \
    const int##bits##_t other \
      = 7;                    \
  }

#define Q(value)          \
  void baz(void)          \
  {                       \
                          \
    int32_t result24; \
    const int32_t other   \
      = 7;                \
  }

P(32)
Q(7)