diff options
author | Chris Lattner <sabre@nondot.org> | 2008-02-16 01:20:36 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-02-16 01:20:36 +0000 |
commit | e9ba32357c380f587fc1296992822e1b47fbd22d (patch) | |
tree | 46fc0308a67aed17b8f8373f1d18b7f82ee22388 /test/Preprocessor/undef-error.c | |
parent | 6a24acbb3dbb3bea9426716bee6ad6023ad15f3f (diff) |
Fix CheckEndOfDirective to diagnose lines that contain macros that expand to
zero tokens. This fixes PR2045, thanks to Neil for finding another
incredibly subtle corner case :)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@47203 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Preprocessor/undef-error.c')
-rw-r--r-- | test/Preprocessor/undef-error.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/Preprocessor/undef-error.c b/test/Preprocessor/undef-error.c new file mode 100644 index 0000000000..af9f516f11 --- /dev/null +++ b/test/Preprocessor/undef-error.c @@ -0,0 +1,5 @@ +// RUN: not clang %s -pedantic-errors -E +// PR2045 + +#define b +#undef a b |