summaryrefslogtreecommitdiff
path: root/clang/test/Frontend/cpp-output.c
blob: e44095b5990245f6c7483669416de6668ea8fdcf (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// RUN: %clang -E -o %t -C %s
// RUN: grep '^int x; // comment' %t
// RUN: grep '^x x' %t
// RUN: %clang -E -o %t -CC %s
// RUN: grep '^int x; // comment' %t
// RUN: grep '^x /\* comment \*/ x /\* comment \*/' %t

int x; // comment

#define A(foo, bar) foo bar
#define B x // comment 

A(B, B)