summaryrefslogtreecommitdiffstats
path: root/src/test/resources
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/resources')
-rw-r--r--src/test/resources/varargs.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/test/resources/varargs.c b/src/test/resources/varargs.c
new file mode 100644
index 0000000..5eac2fa
--- /dev/null
+++ b/src/test/resources/varargs.c
@@ -0,0 +1,8 @@
+#define var(x...) a x __VA_ARGS__ b
+var(b, c, d)
+
+#define var2(x, ...) a x __VA_ARGS__ b
+var2(b, c, d)
+
+#define var3(...) a x __VA_ARGS__ b
+var3(b, c, d)