diff options
| author | Chris Lattner <sabre@nondot.org> | 2007-11-23 06:50:21 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2007-11-23 06:50:21 +0000 |
| commit | 9fcdc52243117f1da9b0cb0f69da84ae60f7f11f (patch) | |
| tree | b145779dbbba7fbb1951d4a08269fcda624bba43 /clang/test/Preprocessor/macro_disable4.c | |
| parent | 1985d96dc9323741a9f579a1929c0e044db073e6 (diff) | |
| download | bcm5719-llvm-9fcdc52243117f1da9b0cb0f69da84ae60f7f11f.tar.gz bcm5719-llvm-9fcdc52243117f1da9b0cb0f69da84ae60f7f11f.zip | |
Fix PR1820, an incredibly subtle macro expansion bug that Neil discovered.
Neil, please review this fix.
llvm-svn: 44285
Diffstat (limited to 'clang/test/Preprocessor/macro_disable4.c')
| -rw-r--r-- | clang/test/Preprocessor/macro_disable4.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/Preprocessor/macro_disable4.c b/clang/test/Preprocessor/macro_disable4.c new file mode 100644 index 00000000000..4858813a0ec --- /dev/null +++ b/clang/test/Preprocessor/macro_disable4.c @@ -0,0 +1,6 @@ +// RUN: clang -P -E %s | grep 'int f(void)' +// PR1820 + +#define f(x) h(x +#define h(x) x(void) +extern int f(f)); |

