Eli Friedman | 53f8217 | 2011-12-14 02:16:13 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 %s -Eonly -verify |
Reid Spencer | 5f016e2 | 2007-07-11 17:01:13 +0000 | [diff] [blame] | 2 | |
| 3 | #define COMM / ## * |
Eli Friedman | 53f8217 | 2011-12-14 02:16:13 +0000 | [diff] [blame] | 4 | COMM // expected-error {{pasting formed '/*', an invalid preprocessing token}} |
Reid Spencer | 5f016e2 | 2007-07-11 17:01:13 +0000 | [diff] [blame] | 5 | |
Richard Smith | c5f7459 | 2012-06-13 19:02:56 +0000 | [diff] [blame^] | 6 | // Demonstrate that an invalid preprocessing token |
| 7 | // doesn't swallow the rest of the file... |
| 8 | #error EOF // expected-error {{EOF}} |