Edward O'Callaghan | b396a37 | 2009-10-27 02:36:32 +0000 | [diff] [blame^] | 1 | // RUN: clang-cc -P -E -fms-extensions %s | FileCheck -strict-whitespace %s |
Chris Lattner | 3f1cc83 | 2008-02-07 06:03:59 +0000 | [diff] [blame] | 2 | // This horrible stuff should preprocess into (other than whitespace): |
| 3 | // int foo; |
| 4 | // int bar; |
| 5 | // int baz; |
| 6 | |
| 7 | int foo; |
| 8 | |
Edward O'Callaghan | b396a37 | 2009-10-27 02:36:32 +0000 | [diff] [blame^] | 9 | // CHECK: int foo; |
| 10 | |
Chris Lattner | 3f1cc83 | 2008-02-07 06:03:59 +0000 | [diff] [blame] | 11 | #define comment /##/ dead tokens live here |
| 12 | comment This is stupidity |
| 13 | |
| 14 | int bar; |
| 15 | |
Edward O'Callaghan | b396a37 | 2009-10-27 02:36:32 +0000 | [diff] [blame^] | 16 | // CHECK: int bar; |
| 17 | |
Chris Lattner | 3f1cc83 | 2008-02-07 06:03:59 +0000 | [diff] [blame] | 18 | #define nested(x) int x comment cute little dead tokens... |
| 19 | |
| 20 | nested(baz) rise of the dead tokens |
| 21 | |
| 22 | ; |
| 23 | |
Edward O'Callaghan | b396a37 | 2009-10-27 02:36:32 +0000 | [diff] [blame^] | 24 | // CHECK: int baz |
| 25 | // CHECK: ; |
| 26 | |