summaryrefslogtreecommitdiffstats
path: root/test/Preprocessor/macro_paste_mscomment.c
blob: b0fc57101c64cbf8225e21d785817149ff7f12f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// RUN: clang-cc -P -E -fms-extensions %s | sed '/^#.\+/d' | tr -d '\n' |
// RUN:   grep '^int foo;int bar;int baz;$' | count 1
// This horrible stuff should preprocess into (other than whitespace):
//   int foo;
//   int bar;
//   int baz;

int foo;

#define comment /##/  dead tokens live here
comment This is stupidity

int bar;

#define nested(x) int x comment cute little dead tokens...

nested(baz)  rise of the dead tokens

;

OpenPOWER on IntegriCloud