Chris Lattner | 1500881 | 2006-06-18 07:00:07 +0000 | [diff] [blame] | 1 | /* |
Bill Wendling | ff1d2c8 | 2007-06-27 04:07:44 +0000 | [diff] [blame^] | 2 | RUN: clang -parse-ast-check %s |
| 3 | */ |
Chris Lattner | 1500881 | 2006-06-18 07:00:07 +0000 | [diff] [blame] | 4 | |
| 5 | /* abc |
| 6 | |
| 7 | ends with normal escaped newline: |
| 8 | *\ |
Bill Wendling | ff1d2c8 | 2007-06-27 04:07:44 +0000 | [diff] [blame^] | 9 | / \ |
| 10 | /* expected-warning {{escaped newline between}} \ |
| 11 | expected-warning {{backslash and newline separated by space}} */ |
Chris Lattner | 1500881 | 2006-06-18 07:00:07 +0000 | [diff] [blame] | 12 | |
| 13 | bar |
| 14 | |
| 15 | /* xyz |
| 16 | |
| 17 | |
| 18 | ends with a trigraph escaped newline: |
| 19 | *??/ |
Bill Wendling | ff1d2c8 | 2007-06-27 04:07:44 +0000 | [diff] [blame^] | 20 | / \ |
| 21 | /* expected-warning {{escaped newline between}} \ |
| 22 | expected-warning {{backslash and newline separated by space}} \ |
| 23 | expected-warning {{trigraph ends block comment}} */ |
Chris Lattner | 1500881 | 2006-06-18 07:00:07 +0000 | [diff] [blame] | 24 | |
Bill Wendling | ff1d2c8 | 2007-06-27 04:07:44 +0000 | [diff] [blame^] | 25 | foo \ |
| 26 | /* expected-error \ |
| 27 | {{expected '=', ',', ';', 'asm', or '__attribute__' after declarator}} */ |
Chris Lattner | 1500881 | 2006-06-18 07:00:07 +0000 | [diff] [blame] | 28 | |