Daniel Dunbar | 80737ad | 2009-12-15 22:01:24 +0000 | [diff] [blame] | 1 | // RUN: %clang -E -o %t -C %s |
Daniel Dunbar | 4fcfde4 | 2009-11-08 01:45:36 +0000 | [diff] [blame] | 2 | // RUN: grep '^int x; // comment' %t |
| 3 | // RUN: grep '^x x' %t |
Daniel Dunbar | 80737ad | 2009-12-15 22:01:24 +0000 | [diff] [blame] | 4 | // RUN: %clang -E -o %t -CC %s |
Daniel Dunbar | 4fcfde4 | 2009-11-08 01:45:36 +0000 | [diff] [blame] | 5 | // RUN: grep '^int x; // comment' %t |
| 6 | // RUN: grep '^x /\* comment \*/ x /\* comment \*/' %t |
Daniel Dunbar | 3a183d3 | 2009-06-08 21:48:20 +0000 | [diff] [blame] | 7 | |
| 8 | int x; // comment |
| 9 | |
| 10 | #define A(foo, bar) foo bar |
| 11 | #define B x // comment |
| 12 | |
| 13 | A(B, B) |
| 14 | |