summaryrefslogtreecommitdiffstats
path: root/clang/test/Preprocessor/dump_macros.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Preprocessor/dump_macros.c')
-rw-r--r--clang/test/Preprocessor/dump_macros.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/clang/test/Preprocessor/dump_macros.c b/clang/test/Preprocessor/dump_macros.c
index 29b1d293943..b4d29061272 100644
--- a/clang/test/Preprocessor/dump_macros.c
+++ b/clang/test/Preprocessor/dump_macros.c
@@ -27,3 +27,12 @@
#define G 1
#undef G
#define G 2
+
+// Variadic macros of various sorts. PR5699
+
+// CHECK: H(x,...) __VA_ARGS__
+#define H(x, ...) __VA_ARGS__
+// CHECK: I(...) __VA_ARGS__
+#define I(...) __VA_ARGS__
+// CHECK: J(x...) __VA_ARGS__
+#define J(x ...) __VA_ARGS__
OpenPOWER on IntegriCloud