- This is designed to make it obvious that %clang_cc1 is a "test variable" which is substituted. It is '%clang_cc1' instead of '%clang -cc1' because it can be useful to redefine what gets run as 'clang -cc1' (for example, to set a default target). llvm-svn: 91446
27 lines
455 B
C
27 lines
455 B
C
// RUN: %clang_cc1 -P -E -fms-extensions %s | FileCheck -strict-whitespace %s
|
|
// This horrible stuff should preprocess into (other than whitespace):
|
|
// int foo;
|
|
// int bar;
|
|
// int baz;
|
|
|
|
int foo;
|
|
|
|
// CHECK: int foo;
|
|
|
|
#define comment /##/ dead tokens live here
|
|
comment This is stupidity
|
|
|
|
int bar;
|
|
|
|
// CHECK: int bar;
|
|
|
|
#define nested(x) int x comment cute little dead tokens...
|
|
|
|
nested(baz) rise of the dead tokens
|
|
|
|
;
|
|
|
|
// CHECK: int baz
|
|
// CHECK: ;
|
|
|