summaryrefslogtreecommitdiffstats
path: root/Tests/CompileFeatures/c_variadic_macros.c
blob: 4da111e6288b749137047ef4f5a8d43530778f89 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

int someFunc(int i1, char c, int i2)
{
  (void)i1;
  (void)c;
  (void)i2;
  return 0;
}

#define FUNC_WRAPPER(...) someFunc(__VA_ARGS__)

void otherFunc()
{
  FUNC_WRAPPER(42, 'a', 7);
}