aboutsummaryrefslogtreecommitdiff
path: root/test/Preprocessor/dump_macros.c
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-12-07 01:58:34 +0000
committerChris Lattner <sabre@nondot.org>2009-12-07 01:58:34 +0000
commit807b93ee6ae2806b53131abc779d2b146d853aed (patch)
treeea2183273ef8583792fed914205a5a6c67adf1c4 /test/Preprocessor/dump_macros.c
parent5146b1b69feac638ab14ce82037931eb3b23391b (diff)
fix -dM with variadic macros, PR5699
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90735 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Preprocessor/dump_macros.c')
-rw-r--r--test/Preprocessor/dump_macros.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/Preprocessor/dump_macros.c b/test/Preprocessor/dump_macros.c
index 29b1d29394..b4d2906127 100644
--- a/test/Preprocessor/dump_macros.c
+++ b/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__