blob: 2f31249fec44e48d153e790dae7f095c20a70556 [file] [log] [blame]
Chris Lattner15008812006-06-18 07:00:07 +00001/*
Bill Wendlingfdddfc12007-06-27 07:26:41 +00002 RUN: clang -E %s | grep bar &&
3 RUN: clang -E %s | grep foo &&
4 RUN: clang -E %s | not grep abc &&
5 RUN: clang -E %s | not grep xyz &&
Bill Wendlingff1d2c82007-06-27 04:07:44 +00006 RUN: clang -parse-ast-check %s
7 */
Chris Lattner15008812006-06-18 07:00:07 +00008
9/* abc
10
11ends with normal escaped newline:
12*\
Bill Wendlingff1d2c82007-06-27 04:07:44 +000013/ \
14/* expected-warning {{escaped newline between}} \
15 expected-warning {{backslash and newline separated by space}} */
Chris Lattner15008812006-06-18 07:00:07 +000016
17bar
18
19/* xyz
20
21
22ends with a trigraph escaped newline:
23*??/
Bill Wendlingff1d2c82007-06-27 04:07:44 +000024/ \
25/* expected-warning {{escaped newline between}} \
26 expected-warning {{backslash and newline separated by space}} \
27 expected-warning {{trigraph ends block comment}} */
Chris Lattner15008812006-06-18 07:00:07 +000028
Bill Wendlingff1d2c82007-06-27 04:07:44 +000029foo \
30/* expected-error \
31 {{expected '=', ',', ';', 'asm', or '__attribute__' after declarator}} */
Chris Lattner15008812006-06-18 07:00:07 +000032