blob: ecd0b9d6a850444d0a89afb411074eaab28532a7 [file] [log] [blame]
Edward O'Callaghanb396a372009-10-27 02:36:32 +00001// RUN: clang-cc -P -E -fms-extensions %s | FileCheck -strict-whitespace %s
Chris Lattner3f1cc832008-02-07 06:03:59 +00002// This horrible stuff should preprocess into (other than whitespace):
3// int foo;
4// int bar;
5// int baz;
6
7int foo;
8
Edward O'Callaghanb396a372009-10-27 02:36:32 +00009// CHECK: int foo;
10
Chris Lattner3f1cc832008-02-07 06:03:59 +000011#define comment /##/ dead tokens live here
12comment This is stupidity
13
14int bar;
15
Edward O'Callaghanb396a372009-10-27 02:36:32 +000016// CHECK: int bar;
17
Chris Lattner3f1cc832008-02-07 06:03:59 +000018#define nested(x) int x comment cute little dead tokens...
19
20nested(baz) rise of the dead tokens
21
22;
23
Edward O'Callaghanb396a372009-10-27 02:36:32 +000024// CHECK: int baz
25// CHECK: ;
26