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 | 0c3eb29e79e439a0d73e81e57cc130ddb45d50ea (patch) | |
tree | 482ebe15b0db8a77fc4b663e8ab5476849e7710d /test/Preprocessor/macro_disable4.c | |
parent | b235fc2cf37621c7fc6511bb2b8788c95f9fb9fc (diff) |
Fix PR1820, an incredibly subtle macro expansion bug that Neil discovered.
Neil, please review this fix.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44285 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Preprocessor/macro_disable4.c')
-rw-r--r-- | test/Preprocessor/macro_disable4.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/Preprocessor/macro_disable4.c b/test/Preprocessor/macro_disable4.c new file mode 100644 index 0000000000..4858813a0e --- /dev/null +++ b/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)); |