summaryrefslogtreecommitdiffstats
path: root/util/generic/va_args.cpp
diff options
context:
space:
mode:
authorDevtools Arcadia <[email protected]>2022-02-07 18:08:42 +0300
committerDevtools Arcadia <[email protected]>2022-02-07 18:08:42 +0300
commit1110808a9d39d4b808aef724c861a2e1a38d2a69 (patch)
treee26c9fed0de5d9873cce7e00bc214573dc2195b7 /util/generic/va_args.cpp
intermediate changes
ref:cde9a383711a11544ce7e107a78147fb96cc4029
Diffstat (limited to 'util/generic/va_args.cpp')
-rw-r--r--util/generic/va_args.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/util/generic/va_args.cpp b/util/generic/va_args.cpp
new file mode 100644
index 00000000000..2266d05a0dd
--- /dev/null
+++ b/util/generic/va_args.cpp
@@ -0,0 +1,15 @@
+#include "va_args.h"
+
+// Test that it compiles
+#define __DUMMY__(x)
+Y_MAP_ARGS(__DUMMY__, 1, 2, 3);
+#define __DUMMY_LAST__(x)
+Y_MAP_ARGS_WITH_LAST(__DUMMY__, __DUMMY_LAST__, 1, 2, 3);
+#undef __DUMMY_LAST__
+#undef __DUMMY__
+
+#define __MULTI_DUMMY__(x, y)
+#define __MULTI_DUMMY_PROXY__(x) __MULTI_DUMMY__ x
+Y_MAP_ARGS(__MULTI_DUMMY_PROXY__, (1, 2), (3, 4));
+#undef __MULTI_DUMMY_PROXY__
+#undef __MULTI_DUMMY__