2010-01-01 05:34:51 -05:00
|
|
|
// RUN: %clang_cc1 -P -E -fms-extensions %s | FileCheck -strict-whitespace %s
|
2009-06-02 13:58:47 -04:00
|
|
|
// This horrible stuff should preprocess into (other than whitespace):
|
|
|
|
|
// int foo;
|
|
|
|
|
// int bar;
|
|
|
|
|
// int baz;
|
|
|
|
|
|
|
|
|
|
int foo;
|
|
|
|
|
|
2009-11-04 10:04:32 -05:00
|
|
|
// CHECK: int foo;
|
|
|
|
|
|
2009-06-02 13:58:47 -04:00
|
|
|
#define comment /##/ dead tokens live here
|
|
|
|
|
comment This is stupidity
|
|
|
|
|
|
|
|
|
|
int bar;
|
|
|
|
|
|
2009-11-04 10:04:32 -05:00
|
|
|
// CHECK: int bar;
|
|
|
|
|
|
2009-06-02 13:58:47 -04:00
|
|
|
#define nested(x) int x comment cute little dead tokens...
|
|
|
|
|
|
|
|
|
|
nested(baz) rise of the dead tokens
|
|
|
|
|
|
|
|
|
|
;
|
|
|
|
|
|
2009-11-04 10:04:32 -05:00
|
|
|
// CHECK: int baz
|
|
|
|
|
// CHECK: ;
|
|
|
|
|
|