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 | 27055194b769d52c89fead4a4dc3614266fa59ba (patch) | |
| tree | 76a132240e2cf42693d542eb40b40f7f19a410a3 /clang/test | |
| parent | 3ea23a45d97a38fdd893ad2738e3bb2dddaf10ff (diff) | |
| download | bcm5719-llvm-27055194b769d52c89fead4a4dc3614266fa59ba.tar.gz bcm5719-llvm-27055194b769d52c89fead4a4dc3614266fa59ba.zip | |
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 :)
llvm-svn: 47203
Diffstat (limited to 'clang/test')
| -rw-r--r-- | clang/test/Preprocessor/undef-error.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/test/Preprocessor/undef-error.c b/clang/test/Preprocessor/undef-error.c new file mode 100644 index 00000000000..af9f516f11c --- /dev/null +++ b/clang/test/Preprocessor/undef-error.c @@ -0,0 +1,5 @@ +// RUN: not clang %s -pedantic-errors -E +// PR2045 + +#define b +#undef a b |

