diff options
author | Chris Lattner <sabre@nondot.org> | 2009-05-13 00:55:26 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-05-13 00:55:26 +0000 |
commit | 9fc9e77c2fd15a88bd19ff3fdc9eb9716742f720 (patch) | |
tree | 4b28e9426a6e845dd16d8062f3884cd4b49ac0bd /test/Preprocessor/macro_expand.c | |
parent | 09d04e5097034d8dfb9fcfceb457f6924cdd2417 (diff) |
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
Diffstat (limited to 'test/Preprocessor/macro_expand.c')
-rw-r--r-- | test/Preprocessor/macro_expand.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/Preprocessor/macro_expand.c b/test/Preprocessor/macro_expand.c index c2c76bddbf..74b3922d1e 100644 --- a/test/Preprocessor/macro_expand.c +++ b/test/Preprocessor/macro_expand.c @@ -14,3 +14,6 @@ A: X()()() B: f(f)) C: for(for)) +// rdar://6880648 +#define f(x,y...) y +f() |