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 | f160b5f9e1dac84896494398e49dbbd4d76d1860 (patch) | |
| tree | b0ee07d482a7efef6051380239cfff3143e65c5f /clang/test/Preprocessor | |
| parent | d9d6e6e03940652cc43c4b7f28853a3db09893a2 (diff) | |
| download | bcm5719-llvm-f160b5f9e1dac84896494398e49dbbd4d76d1860.tar.gz bcm5719-llvm-f160b5f9e1dac84896494398e49dbbd4d76d1860.zip | |
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
llvm-svn: 71616
Diffstat (limited to 'clang/test/Preprocessor')
| -rw-r--r-- | clang/test/Preprocessor/macro_expand.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/test/Preprocessor/macro_expand.c b/clang/test/Preprocessor/macro_expand.c index c2c76bddbf0..74b3922d1e1 100644 --- a/clang/test/Preprocessor/macro_expand.c +++ b/clang/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() |

