When we expect two arguments but have zero, make sure to add
two empty arguments. Also, add an assert so that this bug
manifests as an assertion failure, not a valgrind problem.
This fixes rdar://6880648 - [cpp] crash in ArgNeedsPreexpansion
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@71616 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/Preprocessor/macro_expand.c b/test/Preprocessor/macro_expand.c
index c2c76bd..74b3922 100644
--- a/test/Preprocessor/macro_expand.c
+++ b/test/Preprocessor/macro_expand.c
@@ -14,3 +14,6 @@
B: f(f))
C: for(for))
+// rdar://6880648
+#define f(x,y...) y
+f()