summaryrefslogtreecommitdiffstats
path: root/clang/test/Preprocessor/microsoft-ext.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Preprocessor/microsoft-ext.c')
-rw-r--r--clang/test/Preprocessor/microsoft-ext.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/clang/test/Preprocessor/microsoft-ext.c b/clang/test/Preprocessor/microsoft-ext.c
index b03f6775429..cb3cf4f1537 100644
--- a/clang/test/Preprocessor/microsoft-ext.c
+++ b/clang/test/Preprocessor/microsoft-ext.c
@@ -34,3 +34,12 @@ ACTION_TEMPLATE(InvokeArgument,
MAKE_FUNC(MAK, ER, int a, _COMMA, int b);
// CHECK: void func(int a , int b) {}
+
+#define macro(a, b) (a - b)
+void function(int a);
+#define COMMA_ELIDER(...) \
+ macro(x, __VA_ARGS__); \
+ function(x, __VA_ARGS__);
+COMMA_ELIDER();
+// CHECK: (x - );
+// CHECK: function(x);
OpenPOWER on IntegriCloud