| commit | 27055194b769d52c89fead4a4dc3614266fa59ba | [log] [tgz] |
|---|---|---|
| author | Chris Lattner <sabre@nondot.org> | Sat Feb 16 01:20:36 2008 +0000 |
| committer | Chris Lattner <sabre@nondot.org> | Sat Feb 16 01:20:36 2008 +0000 |
| tree | 76a132240e2cf42693d542eb40b40f7f19a410a3 | |
| parent | 3ea23a45d97a38fdd893ad2738e3bb2dddaf10ff [diff] [blame] |
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
diff --git a/clang/test/Preprocessor/undef-error.c b/clang/test/Preprocessor/undef-error.c new file mode 100644 index 0000000..af9f516 --- /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